Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-10-02  Ulrich Drepper  <drepper@redhat.com>
2
3         * include/features.h [__USE_FILE_OFFSET && !__REDIRECT]: Define
4         __USE_LARGEFILE64 and __USE_LARGEFILE to 1 and not nothing.
5
6 2000-10-02  Andreas Jaeger  <aj@suse.de>
7
8         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Synch with Linux
9         2.4.0-test9-pre8.
10
11         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Add RLIMIT_LOCKS.
12
13 2000-10-01  Ralf Baechle  <ralf@gnu.org>
14
15         * sysdeps/mips/dl-machine.h (RTLD_START): Fix computation of envp
16         argument passed to _dl_init.
17
18 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
19
20         * locale/programs/charmap-dir.h: New file.
21         * locale/programs/charmap-dir.c: New file.
22         * locale/programs/linereader.h (lr_create): New declaration.
23         * locale/programs/linereader.c (lr_create): New function, split out
24         from lr_open.
25         (lr_open): Tailcall lr_create.
26         * locale/programs/locale.c: Include "charmap-dir.h". Don't include
27         <unistd.h>.
28         (xstrdup): New declaration.
29         (more_help): Use xstrdup instead of strdup.
30         (write_locales): Likewise. When encountering a symbolic link, call
31         stat.
32         (write_charmaps): Simplify using the charmap-dir.h functions.
33         Use xstrdup instead of strdup.
34         * locale/programs/charmap.c: Include "charmap-dir.h". Don't include
35         <dirent.h> and <unistd.h>.
36         (cmlr_open): New function.
37         (charmap_read): Use cmlr_open instead of lr_open. Simplify using the
38         charmap-dir.h functions.
39         * locale/Makefile (distribute): Add charmap-dir.h.
40         (lib-modules): Add charmap-dir.
41         (CFLAGS-charmap-dir.c): Set to -Wno-write-strings, because posix_spawn
42         wants a 'char **', not a 'const char **'.
43         * include/spawn.h: New file.
44
45 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
46
47         * posix/spawn_faction_init.c: Include "spawn_int.h".
48         (__posix_spawn_file_actions_realloc): Fix second realloc argument.
49
50 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
51
52         * locale/programs/config.h (DEFAULT_CHARMAP): Set to ANSI_X3.4-1968.
53
54 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
55
56         * wcsmbs/wcwidth.h (__ctype32_wctype): Remove declaration.
57         (internal_wcwidth): Remove the tests for L'\0' and iswprint.
58         * locale/programs/ld-ctype.c (find_idx): If max == NULL, return
59         a pointer to the table entry, without extending the table.
60         (allocate_arrays): Set a width only for characters with 'print'
61         property. Set the width of L'\0' to 0.
62         * locale/C-ctype.c (_nl_C_LC_CTYPE_width): Use default entry 0xff
63         for unprintable characters.  Set entry of NUL to 0.
64
65 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
66
67         * locale/programs/charmap.c (charmap_read): Avoid redundant tests.
68         Don't forget to call closedir when the filename was found as a
69         code_set_name.
70
71 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
72
73         * iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
74         type to 'void *'.
75
76 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
77
78         * locale/programs/ld-ctype.c (wctype_table_init): Initialize level1,
79         level2, and level3 as well.
80         (wctype_table_add): Remove a few unnecessary conditionals.
81
82 2000-09-30  Ralf Baechle  <ralf@gnu.org>
83
84         * wcsmbs/Versions [libc] (GLIBC_2.0): Add __mbrtowc.
85
86 2000-09-30  H.J. Lu  <hjl@gnu.org>
87
88         * sysdeps/ieee754/ldbl-96/s_ceill.c (__ceill): Handle overflow.
89         * sysdeps/ieee754/ldbl-96/s_floorl.c (__floorl): Likewise.
90
91 2000-09-29  H.J. Lu  <hjl@gnu.org>
92
93         * math/libm-test.inc (init_max_error): Clear all exceptions
94         before starting test.
95         (acosh_test): Test for existence of function.
96         (asinh_test): Likewise.
97         (atan2_test): Likewise.
98         (cabs_test): Likewise.
99         (cacos_test): Likewise.
100         (cacosh_test): Likewise.
101         (casin_test): Likewise.
102         (casinh_test): Likewise.
103         (catan_test): Likewise.
104         (catanh_test): Likewise.
105         (ccos_test): Likewise.
106         (ccosh_test): Likewise.
107         (cexp_test): Likewise.
108         (clog_test): Likewise.
109         (clog10_test): Likewise.
110         (cosh_test): Likewise.
111         (cpow_test): Likewise.
112         (csin_test): Likewise.
113         (csinh_test): Likewise.
114         (csqrt_test): Likewise.
115         (ctan_test): Likewise.
116         (ctanh_test): Likewise.
117         (fmod_test): Likewise.
118         (hypot_test): Likewise.
119         (remainder_test): Likewise.
120         (remquo_test): Likewise.
121         (sincos_test): Likewise.
122         (sinh_test): Likewise.
123         (tanh_test): Likewise.
124
125 2000-09-29  H.J. Lu  <hjl@gnu.org>
126
127         * sysdeps/ia64/ieee754.h: New file.
128
129         * sysdeps/ia64/fpu/math_ldbl.h: New file.
130
131 2000-09-30  Jakub Jelinek  <jakub@redhat.com>
132
133         * elf/ldconfig.h (FLAG_X8664_LIB64): Define.
134         * sysdeps/unix/sysv/linux/i386/readelflib.c: New file.
135
136 2000-09-30  Ulrich Drepper  <drepper@redhat.com>
137
138         * manual/charset.texi: Correct notations, reference to C90 amd 1,
139         and some other details.
140         * manual/ctype.texi: Likewise.
141         Patches by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
142
143 2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
144
145         * sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
146
147 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
148
149         * elf/cache.c (save_cache): Initialize __unused field in new cache
150         as well to get reproducable results.
151
152 2000-09-29  H.J. Lu  <hjl@gnu.org>
153
154         * sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
155
156 2000-09-29  H.J. Lu  <hjl@gnu.org>
157
158         * sysdeps/ia64/bits/huge_val.h: New file.
159
160 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
161
162         * elf/chroot_canon.c: Don't report a failure if the last path
163         component is not available.
164         * elf/ldconfig.c (parse_conf): Use canonicalized name when reporting
165         error.
166
167         * elf/cache.c (print_cache): Use stat64 instead of stat.
168         * elf/ldconfig.c (chroot_stat): Likewise.
169         (create_links): Likewise.
170         (manual_link): Likewise.
171         (search_dir): Likewise.
172         * elf/readlib.c (process_file): Likewise.
173
174         * Makefile (install): Set LC_ALL and LANGUAGE to C before running
175         ldconfig.
176
177 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
178
179         * elf/chroot_canon.c: New file.
180         * elf/Makefile: Build and distribute it.
181         * elf/ldconfig.h (process_file): Add real_file_name argument.
182         (chroot_canon): Add prototype.
183         * elf/ldconfig.c (cache_file): Remove const.
184         (chroot_stat): New.
185         (create_links): Add real_path argument.
186         If opt_chroot, maintain both real and given filenames.
187         (manual_link): Likewise.
188         (search_dir): Likewise.
189         (parse_conf): If opt_chroot, use chroot_canon to find the real
190         config file.
191         (main): For -r, try to use chroot, if it fails, leave opt_chroot set
192         and use chroot_canon where appropriate to do the same as if chroot
193         succeeded.
194         * elf/readlib.c (process_file): Add real_file_name argument, pass it
195         to fopen.
196
197 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
198
199         * math/complex.h (_Complex): We can be more specific when _Complex
200         is defined by the compiler.
201
202 2000-09-29  H.J. Lu  <hjl@gnu.org>
203
204         * sysdeps/unix/sysv/linux/ia64/dl-cache.h: New.
205
206         * elf/cache.c (print_entry): Replace 64bit with IA-64 in message
207         for x86/IA-64 binary.
208
209 2000-09-29  Andreas Schwab  <schwab@suse.de>
210
211         * sysdeps/unix/sysv/linux/ia64/readelflib.c: New file.
212
213         * elf/cache.c (print_entry): Check for FLAG_IA64_LIB64.
214
215 2000-09-29  Mark Kettenis  <kettenis@gnu.org>
216
217         * sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
218         implementation for use by the dynamic linker.
219
220 2000-09-29  Andreas Jaeger  <aj@suse.de>
221
222         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
223         __USE_GNU.
224         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
225         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
226         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
227         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
228         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
229         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
230
231 2000-09-29  Andreas Jaeger  <aj@suse.de>
232
233         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Synch with Linux
234         2.4.0-test9-pre7.
235         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
236         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
237         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
238         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
239         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
240         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
241
242 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
243
244         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
245
246         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
247
248 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
249
250         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
251         works: call to __sigjmp_save must be done unconditionally to
252         ensure jmp_buf is initialized properly.
253
254 2000-09-27  Andreas Jaeger  <aj@suse.de>
255
256         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
257         2.4.0-test9-pre7.
258
259 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
260
261         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
262         Use nscd_ssize_t where appropriate.
263         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
264         ssize_t where appropriate.
265         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
266         * nscd/hstcache.c (cache_addhst): Likewise.
267         * nscd/grpcache.c (cache_addgr): Likewise.
268         * sysdeps/generic/nscd-types.h: New file.
269         * sysdeps/alpha/nscd-types.h: New file.
270
271 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
272
273         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
274         INADDR_LOOPBACK instead of numeric value.
275
276 2000-09-28  H.J. Lu  <hjl@gnu.org>
277
278         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
279         _dl_skip_args.
280         (ELF_MACHINE_FIXED_STACK): Removed.
281
282 2000-09-29  Andreas Jaeger  <aj@suse.de>
283
284         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
285
286         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
287
288         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
289
290         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
291
292 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
293
294         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
295         relocation also for R_ALPHA_RELATIVE.
296         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
297
298 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
299
300         * intl/dcigettext.c: Outside libc, use local variable names that don't
301         clash with those in libc.
302         * intl/bindtextdom.c: Likewise.
303         * intl/textdomain.c: Likewise.
304
305 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
306
307         * elf/ldconfig.c (parse_conf): Print full name of config dir
308         including chroot() path.
309         (main): Remove trailing / from opt_chroot string.
310
311         * include/features.h: Correct description of what happens if no
312         *_SOURCE macro is defined.
313
314         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
315         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
316
317 2000-09-19  H.J. Lu  <hjl@gnu.org>
318
319         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
320         * malloc/malloc.c (__memalign_hook): Likewise.
321         (memalign_hook_ini): Likewise.
322
323 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
324
325         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
326
327         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
328         underlying functions directly.
329
330         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
331         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
332         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
333         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
334         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
335         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
336         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
337
338 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
339
340         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
341         define it for powerpc for kernel >= 2.4.0.
342         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
343         __ASSUME_32BITUIDS.
344         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
345         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
346         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
347         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
348         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
349         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
350
351 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
352
353         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
354
355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
356         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
357
358 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
359
360         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
361         ucontext.h.
362         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
363
364 2000-09-27  Andreas Schwab  <schwab@suse.de>
365
366         * math/Makefile (distribute): Explicitly add the long double test
367         sources, to get them included even if long double is not supported.
368
369 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
370
371         * elf/soinit.c (struct object): Move definition to gccframe.h and
372         include it.  Problem identified by HJ Lu.
373
374         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
375         struct object to be searched for frame unwind info.
376         * sysdeps/generic/gccframe.h: New file.  Generic version of
377         struct object to be searched for frame unwind info.
378
379 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
380
381         * manual/errno.texi: Correct error text for ENXIO.
382         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
383
384 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
385
386         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
387         exception status bits rather than the exception disable bits.
388         Don't include math.h.
389
390         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
391         status of exceptions currently raised rather than which exceptions
392         are enabled.
393
394         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
395         rather than unsigned long int.
396
397         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
398         the exceptions actually requested by the caller and not just
399         disable all exceptions.
400
401         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
402         the ia64 are enabled by clearing the respective bits in the fpsr,
403         not setting them.
404
405         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
406         unsigned long int rather than unsigned long to be consistent with
407         the coding conventions.
408
409 2000-09-20  H.J. Lu  <hjl@gnu.org>
410
411         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
412         unsigned long int.
413         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
414
415 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
416
417         * string/bits/string2.h: Unify #if usage.
418
419 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
420
421         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
422         and disabling underflow or overflow, disable inexact as well.
423
424 2000-09-26  Andreas Jaeger  <aj@suse.de>
425
426         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
427
428         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
429
430         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
431         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
432
433         * elf/ldconfig.c (search_dir): Allow unlimited path length.
434         (create_links): Likewise.
435
436 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
437
438         * posix/tst-dir.c: Test a few error cases of chdir.
439
440 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
441
442         * math/math_private.h: Don't add long double prototypes if
443         NO_LONG_DOUBLE is defined.
444
445         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
446         CLOCK_MONOTONIC.
447         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
448         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
449
450         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
451
452 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
453
454         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
455         * sysdeps/sparc/sparc32/ieee754.h: New.
456         * sysdeps/sparc/sparc64/bits/endian.h: Move...
457         * sysdeps/sparc/bits/endian.h: ...here.
458         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
459         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
460         %o1, not %o0 to see if we're parent or child.  Optimize.
461
462 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
463
464         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
465         by Hans Boehm).
466         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
467         code by Hans Boehm).
468         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
469
470 2000-09-20  H.J. Lu  <hjl@gnu.org>
471
472         * sysdeps/ia64/fpu/printf_fphex.c: New file.
473
474         * sysdeps/ia64/fpu/libm-test-ulps: New file.
475
476 2000-09-17  H.J. Lu  <hjl@gnu.org>
477
478         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
479
480         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
481         sysdeps/i386/fpu/s_isinfl.c.
482
483         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
484         sysdeps/i386/fpu/s_isnanl.c.
485
486         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
487         sysdeps/i386/fpu/s_nextafterl.c.
488
489         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
490         sysdeps/i386/fpu/bits/mathdef.h.
491
492 2000-09-16  H.J. Lu  <hjl@gnu.org>
493
494         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
495         DL_UNMAP_IS_SPECIAL is not defined.
496
497         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
498         (_dl_unmap): New prototype.
499         (DL_UNMAP): New.  Defined as _dl_unmap.
500
501         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
502
503         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
504
505 2000-09-16  H.J. Lu  <hjl@gnu.org>
506
507         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
508         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
509
510         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
511         prototype.
512         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
513
514         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
515         the memory location of a function from a function descriptor.
516
517         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
518
519         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
520         memory location.
521
522 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
523
524         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
525         variable as input argument.
526         (__bswap_32): Likewise.
527
528         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
529         - found by Jim Wilson <wilson@cygnus.com>
530
531 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
532
533         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
534         instead of 4.
535
536 2000-09-26  Andreas Schwab  <schwab@suse.de>
537
538         * locale/programs/ld-collate.c (collate_output): Only require
539         alignment on __alignof__ (int32_t) instead of 4.
540         * locale/loadlocale.c (_nl_load_locale): Likewise.
541         * string/strcoll.c: Likewise.
542
543 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
544
545         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
546         parentheses around arithmetic used in | statement to kill compiler
547         warning.
548
549         * math/math_private.h: Add prototype for __finitel.
550         (__ilogbl): Likewise.
551         (__isinfl): Likewise.
552         (__isnanl): Likewise.
553         (__atanl): Likewise.
554         (__copysignl): Likewise.
555         (__expm1l): Likewise.
556         (__floorl): Likewise.
557         (__frexpl): Likewise.
558         (__ldexpl): Likewise.
559         (__log1pl): Likewise.
560         (__nanl): Likewise.
561         (__rintl): Likewise.
562         (__scalbnl): Likewise.
563         (__sqrtl): Likewise.
564         (fabsl): Likewise.
565         (__sincosl): Likewise.
566
567 2000-09-26  Andreas Schwab  <schwab@suse.de>
568
569         * sysdeps/m68k/fpu/libm-test-ulps: New file
570
571 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
572
573         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
574
575 2000-09-26  Andreas Jaeger  <aj@suse.de>
576
577         * misc/mkstemp64.c: New file.
578         * misc/Makefile (routines): Add mkstemp64.
579         * stdlib/stdlib.h: Add prototype and redirection magic.
580         * misc/Versions: Add mkstemp64.
581
582 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
583
584         * nscd/dbg_log.c (dbg_log): Add missing format string.
585
586 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
587
588         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
589         since we filter out the variable once.
590         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
591         * locale/newlocale.c (__newlocale): Likewise.
592         * locale/setlocale.c (setlocale): Likewise.
593         * malloc/malloc.c (ptmalloc_init): Likewise.
594         * resolv/res_hconf.c (_res_hconf_init): Likewise.
595         * resolv/res_init.c (__res_vinit): Likewise.
596         * time/tzfile.c (__tzfile_read): Likewise.
597         * sysdeps/generic/unsecvars.h: New file.
598         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
599         * elf/rtld.c (process_envvars): Likewise.
600         * elf/Makefile (distribute): Add unsecvars.h.
601
602         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
603         real /dev/null device.
604
605         * sysdeps/generic/check_fds.c: Include device-nrs.h.
606         * sysdeps/generic/device-nrs.h: New file.
607         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
608         * misc/Makefile (distribute): Add device-nrs.h.
609
610         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
611         remove possible garbage at the end of the file.
612
613 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
614
615         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
616         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
617         * stdio-common/tempnam.c: Warn about insecure tempnam.
618         * misc/mktemp.c: Warn about insecure mktemp.
619
620         * sysdeps/generic/check_fds.c: Check that file opened is really
621         /dev/null.
622         * posix/wordexp.c (exec_comm_child): Likewise.
623
624         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
625
626         * locale/Makefile (routines): Add nl_langinfo_l.
627         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
628         * locale/nl_langinfo_l.c: New file.
629         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
630         definition.
631
632 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
633
634         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
635         (__gbk_to_ucs): Conditionalize private area mappings.
636         (__gbk_from_ucs4_tab9): Likewise.
637         (BODY for TO_LOOP): Likewise.
638         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
639         * iconvdata/testdata/GBK..UTF-8: Likewise.
640         * iconvdata/tst-tables.sh: Enable GBK test.
641
642 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
643
644         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
645         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
646         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
647         array access.
648         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
649         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
650
651 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
652
653         * iconvdata/johab.c (final_to_ucs): Fix typos.
654         (jamo_from_ucs_table): Likewise.
655         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
656         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
657         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
658         the range 0xD9E6..0xD9FE.
659         * iconvdata/tst-tables.sh: Enable JOHAB testing.
660
661 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
662
663         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
664         GCONV_PATH.
665
666 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
667
668         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
669         stream is in wide mode.
670
671         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
672
673 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
674
675         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
676         by 3, not 2.
677         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
678
679 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
680
681         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
682         reallocation logic for MALLOC (%as, %aS formats).
683
684 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
685
686         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
687         Add missing case in va_arg handling for numbers.
688         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
689         handling.
690         * stdio/tst-printf.sh: Adjust expected results.
691         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
692
693 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
694
695         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
696         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
697         characters.
698         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
699         as equivalent to uppercase hexadecimal digits.
700
701 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
702
703         * iconvdata/testdata/EUC-KR..UTF8: New file.
704         * iconvdata/testdata/EUC-TW: New file.
705         * iconvdata/testdata/EUC-TW..UTF8: New file.
706         * iconvdata/testdata/EUC-JP: New file.
707         * iconvdata/testdata/EUC-JP..UTF8: New file.
708         * iconvdata/testdata/ISO-2022-JP: New file.
709         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
710         * iconvdata/testdata/ISO-2022-JP-2: New file.
711         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
712         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
713         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
714         * iconvdata/testdata/ISO-2022-CN: New file.
715         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
716         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
717         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
718         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
719         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
720
721 2000-09-24  Andreas Jaeger  <aj@suse.de>
722
723         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
724         function add_single_dir.
725         (add_single_dir): New function.
726         (search_dir): Use add_single_dir instead of recursing.
727
728         * sysdeps/generic/dl-cache.h: Include stdint.h.
729         (struct file_entry_new): Use fixed sizes for interoperability
730         between 32bit and 64bit systems, add __unused to make alignment
731         explicit.
732         (CACHE_VERSION): Increment.
733         (struct cache_file_new): Use fixed sizes, add one more unused
734         entry to make alignment explicit.
735
736 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
737
738         * elf/ldconfig.c (search_dir): Make more use of d_type information.
739
740 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
741
742         * stdio-common/printf-parse.h (parse_one_spec): Clear
743         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
744
745 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
746
747         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
748         #undef since we don't have msync.
749
750         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
751         constant since that is what clock_t is.
752         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
753
754 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
755
756         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
757         multiply by LOAD_SCALE.
758
759 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
760
761         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
762         (crypt_r, setkey_r, encrypt_r): Likewise.
763
764 2000-09-22  Andreas Jaeger  <aj@suse.de>
765
766         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
767         array size.
768
769         * sysdeps/alpha/fpu/libm-test-ulps: New file.
770         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
771
772 2000-09-21  Andreas Jaeger  <aj@suse.de>
773
774         * math/libm-test.inc (atan_test): Test for existence of function.
775         (expm1_test): Likewise.
776         (acos_test): Likewise.
777         (asin_test): Likewise.
778         (exp_test): Likewise.
779         (log10_test): Likewise.
780         (log_test): Likewise.
781         (pow_test): Likewise.
782         (sqrt_test): Likewise.
783         (cos_test): Likewise.
784         (sin_test): Likewise.
785         (tan_test): Likewise.
786         (log1p_test): Likewise.
787         (log2_test): Likewise.
788
789         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
790
791         * libio/oldiofsetpos64.c: Fix alias names.
792
793 2000-09-21  Martin Buchholz  <martin@xemacs.org>
794
795         * manual/terminal.texi (Allocation): Sample code correction.
796
797 2000-09-20  Andreas Jaeger  <aj@suse.de>
798
799         * iconvdata/Makefile (generated): Add tst-tables.out.
800
801         * intl/Makefile (generated): Add test output.
802
803 2000-09-19  Andreas Jaeger  <aj@suse.de>
804
805         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
806         Reported by Jens-Uwe Mager <jum@helios.de>.
807
808 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
809
810         * version.h (VERSION): Bump to 2.1.94.
811
812         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
813         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
814         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
815         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
816
817         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
818
819 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
820
821         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
822         range 0xD800..0xDFFF.
823         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
824         (BODY for FROM_LOOP): Likewise.
825         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
826         (internal_ucs2_loop): Likewise.
827         (ucs2reverse_internal_loop): Likewise.
828         (internal_ucs2reverse_loop): Likewise.
829
830 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
831
832         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
833         names.
834
835 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
836
837         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
838         * iconvdata/tst-table-to.c (main): Likewise.
839
840 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
841
842         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
843         __isoir165_tab.
844         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
845         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
846         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
847         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
848         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
849         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
850         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
851         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
852         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
853         encodings when needed.  When outputting an announcement, don't clear
854         most other announcements.
855
856 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
857
858         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
859         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
860
861 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
862
863         * intl/Versions: Add bind_textdomain_codeset.
864
865 2000-09-16  Ralf Baechle  <ralf@gnu.org>
866
867         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
868         as function.
869         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
870         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
871         it will even work when not loaded to the standard address.
872         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
873         before the dynamic linker itself is relocated.
874
875 2000-09-18  Andreas Jaeger  <aj@suse.de>
876
877         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
878         __ASSUME_32BITUIDS for MIPS.
879         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
880         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
881
882 2000-09-17  H.J. Lu  <hjl@gnu.org>
883
884         * catgets/Makefile ($(objpfx)de/libc.cat): Use
885         $(make-target-directory) instead of mkdir.
886
887 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
888
889         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
890         __ASSUME_32BITUIDS for __powerpc__.
891         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
892         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
893
894 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
895
896         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
897         patch.
898         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
899
900 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
901
902         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
903         first.
904         * sysdeps/m68k/Implies: Likewise.
905         * sysdeps/sparc/sparc64/Implies: Likewise.
906
907 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
908
909         * elf/readlib.c (process_file): Don't error for stale .so links either.
910
911 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
912
913         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
914         __builtin_expect.
915
916         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
917         Patch by Thorsten Kukuk <kukuk@suse.de>.
918
919         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
920         (test): Add default.
921         (modules-names): Add defaultmod1 and defaultmod2.
922         Add rules to build test objects.
923
924 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
925
926         * wctype/wctype.h: Always include <bits/types.h>.
927         Reported by Jim Meyering <meyering@ascend.com>.
928
929         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
930         * elf/dl-support.c: Likewise.
931
932         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
933         st_blocks member in stat and stat64 structs.
934         Patch by Bill Nottingham <notting@redhat.com>.
935
936         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
937         take longer.
938
939         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
940         __extension__ to _Complex_I definition since gcc warns if -pedantic.
941         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
942         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
943
944         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
945         necessary.  Move includes of POSIX and Unix limits files to the end.
946         * stdlib/Makefile (tests): Add tst-limits.
947         * stdlib/tst-limits.h: New file.
948
949 2000-09-15  Andreas Jaeger  <aj@suse.de>
950
951         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
952
953         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
954
955 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
956
957         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
958         clobber.
959         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
960         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
961
962 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
963
964         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
965         (tests): Add next.
966         (modules-names): Add nextmod1 and nextmod2.
967         Add rules to build and run next.
968         * elf/next.c: New file.
969         * elf/nextmod1.c: New file.
970         * elf/nextmod2.c: New file.
971
972 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
973
974         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
975
976 2000-09-15  Andreas Jaeger  <aj@suse.de>
977
978         * sysdeps/mips/fpu/fenv_libc.h: New file.
979         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
980         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
981         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
982
983         * sysdeps/mips/fpu/feenablxcpt.c: New file.
984         * sysdeps/mips/fpu/fegetexcept.c: New file.
985         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
986
987 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
988
989         * intl/Makefile: Avoid unnecessary test reruns.
990
991         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
992
993         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
994         to not use sysctl().  Too many architectures have problems with it.
995
996 2000-09-14  Andreas Jaeger  <aj@suse.de>
997
998         * scripts/config.sub: New version from subversions.gnu.org.
999
1000         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
1001         long.
1002
1003 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
1004
1005         * posix/regex.c (compile_range): Cast collseq index to unsigned char
1006         to avoid accessing data before collseq.
1007
1008         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
1009         pasting strings together.
1010
1011 2000-09-14  Greg McGary  <greg@mcgary.org>
1012
1013         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
1014         copyright notice.
1015         * sysdeps/generic/bp-semctl.h: Likewise.
1016         * sysdeps/generic/bp-start.h: Likewise.
1017         * sysdeps/generic/bp-sym.h: Likewise.
1018         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
1019         rename prototype.
1020
1021 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1022
1023         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
1024         don't fail.
1025
1026         * elf/elf.h: Add missing official relocations.
1027
1028         * libio/stdio.h: Define __FILE if __need___FILE is defined.
1029         * stdio/stdio.h: Likewise.
1030         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
1031         * include/stdio.h: Handle __need___FILE like __need_FILE.
1032         * include/wchar.h: Use __FILE instead of FILE.
1033         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
1034         * libio/fwscanf.c: Likewise.
1035         * libio/getwc.c: Likewise.
1036
1037         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
1038         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
1039         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
1040
1041         * assert/assert.h: Update comment header about ISO C section.
1042         * math/complex.h: Likewise.
1043         * ctype/ctype.h: Likewise.
1044         * include/errno.h: Likewise.
1045         * include/limits.h: Likewise.
1046         * locale/locale.h: Likewise.
1047         * math/math.h: Likewise.
1048         * setjmp/setjmp.h: Likewise.
1049         * signal/signal.h: Likewise.
1050         * stdio/stdio.h: Likewise.
1051         * libio/stdio.h: Likewise.
1052         * stdlib/stdlib.h: Likewise.
1053         * string/string.h: Likewise.
1054         * time/time.h: Likewise.
1055         * wcsmbs/wchar.h: Likewise.
1056         * wctype/wctype.h: Likewise.
1057         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1058
1059 2000-09-13  Andreas Jaeger  <aj@suse.de>
1060
1061         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
1062         for no more entries.
1063         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
1064         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
1065         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
1066
1067 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1068
1069         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
1070         constant since this is what clock_t is.
1071         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
1072         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
1073         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
1074         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
1075
1076         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
1077         definitions are requested.
1078
1079 2000-09-13  Andreas Jaeger  <aj@suse.de>
1080
1081         * shlib-versions: libBrokenLocale needs minimal version for ia64,
1082         sparc64 and sh to synch with libc.
1083
1084 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1085
1086         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
1087         (distribute): Add iso-2022-cn-ext.c.
1088         Add definitions to compile the new module.
1089         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
1090         * iconvdata/iso-2022-cn-ext.c: New file.
1091         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
1092         ucs4_from_isoir165.  Increment input pointer if successful.
1093
1094         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
1095
1096         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
1097
1098 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
1099
1100         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
1101         __syscall_getdents64 wrapper.
1102
1103         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
1104
1105 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * iconvdata/gb18030.c: Many many changes.  Make consistent with
1108         charmap and with itself.
1109         * iconvdata/tst-tables.sh: Test GB18030.
1110
1111 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1112
1113         * iconv/skeleton.c: Fix last patch, add missing parameter to
1114         unaligned function call.
1115
1116 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1117
1118         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
1119         of decimal ellipsis.
1120
1121 2000-09-11  Bruno Haible <haible@clisp.cons.org>
1122
1123         * locale/programs/ld-collate.c (collate_read): Always initialize
1124         error_section.next.
1125
1126 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1127
1128         * locale/programs/ld-collate.c (collate_finish): Upper bound for
1129         ruleidx is 128, not 256.
1130
1131 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1132
1133         * locale/programs/ld-collate.c (collate_read): Correct check for
1134         already inserted entries.
1135
1136 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1137
1138         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
1139         second try as well.
1140
1141 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1142
1143         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
1144         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
1145
1146 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1147
1148         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
1149         SAVE_RESET_STATE.
1150
1151 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1152
1153         * iconvdata/utf-7.c: New file.
1154         * iconvdata/gconv-modules (UTF-7): New module entries.
1155         * iconvdata/Makefile (modules): Add UTF-7.
1156         (distribute): Add utf-7.c.
1157         * iconvdata/testdata/UTF-7: New file.
1158         * iconvdata/testdata/UTF-7..UTF8: New file.
1159         * iconvdata/TESTS (UTF-7): New entry.
1160         * iconvdata/run-iconv-test.sh: Fix confusing output.
1161
1162 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1163
1164         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
1165
1166 2000-09-10  David S. Miller  <davem@redhat.com>
1167
1168         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
1169         frame pointer offset for non-fast path.
1170
1171 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1172
1173         * locale/programs/3level.h (*_init): Initialize level1, level2,
1174         and level3 as well.
1175         (*_add): Remove a few unnecessary conditionals.
1176
1177 2000-09-05  Wolfram Gloger  <wg@malloc.de>
1178
1179         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
1180         ensure usability of mutex as an `in use' flag.
1181
1182 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1183
1184         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
1185
1186         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
1187         ugly GMON_WEAK_START hack.
1188         Patch by Philip Blundell <philb@gnu.org>.
1189
1190         * sysdeps/i386/i486/bits/string.h: Pretty printing.
1191
1192 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1193
1194         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
1195         and PPC_ICBI asm for broken compilers.
1196         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1197
1198 2000-09-09  Andreas Jaeger  <aj@suse.de>
1199
1200         * manual/message.texi (Advanced gettext functions): Fix typo.
1201
1202         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
1203         strncpy prototype.
1204
1205 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1206
1207         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
1208         warnings.
1209         * sysdeps/ia64/memccpy.S: Likewise.
1210         Patches by Jim Wilson <wilson@redhat.com>.
1211
1212         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
1213         before trying to read /proc.
1214         Patch by Matt Wilson <msw@redhat.com>.
1215         * include/sys/utsname.h: Declare __uname.
1216         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
1217         * sysdeps/mach/hurd/uname.c: Likewise.
1218         * sysdeps/unix/syscalls.list: Likewise.
1219
1220         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
1221         unloading a bit.
1222
1223 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
1224
1225         * posix/getopt.c (_getopt_internal): When long_only is set always
1226         recognize conflicts just like before.
1227
1228 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1229
1230         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
1231
1232 2000-09-08  Greg McGary  <greg@mcgary.org>
1233
1234         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
1235         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
1236         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
1237
1238 2000-09-08  Andreas Jaeger  <aj@suse.de>
1239
1240         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
1241
1242         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
1243
1244         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
1245         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1246         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
1247
1248 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1249
1250         * iconvdata/tst-tables.sh: Enable EUC-KR test.
1251
1252         * elf/dl-load.c (lose): Decrement _nl_loaded.
1253         (_dl_map_object_from_fd): Don't try to dlopen executables.
1254
1255         * iconvdata/tst-tables.sh: Actually return with an error if
1256         something goes wrong.
1257         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
1258         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
1259
1260         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
1261
1262         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
1263         * iconvdata/tst-table-from.c: Include <string.h>.
1264         (try): Correct cast in iconv call.
1265
1266         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
1267         too.
1268         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
1269         (sysdep_routines): Remove dl-start.
1270         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1271
1272         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
1273
1274         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
1275         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
1276
1277 2000-09-06  Andreas Schwab  <schwab@suse.de>
1278
1279         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
1280
1281 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1282
1283         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
1284
1285         * scripts/config.sub: Strip out -unknown for Linux targets.
1286         Patch by Scott Bambrough <scottb@netwinder.org>.
1287
1288         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
1289         add one more test.
1290
1291 2000-09-07  Andreas Jaeger  <aj@suse.de>
1292
1293         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
1294
1295         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
1296         syscalls.
1297
1298         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
1299
1300         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
1301         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1302
1303         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
1304
1305         * stdlib/tst-bsearch.c (main): Add more test cases.
1306
1307         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
1308         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1309         Reported by GOTO Masanori <gotom@debian.or.jp>.
1310
1311 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1312
1313         * posix/Makefile (tests): Add tst-dir.
1314         (tst-dir-ARGS): New variable.
1315         * posix/tst-dir.c: New file.
1316
1317 2000-09-07  Andreas Jaeger  <aj@suse.de>
1318
1319         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
1320         (SYS_fcntl64): New.
1321
1322         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
1323
1324 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
1325
1326         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
1327         use the hack with tryopen_o_directory to determine at runtime
1328         whether it works.
1329         * sysdeps/unix/sysv/linux/opendir.c: New file.
1330         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1331         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
1332
1333         * catgets/Depend: New file.  Add intl.
1334         * catgets/Makefile (tests): Add tst-catgets.
1335         (generated): Remove de.msg.
1336         (generated-dirs): Add de.
1337         Add dependency if tst-catgets output on de/libc.cat.
1338         * catgets/tst-catgets.c: New file.
1339
1340         * po/ja.po: New file.
1341         * po/el.po: Update from translation team.
1342
1343         * wcsmbs/Depend: New file.
1344         * wcsmbs/Makefile (tests): Add tst-btowc.
1345         (tst-btowc-ENV): Define.
1346         * wcsmbs/tst-btowc.c: New file.
1347
1348         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
1349         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
1350
1351         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
1352
1353         * stdlib/Makefile (tests): Add tst-bsearch.
1354         * stdlib/tst-bsearch.c: New file.
1355
1356         * posix/getopt.c (_getopt_internal): Don't recognize an option
1357         name as ambiguous if it's a prefix for more than one name but the
1358         other struct option values are identical.
1359
1360         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
1361         Don't depend on visual inspection of the output file to recognize
1362         errors.
1363         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
1364
1365 2000-09-06  Andreas Jaeger  <aj@suse.de>
1366
1367         * sysdeps/alpha/soft-fp/Dist: New file.
1368         * sysdeps/i386/soft-fp/Dist: New file.
1369         * sysdeps/mips/mips64/soft-fp/Dist: New file.
1370         * sysdeps/mips/soft-fp/Dist: New file.
1371         * sysdeps/powerpc/soft-fp/Dist: New file.
1372         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
1373         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
1374
1375         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
1376         Use sysdep_routines instead of routines to fix make dist failure.
1377         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
1378         out code).
1379         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
1380
1381         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
1382         sysdep_headers instead of headers for make dist.
1383
1384         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
1385         Likewise.
1386
1387 2000-09-06  Andreas Schwab  <schwab@suse.de>
1388
1389         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
1390
1391 2000-09-06  Andreas Jaeger  <aj@suse.de>
1392
1393         * soft-fp/Makefile (distribute): Remove ChangeLog.
1394
1395         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
1396         sysdep_routines instead of routines for make dist.
1397
1398 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
1401         compatibility check for old stream and call _IO_wide in doubt.
1402         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
1403         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
1404         needed tst for such an old structure and don't do anything.
1405         * libio/freopen.c: Remove declaration of _IO_stdin_used.
1406
1407 2000-09-06  Andreas Jaeger  <aj@suse.de>
1408
1409         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
1410         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1411         and dl-routines.
1412
1413         * soft-fp/ChangeLog: Merged with this file.
1414
1415 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
1418
1419         * soft-fp/Makefile (distribute): Add the math functions, too.
1420
1421         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
1422
1423 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
1424
1425         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
1426         as a statement.
1427
1428         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
1429         * soft-fp/sysdeps/powerpc/q_*: New files.
1430
1431 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1432
1433         * stdio-common/vfprintf.c (process_string_arg): Handle precision
1434         in wide char case correctly.  Don't allocate too long temporary
1435         strings with alloca.
1436
1437         * stdio-common/Makefile (tests): Add tst-swprintf.
1438         (tst-swprintf-ENV): New variable.
1439         * stdio-common/tst-swprintf.c: New file.
1440
1441 2000-09-05  Andreas Jaeger  <aj@suse.de>
1442
1443         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
1444         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
1445         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1446
1447 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1448
1449         * configure.in: Strip out "unknown" from configuration names.
1450
1451 2000-09-05  Andreas Jaeger  <aj@suse.de>
1452
1453         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
1454
1455         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
1456         * sysdeps/sparc/sparc32/Implies: Likewise.
1457         * sysdeps/powerpc/Implies: Likewise.
1458
1459         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
1460         * libio/oldiofgetpos64.c: Likewise.
1461
1462         * soft-fp/Makefile (distribute): Remove configure.
1463
1464         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
1465
1466         * soft-fp/configure: Remove.
1467
1468         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1469         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1470
1471         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
1472         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
1473
1474         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
1475         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
1476
1477         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
1478         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
1479
1480         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1481         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1482
1483         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
1484         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
1485
1486         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
1487         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
1488
1489         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
1490         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
1491
1492         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
1493         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
1494
1495         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
1496         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
1497
1498         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
1499         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
1500
1501         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
1502         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
1503
1504         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
1505         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
1506
1507         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
1508         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
1509
1510         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
1511         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
1512
1513         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
1514         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
1515
1516         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
1517         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
1518
1519         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
1520         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
1521
1522         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
1523         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
1524
1525         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
1526         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
1527
1528         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
1529         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
1530
1531         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
1532         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
1533
1534         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
1535         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
1536
1537         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
1538         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
1539
1540         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
1541         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
1542
1543         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
1544         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
1545
1546         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
1547         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
1548
1549         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
1550         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
1551
1552         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
1553         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
1554
1555         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
1556         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
1557
1558         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
1559         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
1560
1561         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
1562         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
1563
1564         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
1565         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
1566
1567         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
1568         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
1569
1570         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
1571         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
1572
1573         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
1574         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
1575
1576         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
1577         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
1578
1579         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
1580         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
1581
1582         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
1583         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
1584
1585         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
1586         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
1587
1588         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
1589         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
1590
1591         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
1592         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
1593
1594         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
1595         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
1596
1597         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
1598         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
1599
1600         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
1601         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
1602
1603         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
1604         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
1605
1606         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
1607         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
1608
1609         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
1610         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
1611
1612         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
1613         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
1614
1615         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
1616         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
1617
1618         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
1619         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
1620
1621         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
1622         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
1623
1624         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
1625         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
1626
1627         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
1628         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
1629
1630         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
1631         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
1632
1633         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
1634         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
1635
1636         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
1637         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
1638
1639         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
1640         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
1641
1642         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
1643         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
1644
1645         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
1646         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
1647
1648         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
1649         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
1650
1651         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
1652         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
1653
1654         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
1655         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
1656
1657         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
1658         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
1659
1660         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
1661         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
1662
1663         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
1664         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
1665
1666         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
1667         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
1668
1669         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
1670         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
1671
1672         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
1673         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
1674
1675         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
1676         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
1677
1678         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
1679         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1680
1681         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1682         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1683
1684         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1685         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1686
1687         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1688         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1689
1690         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1691         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1692
1693         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1694         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1695
1696         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1697         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1698
1699         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1700         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1701
1702         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1703         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1704
1705         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1706         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1707
1708         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1709         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1710
1711         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1712         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1713
1714         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1715         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1716
1717         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1718         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1719
1720         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1721         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1722
1723         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1724         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1725
1726         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1727         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1728
1729         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1730         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1731
1732         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1733         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1734
1735         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1736         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1737
1738         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1739         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1740
1741         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1742         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1743
1744         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1745         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1746
1747         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1748         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1749
1750         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1751         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1752
1753         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1754         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1755
1756         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1757         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1758
1759         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1760         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1761
1762         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1763         change symbol version.
1764         * libio/oldiofgetpos64.c: Likewise.
1765         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1766
1767         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1768         typo.
1769         Reported by dyky@kondara.org, closes PR libc/1886.
1770
1771         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1772         libc/1880.
1773
1774 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1775
1776         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1777         script when ^C is hit.
1778
1779         * locale/programs/localedef.c (construct_output_path): Correct
1780         computation of endp after asprintf.
1781         * locale/programs/locfile.c (write_locale_data): Don't add extra
1782         slash in filename.
1783
1784 2000-09-05  Andreas Jaeger  <aj@suse.de>
1785
1786         * scripts/config.guess: New upstream version.
1787         * scripts/config.sub: Likewise.
1788         * manual/texinfo.tex: Likewise.
1789
1790 2000-09-04  Andreas Schwab  <schwab@suse.de>
1791
1792         * elf/Makefile (all-dl-routines): New variable.
1793         (elide-routines.os): Use it instead of $(dl-routines).
1794         (all-rtld-routines): New variable.
1795         (extra-objs): Use it instead of $(rtld-routines).
1796         ($(objpfx)dl-allobjs.os): Likewise.
1797         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1798         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1799         and dl-routines.
1800
1801 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1802
1803         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1804         Set fname to NULL if the module wasn't found.
1805
1806 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1807
1808         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1809         true if trans->name already ends in ".so".
1810
1811 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1812
1813         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1814         void.
1815         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1816         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1817         (__gconv_release_shlib): Change return type to void.
1818         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1819         step->__counter here.
1820         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1821         if the reference is zero.
1822         (release_step): New function.
1823         (gen_steps): Always initialize the __counter to 1. Use release_step.
1824         Don't call the destructor on the step whose initializer failed.
1825         (increment_counter): Use release_step. Don't normally run destructors
1826         here.
1827         (__gconv_close_transform): Use release_step.
1828
1829 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1830
1831         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1832         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1833
1834 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1835
1836         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1837         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1838         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1839         to check for incomplete input.
1840         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1841         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1842         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1843         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1844         0x9f9d..0x9fa5.
1845         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1846         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1847         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1848         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1849         upto index 0x0052.
1850
1851 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1852
1853         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1854         solution.
1855
1856 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1857
1858         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1859         are invalid.
1860
1861 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1862
1863         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1864         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1865         U+007E.
1866
1867 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1868
1869         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1870
1871 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1872
1873         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1874
1875 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1876
1877         * iconvdata/tst-tables.sh: New file.
1878         * iconvdata/tst-table.sh: New file.
1879         * iconvdata/tst-table-from.c: New file.
1880         * iconvdata/tst-table-to.c: New file.
1881         * iconvdata/tst-table-charmap.sh: New file.
1882         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1883         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1884         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1885         ISIRI-3342.irreversible, SJIS.irreversible.
1886         (tests): Add dependency on tst-tables.out.
1887         (tst-tables.out, tst-tables-clean): New rules.
1888         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1889         * iconvdata/ISIRI-3342.irreversible: New file.
1890         * iconvdata/EUC-JP.irreversible: New file.
1891         * iconvdata/SJIS.irreversible: New file.
1892
1893 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * manual/locale.texi (General Numeric): Update description of
1896         representation of the grouping information in the locale data.
1897         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1898
1899 2000-09-04  Andreas Jaeger  <aj@suse.de>
1900
1901         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1902         * iconv/iconv_prog.c (options): Fix typo.
1903         Reported by dyky@kondara.org, closes PR libc/1885.
1904
1905 2000-09-04  Andreas Jaeger  <aj@suse.de>
1906
1907         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1908         Reported by Rob Levin <lilo@transvirtual.com>.
1909
1910 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1911
1912         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1913         to the typedefs of __timezone_ptr_t.
1914         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1915
1916 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1917
1918         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1919         the loop.
1920
1921 2000-09-01  H.J. Lu  <hjl@gnu.org>
1922
1923         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1924         to run a binary if it is in $(tests-static).
1925
1926         * Rules (binaries-static): Add $(tests-static).
1927
1928 2000-09-02  Andreas Jaeger  <aj@suse.de>
1929
1930         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1931
1932         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1933         patch.
1934
1935 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1936
1937         * iconvdata/big5hkscs.c: Regenerated from charmap.
1938         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1939         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1940
1941         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1942         statement.  General cleanup.
1943
1944 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1945
1946         * wctype/wcfuncs.c (iswblank): New function.
1947         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1948         * wctype/wcextra.c: Remove file.
1949         * wctype/wcextra_l.c: Remove file.
1950         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1951
1952 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1953
1954         * locale/programs/ld-collate.c (collate_output): Remove redundant
1955         assert call.
1956         * string/strcoll.c: Likewise.
1957         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1958         string/strcoll.c.
1959
1960 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1961
1962         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1963         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1964         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1965         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1966         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1967         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1968         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1969         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1970         _NL_CTYPE_GAP5/6 respectively.
1971
1972         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1973         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1974         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1975         Don't initialize __ctype_names and __ctype_width.
1976         * wctype/cname-lookup.h: Remove file.
1977         * wctype/Makefile (distribute): Remove cname-lookup.h.
1978         * wctype/wchar-lookup.h: Include stdint.h.
1979         * wctype/wctype.c (__wctype): Assume new locale format.
1980         * wctype/wctype_l.c (__wctype_l): Likewise.
1981         * wctype/iswctype.c: Don't include cname-lookup.h.
1982         (__iswctype): Assume new locale format.
1983         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1984         (__iswctype_l): Assume new locale format.
1985         * wctype/wctrans.c: Don't include ctype.h.
1986         (wctrans): Assume new locale format.
1987         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1988         * wctype/towctrans.c: Don't include cname-lookup.h.
1989         (__towctrans): Assume new locale format.
1990         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1991         (__towctrans_l): Assume new locale format.
1992         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1993         localeinfo.h instead.
1994         (__NO_WCTYPE): Remove unused macro.
1995         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1996         declarations.
1997         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1998         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1999         (towlower, towupper): Likewise.
2000         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
2001         localeinfo.h instead.
2002         (__NO_WCTYPE): Remove unused macro.
2003         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2004         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2005         __iswxdigit_l): Assume new locale format.
2006         (__towlower_l, __towupper_l): Likewise.
2007         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
2008         (__ctype32_b): Remove declaration.
2009         (internal_wcwidth): Assume new locale format.
2010         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
2011         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
2012         to map32_b, rename width_3level to width.
2013         (ctype_output): Always create new locale format. Don't emit
2014         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
2015         (allocate_arrays): Always create new locale format.
2016
2017         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
2018         * locale/weightwc.h (findidx): Assume new locale format.
2019         * string/strcoll.c (wcscoll): Remove local variables size, layers,
2020         names.
2021         * string/strxfrm.c (wcsxfrm): Likewise.
2022         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
2023         local variable collseq to 'const char *'.
2024         (SUFFIX): Don't use, don't undefine.
2025         * posix/fnmatch.c: Remove SUFFIX definition.
2026         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
2027         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
2028         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
2029         (collate_finish): Always create new locale format. Remove local
2030         variables min_total, act_size.
2031         (collate_output): Always create new locale format. Remove local
2032         variables table_size, names, tablewc. Rename tablewc_3level to
2033         tablewc.
2034
2035 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2036
2037         * locale/programs/ld-collate.c (obstack_int32_grow,
2038         obstack_int32_grow_fast): New inline functions.
2039         (output_weightwc, collate_output): Use them where possible.
2040
2041 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
2042
2043         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
2044         patch (_mode -> _flags).
2045
2046         * libio/Makefile (headers): Add stdio_ext.h.
2047         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
2048         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
2049         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
2050         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
2051         __fsetlocking, and _flushlbf.
2052         * libio/__fbufsize.c: New file.
2053         * libio/__flbf.c: New file.
2054         * libio/__fpending.c: New file.
2055         * libio/__fpurge.c: New file.
2056         * libio/__freadable.c: New file.
2057         * libio/__freading.c: New file.
2058         * libio/__fsetlocking.c: New file.
2059         * libio/__fwritable.c: New file.
2060         * libio/__fwriting.c: New file.
2061         * libio/stdio_ext.h: New file.
2062         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
2063         * libio/libio.h (_IO_USER_LOCK): Define.
2064         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
2065         test _IO_USER_LOCK flag first.
2066
2067         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
2068         malloc fails.
2069
2070 2000-09-01  Andreas Jaeger  <aj@suse.de>
2071
2072         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
2073
2074         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
2075
2076 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2077
2078         * math/Makefile (tests): Add tst-defintions.
2079         * math/tst-definitions.c: New file.
2080
2081         * stdlib/Makefile (headers): Add bits/wchar.h.
2082         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
2083         * sysdeps/generic/bits/wchar.h: New file.
2084         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
2085         file to define WCHAR_MIN and WCHAR_MAX.
2086         Change UINT*8_MAX and UIN*16_MAX value to type int.
2087         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
2088         file to define WCHAR_MIN and WCHAR_MAX.
2089         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
2090         int values.
2091         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
2092         * sysdeps/generic/bits/mathdef.h: Likewise.
2093         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
2094         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
2095         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2096         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
2097         * locale/locale.h (struct lconv): Add __ prefix to the new members
2098         if not C99.
2099         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
2100         imaxdiv optimizations.
2101         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
2102         * sysdeps/wordsize-64/ldiv.c: Likewise.
2103         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
2104         const fenv_t*.
2105         * sysdeps/generic/bits/fenv.h: Likewise.
2106         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
2107         * sysdeps/ia64/bits/fenv.h: Likewise.
2108         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
2109         * sysdeps/mips/bits/fenv.h: Likewise.
2110         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
2111         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
2112         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2113
2114         * inet/rcmd.c: Use *stat64 instead of *stat internally.
2115         * inet/ruserpass.c: Likewise.
2116         * catgets/open_catalog.c: Likewise.
2117         * intl/loadmsgcat.c: Likewise.
2118         * io/getdirname.c: Likewise.
2119         * locale/loadlocale.c: Likewise.
2120         * misc/getusershell.c: Likewise.
2121         * stdlib/canonicalize.c: Likewise.
2122         * sysdeps/posix/euidaccess.c: Likewise.
2123         * sysdeps/posix/isfdtype.c: Likewise.
2124         * sysdeps/posix/posix_fallocate.c: Likewise.
2125         * sysdeps/posix/tempname.c: Likewise.
2126         * sysdeps/unix/grantpt.c: Likewise.
2127         * sysdeps/unix/opendir.c: Likewise.
2128         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
2129         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2130         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2131         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2132         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2133         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2134         * sysvipc/ftok.c: Likewise.
2135         * time/getdate.c: Likewise.
2136
2137         * time/getdate.c: Add extra access test.
2138
2139 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2140
2141         * version.h (VERSION): Bump to 2.1.93.
2142
2143         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
2144         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
2145
2146         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
2147         Make this a new rule depending on tst-gettext.out and run mtrace.
2148         * intl/tst-gettext.c: Call mtrace.
2149         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
2150
2151         * elf/dl-reloc.c: Add a few more __builtin_expect.
2152
2153         * configure.in: Remove --with-gettext option.
2154
2155         * intl/dcigettext.c (free_mem): Correct freeing of
2156         _nl_domain_bindings list.
2157
2158         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
2159         allocated memory.
2160
2161         * intl/locale.alias: Add aliases for bokmal and nynorsk.
2162
2163         * locale/iso-639.def: Fix 639-1 code for Bokmal.
2164
2165         * stdio-common/itoa-digits.c: Move upper digits to...
2166         * stdio-common/itoa-udigits.c: ...here.  New file.
2167         * stdio-common/Makefile (routines): Add itoa-udigits.
2168
2169         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
2170         relocate ld.so don't add supprt for relocations which should not
2171         appear in ld.so.
2172
2173         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
2174         __secure_getenv.  Instead test __libc_enable_secure once.
2175
2176         * io/pwd.c (main): Provide a good example, use *_unlocked function.
2177
2178 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2179
2180         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
2181         whether the new record should be freed if it's a duplicate.
2182         (add_module): Adjust insert_module call.
2183         (__gconv_read_conf): Likewise.
2184         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
2185         mtrace-tst-loading.
2186         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
2187
2188         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
2189         _dl_all_init_dirs.
2190         * include/link.h (struct r_search_path_struct): New.
2191         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
2192         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
2193         _dl_all_init_dirs.
2194         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
2195         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
2196         added at startup time.
2197         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
2198         contains element to remember fact that we can free memory.
2199         (all_dirs): Renamed to _dl_all_dirs.  Made global.
2200         (_dl_init_all_dirs): New variable.
2201         (fillin_rpath): Save one malloc call.
2202         (decompose_rpath): Change interface.  New first parameter points to
2203         r_search_path_struct.
2204         (_dl_init_paths): Adjust for changes.  Mark all memory as not
2205         deletable.  Set _dl_init_all_paths value.
2206         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
2207         parameter replaced with r_search_path_struct *.  Information about
2208         freeing now contained in r_search_path_struct.
2209         (_dl_map_object): Adjust for above changes.
2210
2211         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
2212
2213         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
2214         when adding new entries.
2215
2216         * elf/dl-load.c (fillin_rpath): Make local copy of where string
2217         since the object being loaded can be unloaded.
2218
2219         * iconvdata/Makefile (tests): Add tst-loading.
2220         * iconvdata/tst-loading.c: New file.
2221
2222 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
2223
2224         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
2225         When comparing a char with an int, always cast the char to
2226         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
2227         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
2228
2229 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * time/strftime.c (my_strftime): Add compatibility code for use
2232         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
2233
2234         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
2235         return 0 for success but always < 0 on failure.
2236
2237         * nss/getXXbyYY_r.c: Define result to *result before including
2238         digits_dots.c.
2239
2240 2000-08-30  Andreas Jaeger  <aj@suse.de>
2241
2242         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
2243
2244 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2245
2246         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
2247         official file.
2248         * iconvdata/TESTS: Add BIG5HKSCS entry.
2249         * iconvdata/testdata/BIG5HKSCS: New file.
2250         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
2251
2252         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
2253         always true.
2254
2255         * libio/iogetline.c: Set mode before the loop in case n==0.
2256         * libio/iogetwline.c: Likewise.
2257
2258 2000-08-29  H.J. Lu  <hjl@gnu.org>
2259
2260         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
2261         of fp->_mode < 0.
2262         (_IO_new_file_overflow): Likewise.
2263         * libio/genops.c (_IO_flush_all): Likewise.
2264         * libio/ioftell.c (_IO_ftell): Likewise.
2265
2266 2000-08-29  Akira Higuchi  <a@kondara.org>
2267
2268         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
2269         and __end_fct fields of struct __gconv_step.
2270         * iconv/Makefile (tests): Add iconv-bug2.
2271         * iconv/iconv-bug2.c: New file.
2272
2273         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
2274         instead of 'inptr - inend' to ksc5601_to_ucs4.
2275
2276         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
2277
2278         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
2279         character or shift sequence is found at the end of the input
2280         string, return__GCONV_INCOMPLETE_INPUT instead of
2281         __GCONV_EMPTY_INPUT.
2282         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2283         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2284
2285         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
2286         __GCONV_ILLEGAL_INPUT for 8bit characters.
2287
2288 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * signal/signal.h (sigpause): Move __THROW before __asm__.
2291
2292         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
2293         names don't match don't return.
2294         Patch by Olaf Kirch <okir@flash.lst.de>.
2295
2296 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2297
2298         * time/strftime.c (my_strftime): Handle # flag for %b as well.
2299
2300 2000-08-27  H.J. Lu  <hjl@gnu.org>
2301
2302         * posix/Makefile (otherlibs): Add for building with static-nss
2303         for "make check".
2304
2305 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * libio/stdio.h: Add fmemopen prototype.
2308
2309 2000-08-25  Andreas Jaeger  <aj@suse.de>
2310
2311         * libio/Makefile (routines): Add fmemopen.
2312         (tests): Add test-fmemopen.
2313         * libio/Versions: Add fmemopen with version GLIBC_2.2.
2314         * libio/test-fmemopen.c: New file.
2315         * libio/fmemopen.c: New file.
2316         Patches by Hanno Mueller <kontakt@hanno.de>.
2317
2318 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2319
2320         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
2321         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2322
2323         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
2324         to avoid crashing statically linked applications.
2325
2326 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2327
2328         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
2329         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
2330
2331         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
2332         If the result is fits in the buffer, copy only as many bytes as needed.
2333
2334         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
2335         buffer after copying numbuf into it.
2336         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
2337
2338 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2339
2340         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
2341         the result.  When string_len < len, don't clear the rest of the buffer.
2342
2343 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2344
2345         Support for new LC_COLLATE format.
2346         * locale/coll-lookup.h: New file.
2347         * locale/weightwc.h (findidx): When size == 0, call
2348         collidx_table_lookup.
2349         * wcsmbs/wcscoll.c: Include coll-lookup.h.
2350         * wcsmbs/wcsxfrm.c: Likewise.
2351         * posix/fnmatch.c: Likewise.
2352         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
2353         collseq_table_lookup.
2354         * locale/programs/3level.h: New file.
2355         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
2356         by including "3level.h".
2357         * locale/programs/ld-collate.c (wchead_table, collidx_table,
2358         collseq_table): New types, defined by including "3level.h".
2359         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
2360         (encoding_mask, encoding_byte): Remove.
2361         (utf8_encode): Use simple shifts instead.
2362         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
2363         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
2364         (collate_output): New local variable tablewc_3level. When
2365         !oldstyle_tables, set table_size to 0 and names to NULL and fill
2366         tablewc_3level instead of tablewc. Change format of TABLEWC and
2367         COLLSEQWC entries written to the file.
2368         * locale/C-collate.c (collseqwc): Change format.
2369         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
2370         of COLLSEQWC.
2371         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
2372
2373 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2374
2375         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
2376         (locale_ctype_t): New charnames_idx field.
2377         (ctype_startup): Initialize charnames_idx field.
2378         (find_idx): Speed up dramatically by using charnames_idx inverse table.
2379
2380 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2381
2382         * locale/C-ctype.c: Switch to new locale format.
2383         (_nl_C_LC_CTYPE_names): Remove array.
2384         (STRUCT_CTYPE_CLASS): New macro.
2385         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2386         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2387         New three-level tables.
2388         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
2389         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
2390         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
2391         12 class tables and 2 map tables at the end.
2392         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
2393         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2394         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2395         New declarations.
2396         (b): Remove trailing semicolon.
2397         (__ctype_names, __ctype_width): Don't initialize.
2398         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
2399
2400 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2401
2402         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
2403         is guaranteed to be allocated with the same malloc() and may be
2404         passed to free().
2405         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
2406         been set to empty by an earlier open_path call, don't pass it again.
2407
2408 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2409
2410         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
2411         we are not optimizing.
2412
2413         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
2414         inclusion.
2415
2416         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
2417         really match EOF.
2418         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2419
2420 2000-08-28  Andreas Jaeger  <aj@suse.de>
2421
2422         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
2423
2424 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
2425
2426         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
2427         getpeername.  Use ISO C style function definition.
2428         (getpeername): Provide weak alias.
2429         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
2430         setrlimit.  Use ISO C style function definition.
2431         (setrlimit): Provide weak alias.
2432
2433 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2434
2435         * shlib-versions: Add a rule for S/390 to the libm version list.
2436         * sysdeps/s390/Versions: New file.
2437         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
2438         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
2439         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2440         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
2441         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
2442         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
2443         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
2444         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
2445         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
2446         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
2447         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
2448         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
2449         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
2450         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
2451         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
2452         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
2453         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
2454         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
2455
2456 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2457
2458         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
2459         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
2460
2461         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
2462         * elf/dl-close.c (_dl_close): Print debug message if object is not
2463         unloaded.
2464         * elf/dl-open.c (dl_open_worked): Print message about opencount before
2465         returning to caller.
2466
2467         * po/zh.po: Renamed to...
2468         * po/zh_TW.po: ...this.
2469
2470 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
2471
2472         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
2473
2474         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
2475         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
2476         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
2477         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2478
2479 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
2480
2481         * locale/programs/ld-collate.c (insert_weights): Also update
2482         backpointer of next element.
2483         (collate_read): Allow definition of new collation symbols in stage 2.
2484         Symbol after reorder-after can be UCS4 value.
2485         Allow reordering of collation symbols and elements.
2486         Do not only move reorder entry in new position.  Instead call
2487         insert_weight to do this and read the weights.
2488
2489         * locale/findlocale.c (free_mem): Add cast to avoid warning.
2490
2491         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
2492         to determine invalid locale name.
2493         * locale/findlocale.c (_nl_find_locale): Likewise.
2494
2495         * posix/annexc.c: Correct test for unavailable feature.
2496
2497         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
2498         __inline.
2499
2500 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
2501
2502         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
2503         syscall.
2504
2505         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
2506         (sysdep_routines): Add oldgetrlimit64.
2507
2508         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
2509         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
2510         (tests): Add unload, reldep, reldep2, and reldep3.
2511         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
2512         and reldepmod4.
2513         Add rules to build and run unload, reldep, reldep2, and reldep3.
2514         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
2515         Don't create relocation dependency if it is nonzero.
2516         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
2517         can never happen here.
2518         (_dl_lookup_versioned_symbol): Add new parameter explicit.
2519         Don't create relocation dependency if it is nonzero.
2520         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
2521         stuff.  This can never happen here.
2522         * sysdeps/generic/ldsodefs.h: Change prototypes.
2523         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
2524         _dl_lookup_up and _dl_lookup_versioned_symbol.
2525         (RESOLV): Likewise.
2526         * elf/dl-runtime.c (fixup): Likewise.
2527         (profile_fixup): Likewise.
2528         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
2529         _dl_lookup_symbol.
2530         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
2531         * elf/rtld.c (dl_main): Likewise.
2532         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
2533         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
2534         and pass down the caller map.
2535         (_dl_vsym): Likewise.
2536         * elf/reldep.c: New file.
2537         * elf/reldep2.c: New file.
2538         * elf/reldep3.c: New file.
2539         * elf/reldepmod1.c: New file.
2540         * elf/reldepmod2.c: New file.
2541         * elf/reldepmod3.c: New file.
2542         * elf/reldepmod4.c: New file.
2543         * elf/unload.c: New file.
2544         * elf/unloadmod.c: New file.
2545
2546         * elf/do-lookup.h: Remove unused undef_name parameter.
2547         * elf/dl-lookup.c: Adjust callers.
2548
2549 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2550
2551         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
2552         irreversible in recursive call of conversion function to signal that
2553         no error handling is wanted.
2554         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
2555         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
2556         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
2557         recursive error handling call, otherwise to &lirreversible.  Use it
2558         for calls to conversion functions.
2559         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
2560         transliterating.
2561         (ucs4_internal_loop_unaligned): Likewise.
2562         (ucs4le_internal_loop): Likewise.
2563         (ucs4le_internal_loop_unaligned): Likewise.
2564
2565 2000-08-25  Greg McGary  <greg@mcgary.org>
2566
2567         * sysdeps/i386/memchr.S: Check high bound against chars
2568         actually scanned.
2569         * sysdeps/i386/memcmp.S: Likewise.
2570         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
2571         account for pointers that lie one beyond end-of-buffer.
2572
2573 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2574
2575         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
2576         * elf/nodelete.c (fini_ran): New global variable.
2577         (do_test): Before every dlclose call clear fini_ran and test
2578         afterwards that it is not set by the destructors.
2579         * elf/nodelmod1.c: Add destructor which sets fini_ran.
2580         * elf/nodelmod2.c: Likewise.
2581         * elf/nodelmod4.c: Likewise.
2582
2583 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
2584
2585         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
2586         getrlimit to the list.
2587
2588 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
2589
2590         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
2591         long double format so use ldbl-96 instead of ldbl-128.
2592
2593 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2594
2595         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
2596         even if bits 10 a 11 are non-zero.
2597         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
2598
2599         * Makeconfig: Ensures the soversions.mk part of Makefile gets
2600         included before building gnu/lib-names.h
2601         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2602
2603         * elf/dl-close.c (_dl_close): Don't run destructors of objects
2604         marked DF_1_NODELETE.
2605
2606         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
2607         since we call sigaction in the child.
2608
2609 2000-08-25  Andreas Jaeger  <aj@suse.de>
2610
2611         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
2612         gconv-modules.
2613
2614 2000-08-25  Andreas Jaeger  <aj@suse.de>
2615
2616         * manual/arith.texi (Control Functions): Clarify possible
2617         arguments.  Closes PR libc/1856.
2618
2619 2000-08-24  H.J. Lu  <hjl@gnu.org>
2620
2621         * stdio-common/Makefile (tests): Don't do it for cross compiling.
2622         * malloc/Makefile (tests): Likewise.
2623
2624 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2625
2626         * iconvdata/unicode.c (gconv_init): Correct test for direction.
2627
2628 2000-08-24  Andreas Jaeger  <aj@suse.de>
2629
2630         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
2631         only if LIBGD is available.
2632
2633 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2634
2635         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
2636         problems with now restrict parameter types.
2637         (convaddr4to6): Likewise.
2638
2639 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
2640
2641         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
2642         * sysdeps/s390/fpu/feenablxcpt.c: New file.
2643         * sysdeps/s390/fpu/fegetexcept.c: New file.
2644         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
2645         FPC_VALID_MASK.
2646
2647 2000-08-24  Andreas Jaeger  <aj@suse.de>
2648
2649         * malloc/Makefile (extra-objs): Add memusagestat.o.
2650         (generated): Added memusage and memusagestat for make clean.
2651
2652         * libio/tst_putwc.c (do_test): Delete temporary file.
2653         Move inclusion of test-skeleton to front to have prototype for
2654         add_temp_file.
2655
2656         * posix/Makefile (generated): Add wordexp-tst.out.
2657
2658 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2659
2660         * resolv/res_hconf.c (free_mem): Remove not needed if.
2661
2662         * time/tzset.c (free_mem): New function.
2663         * string/strsignal.c (free_mem): New function.
2664         * inet/inet_ntoa.c (free_mem): New function.
2665         * sunrpc/clnt_perr.c (free_mem): New function.
2666
2667 2000-08-24  Andreas Jaeger  <aj@suse.de>
2668
2669         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
2670         * sysdeps/unix/sysv/syscalls.list: Likewise.
2671
2672         * posix/unistd.h: Move internal prototypes from here ...
2673         * include/unistd.h: ... to here.
2674
2675         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
2676
2677 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2678
2679         * grp/initgroups.c (initgroups): Deallocate groups array.
2680         Reported by jani.raiha@sonera.com [PR libc/1868].
2681
2682         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2683         * sysdeps/alpha/Dist: Likewise.
2684
2685 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2686
2687         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2688         destructor).  Reported by Solar Designer <solar@false.com>.
2689
2690         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2691         avoid adding double slashes.
2692
2693 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2694
2695         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2696         out of the __REDIRECT macro.
2697
2698 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * stdio-common/vfscanf.c: Add %F format support.
2701
2702         * locale/programs/ld-ctype.c (ctype_output): Make sure
2703         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2704         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2705         (ctype_read): Enable returning of wide character strings for reading
2706         transliteration information.
2707
2708 2000-08-23  Andreas Jaeger  <aj@suse.de>
2709
2710         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2711         Use static __inline instead of _EXTERN_INLINE.
2712
2713         * misc/sys/select.h: Move prototypes of __select from here ...
2714         * include/sys/select.h: ... to here.
2715
2716         * socket/sys/socket.h: Move prototypes of __send and __connect
2717         from here....
2718         * include/sys/socket.h: ... to here.
2719
2720         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2721         lr_error.
2722
2723 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2724
2725         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2726         __setrlimit as strong name. Takes only 2 arguments.
2727
2728         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2729         takes only 2 arguments.
2730
2731 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2732
2733         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2734
2735         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2736
2737 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2738
2739         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2740         default_missing character being specified, pick the first
2741         representable.
2742
2743 2000-08-23  Andreas Jaeger  <aj@suse.de>
2744
2745         * include/wchar.h: Add some pure attributes.
2746
2747         * time/time.h: Add const attribute for dysize.
2748
2749         * include/stdlib.h: Add malloc attribute to __posix memalign.
2750
2751         * stdlib/stdlib.h: Add some pure and malloc attributes.
2752         * wcsmbs/wchar.h: Likewise.
2753
2754         * dirent/dirent.h: Add some pure attributes.
2755         * include/dirent.h: Likewise.
2756
2757 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2758
2759         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2760         on 64bit arches.
2761
2762 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2763
2764         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2765         missing buffer size checks.
2766
2767 2000-08-23  Andreas Jaeger  <aj@suse.de>
2768
2769         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2770         strong name.
2771         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2772
2773         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2774         otherwise __LINUX_KERNEL_VERSION might not be defined.
2775         (MIN): Define if not already defined.
2776
2777 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2778
2779         * stdio-common/vfprintf.c: Handle %F format.
2780         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2781         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2782
2783         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2784
2785         * po/zh.po: New file.
2786
2787         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2788         enough room in target buffer.
2789         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2790         * iconvdata/bug-iconv1.c: New file.
2791         * iconvdata/Makefile (tests): Add bug-iconv1.
2792
2793         * locale/iso-4217.def: Update entry for Nicaragua.
2794
2795 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2796
2797         * hurd/hurdsig.c: Rearrange headers a bit.
2798         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2799         when cthreads is being used.
2800
2801 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2802
2803         * elf/Makefile (distribute): Add dl-osinfo.h.
2804         * sysdeps/generic/dl-osinfo.h: New file.
2805         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2806         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2807         if defined.
2808         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2809         only for !SHARED case.  Get the code from dl-osinfo.h.
2810
2811         * stdlib/random_r.c: Cleanups.
2812         * stdlib/tst-random.c: New file.
2813         * stdlib/Makefile (tests): Add tst-random.
2814         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2815
2816 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2817
2818         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2819         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2820         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2821         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2822
2823 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2824
2825         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2826         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2827         (__syscall__sysctl): Add.
2828
2829 2000-08-21  Andreas Jaeger  <aj@suse.de>
2830
2831         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2832         libc/1864).
2833         * stdlib/tst-strtoll.c: Likewise.
2834
2835 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2838         correctly.
2839         (__initstate_r): Set errno on error.
2840         (__random_r): Likewise.
2841         (__setstate_r): Correct offset when computing
2842         new rptr and fptr.  Test for arg_state being NULL.
2843         Reported by Michael Fischer <fischer@cs.yale.edu>.
2844
2845         * posix/regex.h: Add macro definitions to allow compiling outside
2846         glibc.
2847
2848         * sysdeps/i370/Implies: Removed.
2849         * sysdeps/mvs/Implies: Removed.
2850
2851         * catgets/catgets.c (catopen): Filter out env_var values with / if
2852         necessary.
2853
2854         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2855         locale name after all getenvs.
2856
2857         * configure.in: Allow sed versions like 3.02.8.
2858         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2859
2860 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2861
2862         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2863
2864 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2865
2866         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2867         of gethostbyname2_r call.
2868
2869         * intl/locale.alias: Add aliases for Korean.
2870
2871 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2872
2873         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2874         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2875         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2876         * sysdeps/s390/fpu/fegetenv.c: New file.
2877         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2878         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2879         * sysdeps/s390/fpu/fenv_libc.h: New file.
2880         * sysdeps/s390/fpu/fesetenv.c: New file.
2881         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2882         * sysdeps/s390/fpu/feupdateenv.c: New file.
2883         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2884         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2885         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2886         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2887         * sysdeps/s390/fpu/ftestexcept.c: New file.
2888         * sysdeps/s390/fpu/libm-test-ulps: New file.
2889         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2890         * sysdeps/s390/initfini.c: New file.
2891         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2892         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2893         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2894         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2895         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2896         sys/procfs.h as proposed by Mark Kettenis.
2897         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2898
2899 2000-08-21  Andreas Jaeger  <aj@suse.de>
2900
2901         * include/poll.h: Include include/sys/poll.h to get __poll
2902         declaration.
2903
2904         * io/sys/poll.h: Move __poll declaration from here...
2905         * include/sys/poll.h: ...to here.
2906
2907         * include/sys/socket.h (__getpeername): Add declaration.
2908
2909         * include/wchar.h (__vswprintf): Add declaration.
2910
2911         * include/stdio.h (__flockfile): Add declaration.
2912         (__funlockfile): Likewise.
2913
2914 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2915
2916         * misc/sys/cdefs.h: Define __restrict_arr.
2917         * include/sys/time.h: Add restrict where required by AGd4.
2918         * inet/arpa/inet.h: Likewise.
2919         * io/sys/stat.h: Likewise.
2920         * io/sys/statvfs.h: Likewise.
2921         * misc/search.h: Likewise.
2922         * misc/sys/select.h: Likewise.
2923         * posix/glob.h: Likewise.
2924         * posix/regex.h: Likewise.
2925         * posix/spawn.h: Likewise.
2926         * posix/unistd.h: Likewise.
2927         * rt/aio.h: Likewise.
2928         * signal/signal.h: Likewise.
2929         * socket/sys/socket.h: Likewise.
2930         * stdlib/ucontext.h: Likewise.
2931         * streams/stropts.h: Likewise.
2932         * string/string.h: Likewise.
2933         * time/time.h: Likewise.
2934         * time/sys/time.h: Likewise.
2935
2936         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2937         and posix_spawnattr_setscheparam.
2938
2939         * libio/stdio.h: Make cuserid prototype again available for all
2940         XPG versions.
2941
2942         * argp/argp-help.c: Unify use of function aliases to make more compact
2943         PLT.
2944         * include/libintl.h: Likewise.
2945         * inet/rcmd.c: Likewise.
2946         * intl/dcigettext.c: Likewise.
2947         * libio/iofputws.c: Likewise.
2948         * libio/iofputws_u.c: Likewise.
2949         * libio/iogetwline.c: Likewise.
2950         * libio/swprintf.c: Likewise.
2951         * malloc/malloc.c: Likewise.
2952         * nss/digits_dots.c: Likewise.
2953         * posix/fnmatch.c: Likewise.
2954         * posix/spawn_faction_addclose.c: Likewise.
2955         * posix/spawn_faction_adddup2.c: Likewise.
2956         * posix/spawn_faction_addopen.c: Likewise.
2957         * posix/spawni.c: Likewise.
2958         * posix/wordexp.c: Likewise.
2959         * posix/spawni.c: Likewise.
2960         * resolv/res_hconf.c: Likewise.
2961         * resolv/res_init.c: Likewise.
2962         * shadow/lckpwdf.c: Likewise.
2963         * signal/sighold.c: Likewise.
2964         * signal/sigrelse.c: Likewise.
2965         * stdio-common/printf-parse.h: Likewise.
2966         * stdio-common/printf-prs.c: Likewise.
2967         * stdio-common/printf_fp.c: Likewise.
2968         * stdio-common/vfprintf.c: Likewise.
2969         * stdio-common/vfscanf.c: Likewise.
2970         * stdlib/rpmatch.c: Likewise.
2971         * sunrpc/create_xid.c: Likewise.
2972         * sunrpc/key_call.c: Likewise.
2973         * sysdeps/generic/setrlimit64.c: Likewise.
2974         * sysdeps/generic/utmp_file.c: Likewise.
2975         * sysdeps/generic/vlimit.c: Likewise.
2976         * sysdeps/posix/posix_fallocate.c: Likewise.
2977         * sysdeps/posix/posix_fallocate64.c: Likewise.
2978         * sysdeps/posix/sigpause.c: Likewise.
2979         * sysdeps/posix/sigset.c: Likewise.
2980         * sysdeps/unix/grantpt.c: Likewise.
2981         * sysdeps/unix/bsd/ualarm.c: Likewise.
2982         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2983         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2984         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2985         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2986         * time/strftime.c: Likewise.
2987         * wcsmbs/wcscoll.c: Likewise.
2988         * wcsmbs/wcsxfrm.c: Likewise.
2989
2990         * time/tst-getdate.c (main): Make error messages more human readable.
2991
2992         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2993         postinc/predec instruction.
2994         (_FPU_SETCW): Likewise.
2995         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2996
2997 2000-08-20  Andreas Jaeger  <aj@suse.de>
2998
2999         * time/tst-getdate.c (main): Increase error in case of wrong
3000         conversion.
3001         Fix typo in test case.
3002
3003 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
3004
3005         * ctype/ctype.h (isblank): Make available if ISO C99.
3006         * wctype/wctype.h (iswblank): Make available if ISO C99.
3007         * math/math.h (signgam): Don't make available if ISO C99.
3008         * math/tgmath.h (tgamma): Renamed from gamma.
3009         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
3010
3011         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
3012         Pretty printing.
3013         * intl/plural.y (new_exp): Take number of optional parameters in
3014         second parameter.  Test for correct number of parameters and free
3015         correctly in case of failure.  Adjust all callers.
3016         (yylex): Allow ';' as terminator character.
3017
3018 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3019
3020         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
3021         walt_digits.
3022
3023         * locale/findlocale.c (free_mem): Also free here->filename.
3024
3025         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
3026
3027         * math/test-fenv.c (feenv_tests): Clear all exceptions before
3028         first test.
3029         (feexcp_nomask_test): Correct printf args.
3030         (feexcp_mask_test): Likewise.
3031
3032 2000-08-19  Andreas Jaeger  <aj@suse.de>
3033
3034         * inet/tst-gethnm.c: Include string.h to provide prototype for
3035         strcmp.
3036
3037         * malloc/mtrace.pl (usage): Inform about --help.
3038
3039 2000-08-19  Wolfram Gloger  <wg@malloc.de>
3040
3041         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
3042         size HEAP_MAX_SIZE.
3043
3044 2000-08-19  Andreas Jaeger  <aj@suse.de>
3045
3046         * shlib-versions: Remove libnss_db, libdb and libdb1.
3047
3048 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
3049
3050         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
3051         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
3052         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
3053         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
3054         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
3055         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
3056         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
3057         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
3058         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
3059         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
3060         getdents.
3061         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
3062         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
3063
3064 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3065
3066         * include/glob.h (__glob64): Add prototype.
3067         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
3068         define glob and glob_in_dir.
3069         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
3070         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3071         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3072         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3073         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
3074         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
3075         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
3076         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
3077
3078 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3079
3080         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
3081
3082 2000-08-17  Andreas Jaeger  <aj@suse.de>
3083
3084         * math/test-fenv.c (fe_single_test): New function.
3085         (fe_env_tests): Use fe_single_test.
3086         (feenable_test): New tests for feenable/fedisable and
3087         fegetexcpetions.
3088         (feexcp_mask_test): New function.
3089         (feexcp_nomask_test): New function.
3090
3091 2000-08-19  Richard Henderson  <rth@cygnus.com>
3092
3093         * sysdeps/alpha/fpu/fenv_libc.h: New file.
3094         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
3095         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
3096         * sysdeps/alpha/fpu/fesetround.c: Likewise.
3097         * sysdeps/alpha/fpu/fegetround.c: Likewise.
3098         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
3099         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
3100         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
3101         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
3102         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
3103         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
3104         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
3105         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
3106         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
3107         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
3108         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
3109         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
3110
3111 2000-08-19  Andreas Jaeger  <aj@suse.de>
3112
3113         * elf/constload1.c: Include <stdio.h> for puts prototype.
3114
3115 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3116
3117         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
3118         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
3119         a dynamically loaded object remove old l_initfini list.
3120         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
3121         remove some dynamically allocated memory blocks in the dynamic
3122         loading data structures.
3123         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
3124         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
3125         Instead call _dl_check_map_versions only for the dependencies.
3126         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
3127         information of initial objects as not free-able.
3128         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
3129         element.
3130
3131         * elf/filter.c: Call mtrace.
3132         * elf/restest1.c: Likewise.  Close the objects.
3133         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
3134         debug information.
3135
3136         * elf/constload1.c: Add comment explaining not freed memory.
3137
3138 2000-08-18  Andreas Jaeger  <aj@suse.de>
3139
3140         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
3141         alignment for structs stat and stat64.
3142         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3143
3144 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
3147         handling.  Patch by Richard Henderson <rth@twiddle.net>.
3148
3149         * nss/Versions: Remove libnss_db information.
3150
3151 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3152
3153         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
3154         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
3155         * sysdeps/sparc/fpu/fegetexcept.c: New file.
3156         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
3157
3158         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
3159         to match Solaris.
3160
3161 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3162
3163         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
3164         (_FPU_SETCW): Likewise.
3165         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3166
3167         * stdio-common/printf_fp.c: Fix chars_needed computation.
3168         Patch by Greg McGary <greg@mcgary.org>.
3169
3170 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3171
3172         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
3173         _dl_loaded are NULL.
3174
3175 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3176
3177         * manual/arith.texi (feholdexcept): Returns 0 on success.
3178
3179 2000-08-17  Andreas Jaeger  <aj@suse.de>
3180
3181         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
3182         (ifr_newname): New.
3183         Reported by Andi Kleen <ak@suse.de>.
3184
3185 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3186
3187         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
3188         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
3189         * sysdeps/alpha/fpu/fegetexcept.c: New file.
3190
3191 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3192
3193         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
3194         of buf->st_ino and kbuf->st_ino, not __st_ino.
3195         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
3196         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
3197         directive so that only linux/getdents.c is used, not some
3198         architecture specific one.
3199
3200 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3201
3202         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
3203         enabled, not disabled exceptions.
3204         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3205         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
3206
3207 2000-08-17  Greg McGary  <greg@mcgary.org>
3208
3209         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
3210         from test program name when constructing suffix for $(LDLIBS-*).
3211         (bounded-thread-library): New variable.
3212         * crypt/Makefile
3213         [build-shared, build-static] (libcrypt-dep): Remove variable.
3214         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3215         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3216         * linuxthreads/Makefile (libpthread, librt): Remove variables.
3217         (librt-tests): Add variable.  (tests): Use it.
3218         [build-shared, build-static]
3219         ($(addprefix $(objpfx),$(tests)),
3220         $(addprefix $(objpfx),$(librt-tests))):
3221         Consolidate individual dependencies.
3222         [build-bounded]
3223         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
3224         Add dependencies.
3225         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
3226         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3227         * misc/Makefile
3228         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
3229         * rt/Makefile
3230         [build-shared, build-static]
3231         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3232         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3233
3234 2000-08-17  Greg McGary  <greg@mcgary.org>
3235
3236         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
3237         * sysdeps/unix/make-syscalls.sh: Likewise.
3238         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3239         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3240         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3241         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3242         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3243
3244 2000-08-17  Greg McGary  <greg@mcgary.org>
3245
3246         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
3247         Wrap extern symbols in BP_SYM ().
3248         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3249         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3250         * sysdeps/i386/fpu/s_remquo.S: Likewise.
3251         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3252         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3253         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3254         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3255         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3256         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3257         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3258
3259 2000-08-16  Andreas Schwab  <schwab@suse.de>
3260
3261         * sysdeps/m68k/fpu/fegetexcept.c: New file.
3262         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
3263         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
3264
3265 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3266
3267         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
3268         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
3269         * elf/dl-support.c: Define _nl_nloaded.
3270         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
3271         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
3272         object to global list.
3273         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
3274         from _dl_loaded list.
3275         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3276         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
3277         number here.
3278
3279         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
3280         unmask, exceptions.
3281         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
3282         exceptions.
3283         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
3284
3285 2000-08-16  Andreas Jaeger  <aj@suse.de>
3286
3287         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
3288
3289 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
3290
3291         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
3292
3293 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3294
3295         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
3296         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
3297         (sysdep_routines): Add oldgetrlimit64.
3298         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
3299         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3300
3301         * include/link.h: Undo last patches.  Hurd now has stat64.
3302         * elf/Makefile: Likewise.
3303         * elf/dl-load.c: Likewise.
3304         * elf/dl-misc.c: Likewise.
3305         * elf/dl-profile.c: Likewise.
3306         * sysdeps/generic/sysd-link.h: Removed.
3307         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
3308
3309         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
3310         thread event callback function.
3311         (__aio_notify_only): Use function above.
3312         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
3313
3314 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
3315
3316         * sysdeps/mach/hurd/lseek64.c: New file.
3317
3318 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3319
3320         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
3321         Remove typedefs.
3322         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
3323         typedefs.
3324         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
3325         typedefs.
3326         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
3327
3328 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3329
3330         * sysdeps/mach/hurd/xstatconv.c: New file.
3331         * sysdeps/mach/hurd/fxstat64.c: New file.
3332         * sysdeps/mach/hurd/lxstat64.c: New file.
3333         * sysdeps/mach/hurd/xstat64.c: New file.
3334         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
3335
3336 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3337
3338         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
3339         Initialize, needed for change in common symbol handling in newer
3340         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
3341
3342 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3343
3344         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
3345         * elf/constload2.c: Add destructor to unload constload3.
3346
3347         * include/link.h: Include sysd-link.h.
3348         * sysdeps/generic/sysd-link.h: New file.
3349         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
3350         * elf/Makefile (distribute): Add sysd-link.h.
3351         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
3352         types and functions directly.
3353         * elf/dl-misc.c: Likewise.
3354         * elf/dl-profile.c: Likewise.
3355
3356         * elf/loadfail.c (main): Close all successfully loaded objects.
3357
3358         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
3359         free wd.
3360         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
3361         there is already one.
3362
3363         * elf/dl-close.c: Pretty print.
3364
3365 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
3366
3367         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
3368         global (with file scope).  Add __libc_subfreeres function to free the
3369         string.
3370         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
3371         in ttyname function.
3372
3373         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
3374
3375         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
3376
3377         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
3378         mapping them to /x5c and /x7e respectively.
3379
3380         * locale/programs/ld-ctype.c: Add support for more definitions after
3381         copy statement.
3382
3383 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
3384
3385         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
3386         * sysdeps/unix/sysv/linux/kernel-features.h
3387         (__ASSUME_GETDENTS64_SYSCALL): Define.
3388         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
3389         syscall if available to get d_type fields.
3390         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
3391         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
3392         __lxstat64): Export at GLIBC_2.2.
3393         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
3394         Likewise.
3395         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
3396         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
3397         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
3398         getdirentries64, versionsort64): Remove.
3399         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
3400         getdirentries64, versionsort64): Remove.
3401
3402 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3403
3404         * posix/Makefile: Remove rules to generate glob package.
3405
3406         * posix/Makefile (tests): Add tst-regexloc.
3407         (tst-regexloc-ENV): Add LOCPATH.
3408         * posix/tst-regexloc.c: New file.
3409
3410 2000-08-12  Andreas Jaeger  <aj@suse.de>
3411
3412         * include/features.h (__STDC_ISO_10646__): Define.
3413         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
3414
3415 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3416
3417         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
3418
3419         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
3420         for revision 6 and up).
3421
3422         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
3423         including <time.h>.
3424         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
3425         to get definitions of just these types.
3426
3427         * signal/signal.h: Define thread signal handling functions also for
3428         POSIX95.
3429
3430         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
3431         POSIX95.
3432         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
3433         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
3434         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3435         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
3436
3437         * sysvipc/sys/shm.h: Define pid_t for XPG.
3438
3439         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
3440         they are not anymore required here.
3441
3442         * wcsmbs/wchar.h: Make the various wide char string and stream
3443         functions available for the respective XPG versions.
3444
3445         * nss/Makefile: Remove rules to build and distribute nss_db.
3446
3447         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
3448         * sysdeps/generic/scandir64.c: Likewise.
3449         * sysdeps/generic/versionsort64.c: Likewise.
3450
3451 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3452             Benjamin Koznik  <bkoz@redhat.com>
3453
3454         * libio/fileops.c: Merge with libstdc++-v3.
3455         * libio/genops.c: Likewise.
3456         * libio/iofclose.c: Likewise.
3457         * libio/iofopen.c: Likewise.
3458         * libio/iofwide.c: Likewise.
3459         * libio/libio.h: Likewise.
3460         * libio/libioP.h: Likewise.
3461         * libio/stdfiles.c: Likewise.
3462         * libio/stdio.c: Likewise.
3463         * libio/wfileops.c: Likewise.
3464         * libio/wgenops.c: Likewise.
3465
3466         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
3467
3468 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3469
3470         * locale/programs/localedef.c: Implement --prefix option to allow
3471         writing in standard places of alternative install directories.
3472
3473         * posix/regex.c (compile_range): Implement collation sequence
3474         handling for glibc.  Use simple character ordering otherwise and
3475         not strcoll.
3476
3477 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
3478
3479         * sysdeps/generic/scandir64.c: Include <dirent.h>.
3480
3481 2000-08-12  Andreas Jaeger  <aj@suse.de>
3482
3483         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
3484         __USE_FILE_OFFSET64 correctly for locking.
3485         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3486
3487 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
3488
3489         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3490         Define for 2.4.1 on sparc as well.
3491         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
3492         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3493         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
3494         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
3495
3496 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3497
3498         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
3499         defined.
3500
3501 2000-08-12  Andreas Jaeger  <aj@suse.de>
3502
3503         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
3504         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
3505
3506         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
3507         mips2 for assembler.
3508
3509         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
3510         if fnctl64 is not available for F_*LK*64.
3511
3512         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
3513
3514 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3517         Define for 2.4.1 on x86.
3518         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
3519         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
3520         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3521
3522         * dirent/dirent.h: Define DT_WHT.
3523
3524         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
3525         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
3526         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
3527         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
3528         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
3529         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
3530
3531 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
3532
3533         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
3534         lookup, pass pointer to array with NULL pointer [PR libc/1858].
3535         * inet/Makefile (tests): Add tst-gethnm.
3536         * inet/tst-gethnm.c: New file.
3537
3538         * rt/aio_cancel.c: If canceling a specific request which is running
3539         *really* do nothing.
3540         * rt/aio_misc.h: Add `done' to states of a request.
3541         * rt/aio_misc.c: Add several tests for the correct state.
3542         Simplify request table memory handling.
3543
3544 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
3545
3546         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
3547         * dirent/scandir64.c: Move...
3548         * sysdeps/generic/scandir64.c: ...here.
3549         * dirent/alphasort64.c: Move...
3550         * sysdeps/generic/alphasort64.c: ...here.
3551         * dirent/versionsort64.c: Move...
3552         * sysdeps/generic/versionsort64.c: ...here.
3553         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
3554         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
3555         Export symbols at GLIBC_2.2.
3556         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
3557         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
3558         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
3559         __versionsort64): Add prototypes.
3560         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
3561         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
3562         unused prototype.
3563         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
3564         and GLIBC_2.2.
3565         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
3566         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
3567         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
3568         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
3569         __u_quad_t.
3570         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
3571         Adjust for kernel-2.4.0-test6 layout.
3572         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
3573         GLIBC_2.1 and GLIBC_2.2.
3574         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
3575         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
3576         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
3577         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
3578         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
3579         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
3580         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
3581         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
3582         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
3583         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
3584         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
3585         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
3586         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
3587         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
3588         __u_quad_t.
3589         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
3590         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
3591         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
3592         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
3593         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
3594         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
3595         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
3596         __u_quad_t.
3597         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
3598         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
3599         Define.
3600         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
3601         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
3602         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
3603         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
3604         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
3605         Define.
3606         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
3607         alpha/readdir.c.
3608         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
3609         alpha/readdir_r.c
3610         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
3611         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
3612         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
3613         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
3614         st_ino from __st_ino.
3615         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3616         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3617         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
3618         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
3619         set __st_ino in addition to st_ino.
3620         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
3621         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
3622         __old_getdents64 as well.
3623         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
3624         getdirentries64 and old_getdirentries64 as well.
3625         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
3626         __GETDENTS): Define.
3627         (GETDENTS64): Remove.
3628         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
3629         Define.
3630         (GETDENTS64): Remove.
3631         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
3632         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
3633         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
3634         as well.
3635         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
3636         __old_readdir64_r as well.
3637         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3638         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
3639
3640 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
3641
3642         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
3643         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
3644         define of the kernel.
3645         Add missing __SEG_PSTKOVF definition.
3646         Adjust the padding of struct siginfo and struct sigevent to
3647         match the fact that sigval_t is 64 bit.
3648
3649 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * timezone/zic.c: Update from tzcode2000f.
3652         * timezone/australasia: Update from tzdata2000f.
3653         * timezone/europe: Likewise.
3654         * timezone/southamerica: Likewise.
3655         * timezone/yearistype: Likewise.
3656
3657 2000-08-10  Andreas Jaeger  <aj@suse.de>
3658
3659         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
3660         stat with current MIPS kernel.
3661
3662 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
3663
3664         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
3665         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
3666         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
3667         Remove the junk that's only relevant in the Linux kernel itself.
3668         Add a warning saying that this file is now obsolete, and include
3669         <sys/procfs.h>.
3670         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
3671         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
3672         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
3673         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
3674         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
3675         and add the notice that the file is primarily there for GDB.
3676         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
3677
3678 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3679
3680         * time/tzfile.c (__tzfile_compute): __tzstring zones
3681         from zone_names.
3682
3683 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3684
3685         * resolv/resolv.h (__res_state): Surround prototype with
3686         __BEGIN_DECLS/__END_DECLS.
3687         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3688
3689 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3690
3691         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3692         Make independant of asm/resource.h from the Linux kernel.
3693
3694 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3695
3696         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3697
3698 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3699
3700         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3701         * locale/Makefile (locale-CPPFLAGS): Likewise.
3702
3703 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3704
3705         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3706         for AMD processors.
3707
3708 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3709
3710         * misc/Versions (mincore): Export at GLIBC_2.2.
3711
3712 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3713
3714         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3715
3716 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3717
3718         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3719         socketpair.  Made socketpair a weak alias.
3720         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3721         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3722         conforming, but fall back on the old protocol if the socket server
3723         doesn't support it.
3724         * include/sys/socket.h: Add prototype for __socketpair.
3725
3726 2000-08-09  Andreas Schwab  <schwab@suse.de>
3727
3728         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3729         long long modifier is seen.
3730
3731         * elf/nodelete.c (do_test): Remove reference to undefined member
3732         sa_restorer.
3733         * rt/tst-aio4.c (do_test): Likewise.
3734
3735         * configure.in: Add `-lm' when checking for libgd.
3736         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3737         linking.
3738
3739 2000-08-09  Andreas Jaeger  <aj@suse.de>
3740
3741         * configure.in: Change required make versions.
3742
3743         * manual/install.texi (Tools for Compilation): Document required
3744         make version.
3745         (Supported Configurations): Update list of supported
3746         configurations.
3747
3748 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3749
3750         * locale/linereader.c (get_string): Don't print an error is a string
3751         contains an unknown character.
3752
3753 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3754
3755         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3756         (new_symbol): Take new parameters with name of the symbol.
3757         Adjust callers.
3758         (handle_ellipsis): Don't only allow character symbols.
3759         (collate_read): Allow string of collating elements contain invalid
3760         characters; ignore entry in this case.
3761         Handle ellipsis of collating symbols before first order_start.
3762         Allow ellipsis in state 0.
3763
3764 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3765
3766         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3767         error message.
3768         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3769
3770 2000-08-04  Greg McGary  <greg@mcgary.org>
3771
3772         * posix/regex.c (SET_HIGH_BOUND): New macro.
3773         (MOVE_BUFFER_POINTER): Use it.
3774         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3775         (EXTEND_BUFFER): Use it.
3776
3777 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3778
3779         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3780         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3781         _wide_data but from _IO_FILE directly.
3782         * libio/iofclose.c: Likewise.
3783         * libio/wfileops.c: Likewise.
3784
3785         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3786         * libio/libioP.h: Change prototypes.
3787
3788 2000-08-03  Greg McGary  <greg@mcgary.org>
3789
3790         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3791         frame pointer early so that we save caller's frame pointer.
3792         * sysdeps/i386/elf/setjmp.S: Likewise.
3793
3794         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3795         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3796
3797         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3798         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3799         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3800
3801 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3802
3803         * iconvdata/big5.c: Updated.
3804         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3805
3806 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3807
3808         * Makeconfig (all-subdirs): Add conform.
3809         * conform/Makefile: Include ../Rules.
3810
3811         * Makefile (README): Add rules to generate here as well.
3812
3813 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3814
3815         * version.h (VERSION): Bump to 2.1.92.
3816
3817         * sysdeps/ia64/Dist: Add _mcount.S.
3818
3819         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3820
3821         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3822
3823         * elf/Makefile (distribute): Add missing modules.
3824
3825         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3826
3827         * posix/regex.c (compile_range): Translate range start and end
3828         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3829
3830         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3831         asm/resource.h.
3832
3833         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3834
3835 2000-08-02  Andreas Jaeger  <aj@suse.de>
3836
3837         * elf/elf.h (EM_S390): Added.
3838         (R_390_*): New relocs for S390.
3839
3840         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3841         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3842         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3843         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3844         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3845         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3846         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3847         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3848         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3849         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3850         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3851         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3852         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3853         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3854         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3855         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3856         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3857         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3858         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3859         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3860         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3861         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3862         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3863         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3864         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3865         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3866         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3867         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3868         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3869         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3870         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3871         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3872         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3873         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3874         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3875         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3876         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3877         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3878         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3879         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3880         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3881         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3882         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3883         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3884         * sysdeps/s390/sysdep.h: New file.
3885         * sysdeps/s390/sys/ucontext.h: New file.
3886         * sysdeps/s390/sub_n.S: New file.
3887         * sysdeps/s390/strncpy.S: New file.
3888         * sysdeps/s390/strcpy.S: New file.
3889         * sysdeps/s390/stackinfo.h: New file.
3890         * sysdeps/s390/setjmp.S: New file.
3891         * sysdeps/s390/s390-mcount.S: New file.
3892         * sysdeps/s390/mul_1.S: New file.
3893         * sysdeps/s390/memusage.h: New file.
3894         * sysdeps/s390/memset.S: New file.
3895         * sysdeps/s390/memcpy.S: New file.
3896         * sysdeps/s390/memchr.S: New file.
3897         * sysdeps/s390/machine-gmon.h: New file.
3898         * sysdeps/s390/ldbl2mpn.c: New file.
3899         * sysdeps/s390/gmp-mparam.h: New file.
3900         * sysdeps/s390/fpu/fpu_control.h: New file.
3901         * sysdeps/s390/fpu/fesetround.c: New file.
3902         * sysdeps/s390/fpu/fegetround.c: New file.
3903         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3904         * sysdeps/s390/fpu/bits/fenv.h: New file.
3905         * sysdeps/s390/ffs.c: New file.
3906         * sysdeps/s390/elf/start.S: New file.
3907         * sysdeps/s390/elf/setjmp.S: New file.
3908         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3909         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3910         * sysdeps/s390/dl-machine.h: New file.
3911         * sysdeps/s390/bzero.S: New file.
3912         * sysdeps/s390/bsd-setjmp.S: New file.
3913         * sysdeps/s390/bsd-_setjmp.S: New file.
3914         * sysdeps/s390/bits/string.h: New file.
3915         * sysdeps/s390/bits/setjmp.h: New file.
3916         * sysdeps/s390/bits/huge_val.h: New file.
3917         * sysdeps/s390/bits/endian.h: New file.
3918         * sysdeps/s390/bits/byteswap.h: New file.
3919         * sysdeps/s390/bcopy.S: New file.
3920         * sysdeps/s390/backtrace.c: New file.
3921         * sysdeps/s390/atomicity.h: New file.
3922         * sysdeps/s390/asm-syntax.h: New file.
3923         * sysdeps/s390/addmul_1.S: New file.
3924         * sysdeps/s390/add_n.S: New file.
3925         * sysdeps/s390/abort-instr.h: New file.
3926         * sysdeps/s390/__longjmp.c: New file.
3927         * sysdeps/s390/Makefile: New file.
3928         * sysdeps/s390/Implies: New file.
3929         * sysdeps/s390/Dist: New file.
3930         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3931
3932 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3933
3934         Remove incompatible IPv6 extension of RPC.
3935         * sunrpc/Makefile: Undo changes.
3936         * sunrpc/rpc_main.c: Likewise.
3937         * sunrpc/rpc/clnt.h: Likewise.
3938         * sunrpc/rpc/svc.h: Likewise.
3939         * sunrpc/bindrsvprt6.c: Removed.
3940         * sunrpc/clnt_tcp6.c: Removed.
3941         * sunrpc/clnt_udp6.c: Removed.
3942         * sunrpc/svc_tcp6.c: Removed.
3943         * sunrpc/svc_udp6.c: Removed.
3944
3945         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3946         dgettext, and dcgettetxt.
3947
3948         * intl/locale.alias: Update japanese aliases.
3949
3950         * sysdeps/ia64/bits/byteswap.h: New file.
3951         Patch by Dan Pop <Dan.Pop@cern.ch>.
3952
3953         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3954         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3955
3956 2000-07-13  H.J. Lu  <hjl@gnu.org>
3957
3958         * posix/regex.c (re_max_failures): Set to 4000.
3959
3960 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3961
3962         * gnulib/Makefile (tests): Add tst-gcc.
3963         * gnulib/tst-gcc.c: New file.
3964
3965         * assert/Makefile (routines): Add __assert.
3966         * assert/Versions: Export __assert for glibc 2.2.
3967         * assert/__assert.c: New file.
3968         * assert/assert.h: Declare __assert.
3969
3970 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3971
3972         * locale/localeinfo.h (_ISCTYPE): New macro.
3973         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3974         LC_CTYPE locale format.
3975         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3976         (ctype_output): Output class_b[nr] right before class_3level[nr].
3977         (allocate_arrays): Fill class_b, similarly to class_3level.
3978
3979 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3980             Joseph S. Myers  <jsm28@cam.ac.uk>
3981
3982         * math/tgmath.h: Make standard compliant.  Don't ask how.
3983
3984 2000-07-04  H.J. Lu  <hjl@gnu.org>
3985
3986         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3987         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3988         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3989
3990 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3991
3992         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3993         (__USE_LARGEFILE): Add an explanation.
3994         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3995         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3996
3997 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3998
3999         * libio/Makefile: Enable exception handling for genops, wgenops,
4000         fileops, and wfileops.
4001
4002 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4003
4004         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
4005         acount that elf/rtld's main program might remove some varibales
4006         from the environment if we're trying to be secure.  Move the Hurd
4007         startup data if necessary, or, if we there is no startup data,
4008         make sure the magical convention that ARGV[0] is stored just after
4009         the environment list.
4010
4011 2000-08-01  Philip Blundell  <philb@gnu.org>
4012
4013         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
4014         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
4015         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
4016         oldsetrlimit for GLIBC_2.0.
4017
4018 2000-08-01  Andreas Jaeger  <aj@suse.de>
4019
4020         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
4021         (LINE_PARSER): Allow any number of spaces between ip address and
4022         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
4023
4024         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
4025
4026         * include/netdb.h: Remove getipnodebyaddr and friends, leave
4027         constants in.
4028
4029         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
4030         _nss_nisplus_getipnodebyname_r.
4031
4032         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
4033         now, getipnodebyname is deprecated.
4034         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
4035         Likewise.
4036
4037         * inet/Makefile (routines): Don't build getipnodebyaddr and
4038         friends.
4039
4040         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
4041
4042         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
4043
4044         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
4045
4046         * wctype/Makefile (distribute): Add wchar-lookup.h.
4047
4048         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
4049
4050         * iconvdata/Makefile (distribute): Add isiri-3342.h.
4051
4052 2000-08-01  Andreas Schwab  <schwab@suse.de>
4053
4054         * Make-dist (dist): Resolve `..' in file names.
4055
4056 2000-08-01  Andreas Jaeger  <aj@suse.de>
4057
4058         * stdio-common/Makefile (distribute): Remove removed files, add
4059         new files.
4060
4061         * Makefile (distribute): Remove include/db_185.h and db.h.
4062
4063         * include/db_185.h: Remove, it's not needed anymore.
4064         * include/db.h: Likewise.
4065
4066 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4067
4068         * inet/Makefile (tests): Remove tst-ipnode.
4069         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
4070         now.
4071
4072 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4073
4074         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
4075         endp statements have already been added.
4076
4077 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
4078
4079         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
4080         <sysdeps/ia64/sysdep.h>.
4081
4082         * sysdeps/ia64/_mcount.S: New file.
4083
4084         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
4085         __gmon_start__.  Fix up extraneous whitespace.
4086
4087 2000-01-12  H.J. Lu  <hjl@gnu.org>
4088
4089         * sysdeps/ia64/elf/initfini.c: New file.
4090
4091 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4092
4093         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
4094         dependency between branch and ar.pfs write.
4095
4096 2000-07-31  H.J. Lu  <hjl@gnu.org>
4097
4098         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
4099         handle the wchar_t array.
4100
4101 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * iconvdata/gb18030.c: Don't map to and from positions in ISO
4104         10646 which are not yet assigned.
4105         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
4106
4107 2000-07-31  Andreas Jaeger  <aj@suse.de>
4108
4109         * inet/Versions: Remove getipnodebyaddr and friends from
4110         GLIBC_2.2.
4111
4112         * resolv/netdb.h: Remove getipnodebyaddr and friends.
4113
4114 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4115
4116         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
4117         ch >= 0x81 && ch2 < 0x40 as invalid.
4118
4119 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4120
4121         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
4122         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
4123
4124 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4125
4126         * iconvdata/johab.c (BODY for TO_LOOP): After calling
4127         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
4128
4129 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4130
4131         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
4132         0xb8.
4133         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
4134
4135 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4136
4137         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
4138
4139 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4140
4141         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
4142         (from_ucs4): Change values of U+00A4 and U+00ED.
4143         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
4144
4145 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4146
4147         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
4148         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
4149
4150 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4151
4152         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
4153         * iconvdata/isiri-3342.h: New file.
4154         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
4155         treat 0x80 as a gap.
4156
4157 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4158
4159         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
4160         (utf8_encode): Use simple shifts instead.  Fix return value.
4161
4162 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4163
4164         * timezone/private.h: Update from tzcode2000e.
4165         * timezone/asia: Update from tzdata2000e.
4166         * timezone/australasia: Likewise.
4167         * timezone/europe: Likewise.
4168         * timezone/northamerica: Likewise.
4169         * timezone/zone-tab: Likewise.
4170
4171 2000-07-30  Ralf Baechle  <ralf@gnu.org>
4172
4173         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
4174         the order of struct sigaltstack members is different.
4175
4176 2000-07-26  Philip Blundell  <philb@gnu.org>
4177
4178         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
4179
4180 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
4181
4182         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
4183         * locale/programs/ld-ctype.c: Adjust for this.
4184
4185         * locale/programs/ld-collate.c: Add more alignment checks.
4186         * locale/string/strcoll.c: Likewise.
4187
4188 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
4189
4190         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
4191         outside USE_IN_LIBIO block.
4192
4193 2000-07-26  Philip Blundell  <philb@gnu.org>
4194
4195         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
4196         (elf_machine_rel): Use it for out-of-range PC24 relocs.
4197
4198 2000-07-28  Philip Blundell  <philb@gnu.org>
4199
4200         * math/test-fpucw.c: Ignore reserved bits in control word.
4201
4202 2000-07-28  Philip Blundell  <philb@gnu.org>
4203
4204         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
4205         (ret): Redefine to PSEUDO_RET.
4206         (PSEUDO): Remove jump to syscall_error.
4207
4208 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4209
4210         * resolv/README: Add some information about using the resolver in
4211         multi-threaded code and with C++.  Spelling fixes.
4212
4213 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4214
4215         * resolv/resolv.h (struct __sockaddr_in): Remove.
4216         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
4217
4218 2000-07-29  Greg McGary  <greg@mcgary.org>
4219
4220         * Rules (test-bp-inputs, make-test-out): New variables.
4221         ($(objpfx)%-bp.out): New rule.
4222         ($(objpfx)%.out): Rewrite in terms of new variables.
4223
4224         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
4225         internal function that uses vtable.
4226         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4227         * libio/vswprintf.c (_IO_vswprintf): Likewise.
4228
4229         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
4230         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
4231         (chunk_align): Likewise.
4232
4233         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
4234         in a way that conforms to decl, and avoids spurious bounds violation.
4235
4236         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
4237         * sysdeps/generic/frame.h: Likewise.
4238         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
4239         around return value.
4240         (__backtrace): Qualify frame-pointer chain and return address
4241         pointers as __unbounded.  Wrap bounds around variable `current'.
4242         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
4243         around return value.
4244         (catch_segfault): Qualify frame-pointer chain and return address
4245         pointers as __unbounded.  Wrap bounds around variable `current'.
4246         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
4247         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
4248         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
4249         __unbounded.
4250         (__backtrace): Qualify frame-pointer chain and return address
4251         pointers as __unbounded.  Wrap bounds around variable `current'.
4252
4253         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
4254         * sysdeps/i386/mul_1.S: Likewise.
4255         * sysdeps/i386/submul_1.S: Likewise.
4256         * sysdeps/i386/i586/addmul_1.S: Likewise.
4257         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
4258         * sysdeps/i386/i586/submul_1.S: Likewise.
4259
4260 2000-07-27  Andreas Jaeger  <aj@suse.de>
4261
4262         * libio/Depend: New file, libio needs localedata for tests.
4263         * posix/Depend: Likewise.
4264
4265 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
4266
4267         * stdio-common/_i18n_itoa.c: Removed.
4268         * stdio-common/_i18n_itoa.h: Removed.
4269         * stdio-common/_i18n_itowa.c: Removed.
4270         * stdio-common/_i18n_itowa.h: Removed.
4271         * stdio-common/_i18n_number.h: New file.
4272         * stdio-common/Depend: New file.
4273         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
4274         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
4275         printing.  Change printing of numbers with locale specific digits to
4276         use new code in _i18n_number.h.
4277         * stdio-common/Makefile (routines): Remove _i18n_itoa and
4278         _i18n_itowa.
4279
4280         * stdio-common/bug13.c: Improve messages.
4281
4282         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
4283         (set_class_defaults): Always search also for Uxxxx names.
4284         Detect insufficient number of outdigits.
4285
4286         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
4287
4288 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4289
4290         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
4291         _NL_CTYPE_MAP_NAMES.
4292         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
4293         * wctype/wcfuncs.c (towlower, towupper): Use them.
4294         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
4295         * wctype/wctrans.c (wctrans): Likewise.
4296         * wctype/wctrans_l.c (__wctrans_l): Likewise.
4297
4298 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4299
4300         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
4301         Use the optimized version of this function outside glibc as well.
4302
4303 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
4304
4305         * locale/indigits.h (indigit_value): Correct.
4306         * locale/indigitswc.h (indigitwc_value): Correct.
4307         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
4308         conversion, add GROUP checking for it, fix GROUP number
4309         conversion with strlen(thousands) > 1.
4310         Honour width correctly in the presence of floating
4311         decimal points and thousands separators.
4312         * stdio-common/tst-sscanf.c: New test.
4313         * stdio-common/Makefile: Add it to tests.
4314         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
4315         thousands separators and group argument is non-zero.
4316
4317 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4318
4319         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
4320         starts at GLIBC_2.2.
4321
4322 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4323
4324         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
4325         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
4326         _test_and_set.
4327         (headers): Add sys/tas.h.
4328         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
4329         GLIBC_2.2 from libc.
4330         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
4331         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
4332         _test_and_set.
4333
4334 2000-07-28  Andreas Jaeger  <aj@suse.de>
4335
4336         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
4337
4338         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
4339         ($(objpfx)tst-dladdr.out): new.
4340         (tests): Add tst-dladdr.
4341         ($(objpfx)glrefmain): Use libdl.
4342
4343         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
4344         <vs@caldera.de>.
4345
4346 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4347
4348         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
4349         ftruncate(64) calls.
4350
4351 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4352
4353         * intl/tst-translit.c: Include string.h to get prototype for
4354         strcmp().
4355
4356 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4357
4358         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
4359         name and add weak alias for __fork.
4360
4361         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
4362         & pwrite to use __libc_<name> as strong names instead of
4363         __syscall_<name>.
4364
4365         * include/sched.h: Add clone2 prototype.
4366
4367 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
4368
4369         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
4370         procedure name twice.
4371
4372 2000-07-27  Philip Blundell  <philb@gnu.org>
4373
4374         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
4375
4376 2000-07-27  Andreas Jaeger  <aj@suse.de>
4377
4378         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
4379         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
4380         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4381         Reported by Andi Kleen <ak@suse.de>.
4382
4383         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
4384         (do_wait): Test requests with aio_return64.
4385         (do_test): Change callers of do_wait.
4386
4387 2000-07-26  Andreas Jaeger  <aj@suse.de>
4388
4389         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
4390         (do_wait): Test requests with aio_return.
4391         (do_test): Change callers of do_wait.
4392
4393 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
4394
4395         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
4396         from request list.  Don't do the list handling here, call
4397         __aio_remove_request.
4398         * rt/aio_misc.h: Add prototype for __aio_remove_request.
4399         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
4400         request might already be processed.  Don't do the list handling
4401         here, call __aio_remove_request.
4402
4403         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
4404         LIO_DSYNC.
4405
4406         * rt/aio_misc.c: Add comment explaining why writer memory barriers
4407         are missing.
4408
4409 2000-07-27  Greg McGary  <greg@mcgary.org>
4410
4411         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
4412         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
4413         in union init.  Pass zero for ignored semnum arg to semctl.
4414         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
4415
4416 2000-07-26  Greg McGary  <greg@mcgary.org>
4417
4418         * sysdeps/gnu/bits/msq.h: Qualify kernel's
4419         data structure pointers as __unbounded.
4420         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
4421         * sysdeps/generic/bp-semctl.h: New file.
4422         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
4423         pointers as __unbounded.  Check bounds of syscall args.
4424         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4425         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4426         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4427         * sysdeps/unix/sysv/linux/semop.c: Likewise.
4428         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
4429         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4430         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
4431         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4432         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4433         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4434         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
4435         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
4436         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
4437         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
4438         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
4439         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
4440
4441 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
4444         by default.
4445         * locale/C-ctype.c: Likewise.
4446         * wcsmbs/wcsmbsload.c: Likewise.
4447
4448 2000-07-26  Greg McGary  <greg@mcgary.org>
4449
4450         * Makeconfig (+link-bounded, link-libc-bounded,
4451         link-extra-libs-bounded): New variables.
4452         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
4453         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
4454         * Rules (tests-bp.out): New variable.
4455         (tests): Conditionally add BP tests.
4456         (binaries-bounded): Add variable and associated rule.
4457         * csu/Makefile [build-bounded] (extra-objs, install-lib):
4458         Move conditional stuff after place where condition is defined.
4459
4460         * malloc/malloc.c (bp-checks.h): Add #include.
4461         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
4462         (_bin_at): Add unbounded version of bin_at.
4463         (IAV, chunk_alloc): Use unbounded _bin_at.
4464         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
4465         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
4466         Wrap BOUNDED_N around return value.
4467         (chunk_realloc): Adjust oldsize once.
4468
4469         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
4470         (__ubp_memchr): Add correct decl.
4471         (_CHECK_STRING): Use __ubp_memchr.
4472         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4473         New alias for unbounded-pointer __memchr.
4474         * sysdeps/i386/memchr.S: Likewise.
4475         * sysdeps/ia64/memchr.S: Likewise.
4476         * sysdeps/m68k/memchr.S: Likewise.
4477         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4478         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4479         * sysdeps/vax/memchr.s: Likewise.
4480
4481         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
4482         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
4483         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
4484         * sysdeps/i386/i686/strtok.S: Likewise.
4485         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
4486         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
4487
4488         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
4489         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
4490
4491         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
4492         bounds of copy_result to mount_proc.
4493
4494 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4495
4496         * wctype/wctype.h (__wctrans_l): New declaration.
4497         * wctype/wctrans_l.c: New file.
4498         * wctype/Makefile (routines): Add wctrans_l.
4499
4500 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4501
4502         * posix/fnmatch_loop.c: Fixes for use outside glibc.
4503         Patch by MacGyver <macgyver@tos.net>.
4504
4505 2000-07-26  Andreas Jaeger  <aj@suse.de>
4506
4507         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
4508         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
4509         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
4510
4511         * rt/tst-aio.c (test_file): Fix typo.
4512         * rt/tst-aio64.c (test_file): Likewise.
4513
4514         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
4515         * rt/Makefile: Add rules to build and run tst-aio3.
4516
4517         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
4518         it's not needed and confuses only.
4519
4520 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4521
4522         * resolv/res_init.c: Add support for nameserver communication with
4523         IPv6.
4524         * resolv/res_send.c: Likewise.
4525         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
4526         in nsaddrs field.
4527         Patch by <venaas@nvg.ntnu.no>.
4528
4529 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4530
4531         * locale/programs/ld-ctype.c (wctype_table_get): New function.
4532         (wcwidth_table_get): New function.
4533         (wcwidth_table_add): Call it.
4534         (wctrans_table_get): New function.
4535         (wctrans_table_add): Call it.
4536
4537 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4538
4539         * rt/lio_listio.c (lio_listio): Always disable individual
4540         notification.
4541         * rt/Makefile: Add rules to build and run tst-aio2.
4542         * rt/tst-aio2.c: New file.
4543
4544         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
4545         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
4546
4547 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4548
4549         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
4550         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
4551         leading and trailing spaces from host, user and domain name.
4552
4553 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
4554
4555         * csu/defs.awk: Add support for need_endp.
4556
4557 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4558
4559         * resolv/resolv.h: Remove __P from res_send_qhook and
4560         res_send_rhook typedefs.
4561
4562 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4563
4564         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
4565
4566 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4567
4568         * iconv/gconv_builtin.h: Add WCHAR_T alias.
4569
4570 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4571
4572         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
4573         calling thread, set the cancellation flag and return success
4574         instead of EINTR.
4575
4576 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4577
4578         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
4579         * libio/tst-widetext.c: New file.
4580         * libio/tst-widetext.input: New file.
4581
4582         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
4583
4584         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
4585         empty external buffer correctly.
4586
4587 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4588
4589         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
4590         __STRING(entry) and not #entry.
4591         (_RTLD_EPILOGUE): Likewise.
4592         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4593
4594 2000-07-25  Andreas Jaeger  <aj@suse.de>
4595
4596         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
4597         according to changes in test program, run also with static only
4598         builds.
4599         ($(objpfx)tst-printf.out): Likewise.
4600
4601         * stdio-common/tst-unbputc.sh: Likewise.
4602         * stdio-common/tst-printf.sh: Likewise.
4603
4604 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4605
4606         * libio/wfileops.c (_IO_wdo_write): Correct return value.
4607
4608         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
4609         loop.
4610
4611         * libio/fileops.c: Pretty print.
4612
4613 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
4614
4615         * wctype/wchar-lookup.h: New file.
4616         * wctype/iswctype.c: Include "wchar-lookup.h".
4617         (__iswctype): Support alternate locale format with 3-level tables.
4618         * wctype/iswctype_l.c (__iswctype_l): Likewise.
4619         * wctype/towctrans.c (__towctrans): Likewise.
4620         * wctype/towctrans_l.c (__towctrans_l): Likewise.
4621         * wctype/wcfuncs.c: Include "wchar-lookup.h".
4622         (__ctype32_wctype, __ctype32_wctrans): Declare external.
4623         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
4624         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
4625         __iswxdigit, towlower, towupper): Support alternate locale format
4626         with 3-level tables.
4627         * wctype/wcextra.c (iswblank): Likewise.
4628         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
4629         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4630         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4631         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
4632         format with 3-level tables.
4633         * wctype/wcextra_l.c (__iswblank_l): Likewise.
4634         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
4635         format, return a 3-level table pointer.
4636         * wctype/wctype_l.c (__wctype_l): Likewise.
4637         * wctype/wctrans.c (wctrans): Likewise.
4638         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
4639         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
4640         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
4641         (iswctype): Remove macro definition.
4642         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
4643         (internal_wcwidth): Support alternate locale format with 3-level
4644         tables.
4645         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4646         New nl_items.
4647         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4648         Define them as being type "word".
4649         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
4650         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
4651         __ctype32_width): New exported variables.
4652         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
4653         alternate locale format. Don't initialize __ctype_names and
4654         __ctype_width in the alternate locale format.
4655         * locale/programs/localedef.h (oldstyle_tables): New declaration.
4656         * locale/programs/localedef.c (oldstyle_tables): New variable.
4657         (OPT_OLDSTYLE): New macro.
4658         (options): Add --old-style option.
4659         (parse_opt): Handle --old-style option.
4660         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
4661         map_offset, class_3level, map_3level, width_3level members.
4662         (ctype_output): Support for alternate locale format: Computation of
4663         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
4664         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
4665         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
4666         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
4667         now contain both class and map tables.
4668         (struct wctype_table): New type.
4669         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
4670         functions.
4671         (struct wcwidth_table): New type.
4672         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
4673         functions.
4674         (struct wctrans_table): New type.
4675         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
4676         functions.
4677         (allocate_arrays): Support for alternate locale format: Set
4678         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
4679         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4680         to the first 256 characters. Compute ctype->map_3level. Set
4681         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4682         instead of ctype->width.
4683
4684 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4685
4686         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4687         string functions.
4688
4689 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4690
4691         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4692         in wide characters, not bytes.
4693         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4694         into file.
4695
4696 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4697
4698         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4699         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4700         LC_MEASUREMENT, LC_IDENTIFICATION.
4701
4702         * locale/xlocale.h (struct __locale_struct): Increase size of
4703         __locales array.
4704         * locale/duplocale.c (__duplocale): Copy newly added categories as
4705         well.
4706         * locale/freelocale.c (__freelocale): Free newly added categories.
4707         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4708         If a base is given, use it, don't simply return it.
4709
4710 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4711
4712         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4713         variables, copied_key and copied_salt, instead of boolean variables.
4714
4715 2000-07-24  Andreas Jaeger  <aj@suse.de>
4716
4717         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4718         check for offset.
4719
4720         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4721         initgroups_function, adopted prototype for change from 2000-07-23.
4722         (initgroups): Follow type change.
4723
4724         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4725         & PAGE_MASK case, reformat.
4726
4727         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4728         from stdin and setup environment.
4729
4730 2000-07-24  Andreas Schwab  <schwab@suse.de>
4731
4732         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4733
4734 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4735
4736         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4737         more.  Patch by scarlet@mit.edu [PR libc/1799].
4738
4739         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4740         [PR libc/1792].
4741
4742         * argp/argp-parse.c (parser_finalize): Reverse order in which
4743         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4744
4745         * grp/initgroups.c (initgroups): Don't limit the possible number
4746         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4747         the setgroups call while the call fails and descrease the number
4748         of groups each round.
4749         The name of the initgroups function in the NSS modules changed.
4750         (compat_call): Adapt for dynamic resizing.
4751         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4752         Implement dynamic resizing.
4753         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4754         Likewise.
4755         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4756         * hesiod/Versions: Change exported interface name.
4757         * nis/Versions: Change exported interface name.
4758
4759 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4760
4761         * locale/iso-639.def: Some errors corrected.
4762         Patch by Keld Simonsen.
4763
4764         * include/limits.h: Update non-gcc portion.
4765         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4766
4767 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4768
4769         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4770         program's data space, reallocate only the space that was just
4771         deallocated to release its backing space.
4772
4773 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4774
4775         * stdio-common/vfprintf.c (process_string_arg): For wide character
4776         version, handle precision also correctly.
4777
4778         * nss/nss_files/files-hosts.c: Correct problem with three or more
4779         entries with the same name.
4780
4781         * nss/nss_files/files-hosts.c: Implement multi handling.
4782         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4783
4784 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4785
4786         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4787         strcasecmp.
4788
4789         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4790         * malloc/Makefile: Likewise.
4791         * malloc/tst-mtrace.sh: Likewise.
4792         * posix/Makefile: Likewise.
4793         * posix/globtest.sh: Likewise.
4794         * posix/wordexp-tst.sh: Likewise.
4795         * string/Makefile: Likewise.
4796
4797 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4798
4799         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4800         size instead of LC_ALL to take into account the new locale
4801         categories.
4802
4803 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4804
4805         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4806         remainders of hash table.
4807         * locale/categories.def: Remove remainders of transliteration
4808         hash table.
4809         * locale/langinfo.h: Likewise.
4810         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4811         transliteration tables.
4812
4813         * locale/gen-translit.pl: New file.
4814         * locale/C-translit.h.in: New file.
4815         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4816         data pointers with data from this file.
4817         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4818         and gen-translit.pl.
4819         Add rule to generate C-translit.h.
4820         * intl/tst-translit.c (main): Update for now performed
4821         transliteration.
4822
4823         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4824         (it's no input error).
4825         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4826         * stdio-common/scanf12.c: Correct expected result for first scanf.
4827
4828         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4829         of multibyte character strings in %s format with precision.
4830
4831 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4832
4833         * locale/programs/ld-collate.c (collate_read): Allow collating
4834         symbols and elements be named in reorder-after instructions.
4835         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4836
4837         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4838         duplication with generated name, not the name of the first
4839         character.
4840         Patch by Yong Li <yong.li@asu.edu>.
4841
4842         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4843         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4844
4845 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4846
4847         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4848         allocations only if a non-main arena cannot be extended.
4849
4850 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4853         in DF_1_NODEFLIB handling.
4854
4855 2000-07-21  Andreas Jaeger  <aj@suse.de>
4856
4857         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4858         own rule.
4859
4860         * libio/fwide.c: Include <wchar.h> for prototype.
4861
4862 2000-07-21  Greg McGary  <greg@mcgary.org>
4863
4864         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4865         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4866         Define in terms of chunk_at_offset.
4867         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4868         (next_bin, prev_bin): offset by size of real array elements.
4869         (chunk_align): Make `m' a scalar, since that's how it's used.
4870
4871 2000-07-21  Greg McGary  <greg@mcgary.org>
4872
4873         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4874         UNCHECK_BOUNDS.
4875         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4876         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4877         Wrap bounds around argv & envp and each of their string members.
4878         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4879         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4880         symbol in BP_SYM ().  Discard bounds of address arg.
4881         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4882         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4883         Discard bounds on address arg, add bounds to return value.
4884
4885 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4886
4887         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4888         * elf/filter.c: New file.
4889         * elf/filtmod1.c: New file.
4890         * elf/filtmod2.c: New file.
4891
4892         * elf/rtld.c: Define _dl_bind_not variable.
4893         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4894         * elf/dl-support.c: Likewise.
4895         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4896         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4897         _dl_bind_not.
4898         (profile_fixup): Likewise.
4899
4900         * libio/Makefile (routines): Add fwide.
4901         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4902         fwide now.  Internal calls to _IO_fwide must do locking themselves
4903         or don't need locking.
4904         * libio/fwide.c: New file.
4905
4906         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4907
4908         * elf/Makefile: Add no modules for nodelete test.
4909         * elf/nodelmod3.c: New file.
4910         * elf/nodelmod4.c: New file.
4911         * elf/nodelete.c: Also test case where dependency of dlopen() object
4912         is marked nodelete.
4913
4914         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4915         * elf/nodlopen.c: New file.
4916         * elf/nodlopenmod.c: New file.
4917         * include/dlfcn.h: Define __RTLD_DLOPEN.
4918         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4919         and this is a dlopen() call, do not load the binary.
4920         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4921         * dlfcn/dlopenold.c: Likewise.
4922         * configure.in: Add test for -z nodelete option.
4923         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4924
4925 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4926
4927         Make Hesiod NSS module thread-safe.
4928
4929         * hesiod/README.hesiod: Update.
4930
4931         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4932         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4933         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4934         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4935         hesiod-proto.
4936         * hesiod/nss_hesiod/hesiod-init.c: New file.
4937         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4938         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4939         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4940         * hesiod/nss_hesiod/hesiod-service.c
4941         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4942         looking up services by port number.
4943         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4944
4945         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4946         * hesiod/hesiod.h: Likewise.
4947         * hesiod/hesiod_p.h: Likewise.
4948
4949 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4950
4951         Fix problems with `struct __res_state' getting too big.
4952         * resolv/resolv.h (struct __sockaddr_in): New definition.
4953         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4954         the private parts of the structure to save some space.
4955         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4956         (struct sockaddr_in *) in call to sock_eq.
4957         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4958
4959 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4960
4961         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4962         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4963         with nodelete.
4964         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4965         to _dl_map_object.  Return immediately if no object loaded.
4966         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4967         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4968         if it exists into l_flags_1 word.
4969         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4970         it to determine whether loading is wanted or not.
4971         (_dl_map_object): Likewise.
4972         Call _dl_map_object_from_fd with new parameter.
4973         * sysdeps/generic/ldsodefs.h: Update prototype.
4974         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4975         * elf/rtld.c: Likewise.
4976         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4977         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4978         * elf/noload.c: New file.
4979         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4980         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4981         * sysdeps/mips/bits/dlfcn.h: Likewise.
4982         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4983         (tests-nodelete-yes): Define.
4984         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4985         Add rules to build nodelete and modules.
4986         * elf/nodelete.c: New file.
4987         * elf/nodelmod1.c: New file.
4988         * elf/nodelmod2.c: New file.
4989         * configure.in: Add test for -z nodelete option.
4990         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4991
4992         * libio/Makefile (tests): Add tst_wprintf2.
4993         (tst_wprintf2-ARGS): Define.
4994         * libio/tst_wprintf2.c: New file.
4995         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4996
4997         * libio/wfiledoalloc.c: Only allocate external buffer if this
4998         hasn't happened yet.
4999
5000         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
5001         something in the buffer.  gconv call can write up to end of the
5002         buffer, not only _IO_write_end.
5003         (_IO_wfile_overflow): Allocate also external buffer.
5004
5005 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
5006
5007         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
5008         strings with precision in vfwprintf correctly.
5009         * stdio-common/vfprintf.c: Fix completely broken handling of
5010         unbuffered wide character streams.
5011         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
5012
5013         * resolv/Makefile (distribute): Add README.
5014
5015         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
5016
5017 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
5018
5019         Update resolver code to BIND 8.2.3-T5B.
5020
5021         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
5022         __res_nclose.
5023         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
5024         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
5025         __res_search.
5026         * resolv/Banner: BIND-8.2.3-T5B.
5027
5028         * resolv/base64.c: Update from BIND 8.2.3-T5B.
5029         * resolv/herror.c: Likewise.
5030         * resolv/inet_addr.c: Likewise.
5031         * resolv/inet_net_ntop.c: Likewise.
5032         * resolv/inet_net_pton.c: Likewise.
5033         * resolv/inet_neta.c: Likewise.
5034         * resolv/inet_ntop.c: Likewise.
5035         * resolv/nsap_addr.c: Likewise.
5036         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
5037         IPv6 addresses (ISC bug #520).
5038
5039         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
5040         * resolv/ns_parse.c: Likewise.
5041         * resolv/ns_netint.c: Likewise.
5042         * resolv/ns_samedomain.c: Likewise.
5043         * resolv/ns_ttl.c: Likewise.
5044         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
5045         RCS ID in object file.
5046
5047         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
5048         * resolv/res_mkquery.c: Likewise.
5049         * resolv/res_query.c: Likewise.
5050         * resolv/res_init.c: Likewise.
5051         (res_setoptions): Mark internal.
5052         * resolv/res_send.c: Likewise.
5053         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
5054         by using poll instead.
5055         * resolv/res_comp.c: Likewise.
5056         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
5057         weak alias for __dn_expand.
5058         * resolv/res_data.c: Likewise.
5059         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
5060         in _res.options.  Avoids a potential security risk by avoiding a
5061         close (0).
5062         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
5063         res_mkquery, res_query, res_querydomain adn res_search weak
5064         aliases for __res_mkquery, __res_query, __res_querydomain and
5065         __res_search.
5066         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
5067         instead to avoid close(0).
5068         (res_init): Always use the static resolver context.
5069         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
5070         alias for __res_init.
5071
5072         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
5073         RES_SET_H_ERRNO and accompanying comment to...
5074         * include/resolv.h: ... here.
5075
5076         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
5077         * resolv/arpa/nameser_compat.h: Likewise.
5078
5079 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5080
5081         * nss/makedb.c (main): Compare result of load_db with
5082         NSS_STATUS_SUCCESS and not 0.
5083         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
5084
5085         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
5086
5087 2000-07-18  Greg McGary  <greg@mcgary.org>
5088
5089         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
5090         (EXTEND_BUFFER): Use it.
5091
5092 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5093
5094         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
5095         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
5096         __builtin_return_address.
5097         * dlfcn/dlopenold.c: Likewise.
5098         * dlfcn/dlsym.c: Likewise.
5099         * dlfcn/dlvsym.c: Likewise.
5100         * elf/dl-profstub.c: Likewise.
5101         * malloc/malloc.c: Likewise.
5102         * sysdeps/generic/machine-gmon.h: Likewise.
5103         Based on a patch by schwidefsky@de.ibm.com.
5104
5105 2000-07-18  Andreas Jaeger  <aj@suse.de>
5106
5107         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
5108         NULL to elf_machine_fixup_plt t argument to silence GCC.
5109
5110         * include/string.h: Add prototype for __memchr.
5111
5112         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
5113
5114         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
5115         instead of memrchr.
5116
5117 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
5120
5121         * locale/C-ctype.c: Add initializers for gap elements.
5122         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
5123         for gap elements.
5124
5125 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5126
5127         * nscd/nscd.c (print_version): Update copyright year.
5128
5129 2000-07-17  Greg McGary  <greg@mcgary.org>
5130
5131         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5132         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
5133         signature argnames with angle-brackets for use as word delimiters,
5134         and to induce syntax errors for any args not handled.  Split
5135         multi-echo echoes and comment each stage.
5136         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
5137         * sysdeps/unix/inet/syscalls.list: Likewise.
5138         * sysdeps/unix/mman/syscalls.list: Likewise.
5139         * sysdeps/unix/syscalls.list: Likewise.
5140         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5141         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5142         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5143         * sysdeps/unix/sysv/syscalls.list: Likewise.
5144         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
5145
5146         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
5147         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
5148         qualifiers.  Don't check NULL-terminator of argv & envp.
5149         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
5150         unbounded pointer type in word-size assertion.
5151         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
5152         cases to stifle warnings.
5153
5154         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
5155         _IO_file_attach.
5156         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5157
5158         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
5159         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
5160         ptr as __unbouned.
5161
5162         * Makerules (o-objects): Supplement with $(o-objects$o).
5163         * string/Makefile (o-objects.ob): Add variable to pull
5164         unbounded versions of memcpy, memset and memchr into libc_b.
5165
5166         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
5167         rather than non-existent __ubp_memchr.
5168         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
5169         (_CHECK_STRING, _CHECK_N): New macros.
5170         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
5171         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
5172         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
5173         Add weak alias "memchr".
5174         * sysdeps/generic/memchr.c: Likewise.
5175         * sysdeps/i386/memchr.S: Likewise.
5176         * sysdeps/ia64/memchr.S: Likewise.
5177         * sysdeps/m68k/memchr.S: Likewise.
5178         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5179         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5180         * sysdeps/vax/memchr.s: Likewise.
5181
5182         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
5183
5184         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
5185         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
5186         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
5187         __BOUNDED_POINTERS__.
5188         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
5189         for __BOUNDED_POINTERS__.
5190
5191 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
5192
5193         * iconv/gconv_open.c (__gconv_open): Initialize the __data
5194         field of struct __gconv_trans_data differently.  Don't pass NULL to
5195         trans_init_fct.  Simplify list append operation.
5196
5197 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
5198
5199         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
5200         not only those having tsearch.
5201
5202 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
5203
5204         * locale/langinfo.h: Add placeholder values in enum for removed
5205         LC_CTYPE entries.
5206
5207 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
5208
5209         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
5210         chain if the PHDR check fails.
5211
5212 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
5213
5214         * nss/getent.c (print_hosts): Make sure we always print a space
5215         between numeric addresses and hostnames.
5216
5217 2000-07-17  Wolfram Gloger  <wg@malloc.de>
5218
5219         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
5220         i.e. if n_mmaps_max>0.
5221
5222 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
5223
5224         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
5225         values to remove possible clash with other AI_* constants.
5226         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
5227         hexadecimal constants to stress the fact they're in fact
5228         bit flags.
5229
5230 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
5231
5232         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
5233         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
5234         instead of res_init.
5235
5236 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5237
5238         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
5239         parameters of memset calls to avoid warnings.
5240
5241 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5242
5243         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
5244         necessary.
5245
5246         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
5247         Patch by Greg McGary <greg@mcgary.org>.
5248
5249         * io/Makefile (tests): Add tst-getcwd.
5250         * io/tst-getcwd.c: New file.
5251
5252         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
5253
5254 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
5255
5256         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
5257         structure.
5258
5259 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
5260
5261         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
5262         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
5263
5264 2000-07-12  H.J. Lu  <hjl@gnu.org>
5265
5266         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
5267         GLIBC_2.2.
5268         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
5269         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
5270         (sysdep-routines): Add clone2.
5271         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
5272
5273 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
5274
5275         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
5276         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
5277
5278 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
5279
5280         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
5281         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
5282         Change type of si_band from "int" to "long".
5283         (si_imm) [USE_GNU]: Define
5284         (si_isr) [USE_GNU]: Likewise.
5285         (ILL_BREAK) [USE_GNU]: Likewise.
5286         (FPE_DECOVF) [USE_GNU]: Likewise.
5287         (FPE_DECDIV) [USE_GNU]: Likewise.
5288         (FPE_DECERR) [USE_GNU]: Likewise.
5289         (FPE_INVASC) [USE_GNU]: Likewise.
5290         (FPE_INVDEC) [USE_GNU]: Likewise.
5291         (TRAP_BRANCH) [USE_GNU]: Likewise.
5292         (TRAP_HWBKPT) [USE_GNU]: Likewise.
5293
5294 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
5295
5296         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5297         bits/sigcontext as struct mcontext does not depend on it.
5298
5299         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
5300
5301 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
5302
5303         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
5304
5305 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
5306
5307         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
5308
5309 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5310
5311         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
5312
5313 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5314
5315         * intl/Makefile (test-srcs): Add tst-translit.
5316         (tests): Likewise.
5317         Add rules to build and run tst-translit.
5318         * intl/tst-translit.c: New file.
5319         * intl/tst-translit.sh: New file.
5320         * intl/translit.po: New file.
5321
5322 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5323
5324         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
5325         transliteration function did its job, continue, don't stop.
5326
5327         * iconvdata/iso646.c: Little optimizations in body for conversion
5328         from UCS4.
5329
5330 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5331
5332         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
5333
5334 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5335
5336         * configure.in: Check for pwd binary.
5337         * config.make.in: Add PWD_P to be subsituted.
5338         * Makerules: Use $(PWD_P) instead of /bin/pwd.
5339
5340 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5341
5342         * iconvdata/Makefile (modules): Add GB18030.
5343         (distribute): Add gb18030.c.
5344         * iconvdata/gconv-modules: Add entries for GB18030 module.
5345         * iconvdata/gb18030.c: New file.
5346         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
5347         and Wu Jian.
5348
5349 2000-07-13  Andreas Jaeger  <aj@suse.de>
5350
5351         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
5352         patch.
5353
5354         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
5355         * inet/getnetgrent.c (free_mem): Likewise.
5356         * misc/mntent.c (free_mem): Likewise.
5357         * nss/getXXbyYY.c (free_mem): Likewise.
5358         * nss/getXXent.c (free_mem): Likewise.
5359         * pwd/fgetpwent.c (free_mem): Likewise.
5360         * shadow/fgetspent.c (free_mem): Likewise.
5361
5362 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5363
5364         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
5365         64-bit architecture correctly [PR libc/1794].
5366
5367 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
5368
5369         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
5370         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
5371         report that we are out of memory.
5372         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5373         * elf/dl-libc.c (dlerror_run): Likewise.
5374         * elf/dl-open.c (_dl_open): Likewise.
5375         * elf/rtld.c (dl_main): Likewise.
5376         * elf/dl-error.c: Define _dl_out_of_memory.
5377         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
5378         the error string.
5379         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
5380         [PR libc/1813].
5381
5382         * dlfcn/dlerror.c (free_key_mem): Also free error string.
5383
5384         * iconv/loop.c: Fix comment.
5385
5386         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
5387
5388 2000-07-13  Andreas Jaeger  <aj@suse.de>
5389
5390         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
5391         getcwd (NULL, size) with size > 0.
5392         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
5393
5394 2000-07-13  Andreas Jaeger  <aj@suse.de>
5395
5396         * posix/Makefile: Remove build rules for libposix.
5397
5398 2000-07-13  Andreas Schwab  <schwab@suse.de>
5399
5400         * sysdeps/generic/glob.c (glob): Fix memory leak.
5401         [SHELL]: Remove reference to undefined variable `files'.
5402         Fixes PR libc/1782.
5403
5404 2000-07-13  Andreas Jaeger  <aj@suse.de>
5405
5406         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
5407         functions.
5408
5409         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
5410         memory if it was allocated.
5411
5412 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5413
5414         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
5415         step.
5416
5417         * iconv/gconv_open.c (__gconv_open): Reapply
5418         2000-07-12 Bruno Haible <haible@clisp.cons.org>
5419
5420                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5421
5422         * iconv/gconv_open.c: Undo last two changes for now.  They break
5423         everything.
5424
5425 2000-07-12  Andreas Jaeger  <aj@suse.de>
5426
5427         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
5428         compiler.
5429         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
5430         (CFLAGS-dl-cache.c): Likewise.
5431         (CFLAGS-ldconfig.c): Added, passes directory locations.
5432
5433         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
5434         locate cache.
5435         * elf/ldconfig.c (LD_SO_CONF): Likewise.
5436         (main): Use configured LIBDIR and SLIBDIR.
5437
5438 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
5439
5440         * math/bits/cmathcalls.h (cimag): Add __THROW.
5441         (creal, conj): Likewise.
5442         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
5443         by negative value.
5444
5445 2000-07-12  H.J. Lu  <hjl@gnu.org>
5446
5447         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
5448         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
5449
5450 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5451
5452         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
5453         it is wrong.
5454
5455 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5456
5457         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5458
5459 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5460
5461         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
5462         __modname.
5463
5464 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5465
5466         * iconv/gconv_open.c (__gconv_open): Initialize
5467         result->__steps[cnt].__data.
5468
5469 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
5470
5471         * nss/getent.c (services_keys): Pass port number in network byte
5472         order in call to getservbyport.
5473
5474 2000-07-11  Andreas Jaeger  <aj@suse.de>
5475
5476         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
5477         source dir.
5478         * intl/Makefile (do-gettext-test): Likewise.
5479         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
5480
5481 2000-07-11  Andreas Schwab  <schwab@suse.de>
5482
5483         * Makeconfig (run-program-prefix): New rule.
5484         (built-program-cmd): Use run-program-prefix.
5485
5486 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5487
5488         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
5489         and NOEXPR unconditionally available.
5490
5491 2000-07-12  Greg McGary  <greg@mcgary.org>
5492
5493         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
5494         * sysdeps/posix/open64.c: Likewise.
5495         * sysdeps/generic/fegetenv.c: Likewise.
5496         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
5497         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
5498         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5499         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
5500         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
5501         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
5502
5503 2000-07-11  Greg McGary  <greg@mcgary.org>
5504
5505         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
5506         Add extra level of macro expansion.
5507         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
5508         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
5509         is available at the time `select' prototype is declared.
5510         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
5511         Collect non-versioned weak aliases.  Consider only non-versioned
5512         aliases for the user-visible systemcall name.  Do checks inline with
5513         call to primitive system call.
5514         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
5515         stand-alone bounds checks to suppress unused value warnings.
5516         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
5517
5518 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
5519
5520         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
5521         file descriptor checking in SUID programs for the Hurd.
5522
5523         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
5524         res_hostalias instead of __hostalias for thread-safety.
5525
5526 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
5527
5528         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
5529         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
5530
5531 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
5532
5533         * include/features.h: Include ISO C99 features if the compiler used
5534         is an ISO C99 compiler.
5535         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
5536
5537 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5538
5539         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
5540
5541 2000-07-10  Andreas Jaeger  <aj@suse.de>
5542
5543         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
5544         it's overridden by libpthreads.
5545         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5546         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5547         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5548         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5549         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5550
5551         * malloc/Makefile: Run tst-mtrace only with shared libs.
5552
5553         * stdio-common/Makefile: Run unbputc and tst-printf tests only
5554         with shared libs.
5555
5556 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5557
5558         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
5559         that gpreg really points to the GOT section of the calling object.
5560         Scan all PT_LOAD segments of objects for stub_pc, instead of only
5561         checking a start address of first one.
5562         Fix typos.
5563         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
5564         Likewise.
5565
5566         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
5567
5568 2000-07-10  Andreas Jaeger  <aj@suse.de>
5569
5570         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
5571         (string_alias->strong_alias).
5572
5573 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5574
5575         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
5576
5577 2000-07-07  Greg McGary  <greg@mcgary.org>
5578
5579         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
5580         have no names without leading underscores.
5581
5582 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5583
5584         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
5585         U007E.
5586
5587         * stdio-common/Makefile (tests): Remove tst-printf here...
5588         (tests-srcs): ...and add it here.
5589         (distribute): Add tst-unbputc.sh and tst-printf.sh.
5590         Add rules to run tst-printf.sh.
5591         * stdio-common/tst-printf.c: Move code around so that there is really
5592         no further output where it's stated.
5593         * stdio-common/tst-printf.sh: New file.
5594
5595 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
5596
5597         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
5598         (do_write): Renamed from pwrite.
5599         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
5600         `struct _IO_cookie_file'.
5601
5602 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5603
5604         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
5605         detected.
5606         * malloc/tst-mtrace.sh: Run mtrace script.
5607
5608 2000-07-07  Greg McGary  <greg@mcgary.org>
5609
5610         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
5611         Move all three components of a bounded pointer.
5612
5613 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5614
5615         * locale/programs/locale.c (write_locales): Don't simply add all
5616         directories found in the subdir, test whether at least the
5617         LC_CTYPE file is in there.
5618
5619 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
5620
5621         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
5622         * iconvdata/euc-kr.c: Likewise.
5623
5624         * stdio-common/vfprintf.c (process_string_arg): Check result of
5625         wcrtomb call and bail out if it failed.
5626
5627         * malloc/Makefile (test-srcs): Add tst-mtrace.
5628         (distribute): Add tst-mtrace.sh.
5629         Add rule to run tst-mtrace.sh.
5630         * malloc/tst-mtrace.c: New file.
5631         * malloc/tst-mtrace.sh: New file.
5632
5633         * include/signal.h: Declare __libc_sigaction.
5634         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
5635         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
5636         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5637         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5638         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5639         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5640         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5641
5642         * configure.in: Fix CFLAGS-memprofstat.c definition after
5643         2000-06-19 change.
5644         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
5645
5646 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
5647
5648         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
5649         instead of NULL to elf_machine_fixup_plt t argument.
5650         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5651         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
5652         cast.
5653
5654 2000-07-06  Andreas Jaeger  <aj@suse.de>
5655
5656         * crypt/Makefile (LDLIBS-cert): Removed.
5657         (LDLIBS-md5c-test): Removed.
5658         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
5659         ($(objpfx)md5c-test): Likewise for md5c-test.out.
5660
5661 2000-07-06  Andreas Jaeger  <aj@suse.de>
5662
5663         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
5664         of the proc system is "proc".
5665
5666         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
5667         thread library for static programs.
5668
5669 2000-07-06  Greg McGary  <greg@mcgary.org>
5670
5671         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
5672         New macros.
5673         * sysdeps/generic/strcpy.c: Add bounds checks.
5674         * sysdeps/unix/fxstat.c: Likewise.
5675         * sysdeps/unix/xstat.c: Likewise.
5676         * sysdeps/unix/common/lxstat.c: Likewise.
5677         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5678         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5679         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5680         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5681         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5682         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5683         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5684         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5685         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5686         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5687         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5688         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5689         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5690         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5691         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5692         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5693         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5694         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5695         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5696         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5697         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5698         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5699         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5700         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5701         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5702         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5703         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5704         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5705         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5706         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5707         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5708         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5709         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5710         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5711         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5712         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5713         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5714         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5715         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5716         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5717         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5718         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5719         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5720         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5721         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5722         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5723         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5724         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5725         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5726         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5727         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5728         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5729         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5730         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5731         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5732         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5733         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5734         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5735         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5736         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5737         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5738         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5739         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5740         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5741
5742         * string/endian.h (__LONG_LONG_PAIR): New macro.
5743         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5744         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5745         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5746         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5747         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5748         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5749         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5750         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5751         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5752         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5753         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5754         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5755
5756         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5757
5758 2000-07-06  Andreas Jaeger  <aj@suse.de>
5759
5760         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5761         Initialize result.
5762
5763         * math/test-fpucw.c: Include <stdio.h> for printf.
5764
5765 2000-07-05  Greg McGary  <greg@mcgary.org>
5766
5767         * sysdeps/generic/bp-checks.h: New file.
5768         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5769         with list of #include files.
5770         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5771         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5772         Don't generate BP thunk if `V' appears in signature.
5773         Generate thunks with complete bounds checks.
5774         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5775         * sysdeps/unix/inet/syscalls.list: Likewise.
5776         * sysdeps/unix/mman/syscalls.list: Likewise.
5777         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5778         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5779         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5780         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5781
5782 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5783
5784         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5785         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5786         If mount not in the file fall back on /proc.
5787
5788         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5789         string got copied in.
5790         Patch by Solar Designer <solar@false.com>.
5791
5792 2000-07-05  Andreas Jaeger  <aj@suse.de>
5793
5794         * manual/install.texi (Installation): Update information about
5795         add-ons.
5796         (Configuring and compiling): Update for glibc 2.2.
5797
5798 2000-07-04  Andreas Jaeger  <aj@suse.de>
5799
5800         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5801         (_FPU_IEEE): Likewise.
5802
5803         * math/Makefile (tests): Add test-fpucw.
5804
5805         * math/test-fpucw.c (main): New file.
5806
5807 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5808
5809         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5810
5811         * locale/programs/ld-collate.c (collate_output): Also write out the
5812         collation sequence values and the wide character string for the
5813         collation symbol table.
5814
5815         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5816         * posix/fnmatch_loop.c: Implement collating symbol handling.
5817         * posix/tst-fnmatch.input: Add more tests, especially for collating
5818         symbol handling.
5819
5820         * posix/regex.c: Fix comment.
5821
5822 2000-07-05  Andreas Jaeger  <aj@suse.de>
5823
5824         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5825         (_FPU_GETCW): Remove extra colon.
5826         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5827
5828         * posix/fnmatch_loop.c (FCT): Only declare len if
5829         !WIDE_CHAR_VERSION to silence GCC.
5830
5831         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5832         prototype.
5833         * sysdeps/generic/strchrnul.c: Likewise.
5834         * sysdeps/generic/strlen.c: Likewise.
5835         * sysdeps/generic/strchr.c: Likewise.
5836         * sysdeps/generic/memchr.c: Likewise.
5837
5838 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5839
5840         * posix/fnmatch_loop.c: Implement equivalence class handling.
5841         * posix/tst-fnmatch.input: Add tests for equivalence class
5842         handling.
5843
5844         * posix/fnmatch_loop.c: Improve performance for single-byte
5845         character sets by not using btowc.
5846
5847         * posix/tst-fnmatch.input: Add tests for locale dependent
5848         behaviour.
5849         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5850
5851         * posix/tst-fnmatch.input: Add more test cases.
5852
5853         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5854         are not aligned to alignof(md5_uint32) do it before calling
5855         __md5_process_bytes.
5856         * crypt/md5.c: Make sure buffers are aligned.
5857         * crypt/md5.h: Likewise.
5858         Reported by Solar Designer <solar@false.com>.
5859
5860         * crypt/Makefile: Add dependencies for test programs.
5861
5862         * Rules: Define LC_ALL=C in environments of all programs we run.
5863
5864         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5865
5866 2000-07-03  H.J. Lu  <hjl@gnu.org>
5867
5868         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5869         is 2 + elem + offset, not 2 + elem + offset + 2.
5870
5871 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5872
5873         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5874         suite.
5875         * posix/Makefile (tests): Add tst-fnmatch.
5876         (tst-fnmatch-ENV): Define.
5877         * posix/tst-fnmatch.c: New file.
5878         * posix/tst-fnmatch.sh: New file.
5879
5880 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5881
5882         * locale/programs/charmap.c (charmap_read): Prepend
5883         the condition filename == NULL.
5884
5885 2000-07-03  Greg McGary  <greg@mcgary.org>
5886
5887         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5888
5889         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5890         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5891
5892         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5893         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5894         (FILEBUF_LITERAL): Add cast for CHAIN init.
5895         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5896         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5897         Revert type of `fp' to _IO_FILE*.
5898         (_IO_iter_file): Remove cast.
5899         (_IO_iter_next): Elide intermediate member reference.
5900
5901         * sysdeps/powerpc/strchr.S:  Check bounds.
5902         Wrap extern symbols in BP_SYM ().
5903
5904 2000-07-03  Andreas Jaeger  <aj@suse.de>
5905
5906         * dlfcn/Makefile (generated): New.
5907
5908 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5909
5910         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5911         (__uflow): Likewise.
5912         (__underflow): Likewise.
5913         * libio/wgenops.c (__wunderflow): Likewise.
5914         * stdio-common/tst-unbputc.c: New file.
5915         * stdio-common/tst-unbputc.sh: New file.
5916         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5917
5918         * po/en_GB.po: New file.
5919         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5920
5921 2000-07-01  Andreas Jaeger  <aj@suse.de>
5922
5923         * intl/Makefile (generated-dirs): New.
5924
5925         * elf/Makefile (generated): trusted-dirs.h is always generated,
5926         move out of build-shared condition.
5927         (generated): Merge the two entries for build-shared.
5928
5929 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5930
5931         * debug/Makefile (distribute): Add xtrace.sh.
5932
5933 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5934
5935         * version.h (VERSION): Bump to 2.1.91.
5936
5937         * configure.in: Update warning comment.  glibc should not be
5938         broken anymore.
5939
5940         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5941         ioperm.c, sys/procfs.h, and sys/io.h.
5942
5943         * sysdeps/powerpc/Dist: Add bp-asm.h.
5944
5945         * assert/Depend: Add localedata.
5946         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5947         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5948
5949         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5950         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5951         relocation address to prevent unaligned trap.
5952         Suggested by Richard Henderson <rth@cygnus.com>.
5953
5954 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5955
5956         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5957         if redirecting and either redirection is done using defines or
5958         not optimizing.
5959
5960 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5961
5962         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5963         generated expressions.
5964         Patch by Darren McClelland <dmcclell@zetec.com>.
5965
5966         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5967         since zic uses setlocale and gettext but we cannot make it use the
5968         new locale data since zic calls a shell which might not use the
5969         new libc.
5970
5971         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5972         handling the internation currency symbol.  POSIX says that the
5973         fourth character is used to separate the currency symbol from the
5974         value.  Therefore it does not have to be printed.  But we cannot
5975         remove the space if the currency symbol is printed before the
5976         number since this is what many locales expect.
5977
5978         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5979         whether this information is available.
5980
5981         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5982         buffers in case the translation is too large.  Remember allocated
5983         memory blocks in a list.
5984         (free_mem): Free memory for translations.
5985
5986         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5987
5988         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5989         information is available set the string length to zero.
5990
5991         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5992
5993 2000-06-30  Greg McGary  <greg@mcgary.org>
5994
5995         * sysdeps/powerpc/bp-asm.h: New file.
5996         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5997         Wrap extern symbols in BP_SYM ().
5998         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5999         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
6000         * sysdeps/powerpc/setjmp.S: Likewise.
6001         * sysdeps/powerpc/add_n.S: Likewise.
6002         * sysdeps/powerpc/addmul_1.S: Likewise.
6003         * sysdeps/powerpc/lshift.S: Likewise.
6004         * sysdeps/powerpc/rshift.S: Likewise.
6005         * sysdeps/powerpc/mul_1.S: Likewise.
6006         * sysdeps/powerpc/sub_n.S: Likewise.
6007         * sysdeps/powerpc/submul_1.S: Likewise.
6008         * sysdeps/powerpc/strlen.S: Likewise.
6009         * sysdeps/powerpc/memset.S: Likewise.
6010         * sysdeps/powerpc/stpcpy.S: Likewise.
6011         * sysdeps/powerpc/strcmp.S: Likewise.
6012         * sysdeps/powerpc/strcpy.S: Likewise.
6013         * sysdeps/powerpc/elf/bzero.S: Likewise.
6014
6015         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
6016         Line up operands column with tabs.
6017
6018 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * elf/Makefile (LDFLAGS-origtest): Actually add it.
6021
6022         * sysdeps/ia64/htonl.S: New file.
6023         * sysdeps/ia64/htons.S: New file.
6024         * sysdeps/ia64/memcpy.S: Replace with version which does not use
6025         floating point registers.
6026         Patches by Dan Pop <Dan.Pop@cern.ch>.
6027
6028 2000-06-30  Andreas Jaeger  <aj@suse.de>
6029
6030         * posix/Makefile (tests): tst-exec and tst-spawn only work with
6031         shared libraries.
6032
6033         * io/Makefile (CFLAGS-test-lfs.c): New.
6034         (tests): Add test-lfs.
6035
6036         * io/test-lfs.c: New file.
6037
6038 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
6039
6040         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
6041         instruction.
6042
6043 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
6044
6045         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
6046
6047 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
6048
6049         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
6050         alias to the fstatfs call.
6051
6052         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
6053         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
6054
6055         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
6056         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
6057
6058         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
6059         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
6060         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
6061         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
6062
6063         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
6064         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
6065
6066         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
6067         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
6068
6069         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
6070         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
6071
6072         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
6073
6074 2000-06-29  Andreas Jaeger  <aj@suse.de>
6075
6076         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
6077         with syslog.
6078         (print_err_message): Likewise.
6079         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
6080
6081 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6082
6083         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
6084         used as words is properly aligned.
6085
6086         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
6087         data files.
6088
6089 2000-06-29  Greg McGary  <greg@mcgary.org>
6090
6091         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
6092         * sysdeps/unix/make-syscalls.sh: Handle signatures of
6093         length 7..9, just in case...
6094         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
6095
6096         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
6097         (POP_ERRNO_LOCATION_RETURN): Fold insns.
6098         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
6099         (PUSH_SIGNAL_MASK): New macro.
6100         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
6101         LEAVE is unnecessary.  Check bounds of jmp_buf.
6102         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
6103         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
6104         immediately before tail-call.
6105         * sysdeps/i386/setjmp.S: Likewise.
6106         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6107         * sysdeps/i386/bsd-setjmp.S: Likewise.
6108
6109 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
6110
6111         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
6112         versioned_symbol.
6113         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
6114         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
6115         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
6116         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6117         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
6118         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
6119         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
6120         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
6121
6122 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6123
6124         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
6125         we later need to calling free().
6126         Patch by Matt Wilson <msw@redhat.com>.
6127
6128         * stdio-common/tst-printf.c: Add test for above problem.
6129
6130 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
6131
6132         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
6133         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
6134
6135 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6136
6137         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
6138         prototype for abs().
6139         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
6140
6141 2000-06-23  Andreas Jaeger  <aj@suse.de>
6142
6143         * config.h.in: Don't use regparm with bounded pointers.
6144
6145 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6146
6147         * stdlib/grouping.h: Correctly handle multibyte thousands
6148         separator and decimal point.
6149         * stdlib/stdtod.c: Likewise.
6150         * sysdeps/generic/strtol.c: Likewise.
6151
6152         * locale/categories.def: Add entries for wide character decimal point
6153         and thousands separator in numeric and monetary category.
6154
6155 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6156
6157         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
6158         second definition and initialization of decimal.
6159
6160 2000-06-28  Greg McGary  <greg@mcgary.org>
6161
6162         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
6163         out.
6164         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
6165         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
6166         in.
6167         (_IO_JUMPS): Don't cast THIS--expect arg to be a
6168         (struct _IO_FILE_plus *).
6169         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
6170         THIS, since _IO_JUMPS no longer does it implicitly.
6171         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
6172         arg type as (struct _IO_FILE_plus *).
6173         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
6174         arg as (_IO_strfile *).
6175         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
6176         Declare 1st arg as (_IO_strfile *).
6177         * libio/fileops.c (_IO_new_file_init): Declare
6178         arg type as (struct _IO_FILE_plus *).
6179         * libio/oldfileops.c (_IO_old_file_init): Likewise.
6180         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
6181         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
6182         Declare iteration pointer as (struct _IO_FILE_plus *).
6183         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
6184                 (struct _IO_FILE_plus *).
6185         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
6186         * libio/oldstdfiles.c (_IO_list_all): Likewise.
6187         (_IO_check_libio): Set user-visible handles to
6188         (struct _IO_FILE_plus *).
6189         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
6190         to (struct _IO_FILE_plus *).
6191
6192         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
6193         whose high bound includes vtable to all functions that will use
6194         vtable.  For streambufs, pass pointer whose bounds include struct
6195         _IO_strfile.
6196         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
6197         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
6198         * libio/iofopen.c (_IO_new_fopen): Likewise.
6199         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6200         * libio/iofopen64.c (_IO_fopen64): Likewise.
6201         * libio/iopopen.c (_IO_new_popen): Likewise.
6202         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6203         * libio/memstream.c (open_memstream): Likewise.
6204         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6205         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
6206         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6207         * libio/iofopncook.c (_IO_cookie_init): Likewise.
6208         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
6209         * libio/vasprintf.c (_IO_vasprintf): Likewise.
6210         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6211         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6212         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6213         * stdlib/strfmon.c (__strfmon_l): Likewise.
6214         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6215         (vfprintf): Qualify computed-goto targets as unbounded.
6216
6217 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6218
6219         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
6220         thousands separator correctly.
6221
6222         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
6223         * stdio-common/vfwscanf.c: Likewise.
6224
6225 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
6226
6227         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
6228         count into signatures for most calls.
6229
6230 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6231
6232         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
6233         the generic parser now.
6234
6235 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6236
6237         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
6238         table entries are 32 bit on the ia64 (as specified by the ABI),
6239         not 64 bit as on the Alpha.
6240
6241         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
6242         change of objects to use 32 bit hash table indices (see above).
6243
6244 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6245
6246         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
6247         prototype for abs().
6248
6249 2000-06-28  Wolfram Gloger  <wg@malloc.de>
6250
6251         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
6252         fails, try mmap_chunk() as a last resort even though n_mmaps_max
6253         may have been reached.
6254
6255 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6256
6257         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
6258         symbols in multi-character weights correctly.
6259
6260         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
6261         depending on whether the input string is empty or not.
6262
6263         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
6264         given state and not avoiding this by modifying a local object.
6265         * wcsmbs/wcrtomb.c: Likewise.
6266
6267         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
6268         object since some incomplete characters might be in there.
6269
6270         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
6271         sequences with first byte 0x8e correctly.
6272
6273         * iconvdata/jis0208.h: Remove redundant test.
6274
6275 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
6276
6277         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
6278         Add it where it is needed now.
6279
6280         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
6281         the input charset into account when generating the hash table.
6282         (allocate_arrays): Correct setting default width.  Not all empty slots
6283         in the table are filled, only those not covert explicitly by the
6284         locale description and in the charset.
6285
6286         * wctype/towctrans.c (__towctrans): Be graceful and accept error
6287         return values from the wctrans function.
6288
6289         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
6290         wide character version.
6291         For %C handling, test correct pointer variable for NULL.
6292
6293         * wcsmbs/wctob.c: Handle WEOF special.
6294
6295         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
6296
6297         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
6298         always-true test to avoid warning.
6299
6300 2000-06-27  Greg McGary  <greg@mcgary.org>
6301
6302         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
6303         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
6304         (symbol_version, default_symbol_version): Factor redundant
6305         definitions out of conditional.
6306
6307 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
6308
6309         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
6310         not obstack_blank.
6311
6312 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6313
6314         * include/libc-symbols.h (symbol_version): Add extra level of
6315         macro expansion.
6316         (default_symbol_version): Likewise.
6317
6318 2000-06-26  Greg McGary  <greg@mcgary.org>
6319
6320         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
6321         for BP return value & push implicit struct-return pointer to
6322         __errno_location.
6323         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6324         (SYSCALL_ERROR_HANDLER): Likewise.
6325         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6326         (SYSCALL_ERROR_HANDLER): Likewise.
6327
6328         * Makeconfig: Add missing comment.
6329         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
6330         BP-flavored startup object.
6331         ($(objpfx)b$(start-installed-name)): New rule.
6332         * include/libc-symbols.h (symbol_set_declare): Change type
6333         of `__start_##set' and `__stop_##set' to pointer-to-function.
6334         (symbol_set_declare): Change type of `set' to array of
6335         pointer-to-function.
6336         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
6337         pointer-to-function.
6338
6339         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
6340
6341         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
6342         Remove clock_* and timer_* entries.
6343         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
6344         arg-count with signatures.
6345
6346         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
6347         Check bounds of arguments.
6348         * sysdeps/i386/addmul_1.S: Likewise.
6349         * sysdeps/i386/lshift.S: Likewise.
6350         * sysdeps/i386/mul_1.S: Likewise.
6351         * sysdeps/i386/rshift.S: Likewise.
6352         * sysdeps/i386/sub_n.S: Likewise.
6353         * sysdeps/i386/submul_1.S: Likewise.
6354         * sysdeps/i386/i586/add_n.S: Likewise.
6355         * sysdeps/i386/i586/addmul_1.S: Likewise.
6356         * sysdeps/i386/i586/lshift.S: Likewise.
6357         * sysdeps/i386/i586/rshift.S: Likewise.
6358         * sysdeps/i386/i586/sub_n.S: Likewise.
6359         * sysdeps/i386/i686/add_n.S: Likewise.
6360
6361         * sysdeps/i386/memchr.S: Likewise.
6362         * sysdeps/i386/memcmp.S: Likewise.
6363         * sysdeps/i386/rawmemchr.S: Likewise.
6364         * sysdeps/i386/i586/bzero.S: Likewise.
6365         * sysdeps/i386/i586/memcpy.S: Likewise.
6366         * sysdeps/i386/i586/mempcpy.S: Likewise.
6367         * sysdeps/i386/i586/memset.S: Likewise.
6368         * sysdeps/i386/i686/bzero.S: Likewise.
6369         * sysdeps/i386/i686/memcpy.S: Likewise.
6370         * sysdeps/i386/i686/mempcpy.S: Likewise.
6371         * sysdeps/i386/i686/memset.S: Likewise.
6372
6373         * sysdeps/i386/stpcpy.S: Likewise.
6374         * sysdeps/i386/stpncpy.S: Likewise.
6375         * sysdeps/i386/strchr.S: Likewise.
6376         * sysdeps/i386/strchrnul.S: Likewise.
6377         * sysdeps/i386/strcspn.S: Likewise.
6378         * sysdeps/i386/strpbrk.S: Likewise.
6379         * sysdeps/i386/strrchr.S: Likewise.
6380         * sysdeps/i386/strspn.S: Likewise.
6381         * sysdeps/i386/strtok.S: Likewise.
6382         * sysdeps/i386/strtok_r.S: Likewise.
6383         * sysdeps/i386/i486/strcat.S: Likewise.
6384         * sysdeps/i386/i486/strlen.S: Likewise.
6385         * sysdeps/i386/i586/strchr.S: Likewise.
6386         * sysdeps/i386/i586/strcpy.S: Likewise.
6387         * sysdeps/i386/i586/strlen.S: Likewise.
6388         * sysdeps/i386/i686/strcmp.S: Likewise.
6389         * sysdeps/i386/i686/strtok.S: Likewise.
6390         * sysdeps/i386/i686/strtok_r.S: Likewise.
6391
6392         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
6393         * sysdeps/i386/fpu/fesetenv.c: Likewise.
6394         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
6395         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
6396         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6397
6398         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
6399         * sysdeps/i386/mul_1.S: Likewise.
6400         * sysdeps/i386/submul_1.S: Likewise.
6401         * sysdeps/i386/i586/add_n.S: Likewise.
6402         * sysdeps/i386/i586/addmul_1.S: Likewise.
6403         * sysdeps/i386/i586/lshift.S: Likewise.
6404         * sysdeps/i386/i586/mul_1.S: Likewise.
6405         * sysdeps/i386/i586/rshift.S: Likewise.
6406         * sysdeps/i386/i586/sub_n.S: Likewise.
6407         * sysdeps/i386/i586/submul_1.S: Likewise.
6408
6409 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6410
6411         * rt/Makefile (librt-routines): Add clock_nanosleep.
6412         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
6413         * sysdeps/generic/clock_nanosleep.c: New file.
6414         * sysdeps/unix/clock_nanosleep.c: New file.
6415         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
6416         * time/time.h: Declare clock_nanosleep.
6417
6418 2000-06-26  Greg McGary  <greg@mcgary.org>
6419
6420         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
6421         INSN1, INSN2, TEXT, GLOBL): Remove macros.
6422         (ALIGN): Cleanup surrounding conditionals.
6423
6424         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
6425         Call ENTER/LEAVE macros.
6426         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
6427         * sysdeps/i386/submul_1.S: Likewise.
6428
6429         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
6430         syntax.  Define & use symbolic argument stack offsets.  Call
6431         ENTER/LEAVE macros.
6432         * sysdeps/i386/i586/mul_1.S: Likewise.
6433         * sysdeps/i386/i586/submul_1.S: Likewise.
6434
6435 2000-06-25  Greg McGary  <greg@mcgary.org>
6436
6437         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
6438         not as bcopy.
6439
6440 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
6441
6442         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
6443         * iconvdata/gen-8bit-gap.sh: Likewise.
6444         * iconvdata/gen-8bit.sh: Likewise.
6445
6446         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
6447
6448         * locale/programs/ld-collate.c (collate_read): Don't actually read
6449         the copy locale if we are ignoring the content.
6450
6451         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
6452         unknown character.
6453
6454         * locale/programs/ld-collate.c: Correct handling of different
6455         collation sections.
6456         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
6457         as extra parameter from which to copy category information.
6458         Change all callers.
6459         (load_locale): Likewise.
6460         * locale/programs/localedef.h: Update prototypes of add_to_readlist
6461         and load_locale.
6462         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
6463         * locale/programs/locfile.h: Likewise.
6464         * locale/programs/locfile-kw.gperf: Add entry for script.
6465         * locale/programs/locfile-token.h: Add tok_script.
6466
6467         * locale/programs/locale.c: Update copyright year.
6468         * locale/programs/localedef.c: Likewise.
6469
6470 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
6471
6472         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
6473         Jens Moeller <jens.moeller@waii.com>.
6474
6475 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
6476
6477         * locale/programs/ld-name.c (name_finish): Add missing format
6478         specifier to test for name_fmt.
6479
6480         * locale/programs/ld-address.c (iso639): Correct length of string
6481         elements.
6482         (iso3166): Likewise.
6483
6484         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
6485
6486         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
6487         Define.
6488
6489         * elf/elf.h (NT_PRFPXREG): Define.
6490
6491 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
6492
6493         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
6494         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
6495
6496 2000-06-23  Andreas Schwab  <schwab@suse.de>
6497
6498         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
6499         with signatures.
6500
6501 2000-06-23  Andreas Jaeger  <aj@suse.de>
6502
6503         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
6504
6505         * io/test-stat.c: Add copyright header, mention Maciej.
6506
6507         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
6508         SYS_mincore, SYS_madvise): Added.
6509
6510         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
6511         execve.
6512
6513 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6514
6515         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
6516         (CFLAGS-tst_putwc.c): New definition.
6517         * libio/tst_getwc.c: New file.
6518         * libio/tst_getwc.input: New file.
6519         * libio/tst_putwc.c: New file.
6520
6521         * include/string.h: Add prototype for __strdup.
6522
6523 2000-06-22  Greg McGary  <greg@mcgary.org>
6524
6525         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
6526         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
6527         Fix signatures.
6528
6529 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
6530
6531         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
6532
6533 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6534
6535         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
6536
6537 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6538
6539         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
6540         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
6541
6542 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6543
6544         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
6545         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
6546         and __S_TYPEISSHM.
6547         * sysdeps/mach/hurd/bits/stat.h: Likewise.
6548         * sysdeps/unix/bsd/bits/stat.h: Likewise.
6549         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
6550         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6551         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
6552         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
6553         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6554         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6555         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6556         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
6557         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
6558         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
6559         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
6560         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
6561         S_TYPEISSHM.
6562
6563 2000-06-22  Andreas Jaeger  <aj@suse.de>
6564
6565         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
6566         with signatures.
6567
6568         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
6569
6570         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
6571
6572 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6573
6574         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
6575         ahead.
6576
6577 2000-06-21  Greg McGary  <greg@mcgary.org>
6578
6579         * Makerules (elide-routines.*, elide-bp-thunks):
6580         Define unconditionally.
6581
6582 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6583
6584         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6585
6586 2000-06-21  Andreas Jaeger  <aj@suse.de>
6587
6588         * io/Makefile (tests): Add test-stat.
6589         (CFLAGS-test-stat.c): New.
6590
6591         * io/test-stat.c: New file from Maciej W. Rozycki
6592         <macro@ds2.pg.gda.pl>.
6593
6594 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6595
6596         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
6597         in __rlimit_resource to make them match the kernel order.
6598         rlim_t is always 64 bit, use __rlim64_t to declare it
6599         unconditionally.
6600
6601 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
6602
6603         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
6604         RLIM_INFINITY before defining it to avoid clash with kernel header
6605
6606 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
6607
6608         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
6609
6610 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6611
6612         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
6613
6614 2000-06-21  Andreas Jaeger  <aj@suse.de>
6615
6616         * stdio-common/temptest.c: Include <stdlib.h>.
6617         * stdio-common/tst-fileno.c: Likewise.
6618         * stdio-common/scanf4.c: Likewise.
6619         * stdio-common/scanf5.c: Likewise.
6620         * time/clocktest.c: Likewise.
6621         * posix/test-vfork.c: Likewise.
6622         * posix/globtest.c: Likewise.
6623         * io/test-utime.c: Likewise.
6624         * wctype/test_wcfuncs.c: Likewise.
6625         * crypt/cert.c: Likewise.
6626
6627         * stdio-common/tst-printfsz.c: Include <string.h>.
6628         * libio/tst_swscanf.c: Likewise.
6629         * libio/tst_wscanf.c: Likewise.
6630         * posix/runtests.c: Likewise.
6631         * posix/tst-getaddrinfo.c: Likewise.
6632         * posix/wordexp-test.c: Likewise.
6633         * misc/tst-efgcvt.c: Likewise.
6634
6635         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
6636         * nss/test-netdb.c: Likewise.
6637
6638         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
6639         supported kernel for MIPS.
6640
6641         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
6642         * rt/aio_suspend.c: Likewise.
6643
6644 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6645
6646         * math/libm-test.inc: Include <string.h>.
6647
6648 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6649
6650         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
6651
6652 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6653
6654         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
6655         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
6656
6657 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
6658
6659         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
6660
6661 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6662
6663         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
6664
6665 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6666
6667         * locale/programs/ld-collate.c (insert_value): Now take string and
6668         length instead of struct token* parameter.  Adjust use of token.
6669         (handle_ellipsis): Likewise.
6670         (collate_read): Allow <Uxxxx> names and transform them into names
6671         to be passed to insert_value and handle_ellipsis.
6672
6673         * locale/programs/ld-ctype.c (uninames): New array with names of
6674         digits in <Uxxxxxxxx> format.
6675         (ctype_finish): Correct search for space character value.  Likewise
6676         for default outdigits values.
6677
6678 2000-06-20  Greg McGary  <greg@mcgary.org>
6679
6680         * Makerules (objects): Add BP thunks.
6681
6682 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6683
6684         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6685         in width definitions.
6686
6687 2000-06-20  Andreas Jaeger  <aj@suse.de>
6688
6689         * sysdeps/mips/fpu/libm-test-ulps: New file.
6690
6691         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6692         first.
6693
6694         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6695
6696         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6697
6698 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6699
6700         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6701         change in gconv_builtin.h.
6702
6703         * malloc/Makefile: Change all references to memprof into memusage.
6704         * malloc/memprof.c: Rename to...
6705         * malloc/memusage.c: ...this.  New file.
6706         * malloc/memprof.sh: Rename to...
6707         * malloc/memusage.sh: ...this.  New file.
6708         * malloc/memprofstat.c: Rename to...
6709         * malloc/memusagestat.c: ...this.  New file.
6710         * sysdeps/alpha/memprof.h: Rename to..
6711         * sysdeps/alpha/memusage.h: ...this.  New file.
6712         * sysdeps/arm/memprof.h: Rename to..
6713         * sysdeps/arm/memusage.h: ...this.  New file.
6714         * sysdeps/generic/memprof.h: Rename to..
6715         * sysdeps/generic/memusage.h: ...this.  New file.
6716         * sysdeps/i386/memprof.h: Rename to..
6717         * sysdeps/i386/memusage.h: ...this.  New file.
6718         * sysdeps/ia64/memprof.h: Rename to..
6719         * sysdeps/ia64/memusage.h: ...this.  New file.
6720         * sysdeps/m68k/memprof.h: Rename to..
6721         * sysdeps/m68k/memusage.h: ...this.  New file.
6722         * sysdeps/mips/memprof.h: Rename to..
6723         * sysdeps/mips/memusage.h: ...this.  New file.
6724         * sysdeps/powerpc/memprof.h: Rename to..
6725         * sysdeps/powerpc/memusage.h: ...this.  New file.
6726         * sysdeps/sparc/memprof.h: Rename to..
6727         * sysdeps/sparc/memusage.h: ...this.  New file.
6728         * sysdeps/sh/memprof.h: Rename to..
6729         * sysdeps/sh/memusage.h: ...this.  New file.
6730
6731         * elf/sprof.c (print_version): Update year.
6732
6733         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6734         table entry values.  Use D_PTR.
6735         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6736         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6737
6738 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6739
6740         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6741         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6742         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6743         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6744
6745 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6746
6747         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6748
6749 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6750
6751         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6752         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6753         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6754
6755         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6756
6757         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6758         kernel change.
6759
6760         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6761         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6762         structure.
6763         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6764         implementation.
6765
6766 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6767
6768         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6769
6770 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6771
6772         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6773
6774 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6775
6776         * iconv/gconv_int.h (strict gconv_module): Remove all members
6777         associated with regular expressions.  Use a simple string as the
6778         from name.
6779         * iconv/gconv_db.c: Remove code handling regular expressions.
6780         * iconv/gconv_conf.c: Likewise.
6781         * iconv/iconv_prog.c: Likewise.
6782         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6783
6784         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6785         General namespace cleanup.
6786         (struct __gconv_trans_data): Add next field.
6787         (struct __gconv_step_data): Make __trans a pointer.
6788         * iconv/gconv_conf.c: Split out code to find gconv directories from
6789         __gconv_read_conf in new functions.
6790         * iconv/gconv_int.h: Define new data structure and declare new
6791         functions for handling of gconv directory list.
6792         * iconv/gconv_open.c: Allow more than one error handling step being
6793         used.  Call function to load error handling module if it is none
6794         of the builtin transformations.
6795         * iconv/gconv_close.c: Add code to free transliteration data.
6796         * iconv/gconv_trans.c: Add functions to load and unload modules
6797         implementing transliteration etc.
6798         * iconv/skeleton.c: Call all context functions now that more than
6799         one module is allowed.
6800         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6801         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6802         where the full error handling using transliteration is needed.
6803         * iconvdata/8bit-gap.c: Likewise.
6804         * iconvdata/8bit-generic.c: Likewise.
6805         * iconvdata/ansi_x3.110.c: Likewise.
6806         * iconvdata/big5.c: Likewise.
6807         * iconvdata/big5hkscs.c: Likewise.
6808         * iconvdata/euc-cn.c: Likewise.
6809         * iconvdata/euc-jp.c: Likewise.
6810         * iconvdata/euc-kr.c: Likewise.
6811         * iconvdata/euc-tw.c: Likewise.
6812         * iconvdata/gbgbk.c: Likewise.
6813         * iconvdata/gbk.c: Likewise.
6814         * iconvdata/iso-2022-cn.c: Likewise.
6815         * iconvdata/iso-2022-jp.c: Likewise.
6816         * iconvdata/iso-2022-kr.c: Likewise.
6817         * iconvdata/iso646.c: Likewise.
6818         * iconvdata/iso8859-1.c: Likewise.
6819         * iconvdata/iso_6937-2.c: Likewise.
6820         * iconvdata/iso_6937.c: Likewise.
6821         * iconvdata/johab.c: Likewise.
6822         * iconvdata/sjis.c: Likewise.
6823         * iconvdata/t.61.c: Likewise.
6824         * iconvdata/uhc.c: Likewise.
6825         * iconvdata/unicode.c: Likewise.
6826         * iconvdata/utf-16.c: Likewise.
6827         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6828         structure correctly after last change.
6829         * wcsmbs/btowc.c: Likewise.
6830         * wcsmbs/mbrtowc.c: Likewise.
6831         * wcsmbs/mbsnrtowcs.c: Likewise.
6832         * wcsmbs/mbsrtowcs.c: Likewise.
6833         * wcsmbs/wcrtomb.c: Likewise.
6834         * wcsmbs/wcsnrtombs.c: Likewise.
6835         * wcsmbs/wcsrtombs.c: Likewise.
6836         * wcsmbs/wctob.c: Likewise.
6837
6838         * localedata/Makefile: Set -Wno-format for some files since gcc does
6839         not know all the format specifiers.
6840
6841 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6842
6843         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6844         unneeded code.
6845         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6846
6847 2000-06-18  Andreas Jaeger  <aj@suse.de>
6848
6849         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6850         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6851
6852 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6853
6854         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6855         LINUX_LINK_MAX.
6856         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6857
6858         * locale/programs/ld-ctype.c (ctype_output): Really write out
6859         mboutdigits information.
6860         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6861         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6862         * localedata/tests/trans.def: Add outdigit information.
6863
6864         * localedata/tst-mbswcs3.c: Remove comment.
6865
6866         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6867         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6868         * libio/tst_wprintf.c (main): Add test for I flag.
6869
6870         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6871         * locale/langinfo.h: Add entries for translit_ignore information.
6872         * locale/categories.def: Add entries for new LC_CTYPE elements.
6873         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6874         pointer instead of "" where possible.
6875         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6876         * intl/Depend: Add localedata.
6877         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6878         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6879
6880 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6881
6882         * locale/langinfo.h: Add entries for default_missing information.
6883         * locale/C-ctype.c: Add initializers for new fields.
6884         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6885         information.
6886         * locale/categories.h: Add entries for all LC_CTYPE values.
6887         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6888         information.
6889
6890         * localedata/tst-trans.c: Write out an error message if class is
6891         not found.
6892
6893         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6894         * iconv/gconv_open.c: Remove error handling specification from `from'
6895         character set name.
6896         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6897         new parameter to always enable transliteration.
6898         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6899         change.
6900         (struct locale_data): Add new members use_translit and options.
6901         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6902         character set name contained modifier TRANSLIT.
6903         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6904         and options fields.
6905         (_nl_unload_locale): Free options string if necessary.
6906         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6907         the locale names suggested this.
6908         * locale/C-address.c: Add two new initialilzers to adjust data
6909         structure for new format.
6910         * locale/C-collate.c: Likewise.
6911         * locale/C-ctype.c: Likewise.
6912         * locale/C-identification.c: Likewise.
6913         * locale/C-measurement.c: Likewise.
6914         * locale/C-messages.c: Likewise.
6915         * locale/C-monetary.c: Likewise.
6916         * locale/C-name.c: Likewise.
6917         * locale/C-numeric.c: Likewise.
6918         * locale/C-paper.c: Likewise.
6919         * locale/C-telephone.c: Likewise.
6920         * locale/C-time.c: Likewise.
6921
6922         * locale/setlocale.c: Add some more __builtin_expect.
6923
6924 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6925
6926         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6927         unsigned char **.
6928         (__gconv_init_fct): Remove two parameters.
6929         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6930         gconv_transliterate.  Remove two parameters.
6931         Change prototypes of builtin functions according to __gconv_fct change.
6932         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6933         != NULL only during error handling.  Stop in this case after the
6934         conversion.
6935         * iconv/gconv_trans.c: Replace with real implementation for
6936         __gconv_transliterate.
6937         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6938         * iconv/gconv.c: Change calls to downstream functions once again.
6939         Use NULL for the fifth parameter instead of pointer to output buffer.
6940         * libio/iofwide.c: Likewise.
6941         * wcsmbs/btowc.c: Likewise.
6942         * wcsmbs/mbrtowc.c: Likewise.
6943         * wcsmbs/mbsnrtowcs.c: Likewise.
6944         * wcsmbs/mbsrtowcs.c: Likewise.
6945         * wcsmbs/wcrtomb.c: Likewise.
6946         * wcsmbs/wcsnrtombs.c: Likewise.
6947         * wcsmbs/wcsrtombs.c: Likewise.
6948         * wcsmbs/wctob.c: Likewise.
6949         * iconv/gconv_simple.c: Remove two parameters from error handling
6950         function call.
6951         * iconvdata/8bit-gap.c: Likewise.
6952         * iconvdata/8bit-generic.c: Likewise.
6953         * iconvdata/ansi_x3.110.c: Likewise.
6954         * iconvdata/big5.c: Likewise.
6955         * iconvdata/big5hkscs.c: Likewise.
6956         * iconvdata/euc-cn.c: Likewise.
6957         * iconvdata/euc-jp.c: Likewise.
6958         * iconvdata/euc-kr.c: Likewise.
6959         * iconvdata/euc-tw.c: Likewise.
6960         * iconvdata/gbgbk.c: Likewise.
6961         * iconvdata/gbk.c: Likewise.
6962         * iconvdata/iso-2022-cn.c: Likewise.
6963         * iconvdata/iso-2022-jp.c: Likewise.
6964         * iconvdata/iso-2022-kr.c: Likewise.
6965         * iconvdata/iso646.c: Likewise.
6966         * iconvdata/iso8859-1.c: Likewise.
6967         * iconvdata/iso_6937-2.c: Likewise.
6968         * iconvdata/iso_6937.c: Likewise.
6969         * iconvdata/johab.c: Likewise.
6970         * iconvdata/sjis.c: Likewise.
6971         * iconvdata/t.61.c: Likewise.
6972         * iconvdata/uhc.c: Likewise.
6973         * iconvdata/unicode.c: Likewise.
6974         * iconvdata/utf-16.c: Likewise.
6975
6976 2000-06-15  Greg McGary  <greg@mcgary.org>
6977
6978         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6979         of callnum assignment.  Tolerate callnum expressions containing
6980         parens.
6981
6982 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6983
6984         * login/Makefile (utmpd): Remove rule to build utmpd.
6985
6986         * csu/Versions: Move libgcc frame handling functions from here...
6987         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6988         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6989         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6990         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6991         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6992         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6993         New file.
6994         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6995
6996         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6997
6998         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6999
7000 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7001
7002         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
7003         compatibility.
7004         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
7005         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
7006         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
7007         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
7008
7009 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
7010
7011         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
7012         defined, terminate quotes and read them after the comment char.
7013         * configure.in (HAVE_SECTION_QUOTES): Test whether
7014         __attribute__((section ("x"))) puts quotes around x or not.
7015         * config.h.in (HAVE_SECTION_QUOTES): Add.
7016         * configure: Rebuilt.
7017
7018 2000-06-14  Andreas Jaeger  <aj@suse.de>
7019
7020         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
7021         depending on the configure option --sysconfdir.
7022         Closes PR libc/1762.
7023         Patch by Andreas Schwab <schwab@suse.de>.
7024
7025         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
7026         entry point.
7027         Reported by Jim Pick <jim@jimpick.com>.
7028
7029 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
7030
7031         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
7032         crashing the application.  Emit some simple error message.
7033         Reported by mju@panasas.com [PR libc/1769].
7034
7035 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7036
7037         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
7038
7039         * crypt/Makefile (distribute): Add md5.h.
7040
7041         * Makefile (distribute): Add include/shlib-compat.h.
7042
7043         * Make-dist: Search for tests also in sysdeps hierachy.
7044
7045         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
7046         ufc.c, speeds.c, README.ufc-crypt, and Banner.
7047
7048         * sysdeps/sparc/Subdirs: New file.
7049
7050         * locale/Makefile (distribute): Add weightwc.h and
7051         programs/localedef.h.
7052
7053         * time/Makefile (distribute): Add datemsk.
7054
7055         * sysdeps/ia64/Dist: Add softpipe.h.
7056
7057         * sysdeps/unix/sysv/aix/Dist: New file.
7058
7059         * posix/setpgrp.c: Moved to...
7060         * sysdeps/generic/setpgrp.c: ...here.  New file.
7061         * io/mknod.c: Moved to...
7062         * sysdeps/generic/mknod.c: ...here.  New file.
7063
7064         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
7065
7066         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
7067
7068         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
7069
7070         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
7071         gprsave0.S, gprrest1.S, and gprrest0.S.
7072
7073         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
7074
7075         * posix/Makefile (routines): Add spawnattr_getsigmask,
7076         spawnattr_getschedpolicy, spawnattr_getschedparam,
7077         spawnattr_setsigmask, spawnattr_setschedpolicy, and
7078         spawnattr_setschedparam.
7079         * posix/Versions: Add posix_spawnattr_getschedpolicy,
7080         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
7081         posix_spawnattr_setschedparam.
7082
7083         * posix/spawnattr_setschedparam.c: Fix typo.
7084
7085         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
7086         Correct typo.
7087
7088         * login/programs/utmpd.c: Removed.
7089         * login/programs/utmpd.h: Removed.
7090         * login/programs/utmpd-private.h: Removed.
7091
7092         * Makefile (distribute): Add include/db_185.h and include/db.h.
7093
7094         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
7095         iso-ir-165.h.
7096
7097         * elf/Makefile (distribute): Add missing files.
7098
7099         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
7100         * elf/eval.c: Moved to...
7101         * dlfcn/eval.c: ...here.  New file.
7102
7103         * Makefile (distribute): Also distribute ChangeLog.1?.
7104
7105         * Make-dist (+tsrcs): Remove .args handling here as well.
7106
7107         * rt/Makefile (tests): Add tst-timer.
7108         * sysdeps/generic/tst-timer.c: New file.
7109
7110         * Makerules (sources): Don't add BP sources here.
7111
7112         * login/Makefile (distribute): Remove xtmp.h.
7113
7114         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
7115         is true.  Reported by Bruno Haible <haible@ilog.fr>.
7116
7117 2000-06-13  Andreas Jaeger  <aj@suse.de>
7118
7119         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
7120         Patch by Ralf Baechle <ralf@gnu.org>.
7121
7122 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7123
7124         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
7125         for mincore syscall.
7126
7127         * misc/sys/cdefs.h: Define __bounded and __unbounded if
7128         __BOUNDED_POINTERS__ is not defined.
7129
7130 2000-06-07  Greg McGary  <greg@mcgary.org>
7131
7132         * sysdeps/generic/bp-sym.h: New file.
7133         * sysdeps/generic/bp-start.h: New file.
7134         * sysdeps/i386/elf/start.S: Designate BP symbols.
7135         * sysdeps/generic/libc-start.c: Wrap bounds around
7136         argv & envp and each of their string members.
7137
7138 2000-06-07  Greg McGary  <greg@mcgary.org>
7139
7140         * sysdeps/unix/make-syscalls.sh: Add comments to
7141         output that aid debugging & comprehension.
7142         Map simple syscall signatures to number of args.
7143         Generate BP syscall thunk definitions.
7144         * sysdeps/generic/bp-thunks.h: New file.
7145         * sysdeps/unix/syscalls.list: Replace arg-count with
7146         simple return+arg signature.
7147         * sysdeps/unix/common/syscalls.list: Likewise.
7148         * sysdeps/unix/inet/syscalls.list: Likewise.
7149         * sysdeps/unix/mman/syscalls.list: Likewise.
7150         * sysdeps/unix/sysv/syscalls.list: Likewise.
7151         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7152         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7153
7154 2000-06-07  Greg McGary  <greg@mcgary.org>
7155
7156         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
7157         for all files *.[cS].
7158         (CFLAGS-.ob): Don't optimize sibling calls.
7159         (bppfx): New variable.
7160         * Makerules (elide-bp-thunks): New variable.
7161         (elide-routines.*): Elide BP-* files for all but *.ob.
7162         (sources): Include bp-thunks.
7163
7164 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7165
7166         * iconv/gconv_simple.c: Remove unnecessary prototype.
7167
7168         * iconv/gconv_trans.c: Pretty print.
7169
7170         * elf/elf.h (R_SH_NUM): Got accidently dropped.
7171
7172         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
7173         minimal kernel versions.  Add information about IA-64 kernel.
7174
7175         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
7176         specific minimal supported kernel versions to be specified.
7177
7178         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
7179         step data structure.
7180         * wcsmbs/btowc.c: Likewise.
7181         * wcsmbs/mbrtowc.c: Likewise.
7182         * wcsmbs/mbsnrtowcs.c: Likewise.
7183         * wcsmbs/mbsrtowcs.c: Likewise.
7184         * wcsmbs/wcrtomb.c: Likewise.
7185         * wcsmbs/wcsnrtombs.c: Likewise.
7186         * wcsmbs/wcsrtombs.c: Likewise.
7187         * wcsmbs/wctob.c: Likewise.
7188
7189         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
7190         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
7191
7192         * shlib-versions: Earliest backward compatible version for SH is 2.2.
7193
7194         * misc/sys/cdefs.h: Remove one more __P.
7195
7196         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
7197         Reported by HJ Lu.
7198
7199         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
7200         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
7201         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
7202
7203 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7204             Yutaka Niibe  <gniibe@chroot.org>
7205
7206         * configure.in: Add machine sh3, sh4.
7207         * elf/elf.h: Add SH specific declarations of relocations.
7208         * shlib-versions: Add sh*-*-linux* cases.
7209
7210 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7211
7212         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
7213         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
7214         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
7215         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
7216         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
7217         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
7218
7219         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
7220         instead of KERNEL_MATH_EMULATION.
7221         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
7222         KERNEL_MATH_EMULATION.
7223
7224         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
7225         * sysdeps/sh/sh3/dl-machine.h: Moved to...
7226         * sysdeps/sh/dl-machine.h: ...here.  New file.
7227         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
7228         and include generic SH version.
7229         * sysdeps/sh/sh3/bits/endian.h: Move to...
7230         * sysdeps/sh/bits/endian.h: ...here.  New file.
7231         * sysdeps/sh/sh4/bits/endian.h: Removed.
7232         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
7233         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
7234         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
7235
7236         * include/libc-symbols.h (link_warning): Work around a change in
7237         GAS which warns about changing section attributes.
7238         Proposed by Nick Clifton <nickc@redhat.com>.
7239
7240 2000-06-12  H.J. Lu  <hjl@gnu.org>
7241
7242         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
7243
7244 2000-06-11  H.J. Lu  <hjl@gnu.org>
7245
7246         * sysdeps/i386/fpu/Versions: New file.
7247
7248 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7249
7250         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
7251         parameters.
7252         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
7253         exists.
7254
7255 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
7256
7257         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7258         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
7259         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
7260
7261         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
7262         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
7263         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
7264
7265 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7266             Yutaka Niibe  <gniibe@chroot.org>
7267
7268         * sysdeps/sh/Dist: New file.
7269         * sysdeps/sh/Implies: New file.
7270         * sysdeps/sh/elf/initfini.c: New file.
7271         * sysdeps/sh/gmp-mparam.h: New file.
7272         * sysdeps/sh/init-first.c: New file.
7273         * sysdeps/sh/machine-gmon.h: New file.
7274         * sysdeps/sh/memcpy.S: New file.
7275         * sysdeps/sh/memprof.h: New file.
7276         * sysdeps/sh/memset.S: New file.
7277         * sysdeps/sh/sh3/__longjmp.S: New file.
7278         * sysdeps/sh/sh3/bits/endian.h: New file.
7279         * sysdeps/sh/sh3/bits/huge_val.h: New file.
7280         * sysdeps/sh/sh3/bits/setjmp.h: New file.
7281         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
7282         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
7283         * sysdeps/sh/sh3/dl-machine.h: New file.
7284         * sysdeps/sh/sh3/setjmp.S: New file.
7285         * sysdeps/sh/sh4/__longjmp.S: New file.
7286         * sysdeps/sh/sh4/bits/endian.h: New file.
7287         * sysdeps/sh/sh4/bits/huge_val.h: New file.
7288         * sysdeps/sh/sh4/bits/setjmp.h: New file.
7289         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
7290         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
7291         * sysdeps/sh/sh4/dl-machine.h: New file.
7292         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
7293         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
7294         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
7295         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
7296         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
7297         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
7298         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
7299         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
7300         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
7301         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
7302         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
7303         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
7304         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
7305         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
7306         * sysdeps/sh/sh4/setjmp.S: New file.
7307         * sysdeps/sh/elf/start.S: New file.
7308         * sysdeps/sh/sys/ucontext.h: New file.
7309         * sysdeps/sh/strlen.S: New file.
7310         * sysdeps/sh/sysdep.h: New file.
7311         * sysdeps/unix/sh/sysdep.S: New file.
7312         * sysdeps/unix/sh/sysdep.h: New file.
7313         * sysdeps/unix/sysv/linux/sh/Dist: New file.
7314         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
7315         * sysdeps/unix/sysv/linux/sh/Versions: New file.
7316         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
7317         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
7318         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
7319         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
7320         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
7321         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
7322         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
7323         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
7324         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
7325         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
7326         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
7327         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
7328         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
7329         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
7330         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
7331         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
7332         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
7333         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
7334         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
7335         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
7336         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
7337         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
7338         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
7339         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
7340         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
7341         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
7342         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
7343         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
7344         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
7345         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
7346         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
7347         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
7348         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
7349         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
7350         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
7351         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
7352         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
7353         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
7354         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
7355         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
7356         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7357         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
7358         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
7359         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
7360         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
7361         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7362         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
7363
7364 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * Rules (%.out): Define GCONV_PATH in the environment.
7367         * assert/Depend: New file.
7368         * iconvdata/Depend: New file.
7369         * intl/Depend: New file.
7370         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
7371         * intl/tst-gettext.sh: Likewise.
7372         * iconv/Makefile (routines): Add gconv_trans.
7373         * iconv/gconv_trans.c: New file.
7374         * iconv/gconv.h (struct __gconv_trans_data): New type.
7375         (__gconv_fct): New parameter with starting position in output buffer.
7376         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
7377         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
7378         (struct __gconv_step): Add new member __trans.
7379         * iconv/gconv_int.h: Pretty print prototypes.
7380         (gconv_transliterate): New prototype.
7381         (__BUILTIN_TRANS): Update for new conversion function interface.
7382         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
7383         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
7384         in names, find appropriate function, and install in the conversion
7385         steps it can be used.
7386         * iconv/skeleton.c: Add additional parameter for beginning of output
7387         buffer.  Change calls of downstream functions.
7388         * iconv/loop.c: Change loop function interface completely.  Pass in
7389         step and step_data structure.  Remove optimization for BODY with
7390         NEED_LENGTH_TEST == 0.
7391         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
7392         appropriate error handling code to use transliteration steps.  Remove
7393         optimization for BODY with NEED_LENGTH_TEST == 0.
7394         * iconvdata/8bit-gap.c: Likewise.
7395         * iconvdata/8bit-generic.c: Likewise.
7396         * iconvdata/ansi_x3.110.c: Likewise.
7397         * iconvdata/big5.c: Likewise.
7398         * iconvdata/big5hkscs.c: Likewise.
7399         * iconvdata/euc-cn.c: Likewise.
7400         * iconvdata/euc-jp.c: Likewise.
7401         * iconvdata/euc-kr.c: Likewise.
7402         * iconvdata/euc-tw.c: Likewise.
7403         * iconvdata/gbgbk.c: Likewise.
7404         * iconvdata/gbk.c: Likewise.
7405         * iconvdata/iso-2022-cn.c: Likewise.
7406         * iconvdata/iso-2022-jp.c: Likewise.
7407         * iconvdata/iso-2022-kr.c: Likewise.
7408         * iconvdata/iso646.c: Likewise.
7409         * iconvdata/iso8859-1.c: Likewise.
7410         * iconvdata/iso_6937-2.c: Likewise.
7411         * iconvdata/iso_6937.c: Likewise.
7412         * iconvdata/johab.c: Likewise.
7413         * iconvdata/sjis.c: Likewise.
7414         * iconvdata/t.61.c: Likewise.
7415         * iconvdata/uhc.c: Likewise.
7416         * iconvdata/unicode.c: Likewise.
7417         * iconvdata/utf-16.c: Likewise.
7418         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
7419         DL_CALL_FCT.
7420         * wcsmbs/btowc.c: Likewise.
7421         * wcsmbs/mbrtowc.c: Likewise.
7422         * wcsmbs/mbsnrtowcs.c: Likewise.
7423         * wcsmbs/mbsrtowcs.c: Likewise.
7424         * wcsmbs/wcrtomb.c: Likewise.
7425         * wcsmbs/wcsnrtombs.c: Likewise.
7426         * wcsmbs/wcsrtombs.c: Likewise.
7427         * wcsmbs/wctob.c: Likewise.
7428
7429 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7430
7431         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
7432         other header files.  Mention about 128-byte cache line sizes.
7433         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
7434         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
7435         for current calling sequence.
7436         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
7437
7438         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
7439         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7440
7441         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
7442         and setrlimit syscalls for backwards compatibility.
7443
7444 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7445
7446         * iconv/skeleton.c:  Rename converted written to correcter name
7447         irreversible.
7448         * iconv/gconv.c: Rename converted variable to correcter name
7449         irreversible.
7450         * iconv/gconv_int.h: Likewise.
7451         * iconv/gconv_simple.c: Likewise.
7452         * iconv/iconv.c: Likewise.
7453         * iconv/loop.c: Likewise.
7454         * iconvdata/8bit-gap.c: Likewise.
7455         * iconvdata/8bit-generic.c: Likewise.
7456         * iconvdata/ansi_x3.110.c: Likewise.
7457         * iconvdata/big5.c: Likewise.
7458         * iconvdata/big5hkscs.c: Likewise.
7459         * iconvdata/euc-cn.c: Likewise.
7460         * iconvdata/euc-jp.c: Likewise.
7461         * iconvdata/euc-kr.c: Likewise.
7462         * iconvdata/gbgbk.c: Likewise.
7463         * iconvdata/gbk.c: Likewise.
7464         * iconvdata/iso-2022-cn.c: Likewise.
7465         * iconvdata/iso-2022-jp.c: Likewise.
7466         * iconvdata/iso-2022-kr.c: Likewise.
7467         * iconvdata/iso646.c: Likewise.
7468         * iconvdata/iso8859-1.c: Likewise.
7469         * iconvdata/iso_6937-2.c: Likewise.
7470         * iconvdata/iso_6937.c: Likewise.
7471         * iconvdata/johab.c: Likewise.
7472         * iconvdata/sjis.c: Likewise.
7473         * iconvdata/t.61.c: Likewise.
7474         * iconvdata/uhc.c: Likewise.
7475         * iconvdata/unicode.c: Likewise.
7476         * iconvdata/utf-16.c: Likewise.
7477
7478         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
7479         __cmsg_data field with __extension__.
7480
7481 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
7482
7483         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
7484
7485 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7486
7487         * iconv/gconv_simple.c: Fix various small bugs in several
7488         functions.
7489
7490         * iconv/loop.c: Fix comment.
7491
7492 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
7493
7494         * elf/link.h: Remove libc internal declarations.
7495         * include/link.h: Move them here.
7496
7497 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7498
7499         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
7500         Patch by Dan Pop <Dan.Pop@cern.ch>.
7501
7502         Rewrite error message handling.
7503         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
7504         _dl_catch_error.
7505         * elf/dl-error (struct catch): Add objname member.
7506         (_dl_signal_error): Take new parameter with object name.  When
7507         passing message on simply store object name and duplicate error
7508         message.
7509         (_dl_catch_error): Take new parameter.  Store object name in the
7510         place pointed to.
7511         * include/dlfcn.h: Adjust _dl_catch_error prototype.
7512         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
7513         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
7514         (dlerror): Add objname to asprintf() parameters.
7515         (_dl_error_run): Pass new parameter to _dl_catch_error.
7516         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
7517         * elf/dl-open.c (_dl_open): Likewise.
7518         * elf/rtld.c (dl_main): Likewise.
7519         * elf/dl-close.c: Mark error messages with N_().
7520         * elf/dl-deps.c: Likewise.
7521         * elf/dl-error.c: Likewise.
7522         * elf/dl-load.c: Likewise.
7523         * elf/dl-open.c: Likewise.
7524         * elf/dl-reloc.c: Likewise.
7525         * elf/dl-support.c: Likewise.
7526         * elf/dl-sym.c: Likewise.
7527         * elf/dl-version.c: Likewise.
7528         * elf/dl-lookup.c: Add comments about problems with error message
7529         translations.
7530         * elf/dl-reloc.c: Likewise.
7531         * elf/dl-version.c: Likewise.
7532
7533 2000-06-09  H.J. Lu  <hjl@gnu.org>
7534
7535         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
7536         after freeing it.
7537
7538         * dlfcn/Makefile (distribute): Add failtestmod.c.
7539         (tests): Add failtest.
7540         Add rules to build and run failtest.
7541         * dlfcn/failtest.c: New file.
7542         * dlfcn/failtestmod.c: New file.
7543
7544 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
7545
7546         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
7547         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
7548         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
7549         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
7550         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
7551
7552 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7553
7554         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
7555         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
7556
7557 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7558             Ulrich Drepper  <drepper@redhat.com>
7559
7560         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
7561         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
7562         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
7563         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
7564         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
7565         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
7566
7567 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7568
7569         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
7570         to find correct mount point despite wrong information from the
7571         kernel.
7572
7573 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7574
7575         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
7576         the address of a symbol so function pointers are handled properly.
7577
7578 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7579
7580         * sysdeps/i386/Dist: Add bp-asm.h.
7581
7582         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
7583         defaultdir variable instead of "/var/shm" everywhere.
7584         (defaultdir): Change to /dev/shm/.
7585
7586 2000-06-08  Greg McGary  <greg@mcgary.org>
7587
7588         * sysdeps/i386/bp-asm.h: New file.
7589         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
7590         offsets.  Add ENTER/LEAVE macros for optionally maintaining
7591         frame-pointer chain when debugging.
7592         * sysdeps/i386/add_n.S: Likewise.
7593         * sysdeps/i386/addmul_1.S: Likewise.
7594         * sysdeps/i386/lshift.S: Likewise.
7595         * sysdeps/i386/memchr.S: Likewise.
7596         * sysdeps/i386/memcmp.S: Likewise.
7597         * sysdeps/i386/mul_1.S: Likewise.
7598         * sysdeps/i386/rawmemchr.S: Likewise.
7599         * sysdeps/i386/rshift.S: Likewise.
7600         * sysdeps/i386/stpcpy.S: Likewise.
7601         * sysdeps/i386/stpncpy.S: Likewise.
7602         * sysdeps/i386/strchr.S: Likewise.
7603         * sysdeps/i386/strchrnul.S: Likewise.
7604         * sysdeps/i386/strcspn.S: Likewise.
7605         * sysdeps/i386/strpbrk.S: Likewise.
7606         * sysdeps/i386/strrchr.S: Likewise.
7607         * sysdeps/i386/strspn.S: Likewise.
7608         * sysdeps/i386/strtok.S: Likewise.
7609         * sysdeps/i386/sub_n.S: Likewise.
7610         * sysdeps/i386/submul_1.S: Likewise.
7611         * sysdeps/i386/elf/setjmp.S: Likewise.
7612         * sysdeps/i386/i486/strcat.S: Likewise.
7613         * sysdeps/i386/i486/strlen.S: Likewise.
7614         * sysdeps/i386/i586/add_n.S: Likewise.
7615         * sysdeps/i386/i586/lshift.S: Likewise.
7616         * sysdeps/i386/i586/memcpy.S: Likewise.
7617         * sysdeps/i386/i586/memset.S: Likewise.
7618         * sysdeps/i386/i586/rshift.S: Likewise.
7619         * sysdeps/i386/i586/strchr.S: Likewise.
7620         * sysdeps/i386/i586/strcpy.S: Likewise.
7621         * sysdeps/i386/i586/strlen.S: Likewise.
7622         * sysdeps/i386/i586/sub_n.S: Likewise.
7623         * sysdeps/i386/i686/add_n.S: Likewise.
7624         * sysdeps/i386/i686/memcpy.S: Likewise.
7625         * sysdeps/i386/i686/mempcpy.S: Likewise.
7626         * sysdeps/i386/i686/memset.S: Likewise.
7627         * sysdeps/i386/i686/strcmp.S: Likewise.
7628
7629 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7630
7631         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
7632
7633         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
7634         256 and don't use OPEN_MAX.
7635
7636         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
7637         use it instead of LINK_MAX.
7638         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7639
7640 2000-06-08  Andreas Jaeger  <aj@suse.de>
7641
7642         * libio/genops.c (_IO_list_lock): Only compile body if we're
7643         thread safe.
7644         (_IO_list_unlock): Likewise.
7645         (_IO_list_resetlock): Likewise.
7646
7647 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7648
7649         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
7650         unless user defined it.
7651
7652         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
7653         if not defined by the user.
7654
7655         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
7656         * libio/iofwrite.c (_IO_fwrite): Likewise.
7657
7658         * time/time.h: Add missing __THROW for clock_getcpuclockid
7659         prototype.
7660
7661         * elf/Makefile (distribute): Add dl-dtprocnum.h.
7662         * include/elf.h: Include also <dl-dtprocnum.h>.
7663         * elf/dl-deps.c: Likewise.
7664         * elf/dl-lookup.c: Likewise.
7665         * elf/dl-runtime.c: Likewise.
7666         * elf/dl-version.c: Likewise.
7667         * elf/do-rel.h: Likewise.
7668         * elf/dynamic-link.h: Likewise.
7669         * elf/link.h: Likewise.
7670         * elf/rtld.c: Likewise.
7671         * sysdeps/generic/dl-dtprocnum.h: New file.
7672         * sysdeps/ia64/dl-dtprocnum.h: New file.
7673         * sysdeps/mips/dl-dtprocnum.h: New file.
7674         * sysdeps/sparc/dl-dtprocnum.h: New file.
7675
7676         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
7677
7678         * elf/do-lookup.h: Add some __builtin_expect.
7679
7680         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7681
7682         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7683         (_dl_dynamic_weak): New variable.
7684         * elf/dl-support.c: Likewise.
7685         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7686         * elf/do-lookup.h: If we find a weak definition treat it like a
7687         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7688         case treat it like before.
7689
7690         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7691         is in main program.
7692         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7693
7694         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7695         using l_map_start and l_map_end.
7696
7697         * elf/dl-version.c: Add __builtin_expect in many places.
7698
7699         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7700         Update.
7701
7702 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7703
7704         Lock for stdio stream list becomes global, for use in LinuxThreads.
7705
7706         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7707         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7708         _IO_list_resetlock): New interface for iterating global list of
7709         streams without accessing the _IO_list_all global variable,
7710         and for manipulating the lock which protects this list.
7711         * libio/libioP.h: Likewise.
7712         * libio/Version: Add entries for the new functions.
7713
7714         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7715         pointer to _IO_FILE.
7716
7717 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7718
7719         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7720         BIT() must actually be BITw().
7721
7722         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7723
7724         * locale/programs/charmap.c: Allow string arguments for
7725         code_set_name and repertoiremap.
7726
7727 2000-06-07  Andreas Jaeger  <aj@suse.de>
7728
7729         * elf/Makefile: Build ldconfig only when building shared libraries.
7730
7731 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7732
7733         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7734         __USE_ISOC99.
7735         (fdimf, __fdim, fdim): Likewise.
7736
7737 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7738
7739         * locale/findlocale.c: Add __builtin_expect in many places.
7740         * locale/loadlocale.c: Likewise.
7741
7742 2000-06-06  Greg McGary  <greg@mcgary.org>
7743
7744         * sysdeps/mips/elf/start.S: Trim redundant code.
7745
7746         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7747         Use C comments throughout.  Line up operands column with tabs.
7748         * sysdeps/powerpc/strchr.S: Likewise.
7749         * sysdeps/powerpc/strcmp.S: Likewise.
7750         * sysdeps/powerpc/strcpy.S: Likewise.
7751         * sysdeps/powerpc/strlen.S: Likewise.
7752
7753         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7754         Get low part of &__curbrk with @l.
7755
7756 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7759         * iconvdata/unicode.c: Likewise.
7760         * iconvdata/uhc.c: Likewise.
7761         * iconvdata/t.61.c: Likewise.
7762         * iconvdata/sjis.c: Likewise.
7763         * iconvdata/johab.c: Likewise.
7764         * iconvdata/iso_6937.c: Likewise.
7765         * iconvdata/iso_6937-2.c: Likewise.
7766         * iconvdata/iso8859-1.c: Likewise.
7767         * iconvdata/iso646.c: Likewise.
7768         * iconvdata/iso-2022-kr.c: Likewise.
7769         * iconvdata/iso-2022-jp.c: Likewise.
7770         * iconvdata/iso-2022-cn.c: Likewise.
7771         * iconvdata/gbgbk.c: Likewise.
7772         * iconvdata/gbk.c: Likewise.
7773         * iconvdata/euc-kr.c: Likewise.
7774         * iconvdata/euc-jp.c: Likewise.
7775         * iconvdata/euc-cn.c: Likewise.
7776
7777 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7778
7779         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7780         * iconvdata/big5.c: Likewise.
7781         * iconvdata/ansi_x3.110.c: Likewise.
7782         * iconvdata/8bit-generic.c: Likewise.
7783         * iconvdata/8bit-gap.c: Likewise.
7784         * iconv/loop.c: Likewise.
7785         * iconv/gconv_db.c: Likewise.
7786         * iconv/gconv_dl.c: Likewise.
7787         * iconv/gconv_simple.c: Likewise.
7788         * iconv/skeleton.c: Likewise.
7789
7790         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7791         (struct __gconv_step_data): Rename __is_last to __flags.
7792         * iconv/gconv_close.c: Change all uses of __is_last.
7793         * iconv/skeleton.c: Likewise.
7794         * iconvdata/iso-2022-cn.c: Likewise.
7795         * iconvdata/iso-2022-jp.c: Likewise.
7796         * iconvdata/iso-2022-kr.c: Likewise.
7797         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7798         Recognize IGNORE error handling, set flag, and remove from name.
7799         * iconv/loop.c (ignore_errors_p): Define.
7800         Add flags parameter to both functions.
7801         * iconv/skeleton.c: Pass flags to all conversion functions.
7802         * iconv/gconv_simple.c: Add flags parameter to all functions.
7803         Don't return error for invald error if ignore flag is set.
7804         (ucs4_internal_loop_single): Add missing pointer increment.
7805         (internal_ucs4le_loop_single): Likewise.
7806         * iconv/iconv_prog.c: Implement handling of -c parameter.
7807         * iconvdata/8bit-gap.c: Don't return error for invald error if
7808         ignore flag is set.
7809         * iconvdata/8bit-generic.c: Likewise.
7810         * iconvdata/ansi_x3.110.c: Likewise.
7811         * iconvdata/big5.c: Likewise.
7812         * iconvdata/big5hkscs.c: Likewise.
7813         * iconvdata/euc-cn.c: Likewise.
7814         * iconvdata/euc-jp.c: Likewise.
7815         * iconvdata/euc-kr.c: Likewise.
7816         * iconvdata/gbgbk.c: Likewise.
7817         * iconvdata/gbk.c: Likewise.
7818         * iconvdata/iso-2022-cn.c: Likewise.
7819         * iconvdata/iso-2022-jp.c: Likewise.
7820         * iconvdata/iso-2022-kr.c: Likewise.
7821         * iconvdata/iso646.c: Likewise.
7822         * iconvdata/iso8859-1.c: Likewise.
7823         * iconvdata/iso_6937-2.c: Likewise.
7824         * iconvdata/iso_6937.c: Likewise.
7825         * iconvdata/johab.c: Likewise.
7826         * iconvdata/sjis.c: Likewise.
7827         * iconvdata/t.61.c: Likewise.
7828         * iconvdata/uhc.c: Likewise.
7829         * iconvdata/unicode.c: Likewise.
7830         * iconvdata/utf-16.c: Likewise.
7831         * libio/fileops.c: Likewise.
7832         * libio/iofwide.c: Likewise.
7833         * wcsmbs/btowc.c: Likewise.
7834         * wcsmbs/mbrtowc.c: Likewise.
7835         * wcsmbs/mbsnrtowcs.c: Likewise.
7836         * wcsmbs/mbsrtowcs.c: Likewise.
7837         * wcsmbs/wcrtomb.c: Likewise.
7838         * wcsmbs/wcsnrtombs.c: Likewise.
7839         * wcsmbs/wcsrtombs.c: Likewise.
7840         * wcsmbs/wctob.c: Likewise.
7841
7842         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7843         an error.
7844
7845 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7846
7847         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7848         counter for the object we are releasing, just decrement it.
7849         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7850
7851 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7852
7853         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7854         if -ffast-math.
7855
7856 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7857
7858         * iconvdata/big5hkscs.c: New file.
7859         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7860
7861         * iconvdata/gconv-modules: Add entry for new module.
7862         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7863         (distribute): Add big5hkscs.c.
7864
7865 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7866
7867         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7868         inlines to match prototypes in mathcalls.h.
7869         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7870         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7871         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7872         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7873
7874 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7875
7876         * elf/elf.h (SHT_SUNW_move): Define.
7877
7878         * elf/elf.h: Add more Solaris compatiblity definitions.
7879
7880 2000-06-03  Andreas Jaeger  <aj@suse.de>
7881
7882         * sysdeps/powerpc/dl-start.S: Close open comment.
7883
7884 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7885
7886         * inet/Versions: Fix typo in rresvport_af export.
7887
7888 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7889
7890         * math/tgmath.h: Pretty print.
7891
7892 2000-06-02  Andreas Jaeger  <aj@suse.de>
7893
7894         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7895         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7896
7897 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7898
7899         * elf/rtld.c (process_envvars): Test for = after variable name.
7900
7901 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7902
7903         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7904         have extra call to __gmon_start__, use the pointer we already have.
7905
7906         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7907         shifting.
7908
7909         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7910         binutils.  gas now emits a jump through the PLT instead of a
7911         relative jump if the jump target is an exported symbol.
7912
7913 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7914
7915         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7916
7917 2000-05-31  Andreas Jaeger  <aj@suse.de>
7918
7919         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7920         gregset_t.
7921
7922         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7923         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7924
7925         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7926         syscall.
7927         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7928
7929 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7930
7931         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7932
7933         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7934         * locale/localeconv.c: Make function versioned (with same definition).
7935
7936         * elf/Makefile (modules-names): Strip before using it.
7937
7938 2000-05-30  Andreas Jaeger  <aj@suse.de>
7939
7940         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7941         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7942         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7943         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7944         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7945         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7946
7947 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7948
7949         * Makefile: Add GNU make magic.
7950
7951         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7952         Removed.
7953         * inet/rcmd.c: Remove __P.  Remove unused variables.
7954         (iruserfopen): Make first parameter const.
7955         (ruserok_sa): Return result of ruserok2_sa.
7956         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7957         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7958         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7959         (ruserpass): Check results of memory allocation.
7960         * include/netdb.h: Add prototype for ruserpass.
7961
7962 2000-05-29  Andreas Jaeger  <aj@suse.de>
7963
7964         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7965         for all platforms.
7966
7967 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7968
7969         * inet/rcmd.c (rresvport_af): Use correct port number.
7970
7971 2000-05-26  Andreas Schwab  <schwab@suse.de>
7972
7973         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7974         entries in all-sonames.
7975         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7976         preserving the old name if different for compatibility.
7977
7978 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7979
7980         * posix/Makefile (tests): Add tst-spawn.
7981         (tst-spawn-ARGS): New variable.
7982         * posix/tst-spawn.c: New file.
7983
7984         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7985         * posix/spawn_faction_adddup2.c: Likewise.
7986         * posix/spawn_faction_addopen.c: Likewise.
7987         * posix/spawni.c: Correctly test for success of dup2 calls.
7988
7989         * posix/tst-preadwrite.c: Check success of malloc call.
7990
7991 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7992
7993         * posix/Makefile (tests): Add tst-exec.
7994         (tst-exec-ARGS): New variable.
7995         * posix/tst-exec.c: New file.
7996
7997         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7998
7999 2000-05-04  Andreas Jaeger  <aj@suse.de>
8000
8001         * string/string.h: Remove __strdup prototype, it's not needed in
8002         this file anymore.
8003
8004 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8005
8006         * posix/Makefile (tests): Add tst-fork.
8007         * posix/tst-fork.c: New file.
8008
8009         * resolv/inet_pton.c: Loose __P.
8010
8011 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8012
8013         * libio/libioP.h (_IO_CHECK_WIDE): Define.
8014         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
8015         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8016         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
8017         _IO_CHECK_WIDE fails.
8018
8019 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8020
8021         * po/da.po: New file.
8022
8023         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
8024         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
8025
8026         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
8027         (Other iconv Implementations): Fix typo.
8028         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
8029
8030 2000-05-27  Andreas Jaeger  <aj@suse.de>
8031
8032         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
8033         normal version now.
8034         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
8035         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8036         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
8037         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8038         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
8039         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
8040
8041         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
8042         endianness to decide how to pass arguments.
8043         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
8044
8045         * elf/vismain.c: Use test-skeleton interface.
8046         (TEST_FUNCTION): New macro.
8047         (do_test): Renamed from main.
8048
8049 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
8050
8051         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
8052         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
8053
8054         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
8055         handling of AI_V4MAPPED flag.
8056
8057         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
8058         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
8059         perform lookup for T_A type and tell getanswer_r to convert the
8060         result with new argument.
8061         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
8062         Don't convert addresses from IPv4 to IPv6 here.
8063         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
8064         IPv6 is wanted.  Allow qtype and type from reply to disagree if
8065         IPv4 mapping has to be done.  Perform mappings if required by the
8066         caller and not if RES_USE_INET6 bit in _res.options is set.
8067         Add several __builtin_expect.
8068
8069 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
8070
8071         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
8072
8073         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
8074         NULL.
8075
8076         * posix/tst-preadwrite.c: Allow parallel execution of
8077         tst-preadwrite and tst-preadwrite64.
8078
8079         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
8080         * posix/tst-truncate.c: New file.
8081         * posix/tst-truncate64.c: New file.
8082
8083         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
8084         was switched.
8085
8086         * posix/Makefile (tests): Add tst-preadwrite64.
8087         * posix/tst-preadwrite.c: Alloc file being used also for testing
8088         pread64 and pwrite64.
8089         * posix/tst-preadwrite64.c: New file.
8090
8091 2000-05-26  Andreas Jaeger  <aj@suse.de>
8092
8093         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
8094         of arguments dependend on endianness.
8095         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
8096
8097         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
8098         normal version now.
8099         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
8100         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
8101         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8102         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8103
8104         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
8105         endianness to check how to pass argument.
8106         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
8107
8108         * elf/ldconfig.h: Update parameter list for process_elf_file.
8109
8110         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
8111         Add parameter file_length and pass it ot process_elf*file.
8112
8113         * sysdeps/generic/readelflib.c (check_ptr): New.
8114         (process_elf_file): Use check_ptr to check all accesses to the
8115         mmapped file. Add parameter file_length.
8116
8117         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
8118         library names.
8119
8120         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
8121         Closes PR libc/1573, reported by Bradley White
8122         <bww@laurelnetworks.com>.
8123
8124 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
8125
8126         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
8127         __FAST_MATH__ is defined.
8128
8129 2000-05-22  Andreas Jaeger  <aj@suse.de>
8130
8131         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
8132         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
8133
8134         * manual/math.texi (FP Function Optimizations): Document gcc
8135         -ffast-math behaviour with mathinlines.
8136
8137         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
8138         functions unless -ffast-math is given to gcc.
8139
8140 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
8141
8142         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
8143         __sincosl): Guard with __USE_GNU.
8144
8145 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
8146
8147         * csu/Makefile (routines): Add check_fds.
8148         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
8149         binaries.  Add various __builtin_expect.
8150         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
8151         * sysdeps/generic/check_fds.c: ...here.  New file.
8152
8153         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
8154         binaries if file /etc/suid-debug is available.
8155
8156         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
8157         and wcseqorder members.
8158         (struct locale_collate_t): Likewise.
8159         (collate_finish): Assign collation sequence value to each character.
8160         Create tables for output.
8161         (collate_output): Write out tables with collation sequence information.
8162         * locale/C-collate.c: Provide C locale data for collation sequence
8163         table.
8164         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
8165         _NL_COLLATE_COLLSEQWC.
8166         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
8167         _NL_COLLATE_COLLSEQWC.
8168         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
8169         include fnmatch_loop.c.
8170         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
8171         character is matched by range expression.  Use collation sequence
8172         table.  Outside glibc fall back on simple character value comparison.
8173
8174 2000-05-24  Andreas Jaeger  <aj@suse.de>
8175
8176         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
8177         words.
8178
8179         * intl/Makefile: Run gettext-test only if msgfmt is available.
8180
8181         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
8182         Define it for newer kernels.
8183
8184 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
8185
8186         * elf/dl-sym.c: Minor cleanups.
8187
8188         * configure.in: Add test for .protected.
8189         * config.make.in: Add have-protected variable.
8190         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
8191         (tests-vis-yes): Add vismain.
8192         (modules-names): Add $(modules-vis-$(have-protected)).
8193         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
8194         Add rules to generate and run vismain.
8195         * elf/vismain.c: New file.
8196         * elf/vismod1.c: New file.
8197         * elf/vismod2.c: New file.
8198         * elf/vismod3.c: New file.
8199
8200 2000-05-23  Andreas Jaeger  <aj@suse.de>
8201
8202         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
8203
8204         * manual/search.texi (Array Sort Function): Document that qsort is
8205         not necessarily in-place.
8206
8207         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8208         Closes PR libc/1731.
8209
8210         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
8211         * dirent/scandir64.c: Likewise.
8212         * pwd/getpw.c: Likewise.
8213         * stdlib/bsearch.c (bsearch): Likewise.
8214         * stdlib/tst-strtoll.c: Likewise.
8215         * localedata/collate-test.c: Likewise.
8216         * localedata/xfrm-test.c: Likewise.
8217         * posix/bsd-getpgrp.c: Likewise.
8218         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
8219         * sysdeps/generic/bits/siginfo.h: Likewise.
8220         * sysdeps/generic/bits/sockaddr.h: Likewise.
8221         * sysdeps/generic/sys/swap.h: Likewise.
8222         * sysdeps/generic/sys/sysinfo.h: Likewise.
8223         * sysdeps/generic/vfork.c: Likewise.
8224         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
8225         * sysdeps/mach/hurd/fdopen.c: Likewise.
8226         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
8227         * sysdeps/unix/sysv/linux/poll.c: Likewise.
8228         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8229         * sysdeps/unix/sysv/linux/writev.c: Likewise.
8230         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8231         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
8232         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
8233
8234         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
8235         * shadow/lckpwdf.c: Likewise.
8236         * stdlib/tst-strtol.c: Likewise.
8237         * sysdeps/generic/tcsetattr.c: Likewise.
8238         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8239         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8240
8241 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
8242
8243         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
8244         free it and set to (void *) -1.
8245
8246 2000-05-22  Jakub Jelinek <jakub@redhat.com>
8247
8248         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
8249         not the second character in the range.
8250         * stdio-common/tstscanf.c (main): Add testcase for the above.
8251         Reported by jik@kamens.brookline.ma.us.
8252
8253 2000-05-21  H.J. Lu  <hjl@gnu.org>
8254
8255         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
8256         with noexec and noplt parameter.
8257         (do_lookup): Likewise.
8258
8259         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
8260         do_lookup.  Support STV_PROTECTED.
8261         (_dl_lookup_symbol_skip): Likewise.
8262         (_dl_lookup_versioned_symbol): Likewise.
8263         (_dl_lookup_versioned_symbol_skip): Likewise.
8264
8265         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
8266
8267         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
8268
8269 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8270
8271         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
8272         * sysdeps/i386/bits/huge_val.h: Likewise.
8273         * sysdeps/ieee754/bits/huge_val.h: Likewise.
8274         * sysdeps/m68k/bits/huge_val.h: Likewise.
8275         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
8276         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
8277
8278 2000-05-22  Andreas Jaeger  <aj@suse.de>
8279
8280         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
8281         change in iconv.h.
8282
8283 2000-05-19  Andreas Jaeger  <aj@suse.de>
8284
8285         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
8286         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
8287         breaks compilation without linuxthreads.
8288
8289 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8290
8291         * sysdeps/ia64/memccpy.S: New file.
8292         * sysdeps/ia64/memchr.S: New file.
8293         * sysdeps/ia64/memcmp.S: New file.
8294         * sysdeps/ia64/memcpy.S: New file.
8295         * sysdeps/ia64/memmove.S: New file.
8296         * sysdeps/ia64/memset.S: New file.
8297         * sysdeps/ia64/strcat.S: New file.
8298         * sysdeps/ia64/strchr.S: New file.
8299         * sysdeps/ia64/strcmp.S: New file.
8300         * sysdeps/ia64/strcpy.S: New file.
8301         * sysdeps/ia64/strlen.S: New file.
8302         * sysdeps/ia64/strncmp.S: New file.
8303         * sysdeps/ia64/strncpy.S: New file.
8304         * sysdeps/ia64/softpipe.h: New file.
8305         Patches by Dan Pop <Dan.Pop@cern.ch>.
8306
8307         * manual/memory.texi: Document memory handling functions (mlock,
8308         munlock, mlockall, munlockall, brk, and sbrk)
8309         * manual/time.texi: Document timespec and friends.
8310         * manual/conf.texi: Fix references.
8311         * manual/ctype.texi: Likewise.
8312         * manual/errno.texi: Likewise.
8313         * manual/intro.texi: Likewise.
8314         * manual/locale.texi: Likewise.
8315         * manual/sysinfo.texi: Likewise.
8316         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8317
8318 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
8319
8320         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
8321         * sysdeps/ia64/dl-lookupcfg.h: ...here.
8322
8323 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8324
8325         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
8326         dxfer_direction.
8327
8328 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8329
8330         * locale/locale.h (struct lconv): Add new elements from ISO C99.
8331         * locale/localeconv.c: Initialize new elements from ISO C99.
8332         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
8333         new standard elements.
8334         * locale/categories.def: Adjust accordingly.
8335
8336         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
8337         * iconv/iconv.c: Likewise.
8338         * conform/data/iconv.h-data: Likewise.
8339         * iconv/iconv_prog.c (process_block): Remove const from second
8340         parameter.
8341         (main): Remove const from addr definition.
8342         * manual/charset.texi (Generic Conversion Interface): Remove from
8343         inbuf parameter of iconv.
8344
8345         * intl/dcigettext.c: Fix typo in comment.
8346
8347 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
8348
8349         * resolv/res_libc.c (_res): Initialize _sock to -1.
8350
8351 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
8352
8353         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
8354         (fopencookie@@GLIBC_2.2): New.
8355         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
8356         (fopencookie@GLIBC_2.0): New.
8357         * libio/Versions: Add fopencookie to GLIBC_2.2.
8358
8359 2000-05-18  Andreas Jaeger  <aj@suse.de>
8360
8361         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8362         Closes PR libc/1731.
8363
8364         * manual/arith.texi (Parsing of Integers): Fix typo.
8365         Closes PR libc/1744, reported by blp@gnu.org.
8366
8367 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8368
8369         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
8370         __extension__ to hexadecimal floating constant notation.
8371         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8372         Likewise.
8373         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
8374         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8375         Likewise.
8376         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8377         HUGE_VALL): Likewise.
8378         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8379         HUGE_VALL): Likewise.
8380         (HUGE_VALL): Set to HUGE_VAL on sparc32.
8381
8382 2000-05-17  Andreas Jaeger  <aj@suse.de>
8383
8384         * string/envz.h: Add pure attributes if possible.
8385
8386         * string/argz.h: argz_count is a pure function.
8387
8388         * string/strings.h: Add pure and const attributes if possible.
8389
8390         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
8391         possibly searching through the whole memory.
8392         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
8393
8394 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8395
8396         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
8397         not yet defined.
8398         (_dl_cache_check_flags): Likewise.
8399         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
8400         dl-cache.h.
8401
8402 2000-05-17  Andreas Jaeger  <aj@suse.de>
8403
8404         * manual/creature.texi (Feature Test Macros): Remove paragraph
8405         since the description is wrong.
8406         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
8407
8408         * scripts/config.sub: New version.
8409         * scripts/config.guess: Likewise.
8410         * manual/texinfo.tex: Likewise.
8411
8412         * time/test_time.args: Removed.
8413         * time/Makefile (test_time-ARGS): Added contents here instead.
8414
8415         * posix/tstgetopt.args: Removed.
8416         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
8417
8418         * Rules: Allow arguments for test files to be specified in
8419         Makefile with testname-ARGS; remove rules with .args in it.
8420
8421         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
8422         remove old bogus rule for opendir-tst1.args.
8423
8424         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
8425
8426         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
8427         into objdir.  This allows a readonly sourcetree.
8428         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
8429
8430 2000-05-16  Andreas Jaeger  <aj@suse.de>,
8431             David Huggins-Daines <dhd@linuxcare.com>
8432
8433         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
8434         cache_data in case of only new cache format correctly.
8435
8436         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
8437         cache_file_new.
8438
8439         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
8440         struct cache_file_new.
8441
8442         * elf/cache.c (save_cache): Fix str_offset if only new cache is
8443         present.
8444
8445         * elf/cache.c (save_cache): Align struct new_file_cache.
8446         (print_cache): Likewise.
8447
8448 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
8449
8450         * elf/soinit.c (__libc_global_ctors): Move
8451         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
8452         * resolv/resolv.h (__res_state): Added __attribute__((const)).
8453         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
8454         variable, don't define it to __res_state call.
8455
8456 2000-05-13  Andreas Jaeger  <aj@suse.de>
8457
8458         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
8459         Linux 2.3.99pre7.
8460         (AF_PPPOX): Likewise.
8461         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
8462         (AF_PPPOX): Likewise.
8463
8464 2000-05-12  Andreas Jaeger  <aj@suse.de>
8465
8466         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
8467         Reported by tmoestl@gmx.net, closes PR libc/1732.
8468
8469 2000-05-11  Jan Hubicka  <jh@suse.cz>
8470
8471         * misc/sys/cdefs.h: Add support for pure attribute.
8472
8473         * include/string.h: Add __attribute_pure__ to various functions.
8474         * string/string.h: Likewise.
8475
8476 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8477
8478         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
8479         argument.
8480         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8481         R_SPARC_UA64.
8482         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
8483
8484 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8485
8486         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
8487         at proper place.  Compute the high nibble correctly.
8488
8489 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * elf/ldconfig.c: Include elf.h.
8492
8493         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
8494         (_dl_vsym): Likewise.
8495         Reported by Owen Taylor <otaylor@redhat.com>.
8496
8497         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
8498         always.
8499
8500 2000-05-08  Andreas Jaeger  <aj@suse.de>
8501
8502         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
8503
8504         * intl/bindtextdom.c (set_binding_values): Add prototype.
8505
8506 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8507
8508         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
8509         call to elf_machine_fixup_plt.
8510         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8511         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8512
8513 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8514
8515         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
8516         they are not dlclose'd from underneath us.
8517
8518 2000-05-08  Andreas Schwab  <schwab@suse.de>
8519
8520         * posix/execle.c: Fix size parameter of memcpy.
8521
8522 2000-05-08  Andreas Schwab  <schwab@suse.de>
8523
8524         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
8525         getpagesize syscall if available.
8526
8527 2000-05-08  Andreas Jaeger  <aj@suse.de>
8528
8529         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
8530         set errno.
8531
8532 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8533
8534         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
8535         sizeof(struct link_map *) chunks, not in bytes.
8536
8537 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8538
8539         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
8540         only needed for locale.
8541         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
8542         It's only needed for catgets.
8543         Patches by Greg McGary <gkm@eng.ascend.com>.
8544
8545 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
8546
8547         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
8548         Remove duplicate <errno.h> include.  Remove inclusion of
8549         <libintl.h> and "nsswitch.h".
8550         (set_cloexec_flag): New function, broken out of dbopen.
8551         (dbopen): Changed return type to `enum
8552         nss_status'.  Mostly rewritten to make sure that we do not report
8553         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
8554         (internal_setent): Change return type to nss_status.
8555         Document, and make sure that the function
8556         behaves accordingly.  Make dynamically loading the database
8557         library really thread-safe and return NSS_STATUS_UNAVAIL if it
8558         failed.
8559         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
8560         unecessary casts.
8561         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
8562         documentation.
8563         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
8564         c_get function member.
8565         * nss/nss_db/nss_db.h: Add and tweak some comments.
8566         (DBT): Move typedef before NSS_DBC typedef.
8567         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
8568
8569 2000-05-07  H.J. Lu  <hjl@gnu.org>
8570
8571         * csu/initfini.c: Moved to ....
8572         * sysdeps/generic/initfini.c: ...here.
8573
8574         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
8575
8576 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8577
8578         * manual/resource.texi: Document POSIX scheduling functions.
8579         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8580
8581         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
8582         reading anything.  Reported by Andries.Brouwer@cwi.nl.
8583
8584         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
8585         for x since promotion in comparison might leads to unexpected
8586         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
8587
8588         * iconv/Makefile (tests): Add tst-iconv1.
8589         * iconv/tst-iconv1.c: New file.
8590         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
8591         empty input buffer over full output buffer.
8592         (ucs4_internal_loop): Likewise.
8593         (ucs4_internal_loop_unaligned): Likewise.
8594         (internal_ucs4le_loop): Likewise.
8595         (internal_ucs4le_loop_unaligned): Likewise.
8596         (ucs4le_internal_loop): Likewise.
8597         (ucs4le_internal_loop_unaligned): Likewise.
8598         Reported by yaoz@nih.gov.
8599
8600 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8601
8602         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
8603         returned != __GCONV_OK, there is nothing to clean up.
8604
8605 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8606
8607         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
8608         OUTPUT_CHARSET environment variables.
8609
8610 2000-05-06  Andreas Jaeger  <aj@suse.de>
8611
8612         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
8613         (struct cache_file_new): New.
8614         (struct file_entry): New (moved from cache.c).
8615         (struct cache_file): New (moved from cache.c).
8616
8617         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
8618         from _dl_load_cache_lookup.
8619         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
8620         the different cache formats.
8621         New variable cache_new for new format.
8622
8623         * elf/ldconfig.h: Change according to changes in cache.c and
8624         ldconfig.c; remove cache_libcmp; add opt_format.
8625
8626         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
8627         stuff that's defined in those headers.
8628         Add hwcap to struct lib_entry.
8629         (opt_format): New variable to select cache format.
8630         (options): Add format parameter.
8631         (is_hwcap): New function.
8632         (path_hwcap): New function.
8633         (parse_opt): Handle new format parameter.
8634         (search_dir): Handle hwcap, search also subdirectories with hwcap.
8635
8636         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
8637         ldconfig is part of glibc.
8638         Include dl-cache.h and remove stuff that's defined there.
8639         (struct cache_entry): Add new member hwcap.
8640         (print_entry): Print hwcap, cleanup a bit.
8641         (print_cache): Print new and old formats.
8642         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
8643         (save_cache): Save new and old formats.
8644         (add_to_cache): Handle hwcap.
8645
8646         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
8647         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
8648         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
8649         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
8650         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
8651         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
8652
8653 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8654
8655         * intl/dcigettext.c (alignof): New macro.
8656         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
8657         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
8658         freemem_size to 0.
8659
8660 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8661
8662         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
8663         return value.
8664
8665 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8666
8667         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
8668         (mempcpy): Correct typo is parameter list.
8669
8670 2000-05-06  Andreas Jaeger  <aj@suse.de>
8671
8672         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
8673         functions unless -ffast-math is given to gcc.
8674
8675 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8676
8677         * po/ko.po: Update from translation team.
8678
8679 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8680
8681         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8682         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8683         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8684         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8685         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8686         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8687
8688         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8689         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8690         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8691
8692         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8693         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8694         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8695         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8696
8697         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8698         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8699
8700 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8701
8702         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8703         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8704
8705         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8706         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8707
8708         * sysdeps/ia64/Implies: New file.
8709         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8710         * sysdeps/ia64/Makefile: New file.
8711         * sysdeps/ia64/gmp-mparam.h: New file,
8712
8713         * sysdeps/ia64/elf/start.S: New file.
8714
8715         * sysdeps/ia64/bits/fenv.h: New file.
8716
8717 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8718
8719         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8720
8721 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8722
8723         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8724         ia64 has 64 bit .hash entries just as the Alpha.
8725
8726 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8727
8728         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8729
8730 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8731
8732         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8733         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8734         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8735         * sysdeps/ia64/fpu/fegetenv.c: New file.
8736         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8737         * sysdeps/ia64/fpu/fegetround.c: New file.
8738         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8739         * sysdeps/ia64/fpu/fesetenv.c: New file.
8740         * sysdeps/ia64/fpu/fesetround.c: New file.
8741         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8742         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8743         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8744         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8745         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8746
8747 2000-05-05  Andreas Jaeger  <aj@suse.de>
8748
8749         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8750
8751         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8752         (_dl_string_hwcap): New, does nothing.
8753
8754         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8755         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8756         (_dl_string_hwcap): New function, converts from string to hwcap
8757         encoding.
8758         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8759         (_DL_HWCAP_COUNT): New.
8760         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8761         (_dl_string_hwcap): New function, converts from string to hwcap
8762         encoding.
8763         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8764         (_DL_HWCAP_COUNT): New.
8765         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8766         (_dl_string_hwcap): New function, converts from string to hwcap
8767         encoding.
8768
8769 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8770
8771         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8772         * sysdeps/ia64/Dist: New file.
8773
8774         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8775         parameter to mprotect and for variable assignments.
8776
8777 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8778
8779         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8780         validity of map before dereferencing it.
8781
8782         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8783
8784 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8785
8786         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8787         lookup to the arguments to elf_machine_fixup_plt().
8788
8789         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8790         of the symbol being resolved to input argument list and make the
8791         function return the pointer to the reloc.
8792
8793         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8794         return valuie to lookup_t and return the value.
8795         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8796         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8797         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8798         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8799         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8800         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8801
8802         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8803         Make it an inline function returning value after calling
8804         __elf_machine_fixup_plt().
8805
8806         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8807         symbol address.
8808
8809         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8810         obtain the symbol address.
8811
8812         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8813         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8814
8815         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8816         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8817         inline on non ia64.
8818
8819 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8820
8821         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8822         symbol address of an object.
8823
8824         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8825         the symbol address of an object.
8826
8827         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8828         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8829         (_dl_lookup_symbol_skip): Likewise.
8830         (_dl_lookup_versioned_symbol): Likewise.
8831         (_dl_lookup_versioned_symbol_skip): Likewise.
8832
8833 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8834
8835         * elf/rtld.c (_dl_start): Get the function pointer return address
8836         via _dl_start_address for architectures that need a function
8837         pointer descriptor rather than just a pointer (ia64).
8838
8839         * sysdeps/generic/dl-lookupcfg.h: New file.
8840         * sysdeps/ia64/dl-lookupcfg.h: New file.
8841         * sysdeps/ia64/dl-machine.h: New file.
8842         * sysdeps/ia64/dl-symaddr.c: New file.
8843         * sysdeps/ia64/dl-fptr.c: New file.
8844
8845         * elf/elf.h: Add IA-64 specific definitions.
8846
8847 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8848
8849         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8850         end of enum.
8851
8852 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8853
8854         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8855         happy.
8856
8857 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8858
8859         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8860         symbol.  Call _dl_init rather than the old way.
8861
8862 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8863
8864         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8865         test for pointer in range of DSO address space.
8866
8867 2000-05-04  Andreas Jaeger  <aj@suse.de>
8868
8869         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8870
8871 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8872
8873         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8874         calls of _nl_make_l10nflist.
8875
8876         * libio/stdio.h: Make fseeko and ftello prototypes available is
8877         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8878
8879         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8880         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8881
8882 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8883
8884         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8885         before calling tfind.
8886
8887 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8888
8889         * resolv/resolv.h (res_querydomain): Remove redefinition to
8890         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8891
8892 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8893
8894         * po/gl.po: Update from translation team.
8895
8896         * manual/intro.texi (Program Basics): Change section title.
8897         * manual/process.texi: Fix reference.
8898         (Executing a File): Add reference exec in other section.
8899         * manual/signal.texi: Fix reference.
8900         * manual/startup.texi: Document syscall function.
8901         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8902
8903 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8904
8905         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8906         * intl/bindtextdom.c (set_binding_values): New function.
8907         (bindtextdomain): Call it.
8908         (bind_textdomain_codeset): New function.
8909         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8910         (free_mem): Free each binding's codeset.
8911         * intl/gettextP.h (struct binding): Add codeset field.
8912         (_nl_find_domain): Add domainbinding argument.
8913         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8914         Pass it to _nl_make_l10nflist.
8915         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8916         (_nl_make_l10nflist): Add domainbinding argument.
8917         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8918         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8919         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8920         locale_charset().
8921         * manual/message.texi: New node "Charset conversion in gettext".
8922
8923 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8924
8925         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8926         appropriate.  Handle possible __read error.
8927
8928 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8929
8930         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8931         compiler builtin.
8932         * intl/loadinfo.h (__builtin_expect): Likewise.
8933         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8934         __builtin_expect where appropriate.
8935         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8936         * intl/localealias.c (extend_alias_table): Return an error indicator.
8937         (read_alias_file): Bail out if extend_alias_table fails.
8938
8939 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8940
8941         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8942         * intl/localealias.c: Likewise.
8943
8944 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8945
8946         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8947         Initialize domain->plural and domain->nplurals even if there is no
8948         nullentry.
8949
8950 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8951
8952         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8953         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8954         In case of failure, goto converted.
8955
8956 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8957
8958         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8959         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8960         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8961         __gconv_open.
8962
8963 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8964
8965         * intl/dcigettext.c (transcmp): Compare the domains as well.
8966         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8967         not before.
8968         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8969         <errno.h>.
8970
8971 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8972
8973         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8974         Reported by Bruno Haible.
8975
8976 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8977
8978         * manual/arith.texi: Remove @w from @itemize.
8979
8980 2000-05-02  Andreas Jaeger  <aj@suse.de>
8981
8982         * conform/data/tar.h-data: Add some checks for specific values.
8983
8984         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8985         and RAND_MAX.
8986
8987         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8988         FOPEN_MAX.
8989
8990         * conform/data/netinet/in.h-data: Add exact checks for the values
8991         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8992
8993         * conform/data/float.h-data: Add some minimal values.
8994
8995         * conform/conformtest.pl: Test for macros with string constants,
8996         check for minimum and maximum values.
8997         Add limits.h to headers.
8998
8999         * conform/data/cpio.h-data: Test for value of MAGIC.
9000
9001         * conform/data/limits.h-data: New file.
9002
9003 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
9004
9005         * math/Makefile (headers): Add bits/fenvinline.h.
9006
9007 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
9008
9009         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
9010         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
9011
9012         * posix/Versions: Change posix_spawnattr_getdefault and
9013         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
9014         and posix_spawnattr_setsigdefault respectively.
9015         * posix/spawn.h: Likewise.
9016         * posix/spawnattr_getdefault.h: Likewise.
9017         * posix/spawnattr_setdefault.h: Likewise.
9018         * conform/data/spawn.h-data: Likewise.
9019
9020 2000-05-01  Andreas Jaeger  <aj@suse.de>
9021
9022         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
9023
9024 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9025
9026         * manual/sysinfo.texi: Document getdomainname, setdomainname
9027         and sysctl.
9028         * manual/string.texi: Fix typo.
9029         * manual/terminal.texi: Document gtty and stty.
9030         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9031
9032 2000-04-30  Andreas Jaeger  <aj@suse.de>
9033
9034         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
9035         accordance with Austin Draft.
9036
9037 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9038
9039         * catgets/gencat.c (read_input_file): Use isblank and not isspace
9040         to recognize second character in comment line.
9041
9042         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
9043         ENOBUFS if we are out of memory.
9044
9045         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
9046         available if __USE_XOPEN2K.
9047         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9048         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9049         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9050         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9051         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9052         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9053         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
9054         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9055
9056 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9057
9058         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
9059         Recognize option -s, -c, and -l.
9060
9061 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
9062
9063         * nscd/nscd.c: Start new session for nscd, drop privilegs
9064         to configured user if requested and no -S parameter are used.
9065         * nscd/nscd.conf: Add new option "server-user".
9066         * nscd/nscd_conf.c: Add support for new "server-user" option.
9067         * nscd/nscd.h: Add declaration for server_user variable.
9068         Based on patch by Chris Wing <wingc@engin.umich.edu>
9069
9070 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9071
9072         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
9073         that changing the __restore and __restore_rt signal return code
9074         will break GDB.
9075
9076 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9077
9078         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
9079         <sys/user.h>.
9080
9081 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9082
9083         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
9084
9085 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9086
9087         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
9088         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
9089         arpa/inet.h.
9090         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
9091         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
9092         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
9093         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
9094         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
9095         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
9096         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
9097         posix_fallocate, and posix_madvise.
9098         * conform/data/netdb.h-data: New file.
9099         * conform/data/pthread.h-data: Add pthread_barrier_t,
9100         pthread_barrierattr_t, pthread_barrier_destroy,
9101         pthread_barrier_init, pthread_barrier_wait,
9102         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
9103         pthread_barrierattr_init, pthread_barrierattr_setpshared,
9104         pthread_condattr_getclock, pthread_condattr_setclock,
9105         pthread_getcpuclockid, pthread_mutex_timedlock,
9106         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9107         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
9108         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
9109         * conform/data/sched.h-data: Add sched_ss_low_priority,
9110         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
9111         SCHED_SPORADIC.
9112         * conform/data/semaphore.h-data: Add sem_timedwait.
9113         * conform/data/signal.h-data: Add SIGIO.
9114         * conform/data/spawn.h-data: New file.
9115         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
9116         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
9117         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
9118         Fix typo in gmtime_r definition.
9119         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
9120         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
9121         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
9122         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
9123         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
9124         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
9125         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
9126         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
9127         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
9128         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
9129         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
9130         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
9131         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
9132         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
9133         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
9134         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
9135         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
9136         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
9137         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
9138         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
9139         typo in off_t definition.
9140         * conform/data/net/if.h-data: New file.
9141         * conform/data/netinet/in.h-data: New file.
9142         * conform/data/netinet/tcp.h-data: New file.
9143         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
9144         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
9145         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
9146         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
9147         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
9148         and posix_typed_mem_open.
9149         * conform/data/sys/socket.h-data: New file.
9150         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
9151         * conform/data/sys/types.h-data: Add pthread_barrier_t,
9152         pthread_barrierattr_t, and pthread_spinlock_t.
9153         * conform/data/sys/un.h-data: New file.
9154         * conform/data/sys/utsname.h-data: New file.
9155
9156         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
9157         parameter.
9158         * inet/gethstbyad.c (gethostbyname): Likewise.
9159         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
9160         * inet/getipnodebyad.c (getipnodebyad): Likewise.
9161         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
9162         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
9163         Likewise.
9164         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
9165         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
9166         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
9167         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
9168         * resolv/gethnamaddr.c (gethostbyname): Likewise.
9169         * resolv/netdb.h (struct hostent): Fix type of h_length member.
9170         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
9171         and second parameter.
9172
9173         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
9174         == NULL.
9175
9176 2000-04-29  Andreas Jaeger  <aj@suse.de>
9177
9178         * conform/data/arpa/inet.h-data: New file.
9179
9180 2000-04-28  Geoff Clare <gwc@unisoft.com>
9181
9182         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
9183         path passed to ftw() or nftw() is an empty string.
9184         Closes PR libc/1710.
9185
9186 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9187
9188         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
9189         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
9190         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
9191         * localedata/tst-mbswcs4.c: New file.
9192         * localedata/tst-mbswcs5.c: New file.
9193
9194         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
9195         == NULL.  Little optimization.
9196
9197         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
9198         DT_PREINIT_ARRAYSZ).
9199         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
9200
9201         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
9202         overflows in conversion from ASCII.
9203
9204 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9205
9206         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
9207         * Makerules (full_config_sysdirs): Likewise.
9208         * MakeTAGS (full_config_sysdirs): Likewise.
9209
9210 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9211
9212         * .cvsignore: Remove linuxthreads.
9213         * po/.cvsignore: Remove *.pot.
9214         * posix/glob/.cvsignore: Removed.
9215         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
9216
9217 2000-04-25  Andreas Jaeger  <aj@suse.de>
9218
9219         * conform/Makefile (distribute): Also distribute contents of
9220         subdirectories.
9221
9222         * Makerules (no_deps): Remove abi-versions.h.
9223
9224         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
9225
9226 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9227
9228         * sysdeps/sparc/sparc64/elf/Dist: Remove.
9229         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
9230         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
9231         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
9232         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
9233         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
9234         objects.
9235
9236 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
9237
9238         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
9239
9240 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9241
9242         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
9243         * intl/l10nflist.c: Likewise.
9244
9245 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9246
9247         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
9248         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
9249         * intl/textdomain.c [!_LIBC]: Likewise.
9250         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
9251         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
9252         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
9253         syntax error.
9254
9255 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9256
9257         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
9258         character set conversion also in the case the translation was found
9259         after a hash collision or through binary search.  Store the maximum
9260         index together with the converted message.  Use iconv() when available.
9261         In case of out of memory during conversion, return the unconverted
9262         translated string, not NULL.
9263
9264 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9265
9266         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
9267         to avoid name clashes with the ia32 linker.
9268
9269 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9270
9271         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
9272         handling.
9273
9274 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9275
9276         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
9277         strtoumax, strfry, and memfrob.
9278         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
9279         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9280
9281         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
9282         if this function is available.
9283
9284         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
9285         all values.
9286
9287 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
9288
9289         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
9290
9291 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9292
9293         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
9294         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
9295         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
9296         * localedata/tst-mbswcs3.c: New file.
9297
9298 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
9299
9300         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
9301         characters.  Don't handle incomplete characters as errors.
9302         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
9303         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
9304         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
9305         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
9306         * localedata/tst-mbswcs2.c: New file.
9307
9308         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
9309         stored character in state in UNPACK_BYTES macro.
9310         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
9311         test for available characters, handle result of BODY code correctly.
9312         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
9313         (distribute): Add tst-mbswcs.sh.
9314         Add rule to run tst-mbswcs.sh.
9315         * localedata/tst-mbswcs.sh: New file.
9316         * localedata/tst-mbswcs1.c: New file.
9317
9318 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9319
9320         * nis/nis_callback.c (__nis_create_callback): Do failed memory
9321         allocation fixups centrally, fix __builtin_expect call, return NULL
9322         on failure, not NIS_NOMEMORY.
9323
9324 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
9325
9326         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
9327
9328         * intl/loadinfo.h (internal_function): Define if not already defined.
9329
9330 2000-04-27  Andreas Jaeger  <aj@suse.de>
9331
9332         * intl/libintl.h: Fix typo, reported by Bruno Haible
9333         <haible@clisp.cons.org>.
9334
9335 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
9336
9337         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
9338         setting the state to GMON_PROF_BUSY.
9339
9340 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
9341
9342         * elf/dl-profile.c (_dl_start_profile): define all variables which
9343         do not have to be global as local variables.
9344
9345         * nis/nis_callback.c (__nis_create_callback): Partially undo last
9346         patch.  Keep needed tests for failed memory allocation.
9347
9348         * elf/dl-reloc.c (_dl_relocate_object): Add one more
9349         __builtin_expect saying that we don't normally expect to profile.
9350
9351         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
9352         __builtin_expect where desirable.
9353
9354 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9355
9356         * manual/Makefile (chapters): Add syslog.
9357         * manual/syslog.texi: New file.
9358         * manual/math.texi: Fix references.
9359         * manual/terminal.texi: Likewise.
9360         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9361
9362 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
9363
9364         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
9365         stdlib.h was not included or __USE_XOPEN not defined.
9366
9367 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9368
9369         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
9370         Patch by Zack Weinberg <zack@wolery.cumb.org>.
9371
9372 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
9373
9374         * manual/examples/subopt.c (mount_opts): Add missing terminating
9375         entry.
9376         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
9377
9378         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
9379         * libio/ftello.c: Likewise.
9380         * libio/ftello64.c: Likewise.
9381         * libio/ioftell.c: Likewise.
9382         * sysdeps/generic/memrchr.c: Likewise.
9383         * sysdeps/posix/libc_fatal.c: Likewise.
9384         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9385         * misc/fstab.c: Include <string.h> for strcmp prototype.
9386         * sysdeps/generic/ldsodefs.h: Likewise.
9387         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9388         Patch by Kurt Roeckx <Q@ping.be>.
9389
9390         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
9391         Remove db-open.  Change all uses.
9392         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
9393
9394 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9395
9396         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
9397         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
9398         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
9399         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
9400         with .set noat/at to shut up warnings.
9401         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
9402         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
9403         compilation if __NR_pciconfig_iobase is not defined.
9404         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
9405         Add alias.
9406
9407 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9408
9409         * manual/sysinfo.texi: Fix typo.
9410         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
9411         Replace "high precision time" with "high accuracy clock".
9412         Fix language.
9413         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9414
9415         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
9416         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
9417         instead of malloc.
9418         * nis/nis_subr.c: Use __builtin_expect.
9419         * nis/ypclnt.c: Likewise.
9420         * nis/nis_getservlist.c: Likewise.
9421         * nis/nis_creategroup.c: Likewise.
9422
9423         * nis/nis_callback.c (__nis_create_callback): Check result of
9424         memory allocation.  Fix memory leaks.  Use __builtin_expect.
9425         (__nis_destroy_callback): Fix memory leaks.
9426
9427 2000-04-21  Andreas Jaeger  <aj@suse.de>
9428
9429         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
9430         * sysdeps/mips/mips64/add_n.S: Likewise.
9431         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9432         * sysdeps/mips/mips64/lshift.S: Likewise.
9433         * sysdeps/mips/mips64/mul_1.S: Likewise.
9434         * sysdeps/mips/mips64/rshift.S: Likewise.
9435         * sysdeps/mips/mips64/setjmp.S: Likewise.
9436         * sysdeps/mips/mips64/sub_n.S: Likewise.
9437         * sysdeps/mips/mips64/submul_1.S: Likewise
9438         * sysdeps/unix/mips/sysdep.S: Likewise.
9439
9440         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
9441         and update comment.  The strtab from _dl_relocate_object can be
9442         used.
9443
9444 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9445
9446         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
9447         * iconv/iconv_close.c (iconv_close): Likewise.
9448         * iconv/iconv_open.c (iconv_open): Likewise.
9449
9450         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
9451         __builtin_expect where useful.
9452
9453         * grp/initgroups.c (initgroups): Test for result of memory
9454         allocation and punt if it fails.
9455
9456         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
9457         * grp/fgetgrent.c (fgetfrent): Likewise.
9458         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
9459
9460 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9461
9462         * libio/vasprintf.c: Include string.h to get memcpy prototype.
9463
9464 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9465
9466         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
9467         don't search for NUL byte to decrement counter.
9468         Reported by Ulrich.Brink@sap.com.
9469
9470         * iconv/gconv_simple.c: Define separate functions to convert from
9471         UCS4/UCS4-LE to the internal encoding.
9472         * iconv/gconv_builtin.h: Use separate functions to convert from
9473         UCS4/UCS4-LE to the internal encoding.
9474         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
9475         __gconv_transform_ucs4le_internal.
9476
9477         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
9478         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
9479
9480         * iconv/skeleton.c: Add some more __builtin_expect.
9481         * iconv/loop.c: Likewise.
9482
9483 2000-03-08  H.J. Lu  <hjl@gnu.org>
9484
9485         * posix/regex.c (regex_compile): Correctly handle "\{" when
9486         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
9487
9488 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9489
9490         * manual/stdio.texi: Give advise about handling error when using
9491         stream functions.
9492         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
9493
9494 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
9495
9496         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
9497         field to nelems * sizeof (uint32_t).
9498         * locale/programs/ld-address.c (address_output): Align word fields
9499         properly.
9500         * locale/programs/ld-monetary.c (monetary_output): Likewise.
9501         Don't restart idx pointers to idx end at the duo_int_curr_symbol
9502         field.
9503         Avoid giving arbitrary garbage in the crncystr field.
9504         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
9505         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
9506         fields.
9507         * locale/programs/ld-numeric.c (numeric_output): Likewise.
9508         Don't restart idx pointers to idx end at the decimal_point_wc field.
9509         * locale/programs/ld-time.c (time_output): week_1stday should be
9510         word, not byte.  Align it properly.
9511
9512 2000-04-19  H.J. Lu  <hjl@gnu.org>
9513
9514         * csu/gmon-start.c (_start): Declared as "extern void".
9515         (etext): Likewise.
9516
9517 2000-04-18  Andreas Jaeger  <aj@suse.de>
9518
9519         * manual/install.texi (Running make install): Don't mention utmpd
9520         anymore.
9521
9522 2000-04-18  Andreas Jaeger  <aj@suse.de>
9523
9524         * linuxthreads/Versions: Use ld instead of ld.so.
9525
9526         * elf/Makefile (ld-map): Use ld.map.
9527
9528         * Versions.def: Use ld instead of ld.so.
9529         * elf/Versions: Likewise.
9530         * sysdeps/mach/hurd/Versions: Likewise.
9531
9532 2000-04-20  Andreas Jaeger  <aj@suse.de>
9533
9534         * elf/rtld.c (print_statistics): Move ifndef further up.
9535         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
9536         (dl_main): Likewise.
9537
9538 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9539
9540         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
9541         * gmon/Versions: Move moncontrol to GLIBC_2.2.
9542
9543         * po/cs.po: Update from translation team.
9544
9545         * sysdeps/generic/updwtmp.c: Remove daemon support.
9546
9547         * login/Makefile (routines): Remove utmp_daemon.
9548
9549         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
9550         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
9551         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
9552         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
9553
9554         * elf/rtld.c: Display statitics option also if hp timing is not
9555         available.
9556
9557         * login/programs/connection.c: Removed.
9558         * login/programs/database.c Removed.
9559         * login/programs/error.c: Removed.
9560         * login/programs/request.c: Removed.
9561         * login/programs/xtmp.c: Removed.
9562         * login/programs/xtmp.h: Removed.
9563         * login/Makefile: Remove rules for utmpd.
9564         * login/README.utmpd: Removed.
9565         * login/utmp_daemon.c: Removed.
9566         * login/getutent_r.c: Remove references to daemon functions.
9567         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
9568         declaration.
9569
9570 2000-04-18  Andreas Jaeger  <aj@suse.de>
9571
9572         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9573         2.2 for libnsl, libresolv, librt, libnss_*.
9574
9575         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
9576
9577         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
9578
9579 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9580
9581         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
9582         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
9583         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
9584         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
9585         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
9586         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
9587         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
9588         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
9589         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
9590         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
9591         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
9592         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
9593         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
9594         it here.
9595         * sysdeps/unix/sysv/aix/msync.c: New file.
9596         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
9597         * sysdeps/unix/sysv/aix/net/if.h: New file.
9598         * sysdeps/unix/sysv/aix/pipe.c: New file.
9599         * sysdeps/unix/sysv/aix/poll.c: New file.
9600         * sysdeps/unix/sysv/aix/rename.c: New file.
9601         * sysdeps/unix/sysv/aix/rmdir.c: New file.
9602         * sysdeps/unix/sysv/aix/select.c: New file.
9603         * sysdeps/unix/sysv/aix/semctl.c: New file.
9604         * sysdeps/unix/sysv/aix/semget.c: New file.
9605         * sysdeps/unix/sysv/aix/semop.c: New file.
9606         * sysdeps/unix/sysv/aix/sendto.c: New file.
9607         * sysdeps/unix/sysv/aix/setgroups.c: New file.
9608         * sysdeps/unix/sysv/aix/setpgid.c: New file.
9609         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
9610         * sysdeps/unix/sysv/aix/setpriority.c: New file.
9611         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
9612         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
9613         * sysdeps/unix/sysv/aix/setsid.c: New file.
9614         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
9615         * sysdeps/unix/sysv/aix/shmat.c: New file.
9616         * sysdeps/unix/sysv/aix/shmctl.c: New file.
9617         * sysdeps/unix/sysv/aix/shmdt.c: New file.
9618         * sysdeps/unix/sysv/aix/shmget.c: New file.
9619         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
9620         * sysdeps/unix/sysv/aix/sigstack.c: New file.
9621         * sysdeps/unix/sysv/aix/socket.c: New file.
9622         * sysdeps/unix/sysv/aix/socketpair.c: New file.
9623         * sysdeps/unix/sysv/aix/speed.c: New file.
9624         * sysdeps/unix/sysv/aix/symlink.c: New file.
9625         * sysdeps/unix/sysv/aix/sync.c: New file.
9626         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
9627         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
9628         * sysdeps/unix/sysv/aix/times.c: New file.
9629         * sysdeps/unix/sysv/aix/ulimit.c: New file.
9630         * sysdeps/unix/sysv/aix/umask.c: New file.
9631         * sysdeps/unix/sysv/aix/unlink.c: New file.
9632         * sysdeps/unix/sysv/aix/ustat.c: New file.
9633         * sysdeps/unix/sysv/aix/utimes.c: New file.
9634
9635 2000-04-18  Andreas Jaeger  <aj@suse.de>
9636
9637         * manual/startup.texi (Environment Access): Fix putenv prototype
9638         according to recent changes.
9639         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
9640         PR libc/1692.
9641
9642         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
9643         needed.
9644
9645 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9646
9647         * posix/Makefile (tests): Add tst-getaddrinfo.
9648         * posix/tst-getaddrinfo.c: New file.
9649
9650 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9651
9652         * manual/sysinfo.texi: Document that umount2 is not widely available.
9653
9654         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
9655         signal timing is not really implemented.
9656
9657 2000-04-17  Andreas Jaeger  <aj@suse.de>
9658
9659         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
9660
9661 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9662
9663         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
9664         and inst_libdir.
9665
9666 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9667
9668         * manual/intro.texi: Change reference from System Information to
9669         System Management.
9670         * manual/users.texi: Likewise.
9671         * manual/conf.texi: Likewise.
9672         * manual/sysinfo.texi: Document mount, umount, and umount2.
9673         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9674
9675 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9676
9677         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
9678         Create wnumstr as well as numstr to support wide character output
9679         correctly.
9680
9681 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9682
9683         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9684         modification and move it...
9685         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9686         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9687         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9688         switch to $(LD) on sparc-linux.
9689
9690 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9691
9692         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9693         and setresuid from sysdep_routines.
9694
9695 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9696
9697         * manual/Makefile (chapters): Add resource.
9698
9699         * manual/time.texi: Move section on resources to...
9700         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9701         and vtimes.
9702         * manual/setjmp.texi: Adjust back reference.
9703         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9704
9705         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9706         definition.
9707         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9708         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9709         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9710         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9711         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9712         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9713         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9714         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9715         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9716         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9717         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9718         * sysdeps/unix/sysv/aix/Implies: New file.
9719         * sysdeps/unix/sysv/aix/Versions: New file.
9720         * sysdeps/unix/sysv/aix/bind.c: New file.
9721         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9722         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9723         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9724         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9725         * sysdeps/unix/sysv/aix/chdir.c: New file.
9726         * sysdeps/unix/sysv/aix/chmod.c: New file.
9727         * sysdeps/unix/sysv/aix/chroot.c: New file.
9728         * sysdeps/unix/sysv/aix/creat.c: New file.
9729         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9730         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9731         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9732         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9733         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9734         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9735         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9736         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9737         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9738         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9739         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9740         * sysdeps/unix/sysv/aix/link.c: New file.
9741         * sysdeps/unix/sysv/aix/madvise.c: New file.
9742         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9743         * sysdeps/unix/sysv/aix/mknod.c: New file.
9744         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9745         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9746         * sysdeps/unix/sysv/aix/msgget.c: New file.
9747         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9748
9749 2000-04-17  Andreas Jaeger  <aj@suse.de>
9750
9751         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9752         as suggested by Ulrich Drepper.
9753         (__dl_runtime_resolve): Remove unused variable, initialize sym
9754         directly.
9755         (RTLD_START): Document OFFSET_GP_GOT.
9756         (OFFSET_GP_GOT): New magic value.
9757         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9758         (elf_machine_got_rel): Only declare strtab if needed.
9759         (elf_machine_relplt): Removed, it's not needed.
9760         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9761
9762         * sysdeps/mips/add_n.S: Add newline at EOF.
9763         * sysdeps/mips/rshift.S: Likewise.
9764         * sysdeps/mips/mul_1.S: Likewise.
9765         * sysdeps/mips/lshift.S: Likewise.
9766         * sysdeps/mips/addmul_1.S: Likewise.
9767
9768 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9769
9770         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9771
9772         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9773         * elf/dl-lookup.c: Likewise.
9774         * elf/dl-init.c (_dl_init): Likewise.
9775         * elf/dl-fini.c (_dl_fini): Likewise.
9776         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9777         * elf/dl-close.c (_dl_close): Likewise.
9778         * elf/rtld.c (_dl_start_final): Likewise.
9779
9780         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9781
9782 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9783
9784         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9785         only fall back on using Linux.
9786
9787         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9788         Before testing versions check that we actually loaded the object
9789         and whether we are in trace mode.  If not loaded during tracing don't
9790         test versions in this object.
9791         (_dl_check_all_versions): Take new parameter and pass to
9792         _dl_check_map_versions.
9793         * sysdeps/generic/ldsodefs.h: Update prototypes for
9794         _dl_check_all_versions and _dl_check_map_versions.
9795         * elf/rtld.c (struct version_check_args): Add dotrace.
9796         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9797         (dl_main): Pass info about trace mode to version_check_doit.
9798         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9799         _dl_check_all_versions.
9800
9801         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9802         and getutmpx.
9803         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9804
9805         * manual/argp.texi: Document index parameter of argp_parse.
9806         Fix typo.
9807         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9808
9809 2000-04-14  Andreas Jaeger  <aj@suse.de>
9810
9811         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9812         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9813
9814         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9815
9816 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9817
9818         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9819         compat_symbol call for old adjtime.
9820
9821         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9822         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9823
9824         * posix/Makefile (headers): Add spawn.h.
9825         (distribute): Add spawn_int.h.
9826         (routines): Add spawn_faction_init, spawn_faction_destroy,
9827         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9828         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9829         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9830         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9831         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9832         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9833         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9834         posix_spawnattr_init, posix_spawnattr_destroy,
9835         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9836         posix_spawnattr_getflags, posix_spawnattr_setflags,
9837         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9838         and posix_spawnp.
9839         * posix/spawn.c: New file.
9840         * posix/spawn.h: New file.
9841         * posix/spawn_faction_addclose.c: New file.
9842         * posix/spawn_faction_adddup2.c: New file.
9843         * posix/spawn_faction_addopen.c: New file.
9844         * posix/spawn_faction_destroy.c: New file.
9845         * posix/spawn_faction_init.c: New file.
9846         * posix/spawn_int.h: New file.
9847         * posix/spawnattr_destroy.c: New file.
9848         * posix/spawnattr_getdefault.c: New file.
9849         * posix/spawnattr_getflags.c: New file.
9850         * posix/spawnattr_getpgroup.c: New file.
9851         * posix/spawnattr_getschedparam.c: New file.
9852         * posix/spawnattr_getschedpolicy.c: New file.
9853         * posix/spawnattr_getsigmask.c: New file.
9854         * posix/spawnattr_init.c: New file.
9855         * posix/spawnattr_setdefault.c: New file.
9856         * posix/spawnattr_setflags.c: New file.
9857         * posix/spawnattr_setpgroup.c: New file.
9858         * posix/spawnattr_setschedparam.c: New file.
9859         * posix/spawnattr_setschedpolicy.c: New file.
9860         * posix/spawnattr_setsigmask.c: New file.
9861         * posix/spawni.c: New file.
9862         * posix/spawnp.c: New file.
9863
9864         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9865         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9866
9867 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9868
9869         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9870         * malloc/malloc.c: Implement posix_memalign for glibc.
9871         * include/stdlib.h: Add prototype for __posix_memalign.
9872         * stdlib/stdlib.h: Add prototype for posix_memalign.
9873
9874 2000-04-14  Andreas Jaeger  <aj@suse.de>
9875
9876         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9877         symidx correctly.
9878         (elf_machine_got_rel): Cast sym correctly.
9879
9880         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9881         * sysdeps/mips/addmul_1.S: Likewise.
9882         * sysdeps/mips/lshift.S: Likewise.
9883         * sysdeps/mips/mul_1.S: Likewise.
9884         * sysdeps/mips/rshift.S: Likewise.
9885         * sysdeps/mips/sub_n.S: Likewise.
9886         * sysdeps/mips/submul_1.S: Likewise.
9887
9888         * stdlib/stdlib.h: Fix typo in comment.
9889
9890         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9891         2.2 for libdl, ld and libm.
9892
9893         * sysdeps/generic/madvise.c: Fix typos.
9894
9895         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9896
9897         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9898
9899         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9900         warnings.
9901
9902 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9903
9904         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9905         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9906         Make old name weak alias.
9907         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9908         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9909         Make old name weak alias.
9910         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9911
9912         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9913         posix_fallocate, and posix_fallocate64.
9914         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9915         posix_fallocate, and posix_fallocate64.
9916         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9917         posix_fallocate, and posix_fallocate64.
9918         * sysdeps/generic/fadvise.c: New file.
9919         * sysdeps/generic/fadvise64.c: New file.
9920         * sysdeps/generic/fallocate.c: New file.
9921         * sysdeps/generic/fallocate64.c: New file.
9922         * sysdeps/posix/fallocate.c: New file.
9923         * sysdeps/posix/fallocate64.c: New file.
9924         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9925         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9926         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9927         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9928         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9929         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9930         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9931         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9932         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9933
9934         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9935         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9936
9937 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9938
9939         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9940         * misc/sys/mman.h (posix_madvise): Add prototype.
9941         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9942         old name and posix_madvise weak aliases.
9943         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9944         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9945         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9946         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9947         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9948         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9949         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9950
9951 2000-04-13  Andreas Jaeger  <aj@suse.de>
9952
9953         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9954         versioning.
9955         (elf_machine_got_rel): Only add runtime display if needed.
9956         (elf_machine_got_rel): Handle symbol versioning.
9957
9958 2000-04-13  Andreas Jaeger  <aj@suse.de>
9959
9960         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9961
9962         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9963         default.
9964
9965         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9966         with some applications.
9967         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9968
9969         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9970         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9971         * sysdeps/mips/setjmp.S: Likewise.
9972
9973         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9974
9975 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9976
9977         * posix/globtest.sh: Work around inconsistency with expanding ~/
9978         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9979
9980 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9981
9982         * posix/getconf.c: Add support for many more POSIX options.
9983         * sysdeps/posix/sysconf.c: Likewise.
9984         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9985         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9986         _POSIX_SHELL.
9987         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9988         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9989         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9990         CLOCK_THREAD_CPUTIME_ID.
9991         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9992         CLOCK_PROCESS_CPUTIME_ID.
9993         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9994         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9995         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9996         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9997
9998         * malloc/Makefile (tests): Add tst-calloc.
9999         * malloc/tst-calloc.c: New file.
10000
10001         * sysdeps/arm/libm-test-ulps: New file.
10002
10003         * malloc/malloc.c: Undo all of today's changes.
10004
10005         * locale/programs/locale.c (show_info): Don't try to look into
10006         data for LC_ALL (there is none).
10007
10008         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
10009         avoid writing over boundary.
10010         Patch by Greg McGary <gkm@eng.ascend.com>.
10011
10012         * sysdeps/arm/memprof.h: New file.
10013
10014 2000-04-12  Andreas Jaeger  <aj@suse.de>
10015
10016         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
10017
10018         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
10019         for memmem declaration.
10020
10021 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
10022
10023         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
10024         to -1.
10025         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
10026
10027         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
10028         mode is invalid.
10029         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
10030         Patch by Bart Veer <bartv@redhat.com>.
10031
10032         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
10033         function interface.
10034
10035 2000-04-11  Andreas Jaeger  <aj@suse.de>
10036
10037         * sysdeps/mips/dl-machine.h: Update some comments.
10038         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
10039
10040 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10041
10042         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
10043         _POSIX_SHARED_MEMORY_OBJECTS.
10044
10045         * rt/Makefile (tests): Add tst-shm.
10046         Add rules to generate tst-shm.
10047         * rt/tst-shm.c: New file.
10048
10049         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
10050         for descriptor.
10051
10052         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
10053         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
10054         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
10055         * sysdeps/generic/shm_open.c: New file.
10056         * sysdeps/generic/shm_unlink.c: New file.
10057         * sysdeps/unix/sysv/linux/shm_open.c: New file.
10058         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
10059         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
10060          __endmntent, __getmntent_r, __setmntent, and __statfs.
10061
10062         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
10063         fragmentation by allocating new memory at the end instead of
10064         reallocating.
10065
10066         * posix/globtest.sh: Fix last change.
10067
10068 2000-04-10  Philip Blundell  <philb@gnu.org>
10069
10070         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
10071         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
10072         IPV6_DROP_MEMBERSHIP.
10073         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
10074         Likewise.
10075
10076 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10077
10078         * elf/readlib (process_file): Close streams in case of an error.
10079
10080 2000-04-09  Andreas Jaeger  <aj@suse.de>
10081
10082         * elf/readlib.c (process_file): Check if file is big enough to
10083         contain aout and ELF headers.
10084         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
10085
10086 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
10087
10088         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
10089
10090 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10091
10092         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
10093         stream unbuffered.
10094         * rt/Makefile (tests): Add tst-clock.
10095         Add rules to build tst-clock.
10096         * rt/tst-clock.c: New file.
10097         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
10098         about initialization of nsec.
10099         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
10100         about initialization of freq.  Set retval to zero if successful.
10101         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
10102
10103 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10104
10105         * Versions.def (librt): Add GLIBC_2.2.
10106         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
10107         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
10108         timer_getoverr, timer_gettime, and timer_settime.
10109         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
10110         clock_settime, timer_create, timer_delete, timer_getoverrun,
10111         timer_gettime, and timer_settime.
10112         * sysdeps/generic/clock_getcpuclockid.c: New file.
10113         * sysdeps/generic/get_clockfreq.c: New file.
10114         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
10115         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
10116         * sysdeps/mach/hurd/i386/bits/time.h: New file.
10117         * sysdeps/unix/i386/i586/clock_getres.c: New file.
10118         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
10119         * sysdeps/unix/i386/i686/Implies: New file.
10120         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
10121         * time/Makefile (routines): Move clock_getres, clock_gettime,
10122         clock_settime, timer_create, timer_delete, timer_getoverr,
10123         timer_gettime, and timer_settime to rt/Makefile.
10124         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
10125         clock_settime, timer_create, timer_delete, timer_getoverrun,
10126         timer_gettime, and timer_settime.
10127         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
10128
10129         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
10130         and not const as attribute name.
10131
10132 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
10133
10134         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
10135
10136 2000-04-10  Andreas Schwab  <schwab@suse.de>
10137
10138         * posix/globtest.sh: Skip tests that depend on unreadable
10139         directories if run as root.
10140
10141 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10142
10143         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
10144         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
10145
10146 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10147
10148         * sysdeps/unix/clock_gettime.c: New file.
10149         * sysdeps/unix/clock_settime.c: New file.
10150         * sysdeps/posix/clock_getres.c: New file.
10151
10152         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
10153
10154         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
10155         lseek call be passing in a buffer which never allow a successful
10156         first getdents syscall if not at leas the initial entry can be
10157         stored in the user buffer.
10158
10159         * localedata/Makefile: Add rules to clean up directories created by
10160         new strfmon tests.
10161
10162 2000-04-09  Geoff Clare  <gwc@unisoft.com>
10163
10164         * localedata/tst-fmon.data: Added new tests for strfmon()
10165         using test locales with all combinations of cs_precedes,
10166         sign_posn and sep_by_space.
10167         * localedata/tst-fmon.sh: Updated to support the new tests.
10168         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
10169         the localedef source for the new strfmon() test locale.
10170         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
10171         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
10172         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
10173         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
10174         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
10175         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
10176         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
10177         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
10178         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
10179         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
10180         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
10181         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
10182         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
10183         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
10184
10185         * stdlib/strfmon.c: Correct problems with missing or extra
10186         spaces for unusual combinations of sign_posn and sep_by_space.
10187         Improved left-precision alignment code.
10188
10189 2000-04-07  Andreas Jaeger  <aj@suse.de>
10190
10191         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
10192
10193 2000-04-10  Andreas Jaeger  <aj@suse.de>
10194
10195         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
10196
10197 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10198
10199         Implement handling of restartable conversion functions according to
10200         ISO C.
10201         * iconv/gconv.h (__gconv_fct): Add additional parameter.
10202         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
10203         * iconv/gconv.c: Pass additional parameter to conversion function.
10204         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
10205         (internal_ucs4le_loop_single): New function.
10206         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
10207         (__gconv_transform_internal_ascii): Likewise.
10208         (__gconv_transform_internal_utf8): Likewise.
10209         (__gconv_transform_utf8_internal): Likewise.
10210         (__gconv_transform_ucs2_internal): Likewise.
10211         (__gconv_transform_internal_ucs2): Likewise.
10212         (__gconv_transform_ucs2reverse_internal): Likewise.
10213         (__gconv_transform_internal_ucs2reverse): Likewise.
10214         (internal_ucs4le_loop_unaligned): Before return
10215         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
10216         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
10217         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
10218         * iconv/loop.c: Fit in definition of function to convert one character
10219         for processing of left-over bytes from the state object.
10220         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
10221         inend to match names in loop functions.
10222         (RESET_INPUT_BUFFER): Change apprpriately.
10223         (gconv): If needed, call function to process bytes from the state
10224         object.  Similar at the end: store left over bytes if input is
10225         incomplete.
10226         Take extra argument and add new argument to all calls of the
10227         conversion function.
10228         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
10229         information in the state object to not conflict with length count.
10230         * iconvdata/iso-2022-jp.c: Likewise.
10231         * iconvdata/iso-2022-kr.c: Likewise.
10232         * iconvdata/unicode.c: Adjust for change change in parameters of
10233         skeleton function.
10234         * iconvdata/utf-16.c: Likewise.
10235         * libio/iofwide.c: Add new parameter to all calls of conversion
10236         function.
10237         * wcsmbs/btowc.c: Likewise.
10238         * wcsmbs/mbrtowc.c: Likewise.
10239         * wcsmbs/mbsnrtowcs.c: Likewise.
10240         * wcsmbs/mbsrtowcs.c: Likewise.
10241         * wcsmbs/wcrtomb.c: Likewise.
10242         * wcsmbs/wcsnrtombs.c: Likewise.
10243         * wcsmbs/wcsrtombs.c: Likewise.
10244         * wcsmbs/wctob.c: Likewise.
10245
10246         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
10247         MAX_NEEDED_INPUT.
10248
10249 2000-04-07  Andreas Jaeger  <aj@suse.de>
10250
10251         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
10252         newer kernels.
10253
10254 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
10255
10256         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
10257         element a union to allow byte access.
10258         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
10259         mbstate_t.
10260         * iconvdata/iso-2022-jp.c: Likewise.
10261         * iconvdata/iso-2022-kr.c: Likewise.
10262         * wcsmbs/mbsinit.c: Likewise.
10263         * stdlib/mblen.c: Likewise.
10264         * stdio-common/printf-parse.h: Likewise.
10265
10266 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10267
10268         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
10269         kernel does not allow relative seeks on descriptors associated
10270         with directories.  Go back to get the position in the directory
10271         every time we enter the function.  Return -1 and set errno if one
10272         entry could be read from the kernel but does not fit into the
10273         buffer passed in by the user.
10274
10275         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
10276         Support ..(2).. ellipsis.
10277         (parse_charmap): Recognize ..(2).. etc and pass step down.
10278         Correctly generate names for UCS4 characters.
10279
10280         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
10281         (ctype_finish): We know the wide character value for <SP>,
10282         don't search.
10283         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
10284         (charclass_ucs4_ellipsis): Likewise.
10285         (read_translit_ignore_entry): Store ellipsis step.
10286         (ctype_read): Recognize ..(2).. etc and pass step down.
10287
10288         * locale/programs/linereader.c (lr_token): When seeing comment
10289         character ignore only rest of line in sources but stop at escaped
10290         newline.
10291         Recognize ..(2).. and ....(2).....
10292
10293         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
10294         and tok_ellipsis4_2.
10295
10296 2000-04-06  Andreas Jaeger  <aj@suse.de>
10297
10298         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
10299         removed, remove it here also.
10300         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10301         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
10302         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
10303         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
10304
10305 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
10306
10307         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
10308         include bits/sigcontext.h.
10309         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10310
10311 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10312
10313         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
10314         collation symbol definition.  Value in quivalence definition must
10315         be defined, don't check that it is not.
10316
10317         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
10318         values as character names.
10319
10320         * locale/programs/ld-ctype.c (get_character): Handle missing
10321         repertoire map correctly.
10322
10323 2000-04-05  Cristian Gafton  <gafton@redhat.com>
10324
10325         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
10326         because it is used in generic code.
10327         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
10328         * wcsmbs/wcwidth.h: Declare __ctype32_b.
10329         * intl/gettext.c: Include <locale.h>.
10330         * intl/ngettext.c: Likewise.
10331
10332 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
10333
10334         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
10335         socklen_t type for size.
10336         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
10337         init function interface.
10338         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10339         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
10340         sys/ucontext.h.
10341         (__jmp_buf): Declare the whole type structure here, don't use
10342         ucontext.
10343
10344 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
10345
10346         * iconv/skeleton.c (put16u): Fix typo.
10347         Reported by Bruno Haible <haible@ilog.fr>.
10348
10349         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
10350         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
10351         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
10352         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
10353         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
10354         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
10355
10356         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
10357         * Makefile (distribute): Add abi-versions.awk and
10358         firstversions.awk.
10359         Patches by Torsten Duwe <duwe@caldera.de>.
10360
10361 2000-04-05  Andreas Schwab  <schwab@suse.de>
10362
10363         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
10364
10365 2000-04-05  Andreas Schwab  <schwab@suse.de>
10366
10367         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
10368         entry point, used on Hurd.
10369
10370 2000-04-04  Andreas Jaeger  <aj@suse.de>
10371
10372         * intl/Makefile: Only run the gettext test with shared libraries.
10373
10374 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10375
10376         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10377         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10378
10379 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
10380
10381         * Makeconfig: Undo last change.
10382         * configure.in: If --disable-shared was given, don't set VERSIONING,
10383         don't define DO_VERSIONING, and don't give scare warning for no
10384         versioning.
10385         * configure: Regenerated.
10386
10387 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
10388
10389         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
10390
10391 2000-04-04  Andreas Jaeger  <aj@suse.de>
10392
10393         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
10394
10395 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
10396
10397         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
10398         STV_HIDDEN and STV_INTERNAL during lookup.
10399         (profile_fixup): Likewise.
10400         * elf/dl-reloc.c (RESOLVE): Likewise.
10401
10402         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
10403         unaligned so that it compiles for system which need unaligned
10404         access handling.
10405
10406 2000-04-04  Andreas Schwab  <schwab@suse.de>
10407
10408         * elf/cache.c (print_entry): Only look at the type field when
10409         printing the type.
10410
10411 2000-04-04  Andreas Schwab  <schwab@suse.de>
10412
10413         * iconvdata/big5.c (BODY): Fix typo.
10414
10415 2000-04-04  Andreas Schwab  <schwab@suse.de>
10416
10417         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
10418         function interface.  Remove unused _dl_start_user entry point.
10419
10420 2000-04-03  Andreas Jaeger  <aj@suse.de>
10421
10422         * include/arpa/inet.h (__inet_aton): Add protoype.
10423
10424 2000-04-01  Andreas Jaeger  <aj@suse.de>
10425
10426         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
10427
10428         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
10429         * sysdeps/mach/mips/thread_state.h: Likewise.
10430
10431         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
10432         * sysdeps/generic/fegetenv.c: Likewise.
10433         * sysdeps/generic/fesetenv.c: Likewise.
10434         * sysdeps/generic/feupdateenv.c: Likewise.
10435         * sysdeps/generic/fraiseexcpt.c: Likewise.
10436         * sysdeps/generic/fsetexcptflg.c: Likewise.
10437         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
10438         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10439         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10440         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10441
10442 2000-04-02  H.J. Lu  <hjl@gnu.org>
10443
10444         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
10445
10446 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10447
10448         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
10449         (add_name_to_object): Add cast in malloc call.
10450         (fillin_rpath): Optimize loop to initialize ->status a bit.
10451
10452         * sysdeps/i386/dl-machine.h: Undo last change.
10453         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
10454         Restore %edx register after call here.
10455
10456         * sysdeps/arm/atomicity.h: New file.
10457         Contributed by Jesper Skov <jskov@redhat.com>.
10458
10459 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
10460
10461         * Makeconfig (preprocess-versions): Undo last change.
10462         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
10463
10464         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
10465         here, before we might move the stack.
10466         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
10467         (init1): And not here.
10468
10469         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
10470         change, to restore argc value in call-clobbered register after
10471         RTLD_START_SPECIAL_INIT, which will contain a call.
10472
10473         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
10474         allocating and initializing L->l_initfini.
10475
10476         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
10477
10478 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10479
10480         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
10481         RUNPATH, RPATH, and LD_LIBRARY_PATH.
10482         (open_path): Change type of fourth parameter.  Make pointer to array
10483         of pointers.  Create variable dirs with original type.
10484         Track whether any directory for the object exists and if not,
10485         change *DIRSP to (void*) -1 to signal there is no such search path.
10486         (_dl_map_object): Change all calls of open_path.
10487         Rewrite decompose_rpath calls.
10488
10489 2000-03-31  Andreas Schwab  <schwab@suse.de>
10490
10491         * string/strfry.c: Declare STATE as array of char instead of int
10492         and do not initialize it (done by initstate_r).  Pass correct
10493         size.
10494
10495 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10496
10497         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
10498
10499         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
10500         instruction out of the code.
10501
10502 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10503
10504         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
10505         element at this position.
10506
10507         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
10508         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
10509         l_reldeps elements.
10510         * elf/dl-lookup.c (add_dependency): New function.
10511         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
10512         dynamically loaded object.
10513         (_dl_lookup_symbol_skip): Likewise.
10514         (_dl_lookup_versioned_symbol): Likewise.
10515         (_dl_lookup_versioned_symbol_skip): Likewise.
10516         * elf/dl-open.c: Don't define _dl_load_lock here...
10517         * elf/rtld.c: ...but here...
10518         * elf/dl-support.c: ...and here.
10519         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
10520         through relocation.
10521         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
10522         relocations.
10523         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
10524         anymore.
10525         * dlfcn/glrefmain.c: Add one more debug message.
10526
10527         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
10528         command line.
10529         * Makerules (sysd-versions): Use ( ) instead of { }.
10530
10531         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
10532         optimize for the non-debugging case.
10533         * elf/dl-lookup.c: Likewise.
10534         * sysdeps/generic/libc-start.c: Likewise.
10535
10536 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
10537
10538         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
10539         (init1): Don't initialize __environ here, since init already does it.
10540         (first_init): New function, broken out of _init.
10541         (_hurd_stack_setup): Use it.
10542         [SHARED] (_dl_init_first): New function, renamed from old _init.
10543         (init1) [SHARED]: Don't call posixland_init here.
10544         (posixland_init): Take ENVP arg, so signature is usual for initializer.
10545         [SHARED] (_init): Define as alias for posixland_init.
10546         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
10547         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
10548         RTLD_START_SPECIAL_INIT before calling initializers.
10549         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
10550         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
10551         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
10552         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
10553
10554         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
10555         since we define the function with the name `tmpfile'.
10556
10557         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
10558         * hurd/Versions: Likewise.
10559
10560 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10561
10562         * elf/dl-runtime.c (fixup): Fix typo in comment.
10563
10564         * resolv/netdb.h (getnameinfo): All length parameters are of type
10565         socklen_t.
10566         * inet/getnameinfo.c: Likewise.
10567
10568 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
10569
10570         * posix/unistd.h (socklen_t): Define if it has not yet happened.
10571         (gethostname): Change type of second parameter to socklen_t.
10572         * include/unistd.h (__gethostname): Change type of second
10573         parameter to socklen_t.
10574         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
10575         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
10576         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
10577         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
10578         Likewise.
10579         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
10580         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
10581         Allow definition elsewhere.
10582         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10583         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10584         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10585         * sysdeps/generic/bits/types.h: Define __socklen_t.
10586         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
10587         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
10588         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
10589         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10590         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
10591         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
10592         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
10593
10594         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
10595         (inet_lnaof): Likewise.
10596         (inet_netof): Likewise.
10597         (inet_network): Likewise.
10598         (inet_aton): Likewise.
10599         (inet_makeaddr): Change parameter types to in_addr_t.
10600         (inet_neta): Likewise.
10601         (inet_ntop): Change type of last parameter to socklen_t.
10602         (inet_aton): Only make available if __USE_MISC.
10603         (inet_neta): Likewise.
10604         (inet_net_ntop): Likewise.
10605         (inet_net_pton): Likewise.
10606         (inet_nsap_ntoa): Likewise.
10607
10608         * inet/in.h: Define in_port_t type.
10609         Define in_addr_t type.
10610         (struct in_addr): Use in_addr_t in definition.
10611         (IN_CLASSA): Use cast to in_addr_t.
10612         (IN_CLASSB): Likewise.
10613         (IN_CLASSC): Likewise.
10614         (IN_CLASSD): Likewise.
10615         (IN_EXPERIMENTAL): Likewise.
10616         (IN_BADCLASS): Likewise.
10617         (INADDR_ANY): Likewise.
10618         (INADDR_BROADCAST): Likewise.
10619         (INADDR_NONE): Likewise.
10620         (INADDR_LOOPBACK): Likewise.
10621         (INADDR_UNSPEC_GROUP): Likewise.
10622         (INADDR_ALLHOSTS_GROUP): Likewise.
10623         (INADDR_ALLRTRS_GROUP): Likewise.
10624         (INADDR_MAX_LOCAL_GROUP): Likewise.
10625         (struct sockaddr_in): Use in_port_t for sin_port element.
10626         (struct sockaddr_in6): Use in_port_t for sin6_port element.
10627         Use uint8_t instead of u_int8_t.
10628
10629         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
10630         Call __inet_aton instead of inet_aton.
10631         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
10632
10633         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
10634         (innetgr): Likewise.
10635         (struct addrinfo): Use socklen_t for ai_addrlen element.
10636
10637         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
10638         IPV6_RECVERR): New defines.
10639
10640         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
10641         * inet/getnetbyad.c: Likewise.
10642         * inet/getnetbyad_r.c: Likewise.
10643         * nis/nss_nis/nis-network.c: Likewise.
10644         * nis/nssplus_nis/nisplus-network.c: Likewise.
10645         * nss/nss_files/files-network.c: Likewise.
10646         * resolv/netdb.h: Define uint32_t if not already happened.
10647         Include bits/netdb.h.  Remove definition of struct netent.
10648         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
10649         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
10650         * sysdeps/generic/bits/netdb.h: New file.
10651         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
10652
10653         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
10654         (tests): Add glrefmain.
10655         Add rules to build modules and run tests.  Ignore result of glrefmain
10656         for now since it fails.
10657         * dlfcn/glrefmain.c: New file.
10658         * dlfcn/glreflib1.c: New file.
10659         * dlfcn/glreflib2.c: New file.
10660
10661         * test-skeleton.c: Include <string.h> for strsignal prototype.
10662
10663         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
10664         to be missing.
10665
10666         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
10667         former init-first.h.  Initialize __libc_multiple_libcs.
10668
10669 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10670
10671         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
10672         #if expression for use of unaligned function to the one used in
10673         the definition of these functions.
10674         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
10675         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
10676         (internal_ucs4le_loop_unaligned): New function.
10677
10678         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
10679         (tests): Add order.
10680         (module-names): Add dep1, dep2, dep3, and dep4.
10681         Add dependencies for dep* modules and order.
10682         Define rule for order.out which checks the result.
10683         * elf/dep1.c: New file.
10684         * elf/dep2.c: New file.
10685         * elf/dep3.c: New file.
10686         * elf/dep4.c: New file.
10687         * elf/order.c: New file.
10688
10689         * elf/dl-init.c: Fix typo in comment.
10690
10691 2000-03-31  Andreas Jaeger  <aj@suse.de>
10692
10693         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10694         init function interface.
10695         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10696
10697 2000-03-31  Andreas Jaeger  <aj@suse.de>
10698
10699         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10700         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10701         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10702         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10703         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10704
10705         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10706         anymore, update comment.
10707
10708         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10709
10710         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10711         SHLIB_COMPAT - the struct is always needed.
10712
10713 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10714
10715         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10716         * elf/dl-support.c: Define _dl_starting_up.
10717
10718 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10719
10720         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10721         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10722
10723         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10724
10725         * elf/Makefile (dl-routines): Remove preinit.
10726         * elf/Versions: Remove _dl_preinit.
10727         * elf/dl-preinit.c: Removed.  Move content into...
10728         * elf/dl-init.c: ...here.
10729         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10730
10731         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10732         elements.
10733
10734 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10735
10736         * stdlib/strfmon.c: Corrected problems with the code that
10737         sets default values for [np]_sep_by_space and
10738         [np]_sign_posn; also the new positive/negative alignment
10739         code from the previous patch was not quite right for
10740         [np]_sign_posn = 0.
10741
10742         * localedata/tst-fmon.data: Changes corresponding to the
10743         two sets of fixes made to stdlib/strfmon.c.
10744
10745 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10746
10747         * malloc/malloc.c: Declare bit flags UL so that they will not
10748         default to int size when being inverted.
10749
10750 2000-03-29  Andreas Jaeger  <aj@suse.de>
10751
10752         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10753         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10754
10755 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10756             Ralf Baechle <ralf@uni-koblenz.de>
10757
10758         * Makeconfig: Introduce new variable SHARED to mark code used in
10759         the shared library.
10760         * elf/dl-close.c: Use it instead of PIC.
10761         * elf/dl-load.c: Likewise.
10762         * elf/dl-open.c: Likewise.
10763         * hurd/geteuids.c: Likewise.
10764         * include/libc-symbols.h: Likewise.
10765         * include/shlib-compat.h: Likewise.
10766         * libio/freopen.c: Likewise.
10767         * linuxthreads/cancel.c: Likewise.
10768         * linuxthreads/pthread.c: Likewise.
10769         * linuxthreads/wrapsyscall.c: Likewise.
10770         * nss/nsswitch.c: Likewise.
10771         * stdio-common/vfprintf.c: Likewise.
10772         * sysdeps/arm/init-first.c: Likewise.
10773         * sysdeps/i386/init-first.c: Likewise
10774         * sysdeps/generic/init-first.c: Likewise.
10775         * sysdeps/generic/libc-start.c: Likewise.
10776         * sysdeps/mips/init-first.c: Likewise.
10777         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10778         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10779         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10780         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10781         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10782
10783         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10784
10785 2000-03-29  Andreas Jaeger  <aj@suse.de>
10786
10787         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10788         Use D_PTR to access relocated entries in l_info.
10789         (elf_machine_rela): Likewise.
10790
10791         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10792         Likewise.
10793         (elf_machine_rela): Likewise.
10794
10795         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10796         Likewise.
10797         (__elf_machine_fixup_plt): Likewise.
10798         (__process_machine_rela): Likewise.
10799
10800         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10801         (elf_machine_rela): Likewise.
10802
10803         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10804         (elf_machine_rel): Likewise.
10805
10806         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10807         (elf_machine_fixup_plt): Likewise.
10808         (elf_machine_rela): Likewise.
10809
10810 2000-03-29  Andreas Jaeger  <aj@suse.de>
10811
10812         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10813         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10814         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10815         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10816         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10817         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10818         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10819         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10820         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10821         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10822         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10823         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10824         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10825         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10826         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10827
10828         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10829         macros, remove K&R prototypes.
10830
10831 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10832
10833         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10834         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10835         (PR libc/1677).
10836
10837 2000-03-30  Andreas Jaeger  <aj@suse.de>
10838
10839         * misc/sys/cdefs.h: Remove K&R support.
10840
10841 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10842
10843         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10844         more cases.
10845         * iconv/loop.c: Likewise.
10846
10847 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10848
10849         * iconv/loop.c (put16): Remove __const. Fix access index.
10850         (put32): Remove __const. Use uint32_t instead of uint16_t.
10851         * iconv/skeleton.c: Likewise.
10852
10853 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10854
10855         * mach/Versions (libc: GLIBC_2.0)
10856         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10857         __vm_allocate on this.
10858         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10859         mutex- and spinlock-related symbols on this.
10860         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10861         New version set.  Lock-related symbols go here instead in this case.
10862         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10863         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10864         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10865         * hurd/Versions
10866         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10867         Put them here instead.
10868         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10869         New version set.  Those cthreads symbols go here instead in this case.
10870         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10871
10872 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10873
10874         * elf/dl-init.c (_dl_init): We don't need to call constructors
10875         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10876
10877         Implement dynamic determination of constructor/destructor order in
10878         the dynamic linker.
10879         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10880         (GLIBC_2.2): Add _dl_init.
10881         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10882         r_duplist is not anymore allocated separately.  l_initfini is and
10883         therefore free it if necessary.
10884         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10885         malloc block.  Otherwise allocate l_initfini list only.
10886         Put dependencies for the object in l_initfini list.
10887         Sort dependencies for the object to be loaded topologically.
10888         * elf/dl-fini.c: Before running the destructors sort the topologically.
10889         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10890         call constructors instead of iterating over the pointers.  Get list of
10891         objects for which to run constructors from l_initfini element. Accept
10892         argc, argv, and env as parameters and pass them to the constructors.
10893         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10894         with size of dynamic section.
10895         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10896         _dl_init_next and calling constructors ourself.
10897         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10898         Take argc, argv, and env as parameters and pass them to the
10899         constructors.  Rewrite to call all constructors and not iterate over
10900         the pointers.
10901         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10902         precompute l_initcount and l_preinitcount.
10903         * elf/link.h (struct link_map): Add l_ldnum member.
10904         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10905         l_initcount, and l_preinitcount.  Add l_initfini.
10906         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10907         one for _dl_init.
10908         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10909         function interface.
10910         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10911         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10912         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10913         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10914         conventions now match.
10915
10916         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10917         effect for shared objects.  Don't emit message and call only for
10918         static library.
10919
10920 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10921
10922         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10923         CSA_Z243.4-1985-1..UCS2.
10924         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10925         ISO-8859-10..UCS2.
10926
10927 2000-03-29  Andreas Jaeger  <aj@suse.de>
10928
10929         * include/unistd.h: Remove duplicate entry for __rmdir.
10930         Remove declaration of __mkdir since __mkdir is declared in
10931         sys/stat.h.
10932
10933         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10934         by Michael Deutschmann <michael@talamasca.ocis.net>.
10935
10936         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10937         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10938         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10939         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10940         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10941
10942 2000-03-28  Andreas Jaeger  <aj@suse.de>
10943
10944         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10945         declaration, the prototype is defined via bits/mathcalls.h.
10946         (__sincosf): Likewise.
10947         (__sincosl): Likewise.
10948         (ldexp): Likewise.
10949         (ldexpf): Likewise.
10950         (ldexpl): Likewise.
10951         (__finite): Likewise.
10952         (__inline_mathcodeNP): New macro without prototype
10953         declarations.
10954         (__inline_mathcodeNP2): Likewise.
10955         (__inline_mathcodeNP3): Likewise.
10956         (__inline_mathcodeNP_): Likewise.
10957         (__inline_mathcodeNP2_): Likewise.
10958         (__inline_mathcodeNP3_): Likewise.
10959         (__inline_mathopNP): Likewise.
10960         (__inline_mathop_declNP): Likewise.
10961         (__inline_mathop_declNP_): Likewise.
10962         (__inline_mathcode_): Use __inline_mathcodeNP_.
10963         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10964         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10965         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10966         (__expm1l): Don't define prototype, the prototype is defined via
10967         bits/mathcalls.h.
10968         (exp): Likewise.
10969         (__expl): Likewise.
10970         (tan): Likewise.
10971         (atan2): Likewise.
10972         (__atan2l): Likewise.
10973         (fmod): Likewise.
10974         (pow): Likewise.
10975         (fabsf): Likewise.
10976         (fabsl): Likewise.
10977         (__fabsl): Likewise.
10978         (asin): Likewise.
10979         (acos): Likewise.
10980         (sinh): Likewise.
10981         (cosh): Likewise.
10982         (tanh): Likewise.
10983         (floor): Likewise.
10984         (ceil): Likewise.
10985         (expm1): Likewise.
10986         (log1p): Likewise.
10987         (asinh): Likewise.
10988         (acosh): Likewise.
10989         (atanh): Likewise.
10990         (hypot): Likewise.
10991         (logb): Likewise.
10992         (fma): Likewise.
10993         (drem): Likewise.
10994         (sqrt): Likewise.
10995         (__sqrtl): Likewise.
10996         (sin): Likewise.
10997         (cos): Likewise.
10998         (atan): Likewise.
10999         (log): Likewise.
11000         (log10): Likewise.
11001         (asinh): Likewise.
11002         (log2): Likewise.
11003         (rint): Likewise.
11004
11005 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
11006
11007         * Makerules: If make variable md5 is defined to yes after
11008         generating dependencies generate MD5 sum for the object.
11009
11010         * iconv/gconv_builtin.h: Fix length in transformation definition
11011         for UNICODEBIG.
11012
11013         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
11014
11015         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
11016         allow as well reading from/writing to unaligned addresses on machines
11017         which don't support this in hardware.  Use FCTNAME macro to define
11018         function name.  Include the file a second time for platforms which
11019         need special unaligned handling.
11020         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
11021         to access potentially unaligned addresses.  These macros are intended
11022         to be used only outside the loops.
11023         (unaligned): New definition.  In case the machine can handle unaligned
11024         access define as zero.  Otherwise as a variable which is initialized
11025         as nonzero in case the buffer passed in at runtime is unaligned with
11026         respect to the character set encoding involved.
11027         Call aligned or unaligned looop functions according to unaligned
11028         variable.
11029         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
11030         of direct casting pointer to potentially handle unaligned memory
11031         accesses.
11032         * iconvdata/8bit-generic.c: Likewise.
11033         * iconvdata/ansi_x3.110.c: Likewise.
11034         * iconvdata/big5.c: Likewise.
11035         * iconvdata/euc-cn.c: Likewise.
11036         * iconvdata/euc-jp.c: Likewise.
11037         * iconvdata/euc-kr.c: Likewise.
11038         * iconvdata/euc-tw.c: Likewise.
11039         * iconvdata/gbk.c: Likewise.
11040         * iconvdata/iso-2022-cn.c: Likewise.
11041         * iconvdata/iso-2022-jp.c: Likewise.
11042         * iconvdata/iso-2022-kr.c: Likewise.
11043         * iconvdata/iso646.c: Likewise.
11044         * iconvdata/iso_6937-2.c: Likewise.
11045         * iconvdata/iso_6937.c: Likewise.
11046         * iconvdata/johab.c: Likewise.
11047         * iconvdata/sjis.c: Likewise.
11048         * iconvdata/t.61.c: Likewise.
11049         * iconvdata/uhc.c: Likewise.
11050         * iconvdata/unicode.c: Likewise.
11051         * iconvdata/utf-16.c: Likewise.
11052
11053         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
11054         prototypes.
11055
11056         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
11057         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
11058         public.
11059         * malloc/mcheck.h (mcheck_check_all): Declare.
11060
11061         * stdio-common/Makefile (tests): Add tst-obprintf.
11062
11063 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
11064
11065         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
11066         Declare pthread_sigmask.
11067
11068         * csu/version.c: Add 2000 to copyright years.
11069         Remove Emacs local variables section.
11070
11071 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11072
11073         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
11074         __gconv_transform_internal_ucs2little): Remove declarations.
11075         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
11076         __gconv_transform_internal_ucs2): Never need to bswap_16.
11077         (__gconv_transform_ucs2reverse_internal,
11078         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
11079
11080 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11081
11082         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
11083         obsoleting version not being defined at all, in which case the
11084         result is always true.
11085
11086         * Makeconfig (preprocess-versions): New canned sequence for running
11087         cpp on shlib-versions and the like.
11088         (soversions.i): Use it.
11089         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
11090         Versions.def and Versions files.
11091
11092 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11093
11094         * stdio-common/tst-obprintf.c (main): Add another check to see
11095         obstack_printf handling all possible beginnings of the block
11096         inside an obstack chunk.
11097
11098         * locale/programs/localedef.c: Use __malloc_initialize_hook to
11099         install mcheck handler.
11100
11101         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
11102         handling problem.
11103
11104 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11105
11106         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
11107
11108         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
11109         on [HAVE_ELF && DO_VERSIONING].
11110
11111 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11112
11113         * stdio-common/tst-obprintf.c: New file.
11114
11115 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11116
11117         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
11118         _IO_OVERFLOW directly instead through __overflow.
11119
11120         * locale/programs/localedef.c (construct_output_path): If path
11121         contains a / compute the end of the directory name correctly.
11122
11123         * include/features.h: Undef and document __USE_XOPEN2K.
11124
11125         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
11126         whenever a function is called.  Initiated by calling mcheck_pedantic
11127         instead of mcheck.
11128         * malloc/mcheck.h: Declare mcheck_pedantic.
11129         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
11130         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
11131         for now.
11132
11133 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11134
11135         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
11136         * dlfcn/dlopenold.c: Likewise.
11137         * nss/getXXbyYY_r.c: Likewise.
11138         * nss/getXXent_r.c: Likewise.
11139         * hurd/hurdinit.c: Likewise.
11140         * hurd/compat-20.c: Likewise.
11141         * libio/oldiofopen.c: Likewise.
11142         * libio/oldiofclose.c: Likewise.
11143         * libio/oldiofdopen.c: Likewise.
11144         * libio/oldfileops.c: Likewise.
11145         * libio/oldstdfiles.c: Likewise.
11146         * libio/oldiofsetpos.c: Likewise.
11147         * libio/oldiofgetpos.c: Likewise.
11148         * libio/oldiofgetpos64.c: Likewise.
11149         * libio/oldiofsetpos64.c: Likewise.
11150         * libio/oldiopopen.c: Likewise.
11151         * libio/oldpclose.c: Likewise.
11152         * libio/oldtmpfile.c: Likewise.
11153         * libio/freopen.c (freopen): Likewise.
11154         * libio/iofclose.c (_IO_new_fclose): Likewise.
11155
11156         * sysdeps/mach/sys/reboot.h: Include <features.h>.
11157         (reboot): Declare it.
11158
11159         * libio/Makefile (headers): Add bits/stdio-lock.h here.
11160
11161         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
11162
11163         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
11164
11165         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
11166         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
11167         We need this for the sbrk decl, which can be included without Unix98.
11168
11169 2000-03-20  Richard Henderson  <rth@cygnus.com>
11170
11171         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
11172         argument to yperr2nss is an int, not size_t.
11173         * posix/regex.c (print_partial_compiled_pattern): Cast all
11174         ptrdiff_t to long for printing.
11175         (print_compiled_pattern): Use Z for printing size_t.
11176         * posix/testfnm.c (tests): Avoid trigraphs.
11177         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
11178         Use a C comment, not an assembly comment.
11179
11180         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
11181         of __ASSUME_32BITUIDS.
11182
11183 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11184
11185         * libio/iofopncook.c: Remove K&R prototypes.
11186
11187 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11188
11189         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
11190         an initial value of 1024 instead of RLIM_INFINITY.
11191
11192         * Versions.def (libmachuser, libhurduser): Remove these sections,
11193         since these libraries do not presently use symbol versions.
11194
11195         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
11196         is RLIM_INFINITY, return -1 instead.
11197
11198 2000-03-24  Andreas Jaeger  <aj@suse.de>
11199
11200         * Makefile (postclean): Added soversions.i.
11201
11202 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11203
11204         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
11205         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
11206         and _FPU_IEEE.  Change _FPU_RESERVED.
11207
11208 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11209
11210         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
11211
11212 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11213
11214         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
11215         (gaih_inet): Remove unused duplicate variable.
11216
11217         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
11218         Don't use __libc_sa_len, which only exists for Linux.  Just handle
11219         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
11220         only flavors supported by this function anyway.
11221
11222 2000-03-24  Geoff Clare  <gwc@unisoft.com>
11223
11224         * stdlib/strfmon.c: Corrected problems with missing signs and
11225         missing or extra spaces; allow for sign strings longer than
11226         one character; add padding to ensure positive and negative
11227         formats are aligned when a left precision is used.
11228
11229 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11230
11231         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
11232         Patch by John Mizel <John.Mizel@msdw.com>.
11233
11234 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
11235
11236         * manual/install.texi: Remove references to crypt add-on.
11237
11238 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
11239
11240         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
11241         section while taking the _hurd_rlimit_lock.
11242         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
11243
11244 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11245
11246         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
11247         using $(LN_S).
11248
11249         * sysdeps/mach/hurd/if_index.c: New file.
11250
11251         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
11252         * sysdeps/gnu/net/if.h: here.
11253         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
11254         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
11255         * sysdeps/generic/net/if.h: New file.  Declares just the standard
11256         functions and `struct if_nameindex' type.
11257         * socket/Makefile (headers): Add net/if.h here.
11258         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
11259         * sysdeps/mach/hurd/Dist: Remove it here.
11260         * sysdeps/unix/sysv/linux/Dist: And here.
11261         * sysdeps/generic/if_index.c: Include <net/if.h>.
11262
11263 2000-03-24  Andreas Jaeger  <aj@suse.de>
11264
11265         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
11266         access relocated entries in l_info.
11267         (elf_machine_got_rel): Likewise.
11268         (elf_machine_runtime_setup): Likewise.
11269         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
11270         (elf_machine_runtime_setup): Likewise.
11271         (__dl_runtime_resolve): Likewise.
11272
11273 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
11274
11275         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
11276         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
11277         according to RFC 2553.
11278         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
11279         * inet/getnameinfo.c: Likewise.
11280         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11281
11282 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11283
11284         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
11285         Remove no-op pointer increment.
11286
11287 2000-03-23  Andreas Jaeger  <aj@suse.de>
11288
11289         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
11290         follow change for libio.h from 2000-03-10.
11291
11292 2000-03-23  Andreas Jaeger  <aj@suse.de>
11293
11294         * elf/dl-addr.c: Adjust include paths for ldsodefs location
11295         change.
11296         * elf/dl-debug.c: Likewise.
11297         * elf/dl-deps.c: Likewise.
11298         * elf/dl-error.c: Likewise.
11299         * elf/dl-fini.c: Likewise.
11300         * elf/dl-init.c: Likewise.
11301         * elf/dl-load.c: Likewise.
11302         * elf/dl-lookup.c: Likewise.
11303         * elf/dl-minimal.c: Likewise.
11304         * elf/dl-object.c: Likewise.
11305         * elf/dl-open.c: Likewise.
11306         * elf/dl-preinit.c: Likewise.
11307         * elf/dl-profile.c: Likewise.
11308         * elf/dl-profstub.c: Likewise.
11309         * elf/dl-reloc.c: Likewise.
11310         * elf/dl-runtime.c: Likewise.
11311         * elf/dl-support.c: Likewise.
11312         * elf/dl-symbol.c: Likewise.
11313         * elf/dl-version.c: Likewise.
11314         * elf/rtld.c: Likewise.
11315         * elf/sprof.c: Likewise.
11316         * sysdeps/generic/dl-cache.c: Likewise.
11317         * sysdeps/generic/dl-origin.c: Likewise.
11318         * sysdeps/generic/dl-sysdep.c: Likewise.
11319         * sysdeps/generic/elf/backtracesyms.c: Likewise.
11320         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11321         * sysdeps/generic/libc-start.c: Likewise.
11322         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11323         * sysdeps/powerpc/dl-machine.c: Likewise.
11324         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11325         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11326         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11327         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
11328
11329         * elf/ldsodefs.h: Move file to ...
11330         * sysdeps/generic/ldsodefs.h: ... here.
11331
11332         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
11333
11334         * sysdeps/mips/elf/ldsodefs.h: New file.
11335
11336         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
11337         entries in l_info.
11338         (_dl_check_map_versions): Likewise.
11339         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11340         * elf/dl-load.c (_dl_init_paths): Likewise.
11341         (_dl_map_object): Likewise.
11342         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
11343         (elf_get_dynamic_info): Likewise.
11344         * elf/do-lookup.h (FCT): Likewise.
11345         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
11346         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
11347         * elf/dl-addr.c (_dl_addr): Likewise.
11348         * elf/dl-runtime.c (profile_fixup): Likewise.
11349         (fixup): Likewise.
11350         * elf/dl-init.c (_dl_init_next): Likewise.
11351         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
11352         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
11353         (DISTINGUISH_LIB_VERSIONS): Likewise.
11354         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
11355         (elf_machine_rel): Likewise.
11356
11357         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
11358         for writable dynamic section.
11359
11360 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
11361
11362         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
11363         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11364
11365 2000-03-22  Andreas Jaeger  <aj@suse.de>
11366
11367         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
11368         from latest Linux kernel.
11369
11370 2000-03-21  Andreas Jaeger  <aj@suse.de>
11371
11372         * Versions.def: Add version 2.1.4.
11373
11374 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11375
11376         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
11377         * libio/oldiofopen.c: Likewise.
11378         * libio/oldiofclose.c: Likewise.
11379         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11380
11381 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
11382
11383         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
11384         indicating the first version set to obsolete the conditionalized code.
11385         (compat_symbol): New macro.
11386         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
11387         rhs be the ABI_* macro for the subsuming version.  Assign increasing
11388         integer values to the ABI_* macros for supported versions.
11389         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
11390         compat_symbol macro.
11391
11392 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11393
11394         * nscd/connections.c (nscd_run): Pretty print.
11395         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
11396
11397         * manual/charset.texi: Fix typos.  Rephrase.
11398         * manual/process.texi: Likewise.
11399         * manual/signal.texi: Likewise.
11400         Patches by Mike Coleman <mkc@kc.net>.
11401
11402         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
11403         versions.
11404         * libio/iofdopen.c: Likewise.
11405         * libio/iofgetpos.c: Likewise.
11406         * libio/iofgetpos64.c: Likewise.
11407         * libio/iofopen.c: Likewise.
11408         * libio/iofsetpos.c: Likewise.
11409         * libio/iofsetpos64.c: Likewise.
11410         * libio/iopopen.c: Likewise.
11411         * libio/oldiofopen.c: Likewise.
11412         * libio/pclose.c: Likewise.
11413         * sysdeps/gnu/siglist.c: Likewise.
11414         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11415
11416         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
11417         chance to expand VERSION_##lib##_##version.
11418
11419         * libio/fileops.c: Use new macros from shlib-compat.h to define
11420         versions.
11421         * libio/iofclose.c: Likewise.
11422         * libio/oldiofclose.c: Likewise.
11423         Patch by Roland McGrath <roland@frob.com>.
11424
11425 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
11426
11427         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
11428         Lay out struct sigcontext according to what really gets passed on
11429         the stack.
11430         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
11431         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
11432         (prgregset_t, prfpregset_t): Define to elf_* types.
11433         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
11434         Define to correct value.
11435         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
11436         sigcontext.
11437         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
11438
11439 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
11440
11441         * scripts/firstversions.awk: Allow multiple version sets in the
11442         "earliest version" specification, meaning that version sets in the
11443         gaps between listed versions should be folded into the earliest later
11444         version that is explicitly listed.
11445         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
11446         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
11447
11448 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11449
11450         * iconv/gconv_builtin.c: Include <endian.h>.
11451         * iconv/gconv_builtin.h: Add UCS-BE aliases.
11452         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
11453         according to current platform.
11454         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
11455         __gconv_transform_internal_ucs2reverse, and
11456         __gconv_transform_internal_ucs4le.
11457         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
11458         __gconv_transform_ucs2reverse_internal and
11459         __gconv_transform_internal_ucs2reverse.
11460         * iconvdata/Makefile (modules): Add UNICODE.
11461         (distribute): Add unicode.c.
11462         * iconvdata/gconv-modules: Add definitions for UNICODE module.
11463         * iconvdata/unicode.c: New file.
11464
11465         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
11466         determine byte order of input and convert accordingly.
11467
11468         * iconvdata/utf-16.c (gconv_init): Fix typo.
11469
11470 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11471
11472         * iconvdata/gconv-modules: Fix typo.
11473
11474         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
11475         more messages.
11476
11477         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
11478
11479 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11480
11481         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
11482
11483 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11484
11485         * misc/Makefile (routines): Add mincore.
11486
11487 2000-03-20  Andreas Jaeger  <aj@suse.de>
11488
11489         * sysdeps/generic/mincore.c: New stub file.
11490
11491         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
11492         from latest Linux kernel.
11493
11494 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11495
11496         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
11497         _SC_GETPW_R_SIZE_MAX.
11498
11499 2000-03-20  Richard Henderson  <rth@cygnus.com>
11500
11501         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
11502         in GLIBC_2.1.4.
11503
11504 2000-03-20  Richard Henderson  <rth@cygnus.com>
11505
11506         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
11507         of arithmetic instructions.
11508
11509         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
11510         with the fpcr.  Protect from INV exception.
11511         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11512         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
11513         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11514
11515         * sysdeps/alpha/fpu/s_copysign.c: New.
11516         * sysdeps/alpha/fpu/s_copysignf.c: New.
11517         * sysdeps/alpha/fpu/s_fabs.c: New.
11518         * sysdeps/alpha/fpu/s_fabsf.c: New.
11519         * sysdeps/alpha/fpu/s_rint.c: New.
11520         * sysdeps/alpha/fpu/s_rintf.c: New.
11521
11522         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
11523
11524         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
11525         Kill sethae.
11526         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
11527         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
11528         Use physical addresses not KSEG addresses.
11529         (io_system): Add PYXIS.
11530         (io): Remove hae.reg, sys, hae_shift.
11531         (stb_mb, stw_mb, stl_mb, __sethae): New.
11532         (inline_outb, inline_outw, inline_outl): Don't set hae.
11533         (inline_inb, inline_inw, inline_inl): Likewise.
11534         (dense_sethae): New null function.
11535         (struct cpuinfo_data): New.
11536         (process_cpuinfo): Use local and stack variables, not static.
11537         Move readlink check here from init_iosys.
11538         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
11539         (_iopl): Simplify.
11540         (_hae_shift): Calculate it here.
11541         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
11542         add pciconfig_iobase.
11543
11544 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
11545
11546         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
11547         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
11548
11549         * scripts/versions.awk: Fixed version renaming code to distinguish
11550         libraries properly.
11551
11552 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11553
11554         * include/stdlib.h: Add prototype for __cxa_atexit.
11555
11556         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
11557         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
11558
11559 2000-03-17  Cristian Gafton  <gafton@redhat.com>
11560
11561         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
11562         existing rtld-installed-name.
11563         ($(rtld-installed-name)): Request libc-$(version) be installed too.
11564         replace existing rtld-installed-name using $(symbolic-link-prog).
11565
11566 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11567
11568         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
11569         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
11570         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
11571         but not the former.
11572
11573 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11574
11575         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
11576         glob64.  Since there is no glob64 in the LFS proposal applications
11577         can assume that glob handles LFS situations.  glob64 is only needed
11578         if alternative filesystem functions are used.
11579
11580 2000-03-19  Geoff Clare  <gwc@unisoft.com>
11581
11582         * sysdeps/generic/glob.c: Correct gl_pathc value returned
11583         when GLOB_DOOFFS is set; correct handling of patterns
11584         containing escaped wildcards (and no unescaped ones);
11585         GLOB_ERR flag was being ignored in some situations.
11586
11587         * posix/globtest.c, posix/globtest.sh: Updated to include
11588         tests for the problems fixed by the above changes to glob.c.
11589
11590         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
11591
11592 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
11593
11594         * Makeconfig (soversion.i): Use only first match for each lib.
11595
11596         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
11597
11598         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
11599         rather than $(sysd-dirs-done) to protect these rules.
11600
11601         * Makerules (version-renames.def): Target removed.
11602         (Versions.all): Depend on soversions.i directly and parse it.
11603
11604         * Makeconfig (soversions.i): New target, input-reading parts of
11605         soversions.mk generation moved here; result is a canonicalized
11606         list "LIB VERSION [SET]" for this configuration.
11607         (soversions.mk): Use that as input.  Don't emit map-firstversions.
11608         * Makerules (version-renames.def): New target, generated from
11609         soversions.i with contents that was in $(map-firstversions).
11610         (Versions.all): Don't depend on soversions.mk, depend on
11611         version-renames.def instead; just cat it into the input.
11612
11613         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
11614         for $(map-firstversions), which better handles it being empty.
11615
11616         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
11617         supported version for libc 0.2.90.libio to GLIBC_2.2.
11618
11619         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
11620         and use it to emit new variable `map-firstversions'.
11621         * scripts/firstversions.awk: New file.
11622         * Makerules (Versions.all): Use scripts/firstversions.awk and
11623         the $(map-firstversions) value to generate a modified versions list
11624         that includes renames in "A = B" syntax for each version set earlier
11625         than the "earliest symbol version" named in shlib-versions.
11626         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
11627         rename version set A to B in the output to the intermediate file.
11628         * scripts/abi-versions.awk: New file.
11629         * Makerules (abi-versions.h): New target, generated by that script.
11630         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
11631         * include/shlib-compat.h: New file, uses that generated header.
11632
11633 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
11634
11635         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
11636         after stripping # comments, and then run it through cpp.
11637         This allows things like "%ifdef FOO" based on config.h settings.
11638         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
11639
11640         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
11641         and other errors that indicate a pseudo-receive happened, grok through
11642         the message buffer for port rights that need references fixed up.
11643
11644 2000-03-16  Andreas Jaeger  <aj@suse.de>
11645
11646         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
11647
11648         * sysdeps/unix/sysv/linux/madvise.c: Remove.
11649
11650         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
11651         from latest Linux kernel.
11652         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
11653
11654         * misc/sys/mman.h: Add prototype for mincore.
11655
11656 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
11657
11658         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
11659         entry for GLIBC_2.0 version of setrlimit.
11660         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11661
11662 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11663
11664         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
11665         * nis/nss_compat/compat-initgroups.c: Likewise.
11666         * nis/nss_nis/nis-initgroups.c: Likewise.
11667         * nis/nss_nis/nis-netgrp.c: Likewise.
11668         * nis/nss_nis/nis-proto.c: Likewise.
11669         * nis/nss_nis/nis-rpc.c: Likewise.
11670         * nis/nss_nis/nis-service.c: Likewise.
11671         * nis/ypclnt.c: Likewise.
11672
11673 2000-03-16  Andreas Jaeger  <aj@suse.de>
11674
11675         * manual/Makefile: MAKEINFO is set to `:' from configure if it
11676         doesn't exist, correct checks.  Fixes PR libc/1649.
11677
11678 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11679
11680         * nscd/hstcache.c: Restore correct UID.
11681         * nscd/pwdcache.c: Likewise.
11682         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11683
11684 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11685
11686         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11687         macros for register names, in line with 2000-03-14 linux change.
11688
11689         * sysdeps/mach/sched_yield.c: New file.
11690
11691 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11692
11693         * sysdeps/generic/lockfile.c: Include <stdio.h>
11694         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11695         case <libio.h> defined them.
11696         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11697         from __internal_*.
11698         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11699         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11700
11701         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11702         for more pleasing parse error.
11703
11704 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11705
11706         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11707         memory for eras.
11708         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11709
11710         * elf/Makefile: Add rules to compile and run constload1 test.
11711         * elf/constload1.c: New file.
11712         * elf/constload2.c: New file.
11713         * elf/constload3.c: New file.
11714
11715 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11716
11717         * sysdeps/posix/open64.c: Make __open64 weak alias.
11718         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11719         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11720         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11721         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11722         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11723         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11724         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11725         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11726         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11727         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11728
11729 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11730
11731         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11732         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11733
11734 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11735
11736         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11737         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11738
11739 2000-03-08  Andreas Jaeger  <aj@suse.de>
11740
11741         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11742
11743 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11744
11745         * timezone/africa: Update from tzdata2000d.
11746         * timezone/asia: Likewise.
11747         * timezone/australasia: Likewise.
11748         * timezone/europe: Likewise.
11749         * timezone/northamerica: Likewise.
11750         * timezone/southamerica: Likewise.
11751
11752         * po/fr.po: Update from translation team.
11753         * po/de.po: Likewise.
11754
11755         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11756         last parameter.  Move code to add map to global scope from here...
11757         * elf/dl-open.c (dl_open_worker): ...here.
11758         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11759         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11760
11761         * locale/programs/ld-collate.c (collate_read): Fix warning.
11762
11763         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11764         values and macros for register names.
11765
11766         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11767         returned by seek cookie function is -1.
11768
11769 2000-03-14  Andreas Jaeger  <aj@suse.de>
11770
11771         * locale/localeconv.c (localeconv): Fix typo.
11772         Reported by Andre Charbonneau <andrec@corel.com>.
11773
11774 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11775
11776         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11777         since modules depend on it counting the number of times the conversion
11778         function got called.
11779
11780         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11781
11782         * iconv/gconv.h: Pretty print.
11783
11784 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11785
11786         * posix/wordexp-test.c: Correct one of the tests added in the last
11787         change.  Really get the root passwd entry to check again ~root.
11788
11789 2000-03-10  Andreas Jaeger  <aj@suse.de>
11790
11791         * manual/filesys.texi (Working Directory): Fix last patch.
11792         Patch by Martin Buchholz  <martin@xemacs.org>.
11793
11794 2000-03-10  Andreas Jaeger  <aj@suse.de>
11795
11796         * manual/creature.texi (Feature Test Macros): Fix language.
11797
11798 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11799
11800         * mach/devstream.c (devstream_write, devstream_read): New functions.
11801         (input, output): Functions removed.
11802         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11803         using only the vanilla fopencookie interface.
11804
11805         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11806         as macro for __io_functions.
11807         (funcsio): Use cookie_io_functions_t type name.
11808         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11809
11810         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11811         fopencookie.
11812         (fopencookie): Use it.
11813         * libio/libio.h: Declare _IO_cookie_init.
11814         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11815         _IO_cookie_init.
11816
11817         * libio/libio.h (__io_seek_fn): Fix second argument type
11818         to be a pointer, in line with the manual and the old stdio.
11819         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11820
11821         * sysdeps/generic/bits/stdio-lock.h: New file.
11822         This is a stub with #error, but that's better than no file at all.
11823
11824 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11825
11826         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11827         * manual/message.texi (Using gettextized software): Doc Fixes.
11828         * manual/message.texi (Message Translation): Doc Fixes.
11829         * manual/filesys.texi (File Size): Doc Fixes.
11830         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11831         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11832         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11833         * manual/install.texi: Doc Fixes.
11834         * manual/search.texi (Hash Search Function): Doc Fixes.
11835         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11836         * FAQ.in: Doc Fixes.
11837         * config.h.in: Doc Fixes.
11838         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11839         Doc Fixes.  `allows to' is not correct English.
11840
11841         * elf/rtld.c: Doc fixes.
11842         * manual/creature.texi (Feature Test Macros): Doc fixes.
11843         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11844
11845         * manual/filesys.texi (Working Directory): Check for ERANGE to
11846         avoid infloop.
11847
11848 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11849
11850         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11851         conditions so as not to clobber the final '\0' when there is only one
11852         element in the vector.
11853
11854 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11855
11856         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11857         broken by 2000-02-27 change.
11858
11859         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11860
11861 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11862
11863         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11864         argument type, for 2000-02-22 change in signal/signal.h declaration.
11865
11866 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11867
11868         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11869         to getdirentries64 (no __), since the Linux implementation
11870         has no __ name, and there is no declaration for the __ name.
11871
11872         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11873
11874         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11875         sed regexp so as not to break directory names including /../ within.
11876
11877         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11878         The sysdeps/generic file is right for BSD.  This file was in fact the
11879         Hurd file, but the only difference was the WNOREAP flag that was never
11880         actually implemented or used anywhere.
11881
11882         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11883         since AC_PATH_PROG already does it for us.
11884         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11885         correctness and sh portability.  I replaced the broken check
11886         with a more sensible implementation of the apparently intended
11887         semantics, which might still be questionable.  Using expr causes
11888         a non-numeric value for `perl -V:apiversion` to be accepted,
11889         refusing to use only a perl that reports a number less than 5;
11890         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11891         * configure: Regenerated.
11892
11893 2000-03-08  Andreas Jaeger  <aj@suse.de>
11894
11895         * manual/crypt.texi: Fix paths.
11896
11897 2000-03-07  Andreas Jaeger  <aj@suse.de>
11898
11899         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11900         were swapped.
11901         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11902         libc/1636.
11903
11904 2000-03-06  Andreas Jaeger  <aj@suse.de>
11905
11906         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11907         in __sgn1l, otherwise g++ fails to parse this.
11908         Reported by Sean Chen <sean.chen@turbolinux.com>.
11909
11910 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11911
11912         * configure.in: Compute sizeof-long-double.
11913         * configure: Regenerated.
11914         * config.make.in: Make sizeof-long-double available to sub-makes.
11915
11916 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11917
11918         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11919         call.
11920
11921 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11922
11923         * Makeconfig (rpath-dirs): Add crypt.
11924         (all-subdirs): Remove md5crypt.
11925         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11926         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11927         * sysdeps/generic/crypt-entry.c: Delete.
11928         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11929         * sysdeps/generic/crypt.h: Delete.
11930         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11931         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11932         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11933         * sysdeps/generic/des_impl.c: Delete.
11934         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11935         * crypt/sysdeps: Delete.
11936         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11937         * md5-crypt/Versions: Move to crypt/.
11938         * md5-crypt/md5-crypt.c: Move to crypt/.
11939         * md5-crypt/md5.c: Move to crypt/.
11940         * md5-crypt/md5c-test.c: Move to crypt/.
11941         * md5-crypt/md5test.c: Move to crypt/.
11942         * md5-crypt: Delete.
11943         * crypt/Makefile: Adjust for new structure.
11944
11945 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11946
11947         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11948         define to 1 if not defined.
11949
11950 2000-03-03  Andreas Jaeger  <aj@suse.de>
11951
11952         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11953
11954 2000-03-03  Andreas Jaeger  <aj@suse.de>
11955
11956         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11957         cases.
11958         (xdr_int64_t): Correctly handle lower half.
11959         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11960
11961 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11962
11963         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11964         call.
11965
11966 2000-03-02  Andreas Jaeger  <aj@suse.de>
11967
11968         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11969         2.3.43.
11970
11971 2000-03-02  Andreas Jaeger  <aj@suse.de>
11972
11973         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11974
11975 2000-03-01  Andreas Jaeger  <aj@suse.de>
11976
11977         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11978         (tests): Added tst-getdate.
11979
11980         * time/tst-getdate.c: New file.
11981
11982         * time/datemsk: New file, needed for tst-getdate.
11983
11984 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11985
11986         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11987
11988 2000-02-17  H.J. Lu  <hjl@gnu.org>
11989
11990         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11991
11992         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11993         available.
11994         (svcudp_recv): Set up message with the new "xp_pad" field for
11995         IP_PKTINFO.
11996         (svcudp_reply): Support IP_PKTINFO if available.
11997
11998 2000-03-01  Andreas Jaeger  <aj@suse.de>
11999
12000         * time/getdate.c (check_mday): Fix check for february.
12001         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
12002         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
12003
12004 2000-03-02  Andreas Jaeger  <aj@suse.de>
12005
12006         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
12007         g++ fails to parse this.
12008         Reported by Sean Chen <sean.chen@turbolinux.com>.
12009
12010 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12011
12012         * io/creat.c: Moved to...
12013         * sysdeps/generic/creat.c: ...here.
12014         * io/creat64.c: Moved to...
12015         * sysdeps/generic/creat64.c: ...here.
12016         * io/lockf.c: Moved to...
12017         * sysdeps/generic/lockf.c: ...here.
12018
12019         * crypt/crypt.texi: Moved to...
12020         * manual/crypt.texi: ...here.
12021         * crypt/examples/genpass.c: Moved to...
12022         * manual/examples/genpass.c: ...here.
12023         * crypt/examples/mygenpass.c: Moved to...
12024         * manual/examples/mygenpass.c: ...here.
12025         * crypt/examples/testpass.c: Moved to...
12026         * manual/examples/testpass.c: ...here.
12027
12028         * manual/Makefile (chapters): Add crypt.
12029         * manual/conf.texi: Add usual header for not-last chapter.
12030         * manual/crypt.texi: Add special header for last chapter.
12031
12032 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12033
12034         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
12035         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
12036         complain if there is no crypt add-on.
12037         * crypt/configure: Removed.
12038
12039         * crypt/crypt.texi: Update documentation of US export restrictions
12040         to match the 14 Jan 2000 regulations.
12041
12042 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12043
12044         * crypt: New subdirectory, merged in from the crypt add-on.
12045
12046 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12047
12048         * include/unistd.h: Add __rmdir and __mkdir prototypes.
12049
12050
12051 See ChangeLog.10 for earlier changes.