806d42df17080e34f4dfdd0c3bdc2de4c56d9e3d
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
2
3         * locale/programs/charmap-dir.h: New file.
4         * locale/programs/charmap-dir.c: New file.
5         * locale/programs/linereader.h (lr_create): New declaration.
6         * locale/programs/linereader.c (lr_create): New function, split out
7         from lr_open.
8         (lr_open): Tailcall lr_create.
9         * locale/programs/locale.c: Include "charmap-dir.h". Don't include
10         <unistd.h>.
11         (xstrdup): New declaration.
12         (more_help): Use xstrdup instead of strdup.
13         (write_locales): Likewise. When encountering a symbolic link, call
14         stat.
15         (write_charmaps): Simplify using the charmap-dir.h functions.
16         Use xstrdup instead of strdup.
17         * locale/programs/charmap.c: Include "charmap-dir.h". Don't include
18         <dirent.h> and <unistd.h>.
19         (cmlr_open): New function.
20         (charmap_read): Use cmlr_open instead of lr_open. Simplify using the
21         charmap-dir.h functions.
22         * locale/Makefile (distribute): Add charmap-dir.h.
23         (lib-modules): Add charmap-dir.
24         (CFLAGS-charmap-dir.c): Set to -Wno-write-strings, because posix_spawn
25         wants a 'char **', not a 'const char **'.
26         * include/spawn.h: New file.
27
28 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
29
30         * posix/spawn_faction_init.c: Include "spawn_int.h".
31         (__posix_spawn_file_actions_realloc): Fix second realloc argument.
32
33 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
34
35         * locale/programs/config.h (DEFAULT_CHARMAP): Set to ANSI_X3.4-1968.
36
37 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
38
39         * wcsmbs/wcwidth.h (__ctype32_wctype): Remove declaration.
40         (internal_wcwidth): Remove the tests for L'\0' and iswprint.
41         * locale/programs/ld-ctype.c (find_idx): If max == NULL, return
42         a pointer to the table entry, without extending the table.
43         (allocate_arrays): Set a width only for characters with 'print'
44         property. Set the width of L'\0' to 0.
45         * locale/C-ctype.c (_nl_C_LC_CTYPE_width): Use default entry 0xff
46         for unprintable characters.  Set entry of NUL to 0.
47
48 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
49
50         * locale/programs/charmap.c (charmap_read): Avoid redundant tests.
51         Don't forget to call closedir when the filename was found as a
52         code_set_name.
53
54 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
55
56         * iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
57         type to 'void *'.
58
59 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
60
61         * locale/programs/ld-ctype.c (wctype_table_init): Initialize level1,
62         level2, and level3 as well.
63         (wctype_table_add): Remove a few unnecessary conditionals.
64
65 2000-09-30  Ralf Baechle  <ralf@gnu.org>
66
67         * wcsmbs/Versions [libc] (GLIBC_2.0): Add __mbrtowc.
68
69 2000-09-30  H.J. Lu  <hjl@gnu.org>
70
71         * sysdeps/ieee754/ldbl-96/s_ceill.c (__ceill): Handle overflow.
72         * sysdeps/ieee754/ldbl-96/s_floorl.c (__floorl): Likewise.
73
74 2000-09-29  H.J. Lu  <hjl@gnu.org>
75
76         * math/libm-test.inc (init_max_error): Clear all exceptions
77         before starting test.
78         (acosh_test): Test for existence of function.
79         (asinh_test): Likewise.
80         (atan2_test): Likewise.
81         (cabs_test): Likewise.
82         (cacos_test): Likewise.
83         (cacosh_test): Likewise.
84         (casin_test): Likewise.
85         (casinh_test): Likewise.
86         (catan_test): Likewise.
87         (catanh_test): Likewise.
88         (ccos_test): Likewise.
89         (ccosh_test): Likewise.
90         (cexp_test): Likewise.
91         (clog_test): Likewise.
92         (clog10_test): Likewise.
93         (cosh_test): Likewise.
94         (cpow_test): Likewise.
95         (csin_test): Likewise.
96         (csinh_test): Likewise.
97         (csqrt_test): Likewise.
98         (ctan_test): Likewise.
99         (ctanh_test): Likewise.
100         (fmod_test): Likewise.
101         (hypot_test): Likewise.
102         (remainder_test): Likewise.
103         (remquo_test): Likewise.
104         (sincos_test): Likewise.
105         (sinh_test): Likewise.
106         (tanh_test): Likewise.
107
108 2000-09-29  H.J. Lu  <hjl@gnu.org>
109
110         * sysdeps/ia64/ieee754.h: New file.
111
112         * sysdeps/ia64/fpu/math_ldbl.h: New file.
113
114 2000-09-30  Jakub Jelinek  <jakub@redhat.com>
115
116         * elf/ldconfig.h (FLAG_X8664_LIB64): Define.
117         * sysdeps/unix/sysv/linux/i386/readelflib.c: New file.
118
119 2000-09-30  Ulrich Drepper  <drepper@redhat.com>
120
121         * manual/charset.texi: Correct notations, reference to C90 amd 1,
122         and some other details.
123         * manual/ctype.texi: Likewise.
124         Patches by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
125
126 2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
127
128         * sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
129
130 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
131
132         * elf/cache.c (save_cache): Initialize __unused field in new cache
133         as well to get reproducable results.
134
135 2000-09-29  H.J. Lu  <hjl@gnu.org>
136
137         * sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
138
139 2000-09-29  H.J. Lu  <hjl@gnu.org>
140
141         * sysdeps/ia64/bits/huge_val.h: New file.
142
143 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
144
145         * elf/chroot_canon.c: Don't report a failure if the last path
146         component is not available.
147         * elf/ldconfig.c (parse_conf): Use canonicalized name when reporting
148         error.
149
150         * elf/cache.c (print_cache): Use stat64 instead of stat.
151         * elf/ldconfig.c (chroot_stat): Likewise.
152         (create_links): Likewise.
153         (manual_link): Likewise.
154         (search_dir): Likewise.
155         * elf/readlib.c (process_file): Likewise.
156
157         * Makefile (install): Set LC_ALL and LANGUAGE to C before running
158         ldconfig.
159
160 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
161
162         * elf/chroot_canon.c: New file.
163         * elf/Makefile: Build and distribute it.
164         * elf/ldconfig.h (process_file): Add real_file_name argument.
165         (chroot_canon): Add prototype.
166         * elf/ldconfig.c (cache_file): Remove const.
167         (chroot_stat): New.
168         (create_links): Add real_path argument.
169         If opt_chroot, maintain both real and given filenames.
170         (manual_link): Likewise.
171         (search_dir): Likewise.
172         (parse_conf): If opt_chroot, use chroot_canon to find the real
173         config file.
174         (main): For -r, try to use chroot, if it fails, leave opt_chroot set
175         and use chroot_canon where appropriate to do the same as if chroot
176         succeeded.
177         * elf/readlib.c (process_file): Add real_file_name argument, pass it
178         to fopen.
179
180 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
181
182         * math/complex.h (_Complex): We can be more specific when _Complex
183         is defined by the compiler.
184
185 2000-09-29  H.J. Lu  <hjl@gnu.org>
186
187         * sysdeps/unix/sysv/linux/ia64/dl-cache.h: New.
188
189         * elf/cache.c (print_entry): Replace 64bit with IA-64 in message
190         for x86/IA-64 binary.
191
192 2000-09-29  Andreas Schwab  <schwab@suse.de>
193
194         * sysdeps/unix/sysv/linux/ia64/readelflib.c: New file.
195
196         * elf/cache.c (print_entry): Check for FLAG_IA64_LIB64.
197
198 2000-09-29  Mark Kettenis  <kettenis@gnu.org>
199
200         * sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
201         implementation for use by the dynamic linker.
202
203 2000-09-29  Andreas Jaeger  <aj@suse.de>
204
205         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
206         __USE_GNU.
207         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
208         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
209         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
210         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
211         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
212         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
213
214 2000-09-29  Andreas Jaeger  <aj@suse.de>
215
216         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Synch with Linux
217         2.4.0-test9-pre7.
218         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
219         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
220         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
221         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
222         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
223         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
224
225 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
226
227         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
228
229         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
230
231 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
232
233         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
234         works: call to __sigjmp_save must be done unconditionally to
235         ensure jmp_buf is initialized properly.
236
237 2000-09-27  Andreas Jaeger  <aj@suse.de>
238
239         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
240         2.4.0-test9-pre7.
241
242 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
243
244         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
245         Use nscd_ssize_t where appropriate.
246         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
247         ssize_t where appropriate.
248         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
249         * nscd/hstcache.c (cache_addhst): Likewise.
250         * nscd/grpcache.c (cache_addgr): Likewise.
251         * sysdeps/generic/nscd-types.h: New file.
252         * sysdeps/alpha/nscd-types.h: New file.
253
254 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
255
256         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
257         INADDR_LOOPBACK instead of numeric value.
258
259 2000-09-28  H.J. Lu  <hjl@gnu.org>
260
261         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
262         _dl_skip_args.
263         (ELF_MACHINE_FIXED_STACK): Removed.
264
265 2000-09-29  Andreas Jaeger  <aj@suse.de>
266
267         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
268
269         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
270
271         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
272
273         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
274
275 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
276
277         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
278         relocation also for R_ALPHA_RELATIVE.
279         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
280
281 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
282
283         * intl/dcigettext.c: Outside libc, use local variable names that don't
284         clash with those in libc.
285         * intl/bindtextdom.c: Likewise.
286         * intl/textdomain.c: Likewise.
287
288 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
289
290         * elf/ldconfig.c (parse_conf): Print full name of config dir
291         including chroot() path.
292         (main): Remove trailing / from opt_chroot string.
293
294         * include/features.h: Correct description of what happens if no
295         *_SOURCE macro is defined.
296
297         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
298         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
299
300 2000-09-19  H.J. Lu  <hjl@gnu.org>
301
302         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
303         * malloc/malloc.c (__memalign_hook): Likewise.
304         (memalign_hook_ini): Likewise.
305
306 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
307
308         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
309
310         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
311         underlying functions directly.
312
313         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
314         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
315         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
316         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
317         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
318         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
319         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
320
321 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
322
323         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
324         define it for powerpc for kernel >= 2.4.0.
325         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
326         __ASSUME_32BITUIDS.
327         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
328         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
329         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
330         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
331         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
332         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
333
334 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
335
336         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
337
338         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
339         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
340
341 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
342
343         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
344         ucontext.h.
345         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
346
347 2000-09-27  Andreas Schwab  <schwab@suse.de>
348
349         * math/Makefile (distribute): Explicitly add the long double test
350         sources, to get them included even if long double is not supported.
351
352 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
353
354         * elf/soinit.c (struct object): Move definition to gccframe.h and
355         include it.  Problem identified by HJ Lu.
356
357         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
358         struct object to be searched for frame unwind info.
359         * sysdeps/generic/gccframe.h: New file.  Generic version of
360         struct object to be searched for frame unwind info.
361
362 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
363
364         * manual/errno.texi: Correct error text for ENXIO.
365         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
366
367 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
368
369         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
370         exception status bits rather than the exception disable bits.
371         Don't include math.h.
372
373         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
374         status of exceptions currently raised rather than which exceptions
375         are enabled.
376
377         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
378         rather than unsigned long int.
379
380         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
381         the exceptions actually requested by the caller and not just
382         disable all exceptions.
383
384         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
385         the ia64 are enabled by clearing the respective bits in the fpsr,
386         not setting them.
387
388         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
389         unsigned long int rather than unsigned long to be consistent with
390         the coding conventions.
391
392 2000-09-20  H.J. Lu  <hjl@gnu.org>
393
394         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
395         unsigned long int.
396         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
397
398 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
399
400         * string/bits/string2.h: Unify #if usage.
401
402 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
403
404         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
405         and disabling underflow or overflow, disable inexact as well.
406
407 2000-09-26  Andreas Jaeger  <aj@suse.de>
408
409         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
410
411         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
412
413         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
414         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
415
416         * elf/ldconfig.c (search_dir): Allow unlimited path length.
417         (create_links): Likewise.
418
419 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
420
421         * posix/tst-dir.c: Test a few error cases of chdir.
422
423 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
424
425         * math/math_private.h: Don't add long double prototypes if
426         NO_LONG_DOUBLE is defined.
427
428         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
429         CLOCK_MONOTONIC.
430         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
431         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
432
433         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
434
435 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
436
437         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
438         * sysdeps/sparc/sparc32/ieee754.h: New.
439         * sysdeps/sparc/sparc64/bits/endian.h: Move...
440         * sysdeps/sparc/bits/endian.h: ...here.
441         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
442         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
443         %o1, not %o0 to see if we're parent or child.  Optimize.
444
445 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
446
447         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
448         by Hans Boehm).
449         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
450         code by Hans Boehm).
451         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
452
453 2000-09-20  H.J. Lu  <hjl@gnu.org>
454
455         * sysdeps/ia64/fpu/printf_fphex.c: New file.
456
457         * sysdeps/ia64/fpu/libm-test-ulps: New file.
458
459 2000-09-17  H.J. Lu  <hjl@gnu.org>
460
461         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
462
463         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
464         sysdeps/i386/fpu/s_isinfl.c.
465
466         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
467         sysdeps/i386/fpu/s_isnanl.c.
468
469         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
470         sysdeps/i386/fpu/s_nextafterl.c.
471
472         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
473         sysdeps/i386/fpu/bits/mathdef.h.
474
475 2000-09-16  H.J. Lu  <hjl@gnu.org>
476
477         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
478         DL_UNMAP_IS_SPECIAL is not defined.
479
480         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
481         (_dl_unmap): New prototype.
482         (DL_UNMAP): New.  Defined as _dl_unmap.
483
484         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
485
486         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
487
488 2000-09-16  H.J. Lu  <hjl@gnu.org>
489
490         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
491         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
492
493         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
494         prototype.
495         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
496
497         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
498         the memory location of a function from a function descriptor.
499
500         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
501
502         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
503         memory location.
504
505 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
506
507         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
508         variable as input argument.
509         (__bswap_32): Likewise.
510
511         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
512         - found by Jim Wilson <wilson@cygnus.com>
513
514 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
515
516         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
517         instead of 4.
518
519 2000-09-26  Andreas Schwab  <schwab@suse.de>
520
521         * locale/programs/ld-collate.c (collate_output): Only require
522         alignment on __alignof__ (int32_t) instead of 4.
523         * locale/loadlocale.c (_nl_load_locale): Likewise.
524         * string/strcoll.c: Likewise.
525
526 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
527
528         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
529         parentheses around arithmetic used in | statement to kill compiler
530         warning.
531
532         * math/math_private.h: Add prototype for __finitel.
533         (__ilogbl): Likewise.
534         (__isinfl): Likewise.
535         (__isnanl): Likewise.
536         (__atanl): Likewise.
537         (__copysignl): Likewise.
538         (__expm1l): Likewise.
539         (__floorl): Likewise.
540         (__frexpl): Likewise.
541         (__ldexpl): Likewise.
542         (__log1pl): Likewise.
543         (__nanl): Likewise.
544         (__rintl): Likewise.
545         (__scalbnl): Likewise.
546         (__sqrtl): Likewise.
547         (fabsl): Likewise.
548         (__sincosl): Likewise.
549
550 2000-09-26  Andreas Schwab  <schwab@suse.de>
551
552         * sysdeps/m68k/fpu/libm-test-ulps: New file
553
554 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
555
556         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
557
558 2000-09-26  Andreas Jaeger  <aj@suse.de>
559
560         * misc/mkstemp64.c: New file.
561         * misc/Makefile (routines): Add mkstemp64.
562         * stdlib/stdlib.h: Add prototype and redirection magic.
563         * misc/Versions: Add mkstemp64.
564
565 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
566
567         * nscd/dbg_log.c (dbg_log): Add missing format string.
568
569 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
570
571         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
572         since we filter out the variable once.
573         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
574         * locale/newlocale.c (__newlocale): Likewise.
575         * locale/setlocale.c (setlocale): Likewise.
576         * malloc/malloc.c (ptmalloc_init): Likewise.
577         * resolv/res_hconf.c (_res_hconf_init): Likewise.
578         * resolv/res_init.c (__res_vinit): Likewise.
579         * time/tzfile.c (__tzfile_read): Likewise.
580         * sysdeps/generic/unsecvars.h: New file.
581         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
582         * elf/rtld.c (process_envvars): Likewise.
583         * elf/Makefile (distribute): Add unsecvars.h.
584
585         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
586         real /dev/null device.
587
588         * sysdeps/generic/check_fds.c: Include device-nrs.h.
589         * sysdeps/generic/device-nrs.h: New file.
590         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
591         * misc/Makefile (distribute): Add device-nrs.h.
592
593         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
594         remove possible garbage at the end of the file.
595
596 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
597
598         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
599         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
600         * stdio-common/tempnam.c: Warn about insecure tempnam.
601         * misc/mktemp.c: Warn about insecure mktemp.
602
603         * sysdeps/generic/check_fds.c: Check that file opened is really
604         /dev/null.
605         * posix/wordexp.c (exec_comm_child): Likewise.
606
607         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
608
609         * locale/Makefile (routines): Add nl_langinfo_l.
610         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
611         * locale/nl_langinfo_l.c: New file.
612         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
613         definition.
614
615 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
616
617         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
618         (__gbk_to_ucs): Conditionalize private area mappings.
619         (__gbk_from_ucs4_tab9): Likewise.
620         (BODY for TO_LOOP): Likewise.
621         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
622         * iconvdata/testdata/GBK..UTF-8: Likewise.
623         * iconvdata/tst-tables.sh: Enable GBK test.
624
625 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
626
627         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
628         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
629         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
630         array access.
631         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
632         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
633
634 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
635
636         * iconvdata/johab.c (final_to_ucs): Fix typos.
637         (jamo_from_ucs_table): Likewise.
638         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
639         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
640         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
641         the range 0xD9E6..0xD9FE.
642         * iconvdata/tst-tables.sh: Enable JOHAB testing.
643
644 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
645
646         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
647         GCONV_PATH.
648
649 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
650
651         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
652         stream is in wide mode.
653
654         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
655
656 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
657
658         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
659         by 3, not 2.
660         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
661
662 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
663
664         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
665         reallocation logic for MALLOC (%as, %aS formats).
666
667 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
668
669         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
670         Add missing case in va_arg handling for numbers.
671         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
672         handling.
673         * stdio/tst-printf.sh: Adjust expected results.
674         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
675
676 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
677
678         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
679         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
680         characters.
681         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
682         as equivalent to uppercase hexadecimal digits.
683
684 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
685
686         * iconvdata/testdata/EUC-KR..UTF8: New file.
687         * iconvdata/testdata/EUC-TW: New file.
688         * iconvdata/testdata/EUC-TW..UTF8: New file.
689         * iconvdata/testdata/EUC-JP: New file.
690         * iconvdata/testdata/EUC-JP..UTF8: New file.
691         * iconvdata/testdata/ISO-2022-JP: New file.
692         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
693         * iconvdata/testdata/ISO-2022-JP-2: New file.
694         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
695         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
696         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
697         * iconvdata/testdata/ISO-2022-CN: New file.
698         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
699         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
700         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
701         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
702         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
703
704 2000-09-24  Andreas Jaeger  <aj@suse.de>
705
706         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
707         function add_single_dir.
708         (add_single_dir): New function.
709         (search_dir): Use add_single_dir instead of recursing.
710
711         * sysdeps/generic/dl-cache.h: Include stdint.h.
712         (struct file_entry_new): Use fixed sizes for interoperability
713         between 32bit and 64bit systems, add __unused to make alignment
714         explicit.
715         (CACHE_VERSION): Increment.
716         (struct cache_file_new): Use fixed sizes, add one more unused
717         entry to make alignment explicit.
718
719 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
720
721         * elf/ldconfig.c (search_dir): Make more use of d_type information.
722
723 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
724
725         * stdio-common/printf-parse.h (parse_one_spec): Clear
726         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
727
728 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
729
730         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
731         #undef since we don't have msync.
732
733         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
734         constant since that is what clock_t is.
735         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
736
737 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
738
739         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
740         multiply by LOAD_SCALE.
741
742 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
743
744         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
745         (crypt_r, setkey_r, encrypt_r): Likewise.
746
747 2000-09-22  Andreas Jaeger  <aj@suse.de>
748
749         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
750         array size.
751
752         * sysdeps/alpha/fpu/libm-test-ulps: New file.
753         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
754
755 2000-09-21  Andreas Jaeger  <aj@suse.de>
756
757         * math/libm-test.inc (atan_test): Test for existence of function.
758         (expm1_test): Likewise.
759         (acos_test): Likewise.
760         (asin_test): Likewise.
761         (exp_test): Likewise.
762         (log10_test): Likewise.
763         (log_test): Likewise.
764         (pow_test): Likewise.
765         (sqrt_test): Likewise.
766         (cos_test): Likewise.
767         (sin_test): Likewise.
768         (tan_test): Likewise.
769         (log1p_test): Likewise.
770         (log2_test): Likewise.
771
772         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
773
774         * libio/oldiofsetpos64.c: Fix alias names.
775
776 2000-09-21  Martin Buchholz  <martin@xemacs.org>
777
778         * manual/terminal.texi (Allocation): Sample code correction.
779
780 2000-09-20  Andreas Jaeger  <aj@suse.de>
781
782         * iconvdata/Makefile (generated): Add tst-tables.out.
783
784         * intl/Makefile (generated): Add test output.
785
786 2000-09-19  Andreas Jaeger  <aj@suse.de>
787
788         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
789         Reported by Jens-Uwe Mager <jum@helios.de>.
790
791 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
792
793         * version.h (VERSION): Bump to 2.1.94.
794
795         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
796         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
797         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
798         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
799
800         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
801
802 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
803
804         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
805         range 0xD800..0xDFFF.
806         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
807         (BODY for FROM_LOOP): Likewise.
808         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
809         (internal_ucs2_loop): Likewise.
810         (ucs2reverse_internal_loop): Likewise.
811         (internal_ucs2reverse_loop): Likewise.
812
813 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
814
815         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
816         names.
817
818 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
819
820         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
821         * iconvdata/tst-table-to.c (main): Likewise.
822
823 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
824
825         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
826         __isoir165_tab.
827         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
828         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
829         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
830         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
831         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
832         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
833         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
834         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
835         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
836         encodings when needed.  When outputting an announcement, don't clear
837         most other announcements.
838
839 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
840
841         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
842         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
843
844 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
845
846         * intl/Versions: Add bind_textdomain_codeset.
847
848 2000-09-16  Ralf Baechle  <ralf@gnu.org>
849
850         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
851         as function.
852         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
853         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
854         it will even work when not loaded to the standard address.
855         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
856         before the dynamic linker itself is relocated.
857
858 2000-09-18  Andreas Jaeger  <aj@suse.de>
859
860         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
861         __ASSUME_32BITUIDS for MIPS.
862         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
863         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
864
865 2000-09-17  H.J. Lu  <hjl@gnu.org>
866
867         * catgets/Makefile ($(objpfx)de/libc.cat): Use
868         $(make-target-directory) instead of mkdir.
869
870 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
871
872         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
873         __ASSUME_32BITUIDS for __powerpc__.
874         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
875         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
876
877 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
878
879         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
880         patch.
881         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
882
883 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
884
885         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
886         first.
887         * sysdeps/m68k/Implies: Likewise.
888         * sysdeps/sparc/sparc64/Implies: Likewise.
889
890 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
891
892         * elf/readlib.c (process_file): Don't error for stale .so links either.
893
894 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
895
896         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
897         __builtin_expect.
898
899         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
900         Patch by Thorsten Kukuk <kukuk@suse.de>.
901
902         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
903         (test): Add default.
904         (modules-names): Add defaultmod1 and defaultmod2.
905         Add rules to build test objects.
906
907 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
908
909         * wctype/wctype.h: Always include <bits/types.h>.
910         Reported by Jim Meyering <meyering@ascend.com>.
911
912         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
913         * elf/dl-support.c: Likewise.
914
915         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
916         st_blocks member in stat and stat64 structs.
917         Patch by Bill Nottingham <notting@redhat.com>.
918
919         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
920         take longer.
921
922         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
923         __extension__ to _Complex_I definition since gcc warns if -pedantic.
924         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
925         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
926
927         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
928         necessary.  Move includes of POSIX and Unix limits files to the end.
929         * stdlib/Makefile (tests): Add tst-limits.
930         * stdlib/tst-limits.h: New file.
931
932 2000-09-15  Andreas Jaeger  <aj@suse.de>
933
934         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
935
936         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
937
938 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
939
940         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
941         clobber.
942         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
943         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
944
945 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
946
947         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
948         (tests): Add next.
949         (modules-names): Add nextmod1 and nextmod2.
950         Add rules to build and run next.
951         * elf/next.c: New file.
952         * elf/nextmod1.c: New file.
953         * elf/nextmod2.c: New file.
954
955 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
956
957         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
958
959 2000-09-15  Andreas Jaeger  <aj@suse.de>
960
961         * sysdeps/mips/fpu/fenv_libc.h: New file.
962         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
963         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
964         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
965
966         * sysdeps/mips/fpu/feenablxcpt.c: New file.
967         * sysdeps/mips/fpu/fegetexcept.c: New file.
968         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
969
970 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
971
972         * intl/Makefile: Avoid unnecessary test reruns.
973
974         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
975
976         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
977         to not use sysctl().  Too many architectures have problems with it.
978
979 2000-09-14  Andreas Jaeger  <aj@suse.de>
980
981         * scripts/config.sub: New version from subversions.gnu.org.
982
983         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
984         long.
985
986 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
987
988         * posix/regex.c (compile_range): Cast collseq index to unsigned char
989         to avoid accessing data before collseq.
990
991         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
992         pasting strings together.
993
994 2000-09-14  Greg McGary  <greg@mcgary.org>
995
996         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
997         copyright notice.
998         * sysdeps/generic/bp-semctl.h: Likewise.
999         * sysdeps/generic/bp-start.h: Likewise.
1000         * sysdeps/generic/bp-sym.h: Likewise.
1001         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
1002         rename prototype.
1003
1004 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1005
1006         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
1007         don't fail.
1008
1009         * elf/elf.h: Add missing official relocations.
1010
1011         * libio/stdio.h: Define __FILE if __need___FILE is defined.
1012         * stdio/stdio.h: Likewise.
1013         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
1014         * include/stdio.h: Handle __need___FILE like __need_FILE.
1015         * include/wchar.h: Use __FILE instead of FILE.
1016         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
1017         * libio/fwscanf.c: Likewise.
1018         * libio/getwc.c: Likewise.
1019
1020         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
1021         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
1022         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
1023
1024         * assert/assert.h: Update comment header about ISO C section.
1025         * math/complex.h: Likewise.
1026         * ctype/ctype.h: Likewise.
1027         * include/errno.h: Likewise.
1028         * include/limits.h: Likewise.
1029         * locale/locale.h: Likewise.
1030         * math/math.h: Likewise.
1031         * setjmp/setjmp.h: Likewise.
1032         * signal/signal.h: Likewise.
1033         * stdio/stdio.h: Likewise.
1034         * libio/stdio.h: Likewise.
1035         * stdlib/stdlib.h: Likewise.
1036         * string/string.h: Likewise.
1037         * time/time.h: Likewise.
1038         * wcsmbs/wchar.h: Likewise.
1039         * wctype/wctype.h: Likewise.
1040         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1041
1042 2000-09-13  Andreas Jaeger  <aj@suse.de>
1043
1044         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
1045         for no more entries.
1046         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
1047         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
1048         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
1049
1050 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1051
1052         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
1053         constant since this is what clock_t is.
1054         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
1055         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
1056         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
1057         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
1058
1059         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
1060         definitions are requested.
1061
1062 2000-09-13  Andreas Jaeger  <aj@suse.de>
1063
1064         * shlib-versions: libBrokenLocale needs minimal version for ia64,
1065         sparc64 and sh to synch with libc.
1066
1067 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1068
1069         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
1070         (distribute): Add iso-2022-cn-ext.c.
1071         Add definitions to compile the new module.
1072         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
1073         * iconvdata/iso-2022-cn-ext.c: New file.
1074         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
1075         ucs4_from_isoir165.  Increment input pointer if successful.
1076
1077         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
1078
1079         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
1080
1081 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
1082
1083         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
1084         __syscall_getdents64 wrapper.
1085
1086         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
1087
1088 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
1089
1090         * iconvdata/gb18030.c: Many many changes.  Make consistent with
1091         charmap and with itself.
1092         * iconvdata/tst-tables.sh: Test GB18030.
1093
1094 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1095
1096         * iconv/skeleton.c: Fix last patch, add missing parameter to
1097         unaligned function call.
1098
1099 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1100
1101         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
1102         of decimal ellipsis.
1103
1104 2000-09-11  Bruno Haible <haible@clisp.cons.org>
1105
1106         * locale/programs/ld-collate.c (collate_read): Always initialize
1107         error_section.next.
1108
1109 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1110
1111         * locale/programs/ld-collate.c (collate_finish): Upper bound for
1112         ruleidx is 128, not 256.
1113
1114 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * locale/programs/ld-collate.c (collate_read): Correct check for
1117         already inserted entries.
1118
1119 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1120
1121         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
1122         second try as well.
1123
1124 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1125
1126         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
1127         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
1128
1129 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1130
1131         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
1132         SAVE_RESET_STATE.
1133
1134 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1135
1136         * iconvdata/utf-7.c: New file.
1137         * iconvdata/gconv-modules (UTF-7): New module entries.
1138         * iconvdata/Makefile (modules): Add UTF-7.
1139         (distribute): Add utf-7.c.
1140         * iconvdata/testdata/UTF-7: New file.
1141         * iconvdata/testdata/UTF-7..UTF8: New file.
1142         * iconvdata/TESTS (UTF-7): New entry.
1143         * iconvdata/run-iconv-test.sh: Fix confusing output.
1144
1145 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1146
1147         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
1148
1149 2000-09-10  David S. Miller  <davem@redhat.com>
1150
1151         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
1152         frame pointer offset for non-fast path.
1153
1154 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1155
1156         * locale/programs/3level.h (*_init): Initialize level1, level2,
1157         and level3 as well.
1158         (*_add): Remove a few unnecessary conditionals.
1159
1160 2000-09-05  Wolfram Gloger  <wg@malloc.de>
1161
1162         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
1163         ensure usability of mutex as an `in use' flag.
1164
1165 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1166
1167         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
1168
1169         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
1170         ugly GMON_WEAK_START hack.
1171         Patch by Philip Blundell <philb@gnu.org>.
1172
1173         * sysdeps/i386/i486/bits/string.h: Pretty printing.
1174
1175 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1176
1177         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
1178         and PPC_ICBI asm for broken compilers.
1179         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1180
1181 2000-09-09  Andreas Jaeger  <aj@suse.de>
1182
1183         * manual/message.texi (Advanced gettext functions): Fix typo.
1184
1185         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
1186         strncpy prototype.
1187
1188 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1189
1190         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
1191         warnings.
1192         * sysdeps/ia64/memccpy.S: Likewise.
1193         Patches by Jim Wilson <wilson@redhat.com>.
1194
1195         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
1196         before trying to read /proc.
1197         Patch by Matt Wilson <msw@redhat.com>.
1198         * include/sys/utsname.h: Declare __uname.
1199         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
1200         * sysdeps/mach/hurd/uname.c: Likewise.
1201         * sysdeps/unix/syscalls.list: Likewise.
1202
1203         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
1204         unloading a bit.
1205
1206 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
1207
1208         * posix/getopt.c (_getopt_internal): When long_only is set always
1209         recognize conflicts just like before.
1210
1211 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1212
1213         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
1214
1215 2000-09-08  Greg McGary  <greg@mcgary.org>
1216
1217         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
1218         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
1219         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
1220
1221 2000-09-08  Andreas Jaeger  <aj@suse.de>
1222
1223         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
1224
1225         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
1226
1227         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
1228         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1229         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
1230
1231 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1232
1233         * iconvdata/tst-tables.sh: Enable EUC-KR test.
1234
1235         * elf/dl-load.c (lose): Decrement _nl_loaded.
1236         (_dl_map_object_from_fd): Don't try to dlopen executables.
1237
1238         * iconvdata/tst-tables.sh: Actually return with an error if
1239         something goes wrong.
1240         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
1241         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
1242
1243         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
1244
1245         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
1246         * iconvdata/tst-table-from.c: Include <string.h>.
1247         (try): Correct cast in iconv call.
1248
1249         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
1250         too.
1251         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
1252         (sysdep_routines): Remove dl-start.
1253         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1254
1255         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
1256
1257         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
1258         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
1259
1260 2000-09-06  Andreas Schwab  <schwab@suse.de>
1261
1262         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
1263
1264 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1265
1266         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
1267
1268         * scripts/config.sub: Strip out -unknown for Linux targets.
1269         Patch by Scott Bambrough <scottb@netwinder.org>.
1270
1271         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
1272         add one more test.
1273
1274 2000-09-07  Andreas Jaeger  <aj@suse.de>
1275
1276         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
1277
1278         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
1279         syscalls.
1280
1281         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
1282
1283         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
1284         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1285
1286         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
1287
1288         * stdlib/tst-bsearch.c (main): Add more test cases.
1289
1290         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
1291         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1292         Reported by GOTO Masanori <gotom@debian.or.jp>.
1293
1294 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1295
1296         * posix/Makefile (tests): Add tst-dir.
1297         (tst-dir-ARGS): New variable.
1298         * posix/tst-dir.c: New file.
1299
1300 2000-09-07  Andreas Jaeger  <aj@suse.de>
1301
1302         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
1303         (SYS_fcntl64): New.
1304
1305         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
1306
1307 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
1308
1309         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
1310         use the hack with tryopen_o_directory to determine at runtime
1311         whether it works.
1312         * sysdeps/unix/sysv/linux/opendir.c: New file.
1313         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1314         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
1315
1316         * catgets/Depend: New file.  Add intl.
1317         * catgets/Makefile (tests): Add tst-catgets.
1318         (generated): Remove de.msg.
1319         (generated-dirs): Add de.
1320         Add dependency if tst-catgets output on de/libc.cat.
1321         * catgets/tst-catgets.c: New file.
1322
1323         * po/ja.po: New file.
1324         * po/el.po: Update from translation team.
1325
1326         * wcsmbs/Depend: New file.
1327         * wcsmbs/Makefile (tests): Add tst-btowc.
1328         (tst-btowc-ENV): Define.
1329         * wcsmbs/tst-btowc.c: New file.
1330
1331         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
1332         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
1333
1334         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
1335
1336         * stdlib/Makefile (tests): Add tst-bsearch.
1337         * stdlib/tst-bsearch.c: New file.
1338
1339         * posix/getopt.c (_getopt_internal): Don't recognize an option
1340         name as ambiguous if it's a prefix for more than one name but the
1341         other struct option values are identical.
1342
1343         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
1344         Don't depend on visual inspection of the output file to recognize
1345         errors.
1346         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
1347
1348 2000-09-06  Andreas Jaeger  <aj@suse.de>
1349
1350         * sysdeps/alpha/soft-fp/Dist: New file.
1351         * sysdeps/i386/soft-fp/Dist: New file.
1352         * sysdeps/mips/mips64/soft-fp/Dist: New file.
1353         * sysdeps/mips/soft-fp/Dist: New file.
1354         * sysdeps/powerpc/soft-fp/Dist: New file.
1355         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
1356         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
1357
1358         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
1359         Use sysdep_routines instead of routines to fix make dist failure.
1360         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
1361         out code).
1362         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
1363
1364         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
1365         sysdep_headers instead of headers for make dist.
1366
1367         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
1368         Likewise.
1369
1370 2000-09-06  Andreas Schwab  <schwab@suse.de>
1371
1372         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
1373
1374 2000-09-06  Andreas Jaeger  <aj@suse.de>
1375
1376         * soft-fp/Makefile (distribute): Remove ChangeLog.
1377
1378         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
1379         sysdep_routines instead of routines for make dist.
1380
1381 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1382
1383         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
1384         compatibility check for old stream and call _IO_wide in doubt.
1385         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
1386         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
1387         needed tst for such an old structure and don't do anything.
1388         * libio/freopen.c: Remove declaration of _IO_stdin_used.
1389
1390 2000-09-06  Andreas Jaeger  <aj@suse.de>
1391
1392         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
1393         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1394         and dl-routines.
1395
1396         * soft-fp/ChangeLog: Merged with this file.
1397
1398 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
1399
1400         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
1401
1402         * soft-fp/Makefile (distribute): Add the math functions, too.
1403
1404         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
1405
1406 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
1407
1408         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
1409         as a statement.
1410
1411         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
1412         * soft-fp/sysdeps/powerpc/q_*: New files.
1413
1414 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1415
1416         * stdio-common/vfprintf.c (process_string_arg): Handle precision
1417         in wide char case correctly.  Don't allocate too long temporary
1418         strings with alloca.
1419
1420         * stdio-common/Makefile (tests): Add tst-swprintf.
1421         (tst-swprintf-ENV): New variable.
1422         * stdio-common/tst-swprintf.c: New file.
1423
1424 2000-09-05  Andreas Jaeger  <aj@suse.de>
1425
1426         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
1427         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
1428         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1429
1430 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1431
1432         * configure.in: Strip out "unknown" from configuration names.
1433
1434 2000-09-05  Andreas Jaeger  <aj@suse.de>
1435
1436         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
1437
1438         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
1439         * sysdeps/sparc/sparc32/Implies: Likewise.
1440         * sysdeps/powerpc/Implies: Likewise.
1441
1442         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
1443         * libio/oldiofgetpos64.c: Likewise.
1444
1445         * soft-fp/Makefile (distribute): Remove configure.
1446
1447         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
1448
1449         * soft-fp/configure: Remove.
1450
1451         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1452         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1453
1454         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
1455         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
1456
1457         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
1458         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
1459
1460         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
1461         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
1462
1463         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1464         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1465
1466         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
1467         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
1468
1469         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
1470         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
1471
1472         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
1473         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
1474
1475         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
1476         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
1477
1478         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
1479         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
1480
1481         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
1482         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
1483
1484         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
1485         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
1486
1487         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
1488         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
1489
1490         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
1491         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
1492
1493         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
1494         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
1495
1496         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
1497         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
1498
1499         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
1500         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
1501
1502         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
1503         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
1504
1505         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
1506         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
1507
1508         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
1509         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
1510
1511         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
1512         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
1513
1514         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
1515         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
1516
1517         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
1518         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
1519
1520         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
1521         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
1522
1523         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
1524         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
1525
1526         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
1527         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
1528
1529         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
1530         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
1531
1532         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
1533         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
1534
1535         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
1536         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
1537
1538         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
1539         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
1540
1541         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
1542         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
1543
1544         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
1545         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
1546
1547         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
1548         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
1549
1550         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
1551         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
1552
1553         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
1554         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
1555
1556         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
1557         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
1558
1559         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
1560         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
1561
1562         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
1563         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
1564
1565         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
1566         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
1567
1568         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
1569         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
1570
1571         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
1572         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
1573
1574         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
1575         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
1576
1577         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
1578         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
1579
1580         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
1581         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
1582
1583         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
1584         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
1585
1586         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
1587         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
1588
1589         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
1590         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
1591
1592         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
1593         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
1594
1595         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
1596         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
1597
1598         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
1599         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
1600
1601         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
1602         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
1603
1604         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
1605         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
1606
1607         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
1608         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
1609
1610         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
1611         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
1612
1613         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
1614         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
1615
1616         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
1617         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
1618
1619         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
1620         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
1621
1622         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
1623         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
1624
1625         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
1626         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
1627
1628         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
1629         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
1630
1631         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
1632         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
1633
1634         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
1635         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
1636
1637         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
1638         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
1639
1640         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
1641         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
1642
1643         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
1644         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
1645
1646         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
1647         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
1648
1649         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
1650         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
1651
1652         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
1653         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
1654
1655         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
1656         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
1657
1658         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
1659         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
1660
1661         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
1662         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1663
1664         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1665         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1666
1667         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1668         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1669
1670         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1671         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1672
1673         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1674         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1675
1676         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1677         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1678
1679         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1680         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1681
1682         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1683         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1684
1685         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1686         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1687
1688         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1689         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1690
1691         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1692         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1693
1694         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1695         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1696
1697         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1698         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1699
1700         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1701         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1702
1703         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1704         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1705
1706         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1707         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1708
1709         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1710         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1711
1712         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1713         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1714
1715         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1716         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1717
1718         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1719         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1720
1721         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1722         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1723
1724         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1725         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1726
1727         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1728         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1729
1730         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1731         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1732
1733         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1734         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1735
1736         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1737         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1738
1739         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1740         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1741
1742         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1743         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1744
1745         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1746         change symbol version.
1747         * libio/oldiofgetpos64.c: Likewise.
1748         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1749
1750         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1751         typo.
1752         Reported by dyky@kondara.org, closes PR libc/1886.
1753
1754         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1755         libc/1880.
1756
1757 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1758
1759         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1760         script when ^C is hit.
1761
1762         * locale/programs/localedef.c (construct_output_path): Correct
1763         computation of endp after asprintf.
1764         * locale/programs/locfile.c (write_locale_data): Don't add extra
1765         slash in filename.
1766
1767 2000-09-05  Andreas Jaeger  <aj@suse.de>
1768
1769         * scripts/config.guess: New upstream version.
1770         * scripts/config.sub: Likewise.
1771         * manual/texinfo.tex: Likewise.
1772
1773 2000-09-04  Andreas Schwab  <schwab@suse.de>
1774
1775         * elf/Makefile (all-dl-routines): New variable.
1776         (elide-routines.os): Use it instead of $(dl-routines).
1777         (all-rtld-routines): New variable.
1778         (extra-objs): Use it instead of $(rtld-routines).
1779         ($(objpfx)dl-allobjs.os): Likewise.
1780         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1781         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1782         and dl-routines.
1783
1784 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1785
1786         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1787         Set fname to NULL if the module wasn't found.
1788
1789 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1790
1791         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1792         true if trans->name already ends in ".so".
1793
1794 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1795
1796         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1797         void.
1798         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1799         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1800         (__gconv_release_shlib): Change return type to void.
1801         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1802         step->__counter here.
1803         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1804         if the reference is zero.
1805         (release_step): New function.
1806         (gen_steps): Always initialize the __counter to 1. Use release_step.
1807         Don't call the destructor on the step whose initializer failed.
1808         (increment_counter): Use release_step. Don't normally run destructors
1809         here.
1810         (__gconv_close_transform): Use release_step.
1811
1812 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1813
1814         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1815         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1816
1817 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1818
1819         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1820         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1821         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1822         to check for incomplete input.
1823         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1824         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1825         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1826         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1827         0x9f9d..0x9fa5.
1828         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1829         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1830         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1831         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1832         upto index 0x0052.
1833
1834 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1835
1836         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1837         solution.
1838
1839 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1840
1841         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1842         are invalid.
1843
1844 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1845
1846         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1847         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1848         U+007E.
1849
1850 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1851
1852         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1853
1854 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1855
1856         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1857
1858 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1859
1860         * iconvdata/tst-tables.sh: New file.
1861         * iconvdata/tst-table.sh: New file.
1862         * iconvdata/tst-table-from.c: New file.
1863         * iconvdata/tst-table-to.c: New file.
1864         * iconvdata/tst-table-charmap.sh: New file.
1865         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1866         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1867         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1868         ISIRI-3342.irreversible, SJIS.irreversible.
1869         (tests): Add dependency on tst-tables.out.
1870         (tst-tables.out, tst-tables-clean): New rules.
1871         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1872         * iconvdata/ISIRI-3342.irreversible: New file.
1873         * iconvdata/EUC-JP.irreversible: New file.
1874         * iconvdata/SJIS.irreversible: New file.
1875
1876 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1877
1878         * manual/locale.texi (General Numeric): Update description of
1879         representation of the grouping information in the locale data.
1880         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1881
1882 2000-09-04  Andreas Jaeger  <aj@suse.de>
1883
1884         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1885         * iconv/iconv_prog.c (options): Fix typo.
1886         Reported by dyky@kondara.org, closes PR libc/1885.
1887
1888 2000-09-04  Andreas Jaeger  <aj@suse.de>
1889
1890         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1891         Reported by Rob Levin <lilo@transvirtual.com>.
1892
1893 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1896         to the typedefs of __timezone_ptr_t.
1897         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1898
1899 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1900
1901         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1902         the loop.
1903
1904 2000-09-01  H.J. Lu  <hjl@gnu.org>
1905
1906         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1907         to run a binary if it is in $(tests-static).
1908
1909         * Rules (binaries-static): Add $(tests-static).
1910
1911 2000-09-02  Andreas Jaeger  <aj@suse.de>
1912
1913         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1914
1915         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1916         patch.
1917
1918 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1919
1920         * iconvdata/big5hkscs.c: Regenerated from charmap.
1921         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1922         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1923
1924         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1925         statement.  General cleanup.
1926
1927 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1928
1929         * wctype/wcfuncs.c (iswblank): New function.
1930         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1931         * wctype/wcextra.c: Remove file.
1932         * wctype/wcextra_l.c: Remove file.
1933         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1934
1935 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1936
1937         * locale/programs/ld-collate.c (collate_output): Remove redundant
1938         assert call.
1939         * string/strcoll.c: Likewise.
1940         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1941         string/strcoll.c.
1942
1943 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1944
1945         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1946         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1947         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1948         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1949         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1950         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1951         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1952         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1953         _NL_CTYPE_GAP5/6 respectively.
1954
1955         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1956         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1957         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1958         Don't initialize __ctype_names and __ctype_width.
1959         * wctype/cname-lookup.h: Remove file.
1960         * wctype/Makefile (distribute): Remove cname-lookup.h.
1961         * wctype/wchar-lookup.h: Include stdint.h.
1962         * wctype/wctype.c (__wctype): Assume new locale format.
1963         * wctype/wctype_l.c (__wctype_l): Likewise.
1964         * wctype/iswctype.c: Don't include cname-lookup.h.
1965         (__iswctype): Assume new locale format.
1966         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1967         (__iswctype_l): Assume new locale format.
1968         * wctype/wctrans.c: Don't include ctype.h.
1969         (wctrans): Assume new locale format.
1970         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1971         * wctype/towctrans.c: Don't include cname-lookup.h.
1972         (__towctrans): Assume new locale format.
1973         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1974         (__towctrans_l): Assume new locale format.
1975         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1976         localeinfo.h instead.
1977         (__NO_WCTYPE): Remove unused macro.
1978         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1979         declarations.
1980         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1981         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1982         (towlower, towupper): Likewise.
1983         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1984         localeinfo.h instead.
1985         (__NO_WCTYPE): Remove unused macro.
1986         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1987         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1988         __iswxdigit_l): Assume new locale format.
1989         (__towlower_l, __towupper_l): Likewise.
1990         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1991         (__ctype32_b): Remove declaration.
1992         (internal_wcwidth): Assume new locale format.
1993         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1994         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1995         to map32_b, rename width_3level to width.
1996         (ctype_output): Always create new locale format. Don't emit
1997         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1998         (allocate_arrays): Always create new locale format.
1999
2000         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
2001         * locale/weightwc.h (findidx): Assume new locale format.
2002         * string/strcoll.c (wcscoll): Remove local variables size, layers,
2003         names.
2004         * string/strxfrm.c (wcsxfrm): Likewise.
2005         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
2006         local variable collseq to 'const char *'.
2007         (SUFFIX): Don't use, don't undefine.
2008         * posix/fnmatch.c: Remove SUFFIX definition.
2009         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
2010         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
2011         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
2012         (collate_finish): Always create new locale format. Remove local
2013         variables min_total, act_size.
2014         (collate_output): Always create new locale format. Remove local
2015         variables table_size, names, tablewc. Rename tablewc_3level to
2016         tablewc.
2017
2018 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2019
2020         * locale/programs/ld-collate.c (obstack_int32_grow,
2021         obstack_int32_grow_fast): New inline functions.
2022         (output_weightwc, collate_output): Use them where possible.
2023
2024 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
2025
2026         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
2027         patch (_mode -> _flags).
2028
2029         * libio/Makefile (headers): Add stdio_ext.h.
2030         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
2031         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
2032         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
2033         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
2034         __fsetlocking, and _flushlbf.
2035         * libio/__fbufsize.c: New file.
2036         * libio/__flbf.c: New file.
2037         * libio/__fpending.c: New file.
2038         * libio/__fpurge.c: New file.
2039         * libio/__freadable.c: New file.
2040         * libio/__freading.c: New file.
2041         * libio/__fsetlocking.c: New file.
2042         * libio/__fwritable.c: New file.
2043         * libio/__fwriting.c: New file.
2044         * libio/stdio_ext.h: New file.
2045         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
2046         * libio/libio.h (_IO_USER_LOCK): Define.
2047         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
2048         test _IO_USER_LOCK flag first.
2049
2050         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
2051         malloc fails.
2052
2053 2000-09-01  Andreas Jaeger  <aj@suse.de>
2054
2055         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
2056
2057         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
2058
2059 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2060
2061         * math/Makefile (tests): Add tst-defintions.
2062         * math/tst-definitions.c: New file.
2063
2064         * stdlib/Makefile (headers): Add bits/wchar.h.
2065         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
2066         * sysdeps/generic/bits/wchar.h: New file.
2067         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
2068         file to define WCHAR_MIN and WCHAR_MAX.
2069         Change UINT*8_MAX and UIN*16_MAX value to type int.
2070         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
2071         file to define WCHAR_MIN and WCHAR_MAX.
2072         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
2073         int values.
2074         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
2075         * sysdeps/generic/bits/mathdef.h: Likewise.
2076         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
2077         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
2078         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2079         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
2080         * locale/locale.h (struct lconv): Add __ prefix to the new members
2081         if not C99.
2082         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
2083         imaxdiv optimizations.
2084         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
2085         * sysdeps/wordsize-64/ldiv.c: Likewise.
2086         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
2087         const fenv_t*.
2088         * sysdeps/generic/bits/fenv.h: Likewise.
2089         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
2090         * sysdeps/ia64/bits/fenv.h: Likewise.
2091         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
2092         * sysdeps/mips/bits/fenv.h: Likewise.
2093         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
2094         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
2095         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2096
2097         * inet/rcmd.c: Use *stat64 instead of *stat internally.
2098         * inet/ruserpass.c: Likewise.
2099         * catgets/open_catalog.c: Likewise.
2100         * intl/loadmsgcat.c: Likewise.
2101         * io/getdirname.c: Likewise.
2102         * locale/loadlocale.c: Likewise.
2103         * misc/getusershell.c: Likewise.
2104         * stdlib/canonicalize.c: Likewise.
2105         * sysdeps/posix/euidaccess.c: Likewise.
2106         * sysdeps/posix/isfdtype.c: Likewise.
2107         * sysdeps/posix/posix_fallocate.c: Likewise.
2108         * sysdeps/posix/tempname.c: Likewise.
2109         * sysdeps/unix/grantpt.c: Likewise.
2110         * sysdeps/unix/opendir.c: Likewise.
2111         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
2112         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2113         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2114         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2115         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2116         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2117         * sysvipc/ftok.c: Likewise.
2118         * time/getdate.c: Likewise.
2119
2120         * time/getdate.c: Add extra access test.
2121
2122 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * version.h (VERSION): Bump to 2.1.93.
2125
2126         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
2127         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
2128
2129         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
2130         Make this a new rule depending on tst-gettext.out and run mtrace.
2131         * intl/tst-gettext.c: Call mtrace.
2132         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
2133
2134         * elf/dl-reloc.c: Add a few more __builtin_expect.
2135
2136         * configure.in: Remove --with-gettext option.
2137
2138         * intl/dcigettext.c (free_mem): Correct freeing of
2139         _nl_domain_bindings list.
2140
2141         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
2142         allocated memory.
2143
2144         * intl/locale.alias: Add aliases for bokmal and nynorsk.
2145
2146         * locale/iso-639.def: Fix 639-1 code for Bokmal.
2147
2148         * stdio-common/itoa-digits.c: Move upper digits to...
2149         * stdio-common/itoa-udigits.c: ...here.  New file.
2150         * stdio-common/Makefile (routines): Add itoa-udigits.
2151
2152         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
2153         relocate ld.so don't add supprt for relocations which should not
2154         appear in ld.so.
2155
2156         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
2157         __secure_getenv.  Instead test __libc_enable_secure once.
2158
2159         * io/pwd.c (main): Provide a good example, use *_unlocked function.
2160
2161 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2162
2163         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
2164         whether the new record should be freed if it's a duplicate.
2165         (add_module): Adjust insert_module call.
2166         (__gconv_read_conf): Likewise.
2167         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
2168         mtrace-tst-loading.
2169         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
2170
2171         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
2172         _dl_all_init_dirs.
2173         * include/link.h (struct r_search_path_struct): New.
2174         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
2175         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
2176         _dl_all_init_dirs.
2177         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
2178         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
2179         added at startup time.
2180         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
2181         contains element to remember fact that we can free memory.
2182         (all_dirs): Renamed to _dl_all_dirs.  Made global.
2183         (_dl_init_all_dirs): New variable.
2184         (fillin_rpath): Save one malloc call.
2185         (decompose_rpath): Change interface.  New first parameter points to
2186         r_search_path_struct.
2187         (_dl_init_paths): Adjust for changes.  Mark all memory as not
2188         deletable.  Set _dl_init_all_paths value.
2189         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
2190         parameter replaced with r_search_path_struct *.  Information about
2191         freeing now contained in r_search_path_struct.
2192         (_dl_map_object): Adjust for above changes.
2193
2194         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
2195
2196         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
2197         when adding new entries.
2198
2199         * elf/dl-load.c (fillin_rpath): Make local copy of where string
2200         since the object being loaded can be unloaded.
2201
2202         * iconvdata/Makefile (tests): Add tst-loading.
2203         * iconvdata/tst-loading.c: New file.
2204
2205 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
2206
2207         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
2208         When comparing a char with an int, always cast the char to
2209         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
2210         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
2211
2212 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2213
2214         * time/strftime.c (my_strftime): Add compatibility code for use
2215         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
2216
2217         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
2218         return 0 for success but always < 0 on failure.
2219
2220         * nss/getXXbyYY_r.c: Define result to *result before including
2221         digits_dots.c.
2222
2223 2000-08-30  Andreas Jaeger  <aj@suse.de>
2224
2225         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
2226
2227 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
2230         official file.
2231         * iconvdata/TESTS: Add BIG5HKSCS entry.
2232         * iconvdata/testdata/BIG5HKSCS: New file.
2233         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
2234
2235         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
2236         always true.
2237
2238         * libio/iogetline.c: Set mode before the loop in case n==0.
2239         * libio/iogetwline.c: Likewise.
2240
2241 2000-08-29  H.J. Lu  <hjl@gnu.org>
2242
2243         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
2244         of fp->_mode < 0.
2245         (_IO_new_file_overflow): Likewise.
2246         * libio/genops.c (_IO_flush_all): Likewise.
2247         * libio/ioftell.c (_IO_ftell): Likewise.
2248
2249 2000-08-29  Akira Higuchi  <a@kondara.org>
2250
2251         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
2252         and __end_fct fields of struct __gconv_step.
2253         * iconv/Makefile (tests): Add iconv-bug2.
2254         * iconv/iconv-bug2.c: New file.
2255
2256         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
2257         instead of 'inptr - inend' to ksc5601_to_ucs4.
2258
2259         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
2260
2261         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
2262         character or shift sequence is found at the end of the input
2263         string, return__GCONV_INCOMPLETE_INPUT instead of
2264         __GCONV_EMPTY_INPUT.
2265         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2266         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2267
2268         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
2269         __GCONV_ILLEGAL_INPUT for 8bit characters.
2270
2271 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2272
2273         * signal/signal.h (sigpause): Move __THROW before __asm__.
2274
2275         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
2276         names don't match don't return.
2277         Patch by Olaf Kirch <okir@flash.lst.de>.
2278
2279 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2280
2281         * time/strftime.c (my_strftime): Handle # flag for %b as well.
2282
2283 2000-08-27  H.J. Lu  <hjl@gnu.org>
2284
2285         * posix/Makefile (otherlibs): Add for building with static-nss
2286         for "make check".
2287
2288 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2289
2290         * libio/stdio.h: Add fmemopen prototype.
2291
2292 2000-08-25  Andreas Jaeger  <aj@suse.de>
2293
2294         * libio/Makefile (routines): Add fmemopen.
2295         (tests): Add test-fmemopen.
2296         * libio/Versions: Add fmemopen with version GLIBC_2.2.
2297         * libio/test-fmemopen.c: New file.
2298         * libio/fmemopen.c: New file.
2299         Patches by Hanno Mueller <kontakt@hanno.de>.
2300
2301 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2302
2303         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
2304         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2305
2306         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
2307         to avoid crashing statically linked applications.
2308
2309 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2310
2311         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
2312         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
2313
2314         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
2315         If the result is fits in the buffer, copy only as many bytes as needed.
2316
2317         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
2318         buffer after copying numbuf into it.
2319         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
2320
2321 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2322
2323         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
2324         the result.  When string_len < len, don't clear the rest of the buffer.
2325
2326 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2327
2328         Support for new LC_COLLATE format.
2329         * locale/coll-lookup.h: New file.
2330         * locale/weightwc.h (findidx): When size == 0, call
2331         collidx_table_lookup.
2332         * wcsmbs/wcscoll.c: Include coll-lookup.h.
2333         * wcsmbs/wcsxfrm.c: Likewise.
2334         * posix/fnmatch.c: Likewise.
2335         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
2336         collseq_table_lookup.
2337         * locale/programs/3level.h: New file.
2338         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
2339         by including "3level.h".
2340         * locale/programs/ld-collate.c (wchead_table, collidx_table,
2341         collseq_table): New types, defined by including "3level.h".
2342         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
2343         (encoding_mask, encoding_byte): Remove.
2344         (utf8_encode): Use simple shifts instead.
2345         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
2346         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
2347         (collate_output): New local variable tablewc_3level. When
2348         !oldstyle_tables, set table_size to 0 and names to NULL and fill
2349         tablewc_3level instead of tablewc. Change format of TABLEWC and
2350         COLLSEQWC entries written to the file.
2351         * locale/C-collate.c (collseqwc): Change format.
2352         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
2353         of COLLSEQWC.
2354         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
2355
2356 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2357
2358         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
2359         (locale_ctype_t): New charnames_idx field.
2360         (ctype_startup): Initialize charnames_idx field.
2361         (find_idx): Speed up dramatically by using charnames_idx inverse table.
2362
2363 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2364
2365         * locale/C-ctype.c: Switch to new locale format.
2366         (_nl_C_LC_CTYPE_names): Remove array.
2367         (STRUCT_CTYPE_CLASS): New macro.
2368         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2369         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2370         New three-level tables.
2371         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
2372         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
2373         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
2374         12 class tables and 2 map tables at the end.
2375         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
2376         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2377         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2378         New declarations.
2379         (b): Remove trailing semicolon.
2380         (__ctype_names, __ctype_width): Don't initialize.
2381         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
2382
2383 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2384
2385         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
2386         is guaranteed to be allocated with the same malloc() and may be
2387         passed to free().
2388         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
2389         been set to empty by an earlier open_path call, don't pass it again.
2390
2391 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2392
2393         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
2394         we are not optimizing.
2395
2396         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
2397         inclusion.
2398
2399         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
2400         really match EOF.
2401         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2402
2403 2000-08-28  Andreas Jaeger  <aj@suse.de>
2404
2405         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
2406
2407 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
2408
2409         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
2410         getpeername.  Use ISO C style function definition.
2411         (getpeername): Provide weak alias.
2412         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
2413         setrlimit.  Use ISO C style function definition.
2414         (setrlimit): Provide weak alias.
2415
2416 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2417
2418         * shlib-versions: Add a rule for S/390 to the libm version list.
2419         * sysdeps/s390/Versions: New file.
2420         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
2421         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
2422         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2423         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
2424         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
2425         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
2426         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
2427         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
2428         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
2429         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
2430         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
2431         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
2432         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
2433         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
2434         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
2435         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
2436         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
2437         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
2438
2439 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2440
2441         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
2442         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
2443
2444         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
2445         * elf/dl-close.c (_dl_close): Print debug message if object is not
2446         unloaded.
2447         * elf/dl-open.c (dl_open_worked): Print message about opencount before
2448         returning to caller.
2449
2450         * po/zh.po: Renamed to...
2451         * po/zh_TW.po: ...this.
2452
2453 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
2454
2455         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
2456
2457         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
2458         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
2459         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
2460         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2461
2462 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
2463
2464         * locale/programs/ld-collate.c (insert_weights): Also update
2465         backpointer of next element.
2466         (collate_read): Allow definition of new collation symbols in stage 2.
2467         Symbol after reorder-after can be UCS4 value.
2468         Allow reordering of collation symbols and elements.
2469         Do not only move reorder entry in new position.  Instead call
2470         insert_weight to do this and read the weights.
2471
2472         * locale/findlocale.c (free_mem): Add cast to avoid warning.
2473
2474         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
2475         to determine invalid locale name.
2476         * locale/findlocale.c (_nl_find_locale): Likewise.
2477
2478         * posix/annexc.c: Correct test for unavailable feature.
2479
2480         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
2481         __inline.
2482
2483 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
2486         syscall.
2487
2488         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
2489         (sysdep_routines): Add oldgetrlimit64.
2490
2491         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
2492         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
2493         (tests): Add unload, reldep, reldep2, and reldep3.
2494         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
2495         and reldepmod4.
2496         Add rules to build and run unload, reldep, reldep2, and reldep3.
2497         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
2498         Don't create relocation dependency if it is nonzero.
2499         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
2500         can never happen here.
2501         (_dl_lookup_versioned_symbol): Add new parameter explicit.
2502         Don't create relocation dependency if it is nonzero.
2503         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
2504         stuff.  This can never happen here.
2505         * sysdeps/generic/ldsodefs.h: Change prototypes.
2506         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
2507         _dl_lookup_up and _dl_lookup_versioned_symbol.
2508         (RESOLV): Likewise.
2509         * elf/dl-runtime.c (fixup): Likewise.
2510         (profile_fixup): Likewise.
2511         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
2512         _dl_lookup_symbol.
2513         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
2514         * elf/rtld.c (dl_main): Likewise.
2515         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
2516         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
2517         and pass down the caller map.
2518         (_dl_vsym): Likewise.
2519         * elf/reldep.c: New file.
2520         * elf/reldep2.c: New file.
2521         * elf/reldep3.c: New file.
2522         * elf/reldepmod1.c: New file.
2523         * elf/reldepmod2.c: New file.
2524         * elf/reldepmod3.c: New file.
2525         * elf/reldepmod4.c: New file.
2526         * elf/unload.c: New file.
2527         * elf/unloadmod.c: New file.
2528
2529         * elf/do-lookup.h: Remove unused undef_name parameter.
2530         * elf/dl-lookup.c: Adjust callers.
2531
2532 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2533
2534         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
2535         irreversible in recursive call of conversion function to signal that
2536         no error handling is wanted.
2537         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
2538         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
2539         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
2540         recursive error handling call, otherwise to &lirreversible.  Use it
2541         for calls to conversion functions.
2542         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
2543         transliterating.
2544         (ucs4_internal_loop_unaligned): Likewise.
2545         (ucs4le_internal_loop): Likewise.
2546         (ucs4le_internal_loop_unaligned): Likewise.
2547
2548 2000-08-25  Greg McGary  <greg@mcgary.org>
2549
2550         * sysdeps/i386/memchr.S: Check high bound against chars
2551         actually scanned.
2552         * sysdeps/i386/memcmp.S: Likewise.
2553         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
2554         account for pointers that lie one beyond end-of-buffer.
2555
2556 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2557
2558         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
2559         * elf/nodelete.c (fini_ran): New global variable.
2560         (do_test): Before every dlclose call clear fini_ran and test
2561         afterwards that it is not set by the destructors.
2562         * elf/nodelmod1.c: Add destructor which sets fini_ran.
2563         * elf/nodelmod2.c: Likewise.
2564         * elf/nodelmod4.c: Likewise.
2565
2566 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
2567
2568         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
2569         getrlimit to the list.
2570
2571 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
2572
2573         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
2574         long double format so use ldbl-96 instead of ldbl-128.
2575
2576 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2577
2578         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
2579         even if bits 10 a 11 are non-zero.
2580         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
2581
2582         * Makeconfig: Ensures the soversions.mk part of Makefile gets
2583         included before building gnu/lib-names.h
2584         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2585
2586         * elf/dl-close.c (_dl_close): Don't run destructors of objects
2587         marked DF_1_NODELETE.
2588
2589         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
2590         since we call sigaction in the child.
2591
2592 2000-08-25  Andreas Jaeger  <aj@suse.de>
2593
2594         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
2595         gconv-modules.
2596
2597 2000-08-25  Andreas Jaeger  <aj@suse.de>
2598
2599         * manual/arith.texi (Control Functions): Clarify possible
2600         arguments.  Closes PR libc/1856.
2601
2602 2000-08-24  H.J. Lu  <hjl@gnu.org>
2603
2604         * stdio-common/Makefile (tests): Don't do it for cross compiling.
2605         * malloc/Makefile (tests): Likewise.
2606
2607 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2608
2609         * iconvdata/unicode.c (gconv_init): Correct test for direction.
2610
2611 2000-08-24  Andreas Jaeger  <aj@suse.de>
2612
2613         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
2614         only if LIBGD is available.
2615
2616 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2617
2618         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
2619         problems with now restrict parameter types.
2620         (convaddr4to6): Likewise.
2621
2622 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
2623
2624         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
2625         * sysdeps/s390/fpu/feenablxcpt.c: New file.
2626         * sysdeps/s390/fpu/fegetexcept.c: New file.
2627         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
2628         FPC_VALID_MASK.
2629
2630 2000-08-24  Andreas Jaeger  <aj@suse.de>
2631
2632         * malloc/Makefile (extra-objs): Add memusagestat.o.
2633         (generated): Added memusage and memusagestat for make clean.
2634
2635         * libio/tst_putwc.c (do_test): Delete temporary file.
2636         Move inclusion of test-skeleton to front to have prototype for
2637         add_temp_file.
2638
2639         * posix/Makefile (generated): Add wordexp-tst.out.
2640
2641 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2642
2643         * resolv/res_hconf.c (free_mem): Remove not needed if.
2644
2645         * time/tzset.c (free_mem): New function.
2646         * string/strsignal.c (free_mem): New function.
2647         * inet/inet_ntoa.c (free_mem): New function.
2648         * sunrpc/clnt_perr.c (free_mem): New function.
2649
2650 2000-08-24  Andreas Jaeger  <aj@suse.de>
2651
2652         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
2653         * sysdeps/unix/sysv/syscalls.list: Likewise.
2654
2655         * posix/unistd.h: Move internal prototypes from here ...
2656         * include/unistd.h: ... to here.
2657
2658         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
2659
2660 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2661
2662         * grp/initgroups.c (initgroups): Deallocate groups array.
2663         Reported by jani.raiha@sonera.com [PR libc/1868].
2664
2665         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2666         * sysdeps/alpha/Dist: Likewise.
2667
2668 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2669
2670         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2671         destructor).  Reported by Solar Designer <solar@false.com>.
2672
2673         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2674         avoid adding double slashes.
2675
2676 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2677
2678         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2679         out of the __REDIRECT macro.
2680
2681 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2682
2683         * stdio-common/vfscanf.c: Add %F format support.
2684
2685         * locale/programs/ld-ctype.c (ctype_output): Make sure
2686         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2687         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2688         (ctype_read): Enable returning of wide character strings for reading
2689         transliteration information.
2690
2691 2000-08-23  Andreas Jaeger  <aj@suse.de>
2692
2693         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2694         Use static __inline instead of _EXTERN_INLINE.
2695
2696         * misc/sys/select.h: Move prototypes of __select from here ...
2697         * include/sys/select.h: ... to here.
2698
2699         * socket/sys/socket.h: Move prototypes of __send and __connect
2700         from here....
2701         * include/sys/socket.h: ... to here.
2702
2703         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2704         lr_error.
2705
2706 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2707
2708         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2709         __setrlimit as strong name. Takes only 2 arguments.
2710
2711         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2712         takes only 2 arguments.
2713
2714 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2715
2716         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2717
2718         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2719
2720 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2721
2722         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2723         default_missing character being specified, pick the first
2724         representable.
2725
2726 2000-08-23  Andreas Jaeger  <aj@suse.de>
2727
2728         * include/wchar.h: Add some pure attributes.
2729
2730         * time/time.h: Add const attribute for dysize.
2731
2732         * include/stdlib.h: Add malloc attribute to __posix memalign.
2733
2734         * stdlib/stdlib.h: Add some pure and malloc attributes.
2735         * wcsmbs/wchar.h: Likewise.
2736
2737         * dirent/dirent.h: Add some pure attributes.
2738         * include/dirent.h: Likewise.
2739
2740 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2741
2742         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2743         on 64bit arches.
2744
2745 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2746
2747         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2748         missing buffer size checks.
2749
2750 2000-08-23  Andreas Jaeger  <aj@suse.de>
2751
2752         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2753         strong name.
2754         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2755
2756         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2757         otherwise __LINUX_KERNEL_VERSION might not be defined.
2758         (MIN): Define if not already defined.
2759
2760 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2761
2762         * stdio-common/vfprintf.c: Handle %F format.
2763         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2764         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2765
2766         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2767
2768         * po/zh.po: New file.
2769
2770         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2771         enough room in target buffer.
2772         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2773         * iconvdata/bug-iconv1.c: New file.
2774         * iconvdata/Makefile (tests): Add bug-iconv1.
2775
2776         * locale/iso-4217.def: Update entry for Nicaragua.
2777
2778 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2779
2780         * hurd/hurdsig.c: Rearrange headers a bit.
2781         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2782         when cthreads is being used.
2783
2784 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2785
2786         * elf/Makefile (distribute): Add dl-osinfo.h.
2787         * sysdeps/generic/dl-osinfo.h: New file.
2788         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2789         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2790         if defined.
2791         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2792         only for !SHARED case.  Get the code from dl-osinfo.h.
2793
2794         * stdlib/random_r.c: Cleanups.
2795         * stdlib/tst-random.c: New file.
2796         * stdlib/Makefile (tests): Add tst-random.
2797         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2798
2799 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2800
2801         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2802         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2803         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2804         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2805
2806 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2807
2808         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2809         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2810         (__syscall__sysctl): Add.
2811
2812 2000-08-21  Andreas Jaeger  <aj@suse.de>
2813
2814         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2815         libc/1864).
2816         * stdlib/tst-strtoll.c: Likewise.
2817
2818 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2819
2820         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2821         correctly.
2822         (__initstate_r): Set errno on error.
2823         (__random_r): Likewise.
2824         (__setstate_r): Correct offset when computing
2825         new rptr and fptr.  Test for arg_state being NULL.
2826         Reported by Michael Fischer <fischer@cs.yale.edu>.
2827
2828         * posix/regex.h: Add macro definitions to allow compiling outside
2829         glibc.
2830
2831         * sysdeps/i370/Implies: Removed.
2832         * sysdeps/mvs/Implies: Removed.
2833
2834         * catgets/catgets.c (catopen): Filter out env_var values with / if
2835         necessary.
2836
2837         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2838         locale name after all getenvs.
2839
2840         * configure.in: Allow sed versions like 3.02.8.
2841         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2842
2843 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2844
2845         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2846
2847 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2848
2849         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2850         of gethostbyname2_r call.
2851
2852         * intl/locale.alias: Add aliases for Korean.
2853
2854 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2855
2856         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2857         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2858         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2859         * sysdeps/s390/fpu/fegetenv.c: New file.
2860         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2861         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2862         * sysdeps/s390/fpu/fenv_libc.h: New file.
2863         * sysdeps/s390/fpu/fesetenv.c: New file.
2864         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2865         * sysdeps/s390/fpu/feupdateenv.c: New file.
2866         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2867         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2868         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2869         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2870         * sysdeps/s390/fpu/ftestexcept.c: New file.
2871         * sysdeps/s390/fpu/libm-test-ulps: New file.
2872         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2873         * sysdeps/s390/initfini.c: New file.
2874         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2875         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2876         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2877         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2878         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2879         sys/procfs.h as proposed by Mark Kettenis.
2880         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2881
2882 2000-08-21  Andreas Jaeger  <aj@suse.de>
2883
2884         * include/poll.h: Include include/sys/poll.h to get __poll
2885         declaration.
2886
2887         * io/sys/poll.h: Move __poll declaration from here...
2888         * include/sys/poll.h: ...to here.
2889
2890         * include/sys/socket.h (__getpeername): Add declaration.
2891
2892         * include/wchar.h (__vswprintf): Add declaration.
2893
2894         * include/stdio.h (__flockfile): Add declaration.
2895         (__funlockfile): Likewise.
2896
2897 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2898
2899         * misc/sys/cdefs.h: Define __restrict_arr.
2900         * include/sys/time.h: Add restrict where required by AGd4.
2901         * inet/arpa/inet.h: Likewise.
2902         * io/sys/stat.h: Likewise.
2903         * io/sys/statvfs.h: Likewise.
2904         * misc/search.h: Likewise.
2905         * misc/sys/select.h: Likewise.
2906         * posix/glob.h: Likewise.
2907         * posix/regex.h: Likewise.
2908         * posix/spawn.h: Likewise.
2909         * posix/unistd.h: Likewise.
2910         * rt/aio.h: Likewise.
2911         * signal/signal.h: Likewise.
2912         * socket/sys/socket.h: Likewise.
2913         * stdlib/ucontext.h: Likewise.
2914         * streams/stropts.h: Likewise.
2915         * string/string.h: Likewise.
2916         * time/time.h: Likewise.
2917         * time/sys/time.h: Likewise.
2918
2919         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2920         and posix_spawnattr_setscheparam.
2921
2922         * libio/stdio.h: Make cuserid prototype again available for all
2923         XPG versions.
2924
2925         * argp/argp-help.c: Unify use of function aliases to make more compact
2926         PLT.
2927         * include/libintl.h: Likewise.
2928         * inet/rcmd.c: Likewise.
2929         * intl/dcigettext.c: Likewise.
2930         * libio/iofputws.c: Likewise.
2931         * libio/iofputws_u.c: Likewise.
2932         * libio/iogetwline.c: Likewise.
2933         * libio/swprintf.c: Likewise.
2934         * malloc/malloc.c: Likewise.
2935         * nss/digits_dots.c: Likewise.
2936         * posix/fnmatch.c: Likewise.
2937         * posix/spawn_faction_addclose.c: Likewise.
2938         * posix/spawn_faction_adddup2.c: Likewise.
2939         * posix/spawn_faction_addopen.c: Likewise.
2940         * posix/spawni.c: Likewise.
2941         * posix/wordexp.c: Likewise.
2942         * posix/spawni.c: Likewise.
2943         * resolv/res_hconf.c: Likewise.
2944         * resolv/res_init.c: Likewise.
2945         * shadow/lckpwdf.c: Likewise.
2946         * signal/sighold.c: Likewise.
2947         * signal/sigrelse.c: Likewise.
2948         * stdio-common/printf-parse.h: Likewise.
2949         * stdio-common/printf-prs.c: Likewise.
2950         * stdio-common/printf_fp.c: Likewise.
2951         * stdio-common/vfprintf.c: Likewise.
2952         * stdio-common/vfscanf.c: Likewise.
2953         * stdlib/rpmatch.c: Likewise.
2954         * sunrpc/create_xid.c: Likewise.
2955         * sunrpc/key_call.c: Likewise.
2956         * sysdeps/generic/setrlimit64.c: Likewise.
2957         * sysdeps/generic/utmp_file.c: Likewise.
2958         * sysdeps/generic/vlimit.c: Likewise.
2959         * sysdeps/posix/posix_fallocate.c: Likewise.
2960         * sysdeps/posix/posix_fallocate64.c: Likewise.
2961         * sysdeps/posix/sigpause.c: Likewise.
2962         * sysdeps/posix/sigset.c: Likewise.
2963         * sysdeps/unix/grantpt.c: Likewise.
2964         * sysdeps/unix/bsd/ualarm.c: Likewise.
2965         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2966         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2967         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2968         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2969         * time/strftime.c: Likewise.
2970         * wcsmbs/wcscoll.c: Likewise.
2971         * wcsmbs/wcsxfrm.c: Likewise.
2972
2973         * time/tst-getdate.c (main): Make error messages more human readable.
2974
2975         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2976         postinc/predec instruction.
2977         (_FPU_SETCW): Likewise.
2978         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2979
2980 2000-08-20  Andreas Jaeger  <aj@suse.de>
2981
2982         * time/tst-getdate.c (main): Increase error in case of wrong
2983         conversion.
2984         Fix typo in test case.
2985
2986 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2987
2988         * ctype/ctype.h (isblank): Make available if ISO C99.
2989         * wctype/wctype.h (iswblank): Make available if ISO C99.
2990         * math/math.h (signgam): Don't make available if ISO C99.
2991         * math/tgmath.h (tgamma): Renamed from gamma.
2992         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2993
2994         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2995         Pretty printing.
2996         * intl/plural.y (new_exp): Take number of optional parameters in
2997         second parameter.  Test for correct number of parameters and free
2998         correctly in case of failure.  Adjust all callers.
2999         (yylex): Allow ';' as terminator character.
3000
3001 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3002
3003         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
3004         walt_digits.
3005
3006         * locale/findlocale.c (free_mem): Also free here->filename.
3007
3008         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
3009
3010         * math/test-fenv.c (feenv_tests): Clear all exceptions before
3011         first test.
3012         (feexcp_nomask_test): Correct printf args.
3013         (feexcp_mask_test): Likewise.
3014
3015 2000-08-19  Andreas Jaeger  <aj@suse.de>
3016
3017         * inet/tst-gethnm.c: Include string.h to provide prototype for
3018         strcmp.
3019
3020         * malloc/mtrace.pl (usage): Inform about --help.
3021
3022 2000-08-19  Wolfram Gloger  <wg@malloc.de>
3023
3024         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
3025         size HEAP_MAX_SIZE.
3026
3027 2000-08-19  Andreas Jaeger  <aj@suse.de>
3028
3029         * shlib-versions: Remove libnss_db, libdb and libdb1.
3030
3031 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
3032
3033         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
3034         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
3035         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
3036         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
3037         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
3038         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
3039         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
3040         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
3041         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
3042         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
3043         getdents.
3044         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
3045         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
3046
3047 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3048
3049         * include/glob.h (__glob64): Add prototype.
3050         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
3051         define glob and glob_in_dir.
3052         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
3053         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3054         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3055         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3056         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
3057         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
3058         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
3059         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
3060
3061 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3062
3063         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
3064
3065 2000-08-17  Andreas Jaeger  <aj@suse.de>
3066
3067         * math/test-fenv.c (fe_single_test): New function.
3068         (fe_env_tests): Use fe_single_test.
3069         (feenable_test): New tests for feenable/fedisable and
3070         fegetexcpetions.
3071         (feexcp_mask_test): New function.
3072         (feexcp_nomask_test): New function.
3073
3074 2000-08-19  Richard Henderson  <rth@cygnus.com>
3075
3076         * sysdeps/alpha/fpu/fenv_libc.h: New file.
3077         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
3078         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
3079         * sysdeps/alpha/fpu/fesetround.c: Likewise.
3080         * sysdeps/alpha/fpu/fegetround.c: Likewise.
3081         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
3082         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
3083         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
3084         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
3085         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
3086         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
3087         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
3088         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
3089         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
3090         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
3091         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
3092         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
3093
3094 2000-08-19  Andreas Jaeger  <aj@suse.de>
3095
3096         * elf/constload1.c: Include <stdio.h> for puts prototype.
3097
3098 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3099
3100         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
3101         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
3102         a dynamically loaded object remove old l_initfini list.
3103         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
3104         remove some dynamically allocated memory blocks in the dynamic
3105         loading data structures.
3106         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
3107         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
3108         Instead call _dl_check_map_versions only for the dependencies.
3109         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
3110         information of initial objects as not free-able.
3111         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
3112         element.
3113
3114         * elf/filter.c: Call mtrace.
3115         * elf/restest1.c: Likewise.  Close the objects.
3116         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
3117         debug information.
3118
3119         * elf/constload1.c: Add comment explaining not freed memory.
3120
3121 2000-08-18  Andreas Jaeger  <aj@suse.de>
3122
3123         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
3124         alignment for structs stat and stat64.
3125         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3126
3127 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3128
3129         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
3130         handling.  Patch by Richard Henderson <rth@twiddle.net>.
3131
3132         * nss/Versions: Remove libnss_db information.
3133
3134 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3135
3136         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
3137         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
3138         * sysdeps/sparc/fpu/fegetexcept.c: New file.
3139         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
3140
3141         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
3142         to match Solaris.
3143
3144 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3145
3146         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
3147         (_FPU_SETCW): Likewise.
3148         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3149
3150         * stdio-common/printf_fp.c: Fix chars_needed computation.
3151         Patch by Greg McGary <greg@mcgary.org>.
3152
3153 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3154
3155         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
3156         _dl_loaded are NULL.
3157
3158 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3159
3160         * manual/arith.texi (feholdexcept): Returns 0 on success.
3161
3162 2000-08-17  Andreas Jaeger  <aj@suse.de>
3163
3164         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
3165         (ifr_newname): New.
3166         Reported by Andi Kleen <ak@suse.de>.
3167
3168 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3169
3170         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
3171         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
3172         * sysdeps/alpha/fpu/fegetexcept.c: New file.
3173
3174 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3175
3176         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
3177         of buf->st_ino and kbuf->st_ino, not __st_ino.
3178         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
3179         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
3180         directive so that only linux/getdents.c is used, not some
3181         architecture specific one.
3182
3183 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3184
3185         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
3186         enabled, not disabled exceptions.
3187         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3188         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
3189
3190 2000-08-17  Greg McGary  <greg@mcgary.org>
3191
3192         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
3193         from test program name when constructing suffix for $(LDLIBS-*).
3194         (bounded-thread-library): New variable.
3195         * crypt/Makefile
3196         [build-shared, build-static] (libcrypt-dep): Remove variable.
3197         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3198         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3199         * linuxthreads/Makefile (libpthread, librt): Remove variables.
3200         (librt-tests): Add variable.  (tests): Use it.
3201         [build-shared, build-static]
3202         ($(addprefix $(objpfx),$(tests)),
3203         $(addprefix $(objpfx),$(librt-tests))):
3204         Consolidate individual dependencies.
3205         [build-bounded]
3206         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
3207         Add dependencies.
3208         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
3209         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3210         * misc/Makefile
3211         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
3212         * rt/Makefile
3213         [build-shared, build-static]
3214         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3215         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3216
3217 2000-08-17  Greg McGary  <greg@mcgary.org>
3218
3219         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
3220         * sysdeps/unix/make-syscalls.sh: Likewise.
3221         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3222         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3223         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3224         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3225         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3226
3227 2000-08-17  Greg McGary  <greg@mcgary.org>
3228
3229         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
3230         Wrap extern symbols in BP_SYM ().
3231         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3232         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3233         * sysdeps/i386/fpu/s_remquo.S: Likewise.
3234         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3235         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3236         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3237         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3238         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3239         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3240         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3241
3242 2000-08-16  Andreas Schwab  <schwab@suse.de>
3243
3244         * sysdeps/m68k/fpu/fegetexcept.c: New file.
3245         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
3246         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
3247
3248 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3249
3250         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
3251         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
3252         * elf/dl-support.c: Define _nl_nloaded.
3253         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
3254         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
3255         object to global list.
3256         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
3257         from _dl_loaded list.
3258         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3259         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
3260         number here.
3261
3262         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
3263         unmask, exceptions.
3264         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
3265         exceptions.
3266         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
3267
3268 2000-08-16  Andreas Jaeger  <aj@suse.de>
3269
3270         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
3271
3272 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
3273
3274         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
3275
3276 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3277
3278         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
3279         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
3280         (sysdep_routines): Add oldgetrlimit64.
3281         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
3282         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3283
3284         * include/link.h: Undo last patches.  Hurd now has stat64.
3285         * elf/Makefile: Likewise.
3286         * elf/dl-load.c: Likewise.
3287         * elf/dl-misc.c: Likewise.
3288         * elf/dl-profile.c: Likewise.
3289         * sysdeps/generic/sysd-link.h: Removed.
3290         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
3291
3292         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
3293         thread event callback function.
3294         (__aio_notify_only): Use function above.
3295         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
3296
3297 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
3298
3299         * sysdeps/mach/hurd/lseek64.c: New file.
3300
3301 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3302
3303         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
3304         Remove typedefs.
3305         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
3306         typedefs.
3307         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
3308         typedefs.
3309         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
3310
3311 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3312
3313         * sysdeps/mach/hurd/xstatconv.c: New file.
3314         * sysdeps/mach/hurd/fxstat64.c: New file.
3315         * sysdeps/mach/hurd/lxstat64.c: New file.
3316         * sysdeps/mach/hurd/xstat64.c: New file.
3317         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
3318
3319 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3320
3321         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
3322         Initialize, needed for change in common symbol handling in newer
3323         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
3324
3325 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3326
3327         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
3328         * elf/constload2.c: Add destructor to unload constload3.
3329
3330         * include/link.h: Include sysd-link.h.
3331         * sysdeps/generic/sysd-link.h: New file.
3332         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
3333         * elf/Makefile (distribute): Add sysd-link.h.
3334         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
3335         types and functions directly.
3336         * elf/dl-misc.c: Likewise.
3337         * elf/dl-profile.c: Likewise.
3338
3339         * elf/loadfail.c (main): Close all successfully loaded objects.
3340
3341         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
3342         free wd.
3343         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
3344         there is already one.
3345
3346         * elf/dl-close.c: Pretty print.
3347
3348 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
3349
3350         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
3351         global (with file scope).  Add __libc_subfreeres function to free the
3352         string.
3353         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
3354         in ttyname function.
3355
3356         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
3357
3358         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
3359
3360         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
3361         mapping them to /x5c and /x7e respectively.
3362
3363         * locale/programs/ld-ctype.c: Add support for more definitions after
3364         copy statement.
3365
3366 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
3367
3368         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
3369         * sysdeps/unix/sysv/linux/kernel-features.h
3370         (__ASSUME_GETDENTS64_SYSCALL): Define.
3371         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
3372         syscall if available to get d_type fields.
3373         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
3374         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
3375         __lxstat64): Export at GLIBC_2.2.
3376         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
3377         Likewise.
3378         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
3379         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
3380         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
3381         getdirentries64, versionsort64): Remove.
3382         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
3383         getdirentries64, versionsort64): Remove.
3384
3385 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3386
3387         * posix/Makefile: Remove rules to generate glob package.
3388
3389         * posix/Makefile (tests): Add tst-regexloc.
3390         (tst-regexloc-ENV): Add LOCPATH.
3391         * posix/tst-regexloc.c: New file.
3392
3393 2000-08-12  Andreas Jaeger  <aj@suse.de>
3394
3395         * include/features.h (__STDC_ISO_10646__): Define.
3396         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
3397
3398 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3399
3400         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
3401
3402         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
3403         for revision 6 and up).
3404
3405         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
3406         including <time.h>.
3407         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
3408         to get definitions of just these types.
3409
3410         * signal/signal.h: Define thread signal handling functions also for
3411         POSIX95.
3412
3413         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
3414         POSIX95.
3415         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
3416         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
3417         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3418         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
3419
3420         * sysvipc/sys/shm.h: Define pid_t for XPG.
3421
3422         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
3423         they are not anymore required here.
3424
3425         * wcsmbs/wchar.h: Make the various wide char string and stream
3426         functions available for the respective XPG versions.
3427
3428         * nss/Makefile: Remove rules to build and distribute nss_db.
3429
3430         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
3431         * sysdeps/generic/scandir64.c: Likewise.
3432         * sysdeps/generic/versionsort64.c: Likewise.
3433
3434 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3435             Benjamin Koznik  <bkoz@redhat.com>
3436
3437         * libio/fileops.c: Merge with libstdc++-v3.
3438         * libio/genops.c: Likewise.
3439         * libio/iofclose.c: Likewise.
3440         * libio/iofopen.c: Likewise.
3441         * libio/iofwide.c: Likewise.
3442         * libio/libio.h: Likewise.
3443         * libio/libioP.h: Likewise.
3444         * libio/stdfiles.c: Likewise.
3445         * libio/stdio.c: Likewise.
3446         * libio/wfileops.c: Likewise.
3447         * libio/wgenops.c: Likewise.
3448
3449         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
3450
3451 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3452
3453         * locale/programs/localedef.c: Implement --prefix option to allow
3454         writing in standard places of alternative install directories.
3455
3456         * posix/regex.c (compile_range): Implement collation sequence
3457         handling for glibc.  Use simple character ordering otherwise and
3458         not strcoll.
3459
3460 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
3461
3462         * sysdeps/generic/scandir64.c: Include <dirent.h>.
3463
3464 2000-08-12  Andreas Jaeger  <aj@suse.de>
3465
3466         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
3467         __USE_FILE_OFFSET64 correctly for locking.
3468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3469
3470 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
3471
3472         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3473         Define for 2.4.1 on sparc as well.
3474         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
3475         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3476         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
3477         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
3478
3479 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
3482         defined.
3483
3484 2000-08-12  Andreas Jaeger  <aj@suse.de>
3485
3486         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
3487         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
3488
3489         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
3490         mips2 for assembler.
3491
3492         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
3493         if fnctl64 is not available for F_*LK*64.
3494
3495         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
3496
3497 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3498
3499         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3500         Define for 2.4.1 on x86.
3501         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
3502         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
3503         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3504
3505         * dirent/dirent.h: Define DT_WHT.
3506
3507         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
3508         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
3509         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
3510         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
3511         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
3512         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
3513
3514 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
3517         lookup, pass pointer to array with NULL pointer [PR libc/1858].
3518         * inet/Makefile (tests): Add tst-gethnm.
3519         * inet/tst-gethnm.c: New file.
3520
3521         * rt/aio_cancel.c: If canceling a specific request which is running
3522         *really* do nothing.
3523         * rt/aio_misc.h: Add `done' to states of a request.
3524         * rt/aio_misc.c: Add several tests for the correct state.
3525         Simplify request table memory handling.
3526
3527 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
3528
3529         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
3530         * dirent/scandir64.c: Move...
3531         * sysdeps/generic/scandir64.c: ...here.
3532         * dirent/alphasort64.c: Move...
3533         * sysdeps/generic/alphasort64.c: ...here.
3534         * dirent/versionsort64.c: Move...
3535         * sysdeps/generic/versionsort64.c: ...here.
3536         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
3537         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
3538         Export symbols at GLIBC_2.2.
3539         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
3540         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
3541         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
3542         __versionsort64): Add prototypes.
3543         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
3544         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
3545         unused prototype.
3546         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
3547         and GLIBC_2.2.
3548         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
3549         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
3550         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
3551         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
3552         __u_quad_t.
3553         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
3554         Adjust for kernel-2.4.0-test6 layout.
3555         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
3556         GLIBC_2.1 and GLIBC_2.2.
3557         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
3558         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
3559         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
3560         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
3561         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
3562         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
3563         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
3564         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
3565         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
3566         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
3567         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
3568         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
3569         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
3570         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
3571         __u_quad_t.
3572         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
3573         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
3574         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
3575         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
3576         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
3577         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
3578         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
3579         __u_quad_t.
3580         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
3581         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
3582         Define.
3583         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
3584         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
3585         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
3586         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
3587         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
3588         Define.
3589         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
3590         alpha/readdir.c.
3591         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
3592         alpha/readdir_r.c
3593         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
3594         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
3595         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
3596         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
3597         st_ino from __st_ino.
3598         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3599         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3600         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
3601         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
3602         set __st_ino in addition to st_ino.
3603         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
3604         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
3605         __old_getdents64 as well.
3606         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
3607         getdirentries64 and old_getdirentries64 as well.
3608         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
3609         __GETDENTS): Define.
3610         (GETDENTS64): Remove.
3611         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
3612         Define.
3613         (GETDENTS64): Remove.
3614         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
3615         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
3616         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
3617         as well.
3618         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
3619         __old_readdir64_r as well.
3620         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3621         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
3622
3623 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
3624
3625         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
3626         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
3627         define of the kernel.
3628         Add missing __SEG_PSTKOVF definition.
3629         Adjust the padding of struct siginfo and struct sigevent to
3630         match the fact that sigval_t is 64 bit.
3631
3632 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
3633
3634         * timezone/zic.c: Update from tzcode2000f.
3635         * timezone/australasia: Update from tzdata2000f.
3636         * timezone/europe: Likewise.
3637         * timezone/southamerica: Likewise.
3638         * timezone/yearistype: Likewise.
3639
3640 2000-08-10  Andreas Jaeger  <aj@suse.de>
3641
3642         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
3643         stat with current MIPS kernel.
3644
3645 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
3646
3647         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
3648         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
3649         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
3650         Remove the junk that's only relevant in the Linux kernel itself.
3651         Add a warning saying that this file is now obsolete, and include
3652         <sys/procfs.h>.
3653         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
3654         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
3655         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
3656         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
3657         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
3658         and add the notice that the file is primarily there for GDB.
3659         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
3660
3661 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3662
3663         * time/tzfile.c (__tzfile_compute): __tzstring zones
3664         from zone_names.
3665
3666 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3667
3668         * resolv/resolv.h (__res_state): Surround prototype with
3669         __BEGIN_DECLS/__END_DECLS.
3670         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3671
3672 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3673
3674         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3675         Make independant of asm/resource.h from the Linux kernel.
3676
3677 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3678
3679         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3680
3681 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3682
3683         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3684         * locale/Makefile (locale-CPPFLAGS): Likewise.
3685
3686 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3687
3688         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3689         for AMD processors.
3690
3691 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3692
3693         * misc/Versions (mincore): Export at GLIBC_2.2.
3694
3695 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3696
3697         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3698
3699 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3700
3701         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3702         socketpair.  Made socketpair a weak alias.
3703         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3704         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3705         conforming, but fall back on the old protocol if the socket server
3706         doesn't support it.
3707         * include/sys/socket.h: Add prototype for __socketpair.
3708
3709 2000-08-09  Andreas Schwab  <schwab@suse.de>
3710
3711         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3712         long long modifier is seen.
3713
3714         * elf/nodelete.c (do_test): Remove reference to undefined member
3715         sa_restorer.
3716         * rt/tst-aio4.c (do_test): Likewise.
3717
3718         * configure.in: Add `-lm' when checking for libgd.
3719         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3720         linking.
3721
3722 2000-08-09  Andreas Jaeger  <aj@suse.de>
3723
3724         * configure.in: Change required make versions.
3725
3726         * manual/install.texi (Tools for Compilation): Document required
3727         make version.
3728         (Supported Configurations): Update list of supported
3729         configurations.
3730
3731 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3732
3733         * locale/linereader.c (get_string): Don't print an error is a string
3734         contains an unknown character.
3735
3736 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3737
3738         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3739         (new_symbol): Take new parameters with name of the symbol.
3740         Adjust callers.
3741         (handle_ellipsis): Don't only allow character symbols.
3742         (collate_read): Allow string of collating elements contain invalid
3743         characters; ignore entry in this case.
3744         Handle ellipsis of collating symbols before first order_start.
3745         Allow ellipsis in state 0.
3746
3747 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3748
3749         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3750         error message.
3751         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3752
3753 2000-08-04  Greg McGary  <greg@mcgary.org>
3754
3755         * posix/regex.c (SET_HIGH_BOUND): New macro.
3756         (MOVE_BUFFER_POINTER): Use it.
3757         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3758         (EXTEND_BUFFER): Use it.
3759
3760 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3761
3762         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3763         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3764         _wide_data but from _IO_FILE directly.
3765         * libio/iofclose.c: Likewise.
3766         * libio/wfileops.c: Likewise.
3767
3768         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3769         * libio/libioP.h: Change prototypes.
3770
3771 2000-08-03  Greg McGary  <greg@mcgary.org>
3772
3773         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3774         frame pointer early so that we save caller's frame pointer.
3775         * sysdeps/i386/elf/setjmp.S: Likewise.
3776
3777         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3778         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3779
3780         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3781         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3782         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3783
3784 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3785
3786         * iconvdata/big5.c: Updated.
3787         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3788
3789 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3790
3791         * Makeconfig (all-subdirs): Add conform.
3792         * conform/Makefile: Include ../Rules.
3793
3794         * Makefile (README): Add rules to generate here as well.
3795
3796 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3797
3798         * version.h (VERSION): Bump to 2.1.92.
3799
3800         * sysdeps/ia64/Dist: Add _mcount.S.
3801
3802         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3803
3804         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3805
3806         * elf/Makefile (distribute): Add missing modules.
3807
3808         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3809
3810         * posix/regex.c (compile_range): Translate range start and end
3811         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3812
3813         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3814         asm/resource.h.
3815
3816         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3817
3818 2000-08-02  Andreas Jaeger  <aj@suse.de>
3819
3820         * elf/elf.h (EM_S390): Added.
3821         (R_390_*): New relocs for S390.
3822
3823         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3824         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3825         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3826         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3827         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3828         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3830         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3831         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3832         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3833         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3834         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3835         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3836         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3837         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3838         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3839         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3840         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3841         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3842         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3843         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3844         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3845         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3846         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3847         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3848         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3849         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3850         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3851         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3852         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3853         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3854         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3855         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3856         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3857         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3858         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3859         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3860         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3861         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3862         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3863         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3864         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3865         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3866         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3867         * sysdeps/s390/sysdep.h: New file.
3868         * sysdeps/s390/sys/ucontext.h: New file.
3869         * sysdeps/s390/sub_n.S: New file.
3870         * sysdeps/s390/strncpy.S: New file.
3871         * sysdeps/s390/strcpy.S: New file.
3872         * sysdeps/s390/stackinfo.h: New file.
3873         * sysdeps/s390/setjmp.S: New file.
3874         * sysdeps/s390/s390-mcount.S: New file.
3875         * sysdeps/s390/mul_1.S: New file.
3876         * sysdeps/s390/memusage.h: New file.
3877         * sysdeps/s390/memset.S: New file.
3878         * sysdeps/s390/memcpy.S: New file.
3879         * sysdeps/s390/memchr.S: New file.
3880         * sysdeps/s390/machine-gmon.h: New file.
3881         * sysdeps/s390/ldbl2mpn.c: New file.
3882         * sysdeps/s390/gmp-mparam.h: New file.
3883         * sysdeps/s390/fpu/fpu_control.h: New file.
3884         * sysdeps/s390/fpu/fesetround.c: New file.
3885         * sysdeps/s390/fpu/fegetround.c: New file.
3886         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3887         * sysdeps/s390/fpu/bits/fenv.h: New file.
3888         * sysdeps/s390/ffs.c: New file.
3889         * sysdeps/s390/elf/start.S: New file.
3890         * sysdeps/s390/elf/setjmp.S: New file.
3891         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3892         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3893         * sysdeps/s390/dl-machine.h: New file.
3894         * sysdeps/s390/bzero.S: New file.
3895         * sysdeps/s390/bsd-setjmp.S: New file.
3896         * sysdeps/s390/bsd-_setjmp.S: New file.
3897         * sysdeps/s390/bits/string.h: New file.
3898         * sysdeps/s390/bits/setjmp.h: New file.
3899         * sysdeps/s390/bits/huge_val.h: New file.
3900         * sysdeps/s390/bits/endian.h: New file.
3901         * sysdeps/s390/bits/byteswap.h: New file.
3902         * sysdeps/s390/bcopy.S: New file.
3903         * sysdeps/s390/backtrace.c: New file.
3904         * sysdeps/s390/atomicity.h: New file.
3905         * sysdeps/s390/asm-syntax.h: New file.
3906         * sysdeps/s390/addmul_1.S: New file.
3907         * sysdeps/s390/add_n.S: New file.
3908         * sysdeps/s390/abort-instr.h: New file.
3909         * sysdeps/s390/__longjmp.c: New file.
3910         * sysdeps/s390/Makefile: New file.
3911         * sysdeps/s390/Implies: New file.
3912         * sysdeps/s390/Dist: New file.
3913         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3914
3915 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3916
3917         Remove incompatible IPv6 extension of RPC.
3918         * sunrpc/Makefile: Undo changes.
3919         * sunrpc/rpc_main.c: Likewise.
3920         * sunrpc/rpc/clnt.h: Likewise.
3921         * sunrpc/rpc/svc.h: Likewise.
3922         * sunrpc/bindrsvprt6.c: Removed.
3923         * sunrpc/clnt_tcp6.c: Removed.
3924         * sunrpc/clnt_udp6.c: Removed.
3925         * sunrpc/svc_tcp6.c: Removed.
3926         * sunrpc/svc_udp6.c: Removed.
3927
3928         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3929         dgettext, and dcgettetxt.
3930
3931         * intl/locale.alias: Update japanese aliases.
3932
3933         * sysdeps/ia64/bits/byteswap.h: New file.
3934         Patch by Dan Pop <Dan.Pop@cern.ch>.
3935
3936         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3937         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3938
3939 2000-07-13  H.J. Lu  <hjl@gnu.org>
3940
3941         * posix/regex.c (re_max_failures): Set to 4000.
3942
3943 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3944
3945         * gnulib/Makefile (tests): Add tst-gcc.
3946         * gnulib/tst-gcc.c: New file.
3947
3948         * assert/Makefile (routines): Add __assert.
3949         * assert/Versions: Export __assert for glibc 2.2.
3950         * assert/__assert.c: New file.
3951         * assert/assert.h: Declare __assert.
3952
3953 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3954
3955         * locale/localeinfo.h (_ISCTYPE): New macro.
3956         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3957         LC_CTYPE locale format.
3958         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3959         (ctype_output): Output class_b[nr] right before class_3level[nr].
3960         (allocate_arrays): Fill class_b, similarly to class_3level.
3961
3962 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3963             Joseph S. Myers  <jsm28@cam.ac.uk>
3964
3965         * math/tgmath.h: Make standard compliant.  Don't ask how.
3966
3967 2000-07-04  H.J. Lu  <hjl@gnu.org>
3968
3969         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3970         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3971         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3972
3973 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3974
3975         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3976         (__USE_LARGEFILE): Add an explanation.
3977         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3978         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3979
3980 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3981
3982         * libio/Makefile: Enable exception handling for genops, wgenops,
3983         fileops, and wfileops.
3984
3985 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3986
3987         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3988         acount that elf/rtld's main program might remove some varibales
3989         from the environment if we're trying to be secure.  Move the Hurd
3990         startup data if necessary, or, if we there is no startup data,
3991         make sure the magical convention that ARGV[0] is stored just after
3992         the environment list.
3993
3994 2000-08-01  Philip Blundell  <philb@gnu.org>
3995
3996         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3997         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3998         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3999         oldsetrlimit for GLIBC_2.0.
4000
4001 2000-08-01  Andreas Jaeger  <aj@suse.de>
4002
4003         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
4004         (LINE_PARSER): Allow any number of spaces between ip address and
4005         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
4006
4007         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
4008
4009         * include/netdb.h: Remove getipnodebyaddr and friends, leave
4010         constants in.
4011
4012         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
4013         _nss_nisplus_getipnodebyname_r.
4014
4015         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
4016         now, getipnodebyname is deprecated.
4017         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
4018         Likewise.
4019
4020         * inet/Makefile (routines): Don't build getipnodebyaddr and
4021         friends.
4022
4023         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
4024
4025         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
4026
4027         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
4028
4029         * wctype/Makefile (distribute): Add wchar-lookup.h.
4030
4031         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
4032
4033         * iconvdata/Makefile (distribute): Add isiri-3342.h.
4034
4035 2000-08-01  Andreas Schwab  <schwab@suse.de>
4036
4037         * Make-dist (dist): Resolve `..' in file names.
4038
4039 2000-08-01  Andreas Jaeger  <aj@suse.de>
4040
4041         * stdio-common/Makefile (distribute): Remove removed files, add
4042         new files.
4043
4044         * Makefile (distribute): Remove include/db_185.h and db.h.
4045
4046         * include/db_185.h: Remove, it's not needed anymore.
4047         * include/db.h: Likewise.
4048
4049 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4050
4051         * inet/Makefile (tests): Remove tst-ipnode.
4052         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
4053         now.
4054
4055 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4056
4057         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
4058         endp statements have already been added.
4059
4060 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
4061
4062         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
4063         <sysdeps/ia64/sysdep.h>.
4064
4065         * sysdeps/ia64/_mcount.S: New file.
4066
4067         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
4068         __gmon_start__.  Fix up extraneous whitespace.
4069
4070 2000-01-12  H.J. Lu  <hjl@gnu.org>
4071
4072         * sysdeps/ia64/elf/initfini.c: New file.
4073
4074 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4075
4076         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
4077         dependency between branch and ar.pfs write.
4078
4079 2000-07-31  H.J. Lu  <hjl@gnu.org>
4080
4081         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
4082         handle the wchar_t array.
4083
4084 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4085
4086         * iconvdata/gb18030.c: Don't map to and from positions in ISO
4087         10646 which are not yet assigned.
4088         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
4089
4090 2000-07-31  Andreas Jaeger  <aj@suse.de>
4091
4092         * inet/Versions: Remove getipnodebyaddr and friends from
4093         GLIBC_2.2.
4094
4095         * resolv/netdb.h: Remove getipnodebyaddr and friends.
4096
4097 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4098
4099         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
4100         ch >= 0x81 && ch2 < 0x40 as invalid.
4101
4102 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4103
4104         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
4105         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
4106
4107 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4108
4109         * iconvdata/johab.c (BODY for TO_LOOP): After calling
4110         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
4111
4112 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4113
4114         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
4115         0xb8.
4116         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
4117
4118 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4119
4120         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
4121
4122 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4123
4124         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
4125         (from_ucs4): Change values of U+00A4 and U+00ED.
4126         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
4127
4128 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4129
4130         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
4131         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
4132
4133 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4134
4135         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
4136         * iconvdata/isiri-3342.h: New file.
4137         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
4138         treat 0x80 as a gap.
4139
4140 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4141
4142         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
4143         (utf8_encode): Use simple shifts instead.  Fix return value.
4144
4145 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4146
4147         * timezone/private.h: Update from tzcode2000e.
4148         * timezone/asia: Update from tzdata2000e.
4149         * timezone/australasia: Likewise.
4150         * timezone/europe: Likewise.
4151         * timezone/northamerica: Likewise.
4152         * timezone/zone-tab: Likewise.
4153
4154 2000-07-30  Ralf Baechle  <ralf@gnu.org>
4155
4156         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
4157         the order of struct sigaltstack members is different.
4158
4159 2000-07-26  Philip Blundell  <philb@gnu.org>
4160
4161         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
4162
4163 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
4164
4165         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
4166         * locale/programs/ld-ctype.c: Adjust for this.
4167
4168         * locale/programs/ld-collate.c: Add more alignment checks.
4169         * locale/string/strcoll.c: Likewise.
4170
4171 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
4172
4173         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
4174         outside USE_IN_LIBIO block.
4175
4176 2000-07-26  Philip Blundell  <philb@gnu.org>
4177
4178         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
4179         (elf_machine_rel): Use it for out-of-range PC24 relocs.
4180
4181 2000-07-28  Philip Blundell  <philb@gnu.org>
4182
4183         * math/test-fpucw.c: Ignore reserved bits in control word.
4184
4185 2000-07-28  Philip Blundell  <philb@gnu.org>
4186
4187         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
4188         (ret): Redefine to PSEUDO_RET.
4189         (PSEUDO): Remove jump to syscall_error.
4190
4191 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4192
4193         * resolv/README: Add some information about using the resolver in
4194         multi-threaded code and with C++.  Spelling fixes.
4195
4196 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4197
4198         * resolv/resolv.h (struct __sockaddr_in): Remove.
4199         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
4200
4201 2000-07-29  Greg McGary  <greg@mcgary.org>
4202
4203         * Rules (test-bp-inputs, make-test-out): New variables.
4204         ($(objpfx)%-bp.out): New rule.
4205         ($(objpfx)%.out): Rewrite in terms of new variables.
4206
4207         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
4208         internal function that uses vtable.
4209         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4210         * libio/vswprintf.c (_IO_vswprintf): Likewise.
4211
4212         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
4213         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
4214         (chunk_align): Likewise.
4215
4216         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
4217         in a way that conforms to decl, and avoids spurious bounds violation.
4218
4219         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
4220         * sysdeps/generic/frame.h: Likewise.
4221         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
4222         around return value.
4223         (__backtrace): Qualify frame-pointer chain and return address
4224         pointers as __unbounded.  Wrap bounds around variable `current'.
4225         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
4226         around return value.
4227         (catch_segfault): Qualify frame-pointer chain and return address
4228         pointers as __unbounded.  Wrap bounds around variable `current'.
4229         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
4230         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
4231         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
4232         __unbounded.
4233         (__backtrace): Qualify frame-pointer chain and return address
4234         pointers as __unbounded.  Wrap bounds around variable `current'.
4235
4236         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
4237         * sysdeps/i386/mul_1.S: Likewise.
4238         * sysdeps/i386/submul_1.S: Likewise.
4239         * sysdeps/i386/i586/addmul_1.S: Likewise.
4240         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
4241         * sysdeps/i386/i586/submul_1.S: Likewise.
4242
4243 2000-07-27  Andreas Jaeger  <aj@suse.de>
4244
4245         * libio/Depend: New file, libio needs localedata for tests.
4246         * posix/Depend: Likewise.
4247
4248 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
4249
4250         * stdio-common/_i18n_itoa.c: Removed.
4251         * stdio-common/_i18n_itoa.h: Removed.
4252         * stdio-common/_i18n_itowa.c: Removed.
4253         * stdio-common/_i18n_itowa.h: Removed.
4254         * stdio-common/_i18n_number.h: New file.
4255         * stdio-common/Depend: New file.
4256         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
4257         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
4258         printing.  Change printing of numbers with locale specific digits to
4259         use new code in _i18n_number.h.
4260         * stdio-common/Makefile (routines): Remove _i18n_itoa and
4261         _i18n_itowa.
4262
4263         * stdio-common/bug13.c: Improve messages.
4264
4265         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
4266         (set_class_defaults): Always search also for Uxxxx names.
4267         Detect insufficient number of outdigits.
4268
4269         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
4270
4271 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4272
4273         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
4274         _NL_CTYPE_MAP_NAMES.
4275         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
4276         * wctype/wcfuncs.c (towlower, towupper): Use them.
4277         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
4278         * wctype/wctrans.c (wctrans): Likewise.
4279         * wctype/wctrans_l.c (__wctrans_l): Likewise.
4280
4281 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4282
4283         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
4284         Use the optimized version of this function outside glibc as well.
4285
4286 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
4287
4288         * locale/indigits.h (indigit_value): Correct.
4289         * locale/indigitswc.h (indigitwc_value): Correct.
4290         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
4291         conversion, add GROUP checking for it, fix GROUP number
4292         conversion with strlen(thousands) > 1.
4293         Honour width correctly in the presence of floating
4294         decimal points and thousands separators.
4295         * stdio-common/tst-sscanf.c: New test.
4296         * stdio-common/Makefile: Add it to tests.
4297         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
4298         thousands separators and group argument is non-zero.
4299
4300 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4301
4302         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
4303         starts at GLIBC_2.2.
4304
4305 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4306
4307         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
4308         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
4309         _test_and_set.
4310         (headers): Add sys/tas.h.
4311         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
4312         GLIBC_2.2 from libc.
4313         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
4314         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
4315         _test_and_set.
4316
4317 2000-07-28  Andreas Jaeger  <aj@suse.de>
4318
4319         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
4320
4321         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
4322         ($(objpfx)tst-dladdr.out): new.
4323         (tests): Add tst-dladdr.
4324         ($(objpfx)glrefmain): Use libdl.
4325
4326         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
4327         <vs@caldera.de>.
4328
4329 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4330
4331         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
4332         ftruncate(64) calls.
4333
4334 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4335
4336         * intl/tst-translit.c: Include string.h to get prototype for
4337         strcmp().
4338
4339 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4340
4341         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
4342         name and add weak alias for __fork.
4343
4344         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
4345         & pwrite to use __libc_<name> as strong names instead of
4346         __syscall_<name>.
4347
4348         * include/sched.h: Add clone2 prototype.
4349
4350 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
4351
4352         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
4353         procedure name twice.
4354
4355 2000-07-27  Philip Blundell  <philb@gnu.org>
4356
4357         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
4358
4359 2000-07-27  Andreas Jaeger  <aj@suse.de>
4360
4361         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
4362         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
4363         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4364         Reported by Andi Kleen <ak@suse.de>.
4365
4366         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
4367         (do_wait): Test requests with aio_return64.
4368         (do_test): Change callers of do_wait.
4369
4370 2000-07-26  Andreas Jaeger  <aj@suse.de>
4371
4372         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
4373         (do_wait): Test requests with aio_return.
4374         (do_test): Change callers of do_wait.
4375
4376 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
4377
4378         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
4379         from request list.  Don't do the list handling here, call
4380         __aio_remove_request.
4381         * rt/aio_misc.h: Add prototype for __aio_remove_request.
4382         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
4383         request might already be processed.  Don't do the list handling
4384         here, call __aio_remove_request.
4385
4386         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
4387         LIO_DSYNC.
4388
4389         * rt/aio_misc.c: Add comment explaining why writer memory barriers
4390         are missing.
4391
4392 2000-07-27  Greg McGary  <greg@mcgary.org>
4393
4394         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
4395         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
4396         in union init.  Pass zero for ignored semnum arg to semctl.
4397         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
4398
4399 2000-07-26  Greg McGary  <greg@mcgary.org>
4400
4401         * sysdeps/gnu/bits/msq.h: Qualify kernel's
4402         data structure pointers as __unbounded.
4403         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
4404         * sysdeps/generic/bp-semctl.h: New file.
4405         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
4406         pointers as __unbounded.  Check bounds of syscall args.
4407         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4408         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4409         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4410         * sysdeps/unix/sysv/linux/semop.c: Likewise.
4411         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
4412         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4413         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
4414         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4415         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4416         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4417         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
4418         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
4419         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
4420         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
4421         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
4422         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
4423
4424 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4425
4426         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
4427         by default.
4428         * locale/C-ctype.c: Likewise.
4429         * wcsmbs/wcsmbsload.c: Likewise.
4430
4431 2000-07-26  Greg McGary  <greg@mcgary.org>
4432
4433         * Makeconfig (+link-bounded, link-libc-bounded,
4434         link-extra-libs-bounded): New variables.
4435         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
4436         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
4437         * Rules (tests-bp.out): New variable.
4438         (tests): Conditionally add BP tests.
4439         (binaries-bounded): Add variable and associated rule.
4440         * csu/Makefile [build-bounded] (extra-objs, install-lib):
4441         Move conditional stuff after place where condition is defined.
4442
4443         * malloc/malloc.c (bp-checks.h): Add #include.
4444         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
4445         (_bin_at): Add unbounded version of bin_at.
4446         (IAV, chunk_alloc): Use unbounded _bin_at.
4447         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
4448         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
4449         Wrap BOUNDED_N around return value.
4450         (chunk_realloc): Adjust oldsize once.
4451
4452         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
4453         (__ubp_memchr): Add correct decl.
4454         (_CHECK_STRING): Use __ubp_memchr.
4455         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4456         New alias for unbounded-pointer __memchr.
4457         * sysdeps/i386/memchr.S: Likewise.
4458         * sysdeps/ia64/memchr.S: Likewise.
4459         * sysdeps/m68k/memchr.S: Likewise.
4460         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4461         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4462         * sysdeps/vax/memchr.s: Likewise.
4463
4464         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
4465         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
4466         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
4467         * sysdeps/i386/i686/strtok.S: Likewise.
4468         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
4469         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
4470
4471         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
4472         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
4473
4474         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
4475         bounds of copy_result to mount_proc.
4476
4477 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4478
4479         * wctype/wctype.h (__wctrans_l): New declaration.
4480         * wctype/wctrans_l.c: New file.
4481         * wctype/Makefile (routines): Add wctrans_l.
4482
4483 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4484
4485         * posix/fnmatch_loop.c: Fixes for use outside glibc.
4486         Patch by MacGyver <macgyver@tos.net>.
4487
4488 2000-07-26  Andreas Jaeger  <aj@suse.de>
4489
4490         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
4491         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
4492         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
4493
4494         * rt/tst-aio.c (test_file): Fix typo.
4495         * rt/tst-aio64.c (test_file): Likewise.
4496
4497         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
4498         * rt/Makefile: Add rules to build and run tst-aio3.
4499
4500         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
4501         it's not needed and confuses only.
4502
4503 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4504
4505         * resolv/res_init.c: Add support for nameserver communication with
4506         IPv6.
4507         * resolv/res_send.c: Likewise.
4508         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
4509         in nsaddrs field.
4510         Patch by <venaas@nvg.ntnu.no>.
4511
4512 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4513
4514         * locale/programs/ld-ctype.c (wctype_table_get): New function.
4515         (wcwidth_table_get): New function.
4516         (wcwidth_table_add): Call it.
4517         (wctrans_table_get): New function.
4518         (wctrans_table_add): Call it.
4519
4520 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4521
4522         * rt/lio_listio.c (lio_listio): Always disable individual
4523         notification.
4524         * rt/Makefile: Add rules to build and run tst-aio2.
4525         * rt/tst-aio2.c: New file.
4526
4527         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
4528         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
4529
4530 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4531
4532         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
4533         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
4534         leading and trailing spaces from host, user and domain name.
4535
4536 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
4537
4538         * csu/defs.awk: Add support for need_endp.
4539
4540 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4541
4542         * resolv/resolv.h: Remove __P from res_send_qhook and
4543         res_send_rhook typedefs.
4544
4545 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4546
4547         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
4548
4549 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4550
4551         * iconv/gconv_builtin.h: Add WCHAR_T alias.
4552
4553 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4554
4555         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
4556         calling thread, set the cancellation flag and return success
4557         instead of EINTR.
4558
4559 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4560
4561         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
4562         * libio/tst-widetext.c: New file.
4563         * libio/tst-widetext.input: New file.
4564
4565         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
4566
4567         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
4568         empty external buffer correctly.
4569
4570 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4571
4572         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
4573         __STRING(entry) and not #entry.
4574         (_RTLD_EPILOGUE): Likewise.
4575         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4576
4577 2000-07-25  Andreas Jaeger  <aj@suse.de>
4578
4579         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
4580         according to changes in test program, run also with static only
4581         builds.
4582         ($(objpfx)tst-printf.out): Likewise.
4583
4584         * stdio-common/tst-unbputc.sh: Likewise.
4585         * stdio-common/tst-printf.sh: Likewise.
4586
4587 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4588
4589         * libio/wfileops.c (_IO_wdo_write): Correct return value.
4590
4591         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
4592         loop.
4593
4594         * libio/fileops.c: Pretty print.
4595
4596 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
4597
4598         * wctype/wchar-lookup.h: New file.
4599         * wctype/iswctype.c: Include "wchar-lookup.h".
4600         (__iswctype): Support alternate locale format with 3-level tables.
4601         * wctype/iswctype_l.c (__iswctype_l): Likewise.
4602         * wctype/towctrans.c (__towctrans): Likewise.
4603         * wctype/towctrans_l.c (__towctrans_l): Likewise.
4604         * wctype/wcfuncs.c: Include "wchar-lookup.h".
4605         (__ctype32_wctype, __ctype32_wctrans): Declare external.
4606         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
4607         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
4608         __iswxdigit, towlower, towupper): Support alternate locale format
4609         with 3-level tables.
4610         * wctype/wcextra.c (iswblank): Likewise.
4611         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
4612         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4613         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4614         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
4615         format with 3-level tables.
4616         * wctype/wcextra_l.c (__iswblank_l): Likewise.
4617         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
4618         format, return a 3-level table pointer.
4619         * wctype/wctype_l.c (__wctype_l): Likewise.
4620         * wctype/wctrans.c (wctrans): Likewise.
4621         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
4622         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
4623         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
4624         (iswctype): Remove macro definition.
4625         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
4626         (internal_wcwidth): Support alternate locale format with 3-level
4627         tables.
4628         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4629         New nl_items.
4630         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4631         Define them as being type "word".
4632         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
4633         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
4634         __ctype32_width): New exported variables.
4635         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
4636         alternate locale format. Don't initialize __ctype_names and
4637         __ctype_width in the alternate locale format.
4638         * locale/programs/localedef.h (oldstyle_tables): New declaration.
4639         * locale/programs/localedef.c (oldstyle_tables): New variable.
4640         (OPT_OLDSTYLE): New macro.
4641         (options): Add --old-style option.
4642         (parse_opt): Handle --old-style option.
4643         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
4644         map_offset, class_3level, map_3level, width_3level members.
4645         (ctype_output): Support for alternate locale format: Computation of
4646         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
4647         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
4648         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
4649         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
4650         now contain both class and map tables.
4651         (struct wctype_table): New type.
4652         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
4653         functions.
4654         (struct wcwidth_table): New type.
4655         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
4656         functions.
4657         (struct wctrans_table): New type.
4658         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
4659         functions.
4660         (allocate_arrays): Support for alternate locale format: Set
4661         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
4662         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4663         to the first 256 characters. Compute ctype->map_3level. Set
4664         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4665         instead of ctype->width.
4666
4667 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4668
4669         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4670         string functions.
4671
4672 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4673
4674         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4675         in wide characters, not bytes.
4676         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4677         into file.
4678
4679 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4680
4681         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4682         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4683         LC_MEASUREMENT, LC_IDENTIFICATION.
4684
4685         * locale/xlocale.h (struct __locale_struct): Increase size of
4686         __locales array.
4687         * locale/duplocale.c (__duplocale): Copy newly added categories as
4688         well.
4689         * locale/freelocale.c (__freelocale): Free newly added categories.
4690         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4691         If a base is given, use it, don't simply return it.
4692
4693 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4694
4695         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4696         variables, copied_key and copied_salt, instead of boolean variables.
4697
4698 2000-07-24  Andreas Jaeger  <aj@suse.de>
4699
4700         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4701         check for offset.
4702
4703         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4704         initgroups_function, adopted prototype for change from 2000-07-23.
4705         (initgroups): Follow type change.
4706
4707         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4708         & PAGE_MASK case, reformat.
4709
4710         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4711         from stdin and setup environment.
4712
4713 2000-07-24  Andreas Schwab  <schwab@suse.de>
4714
4715         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4716
4717 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4718
4719         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4720         more.  Patch by scarlet@mit.edu [PR libc/1799].
4721
4722         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4723         [PR libc/1792].
4724
4725         * argp/argp-parse.c (parser_finalize): Reverse order in which
4726         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4727
4728         * grp/initgroups.c (initgroups): Don't limit the possible number
4729         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4730         the setgroups call while the call fails and descrease the number
4731         of groups each round.
4732         The name of the initgroups function in the NSS modules changed.
4733         (compat_call): Adapt for dynamic resizing.
4734         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4735         Implement dynamic resizing.
4736         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4737         Likewise.
4738         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4739         * hesiod/Versions: Change exported interface name.
4740         * nis/Versions: Change exported interface name.
4741
4742 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4743
4744         * locale/iso-639.def: Some errors corrected.
4745         Patch by Keld Simonsen.
4746
4747         * include/limits.h: Update non-gcc portion.
4748         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4749
4750 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4751
4752         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4753         program's data space, reallocate only the space that was just
4754         deallocated to release its backing space.
4755
4756 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4757
4758         * stdio-common/vfprintf.c (process_string_arg): For wide character
4759         version, handle precision also correctly.
4760
4761         * nss/nss_files/files-hosts.c: Correct problem with three or more
4762         entries with the same name.
4763
4764         * nss/nss_files/files-hosts.c: Implement multi handling.
4765         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4766
4767 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4768
4769         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4770         strcasecmp.
4771
4772         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4773         * malloc/Makefile: Likewise.
4774         * malloc/tst-mtrace.sh: Likewise.
4775         * posix/Makefile: Likewise.
4776         * posix/globtest.sh: Likewise.
4777         * posix/wordexp-tst.sh: Likewise.
4778         * string/Makefile: Likewise.
4779
4780 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4781
4782         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4783         size instead of LC_ALL to take into account the new locale
4784         categories.
4785
4786 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4787
4788         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4789         remainders of hash table.
4790         * locale/categories.def: Remove remainders of transliteration
4791         hash table.
4792         * locale/langinfo.h: Likewise.
4793         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4794         transliteration tables.
4795
4796         * locale/gen-translit.pl: New file.
4797         * locale/C-translit.h.in: New file.
4798         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4799         data pointers with data from this file.
4800         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4801         and gen-translit.pl.
4802         Add rule to generate C-translit.h.
4803         * intl/tst-translit.c (main): Update for now performed
4804         transliteration.
4805
4806         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4807         (it's no input error).
4808         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4809         * stdio-common/scanf12.c: Correct expected result for first scanf.
4810
4811         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4812         of multibyte character strings in %s format with precision.
4813
4814 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4815
4816         * locale/programs/ld-collate.c (collate_read): Allow collating
4817         symbols and elements be named in reorder-after instructions.
4818         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4819
4820         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4821         duplication with generated name, not the name of the first
4822         character.
4823         Patch by Yong Li <yong.li@asu.edu>.
4824
4825         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4826         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4827
4828 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4829
4830         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4831         allocations only if a non-main arena cannot be extended.
4832
4833 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4834
4835         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4836         in DF_1_NODEFLIB handling.
4837
4838 2000-07-21  Andreas Jaeger  <aj@suse.de>
4839
4840         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4841         own rule.
4842
4843         * libio/fwide.c: Include <wchar.h> for prototype.
4844
4845 2000-07-21  Greg McGary  <greg@mcgary.org>
4846
4847         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4848         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4849         Define in terms of chunk_at_offset.
4850         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4851         (next_bin, prev_bin): offset by size of real array elements.
4852         (chunk_align): Make `m' a scalar, since that's how it's used.
4853
4854 2000-07-21  Greg McGary  <greg@mcgary.org>
4855
4856         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4857         UNCHECK_BOUNDS.
4858         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4859         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4860         Wrap bounds around argv & envp and each of their string members.
4861         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4862         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4863         symbol in BP_SYM ().  Discard bounds of address arg.
4864         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4865         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4866         Discard bounds on address arg, add bounds to return value.
4867
4868 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4869
4870         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4871         * elf/filter.c: New file.
4872         * elf/filtmod1.c: New file.
4873         * elf/filtmod2.c: New file.
4874
4875         * elf/rtld.c: Define _dl_bind_not variable.
4876         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4877         * elf/dl-support.c: Likewise.
4878         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4879         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4880         _dl_bind_not.
4881         (profile_fixup): Likewise.
4882
4883         * libio/Makefile (routines): Add fwide.
4884         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4885         fwide now.  Internal calls to _IO_fwide must do locking themselves
4886         or don't need locking.
4887         * libio/fwide.c: New file.
4888
4889         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4890
4891         * elf/Makefile: Add no modules for nodelete test.
4892         * elf/nodelmod3.c: New file.
4893         * elf/nodelmod4.c: New file.
4894         * elf/nodelete.c: Also test case where dependency of dlopen() object
4895         is marked nodelete.
4896
4897         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4898         * elf/nodlopen.c: New file.
4899         * elf/nodlopenmod.c: New file.
4900         * include/dlfcn.h: Define __RTLD_DLOPEN.
4901         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4902         and this is a dlopen() call, do not load the binary.
4903         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4904         * dlfcn/dlopenold.c: Likewise.
4905         * configure.in: Add test for -z nodelete option.
4906         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4907
4908 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4909
4910         Make Hesiod NSS module thread-safe.
4911
4912         * hesiod/README.hesiod: Update.
4913
4914         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4915         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4916         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4917         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4918         hesiod-proto.
4919         * hesiod/nss_hesiod/hesiod-init.c: New file.
4920         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4921         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4922         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4923         * hesiod/nss_hesiod/hesiod-service.c
4924         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4925         looking up services by port number.
4926         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4927
4928         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4929         * hesiod/hesiod.h: Likewise.
4930         * hesiod/hesiod_p.h: Likewise.
4931
4932 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4933
4934         Fix problems with `struct __res_state' getting too big.
4935         * resolv/resolv.h (struct __sockaddr_in): New definition.
4936         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4937         the private parts of the structure to save some space.
4938         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4939         (struct sockaddr_in *) in call to sock_eq.
4940         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4941
4942 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4943
4944         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4945         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4946         with nodelete.
4947         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4948         to _dl_map_object.  Return immediately if no object loaded.
4949         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4950         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4951         if it exists into l_flags_1 word.
4952         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4953         it to determine whether loading is wanted or not.
4954         (_dl_map_object): Likewise.
4955         Call _dl_map_object_from_fd with new parameter.
4956         * sysdeps/generic/ldsodefs.h: Update prototype.
4957         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4958         * elf/rtld.c: Likewise.
4959         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4960         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4961         * elf/noload.c: New file.
4962         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4963         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4964         * sysdeps/mips/bits/dlfcn.h: Likewise.
4965         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4966         (tests-nodelete-yes): Define.
4967         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4968         Add rules to build nodelete and modules.
4969         * elf/nodelete.c: New file.
4970         * elf/nodelmod1.c: New file.
4971         * elf/nodelmod2.c: New file.
4972         * configure.in: Add test for -z nodelete option.
4973         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4974
4975         * libio/Makefile (tests): Add tst_wprintf2.
4976         (tst_wprintf2-ARGS): Define.
4977         * libio/tst_wprintf2.c: New file.
4978         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4979
4980         * libio/wfiledoalloc.c: Only allocate external buffer if this
4981         hasn't happened yet.
4982
4983         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4984         something in the buffer.  gconv call can write up to end of the
4985         buffer, not only _IO_write_end.
4986         (_IO_wfile_overflow): Allocate also external buffer.
4987
4988 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4989
4990         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4991         strings with precision in vfwprintf correctly.
4992         * stdio-common/vfprintf.c: Fix completely broken handling of
4993         unbuffered wide character streams.
4994         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4995
4996         * resolv/Makefile (distribute): Add README.
4997
4998         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4999
5000 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
5001
5002         Update resolver code to BIND 8.2.3-T5B.
5003
5004         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
5005         __res_nclose.
5006         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
5007         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
5008         __res_search.
5009         * resolv/Banner: BIND-8.2.3-T5B.
5010
5011         * resolv/base64.c: Update from BIND 8.2.3-T5B.
5012         * resolv/herror.c: Likewise.
5013         * resolv/inet_addr.c: Likewise.
5014         * resolv/inet_net_ntop.c: Likewise.
5015         * resolv/inet_net_pton.c: Likewise.
5016         * resolv/inet_neta.c: Likewise.
5017         * resolv/inet_ntop.c: Likewise.
5018         * resolv/nsap_addr.c: Likewise.
5019         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
5020         IPv6 addresses (ISC bug #520).
5021
5022         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
5023         * resolv/ns_parse.c: Likewise.
5024         * resolv/ns_netint.c: Likewise.
5025         * resolv/ns_samedomain.c: Likewise.
5026         * resolv/ns_ttl.c: Likewise.
5027         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
5028         RCS ID in object file.
5029
5030         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
5031         * resolv/res_mkquery.c: Likewise.
5032         * resolv/res_query.c: Likewise.
5033         * resolv/res_init.c: Likewise.
5034         (res_setoptions): Mark internal.
5035         * resolv/res_send.c: Likewise.
5036         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
5037         by using poll instead.
5038         * resolv/res_comp.c: Likewise.
5039         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
5040         weak alias for __dn_expand.
5041         * resolv/res_data.c: Likewise.
5042         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
5043         in _res.options.  Avoids a potential security risk by avoiding a
5044         close (0).
5045         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
5046         res_mkquery, res_query, res_querydomain adn res_search weak
5047         aliases for __res_mkquery, __res_query, __res_querydomain and
5048         __res_search.
5049         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
5050         instead to avoid close(0).
5051         (res_init): Always use the static resolver context.
5052         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
5053         alias for __res_init.
5054
5055         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
5056         RES_SET_H_ERRNO and accompanying comment to...
5057         * include/resolv.h: ... here.
5058
5059         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
5060         * resolv/arpa/nameser_compat.h: Likewise.
5061
5062 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5063
5064         * nss/makedb.c (main): Compare result of load_db with
5065         NSS_STATUS_SUCCESS and not 0.
5066         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
5067
5068         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
5069
5070 2000-07-18  Greg McGary  <greg@mcgary.org>
5071
5072         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
5073         (EXTEND_BUFFER): Use it.
5074
5075 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5076
5077         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
5078         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
5079         __builtin_return_address.
5080         * dlfcn/dlopenold.c: Likewise.
5081         * dlfcn/dlsym.c: Likewise.
5082         * dlfcn/dlvsym.c: Likewise.
5083         * elf/dl-profstub.c: Likewise.
5084         * malloc/malloc.c: Likewise.
5085         * sysdeps/generic/machine-gmon.h: Likewise.
5086         Based on a patch by schwidefsky@de.ibm.com.
5087
5088 2000-07-18  Andreas Jaeger  <aj@suse.de>
5089
5090         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
5091         NULL to elf_machine_fixup_plt t argument to silence GCC.
5092
5093         * include/string.h: Add prototype for __memchr.
5094
5095         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
5096
5097         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
5098         instead of memrchr.
5099
5100 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5101
5102         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
5103
5104         * locale/C-ctype.c: Add initializers for gap elements.
5105         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
5106         for gap elements.
5107
5108 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5109
5110         * nscd/nscd.c (print_version): Update copyright year.
5111
5112 2000-07-17  Greg McGary  <greg@mcgary.org>
5113
5114         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5115         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
5116         signature argnames with angle-brackets for use as word delimiters,
5117         and to induce syntax errors for any args not handled.  Split
5118         multi-echo echoes and comment each stage.
5119         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
5120         * sysdeps/unix/inet/syscalls.list: Likewise.
5121         * sysdeps/unix/mman/syscalls.list: Likewise.
5122         * sysdeps/unix/syscalls.list: Likewise.
5123         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5124         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5125         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5126         * sysdeps/unix/sysv/syscalls.list: Likewise.
5127         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
5128
5129         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
5130         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
5131         qualifiers.  Don't check NULL-terminator of argv & envp.
5132         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
5133         unbounded pointer type in word-size assertion.
5134         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
5135         cases to stifle warnings.
5136
5137         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
5138         _IO_file_attach.
5139         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5140
5141         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
5142         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
5143         ptr as __unbouned.
5144
5145         * Makerules (o-objects): Supplement with $(o-objects$o).
5146         * string/Makefile (o-objects.ob): Add variable to pull
5147         unbounded versions of memcpy, memset and memchr into libc_b.
5148
5149         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
5150         rather than non-existent __ubp_memchr.
5151         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
5152         (_CHECK_STRING, _CHECK_N): New macros.
5153         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
5154         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
5155         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
5156         Add weak alias "memchr".
5157         * sysdeps/generic/memchr.c: Likewise.
5158         * sysdeps/i386/memchr.S: Likewise.
5159         * sysdeps/ia64/memchr.S: Likewise.
5160         * sysdeps/m68k/memchr.S: Likewise.
5161         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5162         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5163         * sysdeps/vax/memchr.s: Likewise.
5164
5165         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
5166
5167         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
5168         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
5169         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
5170         __BOUNDED_POINTERS__.
5171         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
5172         for __BOUNDED_POINTERS__.
5173
5174 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
5175
5176         * iconv/gconv_open.c (__gconv_open): Initialize the __data
5177         field of struct __gconv_trans_data differently.  Don't pass NULL to
5178         trans_init_fct.  Simplify list append operation.
5179
5180 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
5181
5182         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
5183         not only those having tsearch.
5184
5185 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
5186
5187         * locale/langinfo.h: Add placeholder values in enum for removed
5188         LC_CTYPE entries.
5189
5190 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
5191
5192         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
5193         chain if the PHDR check fails.
5194
5195 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
5196
5197         * nss/getent.c (print_hosts): Make sure we always print a space
5198         between numeric addresses and hostnames.
5199
5200 2000-07-17  Wolfram Gloger  <wg@malloc.de>
5201
5202         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
5203         i.e. if n_mmaps_max>0.
5204
5205 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
5206
5207         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
5208         values to remove possible clash with other AI_* constants.
5209         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
5210         hexadecimal constants to stress the fact they're in fact
5211         bit flags.
5212
5213 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
5214
5215         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
5216         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
5217         instead of res_init.
5218
5219 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5220
5221         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
5222         parameters of memset calls to avoid warnings.
5223
5224 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5225
5226         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
5227         necessary.
5228
5229         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
5230         Patch by Greg McGary <greg@mcgary.org>.
5231
5232         * io/Makefile (tests): Add tst-getcwd.
5233         * io/tst-getcwd.c: New file.
5234
5235         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
5236
5237 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
5238
5239         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
5240         structure.
5241
5242 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
5243
5244         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
5245         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
5246
5247 2000-07-12  H.J. Lu  <hjl@gnu.org>
5248
5249         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
5250         GLIBC_2.2.
5251         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
5252         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
5253         (sysdep-routines): Add clone2.
5254         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
5255
5256 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
5257
5258         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
5259         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
5260
5261 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
5262
5263         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
5264         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
5265         Change type of si_band from "int" to "long".
5266         (si_imm) [USE_GNU]: Define
5267         (si_isr) [USE_GNU]: Likewise.
5268         (ILL_BREAK) [USE_GNU]: Likewise.
5269         (FPE_DECOVF) [USE_GNU]: Likewise.
5270         (FPE_DECDIV) [USE_GNU]: Likewise.
5271         (FPE_DECERR) [USE_GNU]: Likewise.
5272         (FPE_INVASC) [USE_GNU]: Likewise.
5273         (FPE_INVDEC) [USE_GNU]: Likewise.
5274         (TRAP_BRANCH) [USE_GNU]: Likewise.
5275         (TRAP_HWBKPT) [USE_GNU]: Likewise.
5276
5277 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
5278
5279         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5280         bits/sigcontext as struct mcontext does not depend on it.
5281
5282         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
5283
5284 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
5285
5286         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
5287
5288 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
5289
5290         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
5291
5292 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5293
5294         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
5295
5296 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5297
5298         * intl/Makefile (test-srcs): Add tst-translit.
5299         (tests): Likewise.
5300         Add rules to build and run tst-translit.
5301         * intl/tst-translit.c: New file.
5302         * intl/tst-translit.sh: New file.
5303         * intl/translit.po: New file.
5304
5305 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5306
5307         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
5308         transliteration function did its job, continue, don't stop.
5309
5310         * iconvdata/iso646.c: Little optimizations in body for conversion
5311         from UCS4.
5312
5313 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5314
5315         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
5316
5317 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5318
5319         * configure.in: Check for pwd binary.
5320         * config.make.in: Add PWD_P to be subsituted.
5321         * Makerules: Use $(PWD_P) instead of /bin/pwd.
5322
5323 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5324
5325         * iconvdata/Makefile (modules): Add GB18030.
5326         (distribute): Add gb18030.c.
5327         * iconvdata/gconv-modules: Add entries for GB18030 module.
5328         * iconvdata/gb18030.c: New file.
5329         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
5330         and Wu Jian.
5331
5332 2000-07-13  Andreas Jaeger  <aj@suse.de>
5333
5334         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
5335         patch.
5336
5337         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
5338         * inet/getnetgrent.c (free_mem): Likewise.
5339         * misc/mntent.c (free_mem): Likewise.
5340         * nss/getXXbyYY.c (free_mem): Likewise.
5341         * nss/getXXent.c (free_mem): Likewise.
5342         * pwd/fgetpwent.c (free_mem): Likewise.
5343         * shadow/fgetspent.c (free_mem): Likewise.
5344
5345 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5346
5347         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
5348         64-bit architecture correctly [PR libc/1794].
5349
5350 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
5351
5352         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
5353         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
5354         report that we are out of memory.
5355         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5356         * elf/dl-libc.c (dlerror_run): Likewise.
5357         * elf/dl-open.c (_dl_open): Likewise.
5358         * elf/rtld.c (dl_main): Likewise.
5359         * elf/dl-error.c: Define _dl_out_of_memory.
5360         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
5361         the error string.
5362         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
5363         [PR libc/1813].
5364
5365         * dlfcn/dlerror.c (free_key_mem): Also free error string.
5366
5367         * iconv/loop.c: Fix comment.
5368
5369         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
5370
5371 2000-07-13  Andreas Jaeger  <aj@suse.de>
5372
5373         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
5374         getcwd (NULL, size) with size > 0.
5375         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
5376
5377 2000-07-13  Andreas Jaeger  <aj@suse.de>
5378
5379         * posix/Makefile: Remove build rules for libposix.
5380
5381 2000-07-13  Andreas Schwab  <schwab@suse.de>
5382
5383         * sysdeps/generic/glob.c (glob): Fix memory leak.
5384         [SHELL]: Remove reference to undefined variable `files'.
5385         Fixes PR libc/1782.
5386
5387 2000-07-13  Andreas Jaeger  <aj@suse.de>
5388
5389         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
5390         functions.
5391
5392         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
5393         memory if it was allocated.
5394
5395 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5396
5397         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
5398         step.
5399
5400         * iconv/gconv_open.c (__gconv_open): Reapply
5401         2000-07-12 Bruno Haible <haible@clisp.cons.org>
5402
5403                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5404
5405         * iconv/gconv_open.c: Undo last two changes for now.  They break
5406         everything.
5407
5408 2000-07-12  Andreas Jaeger  <aj@suse.de>
5409
5410         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
5411         compiler.
5412         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
5413         (CFLAGS-dl-cache.c): Likewise.
5414         (CFLAGS-ldconfig.c): Added, passes directory locations.
5415
5416         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
5417         locate cache.
5418         * elf/ldconfig.c (LD_SO_CONF): Likewise.
5419         (main): Use configured LIBDIR and SLIBDIR.
5420
5421 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
5422
5423         * math/bits/cmathcalls.h (cimag): Add __THROW.
5424         (creal, conj): Likewise.
5425         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
5426         by negative value.
5427
5428 2000-07-12  H.J. Lu  <hjl@gnu.org>
5429
5430         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
5431         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
5432
5433 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5434
5435         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
5436         it is wrong.
5437
5438 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5439
5440         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5441
5442 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5443
5444         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
5445         __modname.
5446
5447 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5448
5449         * iconv/gconv_open.c (__gconv_open): Initialize
5450         result->__steps[cnt].__data.
5451
5452 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
5453
5454         * nss/getent.c (services_keys): Pass port number in network byte
5455         order in call to getservbyport.
5456
5457 2000-07-11  Andreas Jaeger  <aj@suse.de>
5458
5459         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
5460         source dir.
5461         * intl/Makefile (do-gettext-test): Likewise.
5462         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
5463
5464 2000-07-11  Andreas Schwab  <schwab@suse.de>
5465
5466         * Makeconfig (run-program-prefix): New rule.
5467         (built-program-cmd): Use run-program-prefix.
5468
5469 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5470
5471         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
5472         and NOEXPR unconditionally available.
5473
5474 2000-07-12  Greg McGary  <greg@mcgary.org>
5475
5476         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
5477         * sysdeps/posix/open64.c: Likewise.
5478         * sysdeps/generic/fegetenv.c: Likewise.
5479         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
5480         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
5481         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5482         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
5483         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
5484         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
5485
5486 2000-07-11  Greg McGary  <greg@mcgary.org>
5487
5488         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
5489         Add extra level of macro expansion.
5490         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
5491         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
5492         is available at the time `select' prototype is declared.
5493         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
5494         Collect non-versioned weak aliases.  Consider only non-versioned
5495         aliases for the user-visible systemcall name.  Do checks inline with
5496         call to primitive system call.
5497         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
5498         stand-alone bounds checks to suppress unused value warnings.
5499         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
5500
5501 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
5502
5503         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
5504         file descriptor checking in SUID programs for the Hurd.
5505
5506         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
5507         res_hostalias instead of __hostalias for thread-safety.
5508
5509 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
5510
5511         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
5512         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
5513
5514 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
5515
5516         * include/features.h: Include ISO C99 features if the compiler used
5517         is an ISO C99 compiler.
5518         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
5519
5520 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5521
5522         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
5523
5524 2000-07-10  Andreas Jaeger  <aj@suse.de>
5525
5526         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
5527         it's overridden by libpthreads.
5528         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5529         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5530         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5531         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5532         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5533
5534         * malloc/Makefile: Run tst-mtrace only with shared libs.
5535
5536         * stdio-common/Makefile: Run unbputc and tst-printf tests only
5537         with shared libs.
5538
5539 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5540
5541         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
5542         that gpreg really points to the GOT section of the calling object.
5543         Scan all PT_LOAD segments of objects for stub_pc, instead of only
5544         checking a start address of first one.
5545         Fix typos.
5546         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
5547         Likewise.
5548
5549         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
5550
5551 2000-07-10  Andreas Jaeger  <aj@suse.de>
5552
5553         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
5554         (string_alias->strong_alias).
5555
5556 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5557
5558         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
5559
5560 2000-07-07  Greg McGary  <greg@mcgary.org>
5561
5562         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
5563         have no names without leading underscores.
5564
5565 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5566
5567         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
5568         U007E.
5569
5570         * stdio-common/Makefile (tests): Remove tst-printf here...
5571         (tests-srcs): ...and add it here.
5572         (distribute): Add tst-unbputc.sh and tst-printf.sh.
5573         Add rules to run tst-printf.sh.
5574         * stdio-common/tst-printf.c: Move code around so that there is really
5575         no further output where it's stated.
5576         * stdio-common/tst-printf.sh: New file.
5577
5578 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
5579
5580         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
5581         (do_write): Renamed from pwrite.
5582         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
5583         `struct _IO_cookie_file'.
5584
5585 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5586
5587         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
5588         detected.
5589         * malloc/tst-mtrace.sh: Run mtrace script.
5590
5591 2000-07-07  Greg McGary  <greg@mcgary.org>
5592
5593         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
5594         Move all three components of a bounded pointer.
5595
5596 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5597
5598         * locale/programs/locale.c (write_locales): Don't simply add all
5599         directories found in the subdir, test whether at least the
5600         LC_CTYPE file is in there.
5601
5602 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
5603
5604         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
5605         * iconvdata/euc-kr.c: Likewise.
5606
5607         * stdio-common/vfprintf.c (process_string_arg): Check result of
5608         wcrtomb call and bail out if it failed.
5609
5610         * malloc/Makefile (test-srcs): Add tst-mtrace.
5611         (distribute): Add tst-mtrace.sh.
5612         Add rule to run tst-mtrace.sh.
5613         * malloc/tst-mtrace.c: New file.
5614         * malloc/tst-mtrace.sh: New file.
5615
5616         * include/signal.h: Declare __libc_sigaction.
5617         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
5618         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
5619         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5620         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5621         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5622         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5623         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5624
5625         * configure.in: Fix CFLAGS-memprofstat.c definition after
5626         2000-06-19 change.
5627         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
5628
5629 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
5630
5631         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
5632         instead of NULL to elf_machine_fixup_plt t argument.
5633         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5634         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
5635         cast.
5636
5637 2000-07-06  Andreas Jaeger  <aj@suse.de>
5638
5639         * crypt/Makefile (LDLIBS-cert): Removed.
5640         (LDLIBS-md5c-test): Removed.
5641         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
5642         ($(objpfx)md5c-test): Likewise for md5c-test.out.
5643
5644 2000-07-06  Andreas Jaeger  <aj@suse.de>
5645
5646         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
5647         of the proc system is "proc".
5648
5649         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
5650         thread library for static programs.
5651
5652 2000-07-06  Greg McGary  <greg@mcgary.org>
5653
5654         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
5655         New macros.
5656         * sysdeps/generic/strcpy.c: Add bounds checks.
5657         * sysdeps/unix/fxstat.c: Likewise.
5658         * sysdeps/unix/xstat.c: Likewise.
5659         * sysdeps/unix/common/lxstat.c: Likewise.
5660         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5661         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5662         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5663         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5664         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5665         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5666         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5667         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5668         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5669         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5670         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5671         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5672         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5673         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5674         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5675         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5676         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5677         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5678         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5679         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5680         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5681         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5682         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5683         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5684         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5685         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5686         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5687         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5688         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5689         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5690         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5691         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5692         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5693         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5694         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5695         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5696         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5697         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5698         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5699         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5700         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5701         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5702         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5703         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5704         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5705         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5706         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5707         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5708         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5709         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5710         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5711         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5712         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5713         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5714         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5715         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5716         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5717         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5718         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5719         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5720         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5721         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5722         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5723         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5724
5725         * string/endian.h (__LONG_LONG_PAIR): New macro.
5726         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5727         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5728         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5729         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5730         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5731         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5732         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5733         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5734         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5735         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5736         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5737         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5738
5739         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5740
5741 2000-07-06  Andreas Jaeger  <aj@suse.de>
5742
5743         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5744         Initialize result.
5745
5746         * math/test-fpucw.c: Include <stdio.h> for printf.
5747
5748 2000-07-05  Greg McGary  <greg@mcgary.org>
5749
5750         * sysdeps/generic/bp-checks.h: New file.
5751         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5752         with list of #include files.
5753         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5754         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5755         Don't generate BP thunk if `V' appears in signature.
5756         Generate thunks with complete bounds checks.
5757         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5758         * sysdeps/unix/inet/syscalls.list: Likewise.
5759         * sysdeps/unix/mman/syscalls.list: Likewise.
5760         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5761         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5762         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5763         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5764
5765 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5766
5767         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5768         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5769         If mount not in the file fall back on /proc.
5770
5771         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5772         string got copied in.
5773         Patch by Solar Designer <solar@false.com>.
5774
5775 2000-07-05  Andreas Jaeger  <aj@suse.de>
5776
5777         * manual/install.texi (Installation): Update information about
5778         add-ons.
5779         (Configuring and compiling): Update for glibc 2.2.
5780
5781 2000-07-04  Andreas Jaeger  <aj@suse.de>
5782
5783         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5784         (_FPU_IEEE): Likewise.
5785
5786         * math/Makefile (tests): Add test-fpucw.
5787
5788         * math/test-fpucw.c (main): New file.
5789
5790 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5791
5792         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5793
5794         * locale/programs/ld-collate.c (collate_output): Also write out the
5795         collation sequence values and the wide character string for the
5796         collation symbol table.
5797
5798         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5799         * posix/fnmatch_loop.c: Implement collating symbol handling.
5800         * posix/tst-fnmatch.input: Add more tests, especially for collating
5801         symbol handling.
5802
5803         * posix/regex.c: Fix comment.
5804
5805 2000-07-05  Andreas Jaeger  <aj@suse.de>
5806
5807         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5808         (_FPU_GETCW): Remove extra colon.
5809         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5810
5811         * posix/fnmatch_loop.c (FCT): Only declare len if
5812         !WIDE_CHAR_VERSION to silence GCC.
5813
5814         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5815         prototype.
5816         * sysdeps/generic/strchrnul.c: Likewise.
5817         * sysdeps/generic/strlen.c: Likewise.
5818         * sysdeps/generic/strchr.c: Likewise.
5819         * sysdeps/generic/memchr.c: Likewise.
5820
5821 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5822
5823         * posix/fnmatch_loop.c: Implement equivalence class handling.
5824         * posix/tst-fnmatch.input: Add tests for equivalence class
5825         handling.
5826
5827         * posix/fnmatch_loop.c: Improve performance for single-byte
5828         character sets by not using btowc.
5829
5830         * posix/tst-fnmatch.input: Add tests for locale dependent
5831         behaviour.
5832         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5833
5834         * posix/tst-fnmatch.input: Add more test cases.
5835
5836         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5837         are not aligned to alignof(md5_uint32) do it before calling
5838         __md5_process_bytes.
5839         * crypt/md5.c: Make sure buffers are aligned.
5840         * crypt/md5.h: Likewise.
5841         Reported by Solar Designer <solar@false.com>.
5842
5843         * crypt/Makefile: Add dependencies for test programs.
5844
5845         * Rules: Define LC_ALL=C in environments of all programs we run.
5846
5847         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5848
5849 2000-07-03  H.J. Lu  <hjl@gnu.org>
5850
5851         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5852         is 2 + elem + offset, not 2 + elem + offset + 2.
5853
5854 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5855
5856         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5857         suite.
5858         * posix/Makefile (tests): Add tst-fnmatch.
5859         (tst-fnmatch-ENV): Define.
5860         * posix/tst-fnmatch.c: New file.
5861         * posix/tst-fnmatch.sh: New file.
5862
5863 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5864
5865         * locale/programs/charmap.c (charmap_read): Prepend
5866         the condition filename == NULL.
5867
5868 2000-07-03  Greg McGary  <greg@mcgary.org>
5869
5870         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5871
5872         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5873         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5874
5875         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5876         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5877         (FILEBUF_LITERAL): Add cast for CHAIN init.
5878         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5879         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5880         Revert type of `fp' to _IO_FILE*.
5881         (_IO_iter_file): Remove cast.
5882         (_IO_iter_next): Elide intermediate member reference.
5883
5884         * sysdeps/powerpc/strchr.S:  Check bounds.
5885         Wrap extern symbols in BP_SYM ().
5886
5887 2000-07-03  Andreas Jaeger  <aj@suse.de>
5888
5889         * dlfcn/Makefile (generated): New.
5890
5891 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5892
5893         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5894         (__uflow): Likewise.
5895         (__underflow): Likewise.
5896         * libio/wgenops.c (__wunderflow): Likewise.
5897         * stdio-common/tst-unbputc.c: New file.
5898         * stdio-common/tst-unbputc.sh: New file.
5899         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5900
5901         * po/en_GB.po: New file.
5902         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5903
5904 2000-07-01  Andreas Jaeger  <aj@suse.de>
5905
5906         * intl/Makefile (generated-dirs): New.
5907
5908         * elf/Makefile (generated): trusted-dirs.h is always generated,
5909         move out of build-shared condition.
5910         (generated): Merge the two entries for build-shared.
5911
5912 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5913
5914         * debug/Makefile (distribute): Add xtrace.sh.
5915
5916 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5917
5918         * version.h (VERSION): Bump to 2.1.91.
5919
5920         * configure.in: Update warning comment.  glibc should not be
5921         broken anymore.
5922
5923         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5924         ioperm.c, sys/procfs.h, and sys/io.h.
5925
5926         * sysdeps/powerpc/Dist: Add bp-asm.h.
5927
5928         * assert/Depend: Add localedata.
5929         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5930         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5931
5932         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5933         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5934         relocation address to prevent unaligned trap.
5935         Suggested by Richard Henderson <rth@cygnus.com>.
5936
5937 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5938
5939         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5940         if redirecting and either redirection is done using defines or
5941         not optimizing.
5942
5943 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5944
5945         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5946         generated expressions.
5947         Patch by Darren McClelland <dmcclell@zetec.com>.
5948
5949         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5950         since zic uses setlocale and gettext but we cannot make it use the
5951         new locale data since zic calls a shell which might not use the
5952         new libc.
5953
5954         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5955         handling the internation currency symbol.  POSIX says that the
5956         fourth character is used to separate the currency symbol from the
5957         value.  Therefore it does not have to be printed.  But we cannot
5958         remove the space if the currency symbol is printed before the
5959         number since this is what many locales expect.
5960
5961         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5962         whether this information is available.
5963
5964         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5965         buffers in case the translation is too large.  Remember allocated
5966         memory blocks in a list.
5967         (free_mem): Free memory for translations.
5968
5969         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5970
5971         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5972         information is available set the string length to zero.
5973
5974         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5975
5976 2000-06-30  Greg McGary  <greg@mcgary.org>
5977
5978         * sysdeps/powerpc/bp-asm.h: New file.
5979         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5980         Wrap extern symbols in BP_SYM ().
5981         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5982         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5983         * sysdeps/powerpc/setjmp.S: Likewise.
5984         * sysdeps/powerpc/add_n.S: Likewise.
5985         * sysdeps/powerpc/addmul_1.S: Likewise.
5986         * sysdeps/powerpc/lshift.S: Likewise.
5987         * sysdeps/powerpc/rshift.S: Likewise.
5988         * sysdeps/powerpc/mul_1.S: Likewise.
5989         * sysdeps/powerpc/sub_n.S: Likewise.
5990         * sysdeps/powerpc/submul_1.S: Likewise.
5991         * sysdeps/powerpc/strlen.S: Likewise.
5992         * sysdeps/powerpc/memset.S: Likewise.
5993         * sysdeps/powerpc/stpcpy.S: Likewise.
5994         * sysdeps/powerpc/strcmp.S: Likewise.
5995         * sysdeps/powerpc/strcpy.S: Likewise.
5996         * sysdeps/powerpc/elf/bzero.S: Likewise.
5997
5998         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5999         Line up operands column with tabs.
6000
6001 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6002
6003         * elf/Makefile (LDFLAGS-origtest): Actually add it.
6004
6005         * sysdeps/ia64/htonl.S: New file.
6006         * sysdeps/ia64/htons.S: New file.
6007         * sysdeps/ia64/memcpy.S: Replace with version which does not use
6008         floating point registers.
6009         Patches by Dan Pop <Dan.Pop@cern.ch>.
6010
6011 2000-06-30  Andreas Jaeger  <aj@suse.de>
6012
6013         * posix/Makefile (tests): tst-exec and tst-spawn only work with
6014         shared libraries.
6015
6016         * io/Makefile (CFLAGS-test-lfs.c): New.
6017         (tests): Add test-lfs.
6018
6019         * io/test-lfs.c: New file.
6020
6021 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
6022
6023         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
6024         instruction.
6025
6026 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
6027
6028         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
6029
6030 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
6031
6032         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
6033         alias to the fstatfs call.
6034
6035         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
6036         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
6037
6038         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
6039         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
6040
6041         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
6042         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
6043         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
6044         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
6045
6046         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
6047         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
6048
6049         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
6050         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
6051
6052         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
6053         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
6054
6055         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
6056
6057 2000-06-29  Andreas Jaeger  <aj@suse.de>
6058
6059         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
6060         with syslog.
6061         (print_err_message): Likewise.
6062         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
6063
6064 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6065
6066         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
6067         used as words is properly aligned.
6068
6069         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
6070         data files.
6071
6072 2000-06-29  Greg McGary  <greg@mcgary.org>
6073
6074         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
6075         * sysdeps/unix/make-syscalls.sh: Handle signatures of
6076         length 7..9, just in case...
6077         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
6078
6079         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
6080         (POP_ERRNO_LOCATION_RETURN): Fold insns.
6081         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
6082         (PUSH_SIGNAL_MASK): New macro.
6083         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
6084         LEAVE is unnecessary.  Check bounds of jmp_buf.
6085         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
6086         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
6087         immediately before tail-call.
6088         * sysdeps/i386/setjmp.S: Likewise.
6089         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6090         * sysdeps/i386/bsd-setjmp.S: Likewise.
6091
6092 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
6093
6094         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
6095         versioned_symbol.
6096         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
6097         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
6098         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
6099         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6100         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
6101         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
6102         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
6103         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
6104
6105 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6106
6107         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
6108         we later need to calling free().
6109         Patch by Matt Wilson <msw@redhat.com>.
6110
6111         * stdio-common/tst-printf.c: Add test for above problem.
6112
6113 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
6114
6115         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
6116         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
6117
6118 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6119
6120         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
6121         prototype for abs().
6122         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
6123
6124 2000-06-23  Andreas Jaeger  <aj@suse.de>
6125
6126         * config.h.in: Don't use regparm with bounded pointers.
6127
6128 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6129
6130         * stdlib/grouping.h: Correctly handle multibyte thousands
6131         separator and decimal point.
6132         * stdlib/stdtod.c: Likewise.
6133         * sysdeps/generic/strtol.c: Likewise.
6134
6135         * locale/categories.def: Add entries for wide character decimal point
6136         and thousands separator in numeric and monetary category.
6137
6138 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6139
6140         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
6141         second definition and initialization of decimal.
6142
6143 2000-06-28  Greg McGary  <greg@mcgary.org>
6144
6145         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
6146         out.
6147         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
6148         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
6149         in.
6150         (_IO_JUMPS): Don't cast THIS--expect arg to be a
6151         (struct _IO_FILE_plus *).
6152         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
6153         THIS, since _IO_JUMPS no longer does it implicitly.
6154         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
6155         arg type as (struct _IO_FILE_plus *).
6156         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
6157         arg as (_IO_strfile *).
6158         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
6159         Declare 1st arg as (_IO_strfile *).
6160         * libio/fileops.c (_IO_new_file_init): Declare
6161         arg type as (struct _IO_FILE_plus *).
6162         * libio/oldfileops.c (_IO_old_file_init): Likewise.
6163         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
6164         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
6165         Declare iteration pointer as (struct _IO_FILE_plus *).
6166         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
6167                 (struct _IO_FILE_plus *).
6168         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
6169         * libio/oldstdfiles.c (_IO_list_all): Likewise.
6170         (_IO_check_libio): Set user-visible handles to
6171         (struct _IO_FILE_plus *).
6172         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
6173         to (struct _IO_FILE_plus *).
6174
6175         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
6176         whose high bound includes vtable to all functions that will use
6177         vtable.  For streambufs, pass pointer whose bounds include struct
6178         _IO_strfile.
6179         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
6180         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
6181         * libio/iofopen.c (_IO_new_fopen): Likewise.
6182         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6183         * libio/iofopen64.c (_IO_fopen64): Likewise.
6184         * libio/iopopen.c (_IO_new_popen): Likewise.
6185         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6186         * libio/memstream.c (open_memstream): Likewise.
6187         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6188         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
6189         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6190         * libio/iofopncook.c (_IO_cookie_init): Likewise.
6191         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
6192         * libio/vasprintf.c (_IO_vasprintf): Likewise.
6193         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6194         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6195         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6196         * stdlib/strfmon.c (__strfmon_l): Likewise.
6197         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6198         (vfprintf): Qualify computed-goto targets as unbounded.
6199
6200 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6201
6202         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
6203         thousands separator correctly.
6204
6205         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
6206         * stdio-common/vfwscanf.c: Likewise.
6207
6208 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
6209
6210         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
6211         count into signatures for most calls.
6212
6213 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6214
6215         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
6216         the generic parser now.
6217
6218 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6219
6220         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
6221         table entries are 32 bit on the ia64 (as specified by the ABI),
6222         not 64 bit as on the Alpha.
6223
6224         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
6225         change of objects to use 32 bit hash table indices (see above).
6226
6227 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6228
6229         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
6230         prototype for abs().
6231
6232 2000-06-28  Wolfram Gloger  <wg@malloc.de>
6233
6234         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
6235         fails, try mmap_chunk() as a last resort even though n_mmaps_max
6236         may have been reached.
6237
6238 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6239
6240         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
6241         symbols in multi-character weights correctly.
6242
6243         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
6244         depending on whether the input string is empty or not.
6245
6246         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
6247         given state and not avoiding this by modifying a local object.
6248         * wcsmbs/wcrtomb.c: Likewise.
6249
6250         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
6251         object since some incomplete characters might be in there.
6252
6253         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
6254         sequences with first byte 0x8e correctly.
6255
6256         * iconvdata/jis0208.h: Remove redundant test.
6257
6258 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
6259
6260         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
6261         Add it where it is needed now.
6262
6263         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
6264         the input charset into account when generating the hash table.
6265         (allocate_arrays): Correct setting default width.  Not all empty slots
6266         in the table are filled, only those not covert explicitly by the
6267         locale description and in the charset.
6268
6269         * wctype/towctrans.c (__towctrans): Be graceful and accept error
6270         return values from the wctrans function.
6271
6272         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
6273         wide character version.
6274         For %C handling, test correct pointer variable for NULL.
6275
6276         * wcsmbs/wctob.c: Handle WEOF special.
6277
6278         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
6279
6280         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
6281         always-true test to avoid warning.
6282
6283 2000-06-27  Greg McGary  <greg@mcgary.org>
6284
6285         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
6286         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
6287         (symbol_version, default_symbol_version): Factor redundant
6288         definitions out of conditional.
6289
6290 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
6291
6292         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
6293         not obstack_blank.
6294
6295 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6296
6297         * include/libc-symbols.h (symbol_version): Add extra level of
6298         macro expansion.
6299         (default_symbol_version): Likewise.
6300
6301 2000-06-26  Greg McGary  <greg@mcgary.org>
6302
6303         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
6304         for BP return value & push implicit struct-return pointer to
6305         __errno_location.
6306         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6307         (SYSCALL_ERROR_HANDLER): Likewise.
6308         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6309         (SYSCALL_ERROR_HANDLER): Likewise.
6310
6311         * Makeconfig: Add missing comment.
6312         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
6313         BP-flavored startup object.
6314         ($(objpfx)b$(start-installed-name)): New rule.
6315         * include/libc-symbols.h (symbol_set_declare): Change type
6316         of `__start_##set' and `__stop_##set' to pointer-to-function.
6317         (symbol_set_declare): Change type of `set' to array of
6318         pointer-to-function.
6319         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
6320         pointer-to-function.
6321
6322         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
6323
6324         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
6325         Remove clock_* and timer_* entries.
6326         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
6327         arg-count with signatures.
6328
6329         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
6330         Check bounds of arguments.
6331         * sysdeps/i386/addmul_1.S: Likewise.
6332         * sysdeps/i386/lshift.S: Likewise.
6333         * sysdeps/i386/mul_1.S: Likewise.
6334         * sysdeps/i386/rshift.S: Likewise.
6335         * sysdeps/i386/sub_n.S: Likewise.
6336         * sysdeps/i386/submul_1.S: Likewise.
6337         * sysdeps/i386/i586/add_n.S: Likewise.
6338         * sysdeps/i386/i586/addmul_1.S: Likewise.
6339         * sysdeps/i386/i586/lshift.S: Likewise.
6340         * sysdeps/i386/i586/rshift.S: Likewise.
6341         * sysdeps/i386/i586/sub_n.S: Likewise.
6342         * sysdeps/i386/i686/add_n.S: Likewise.
6343
6344         * sysdeps/i386/memchr.S: Likewise.
6345         * sysdeps/i386/memcmp.S: Likewise.
6346         * sysdeps/i386/rawmemchr.S: Likewise.
6347         * sysdeps/i386/i586/bzero.S: Likewise.
6348         * sysdeps/i386/i586/memcpy.S: Likewise.
6349         * sysdeps/i386/i586/mempcpy.S: Likewise.
6350         * sysdeps/i386/i586/memset.S: Likewise.
6351         * sysdeps/i386/i686/bzero.S: Likewise.
6352         * sysdeps/i386/i686/memcpy.S: Likewise.
6353         * sysdeps/i386/i686/mempcpy.S: Likewise.
6354         * sysdeps/i386/i686/memset.S: Likewise.
6355
6356         * sysdeps/i386/stpcpy.S: Likewise.
6357         * sysdeps/i386/stpncpy.S: Likewise.
6358         * sysdeps/i386/strchr.S: Likewise.
6359         * sysdeps/i386/strchrnul.S: Likewise.
6360         * sysdeps/i386/strcspn.S: Likewise.
6361         * sysdeps/i386/strpbrk.S: Likewise.
6362         * sysdeps/i386/strrchr.S: Likewise.
6363         * sysdeps/i386/strspn.S: Likewise.
6364         * sysdeps/i386/strtok.S: Likewise.
6365         * sysdeps/i386/strtok_r.S: Likewise.
6366         * sysdeps/i386/i486/strcat.S: Likewise.
6367         * sysdeps/i386/i486/strlen.S: Likewise.
6368         * sysdeps/i386/i586/strchr.S: Likewise.
6369         * sysdeps/i386/i586/strcpy.S: Likewise.
6370         * sysdeps/i386/i586/strlen.S: Likewise.
6371         * sysdeps/i386/i686/strcmp.S: Likewise.
6372         * sysdeps/i386/i686/strtok.S: Likewise.
6373         * sysdeps/i386/i686/strtok_r.S: Likewise.
6374
6375         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
6376         * sysdeps/i386/fpu/fesetenv.c: Likewise.
6377         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
6378         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
6379         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6380
6381         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
6382         * sysdeps/i386/mul_1.S: Likewise.
6383         * sysdeps/i386/submul_1.S: Likewise.
6384         * sysdeps/i386/i586/add_n.S: Likewise.
6385         * sysdeps/i386/i586/addmul_1.S: Likewise.
6386         * sysdeps/i386/i586/lshift.S: Likewise.
6387         * sysdeps/i386/i586/mul_1.S: Likewise.
6388         * sysdeps/i386/i586/rshift.S: Likewise.
6389         * sysdeps/i386/i586/sub_n.S: Likewise.
6390         * sysdeps/i386/i586/submul_1.S: Likewise.
6391
6392 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6393
6394         * rt/Makefile (librt-routines): Add clock_nanosleep.
6395         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
6396         * sysdeps/generic/clock_nanosleep.c: New file.
6397         * sysdeps/unix/clock_nanosleep.c: New file.
6398         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
6399         * time/time.h: Declare clock_nanosleep.
6400
6401 2000-06-26  Greg McGary  <greg@mcgary.org>
6402
6403         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
6404         INSN1, INSN2, TEXT, GLOBL): Remove macros.
6405         (ALIGN): Cleanup surrounding conditionals.
6406
6407         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
6408         Call ENTER/LEAVE macros.
6409         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
6410         * sysdeps/i386/submul_1.S: Likewise.
6411
6412         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
6413         syntax.  Define & use symbolic argument stack offsets.  Call
6414         ENTER/LEAVE macros.
6415         * sysdeps/i386/i586/mul_1.S: Likewise.
6416         * sysdeps/i386/i586/submul_1.S: Likewise.
6417
6418 2000-06-25  Greg McGary  <greg@mcgary.org>
6419
6420         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
6421         not as bcopy.
6422
6423 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
6424
6425         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
6426         * iconvdata/gen-8bit-gap.sh: Likewise.
6427         * iconvdata/gen-8bit.sh: Likewise.
6428
6429         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
6430
6431         * locale/programs/ld-collate.c (collate_read): Don't actually read
6432         the copy locale if we are ignoring the content.
6433
6434         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
6435         unknown character.
6436
6437         * locale/programs/ld-collate.c: Correct handling of different
6438         collation sections.
6439         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
6440         as extra parameter from which to copy category information.
6441         Change all callers.
6442         (load_locale): Likewise.
6443         * locale/programs/localedef.h: Update prototypes of add_to_readlist
6444         and load_locale.
6445         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
6446         * locale/programs/locfile.h: Likewise.
6447         * locale/programs/locfile-kw.gperf: Add entry for script.
6448         * locale/programs/locfile-token.h: Add tok_script.
6449
6450         * locale/programs/locale.c: Update copyright year.
6451         * locale/programs/localedef.c: Likewise.
6452
6453 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
6454
6455         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
6456         Jens Moeller <jens.moeller@waii.com>.
6457
6458 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
6459
6460         * locale/programs/ld-name.c (name_finish): Add missing format
6461         specifier to test for name_fmt.
6462
6463         * locale/programs/ld-address.c (iso639): Correct length of string
6464         elements.
6465         (iso3166): Likewise.
6466
6467         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
6468
6469         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
6470         Define.
6471
6472         * elf/elf.h (NT_PRFPXREG): Define.
6473
6474 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
6475
6476         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
6477         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
6478
6479 2000-06-23  Andreas Schwab  <schwab@suse.de>
6480
6481         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
6482         with signatures.
6483
6484 2000-06-23  Andreas Jaeger  <aj@suse.de>
6485
6486         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
6487
6488         * io/test-stat.c: Add copyright header, mention Maciej.
6489
6490         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
6491         SYS_mincore, SYS_madvise): Added.
6492
6493         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
6494         execve.
6495
6496 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6497
6498         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
6499         (CFLAGS-tst_putwc.c): New definition.
6500         * libio/tst_getwc.c: New file.
6501         * libio/tst_getwc.input: New file.
6502         * libio/tst_putwc.c: New file.
6503
6504         * include/string.h: Add prototype for __strdup.
6505
6506 2000-06-22  Greg McGary  <greg@mcgary.org>
6507
6508         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
6509         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
6510         Fix signatures.
6511
6512 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
6513
6514         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
6515
6516 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6517
6518         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
6519
6520 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6521
6522         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
6523         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
6524
6525 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6526
6527         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
6528         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
6529         and __S_TYPEISSHM.
6530         * sysdeps/mach/hurd/bits/stat.h: Likewise.
6531         * sysdeps/unix/bsd/bits/stat.h: Likewise.
6532         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
6533         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6534         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
6535         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
6536         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6537         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6538         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6539         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
6540         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
6541         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
6542         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
6543         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
6544         S_TYPEISSHM.
6545
6546 2000-06-22  Andreas Jaeger  <aj@suse.de>
6547
6548         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
6549         with signatures.
6550
6551         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
6552
6553         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
6554
6555 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6556
6557         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
6558         ahead.
6559
6560 2000-06-21  Greg McGary  <greg@mcgary.org>
6561
6562         * Makerules (elide-routines.*, elide-bp-thunks):
6563         Define unconditionally.
6564
6565 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6566
6567         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6568
6569 2000-06-21  Andreas Jaeger  <aj@suse.de>
6570
6571         * io/Makefile (tests): Add test-stat.
6572         (CFLAGS-test-stat.c): New.
6573
6574         * io/test-stat.c: New file from Maciej W. Rozycki
6575         <macro@ds2.pg.gda.pl>.
6576
6577 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6578
6579         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
6580         in __rlimit_resource to make them match the kernel order.
6581         rlim_t is always 64 bit, use __rlim64_t to declare it
6582         unconditionally.
6583
6584 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
6585
6586         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
6587         RLIM_INFINITY before defining it to avoid clash with kernel header
6588
6589 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
6590
6591         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
6592
6593 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6594
6595         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
6596
6597 2000-06-21  Andreas Jaeger  <aj@suse.de>
6598
6599         * stdio-common/temptest.c: Include <stdlib.h>.
6600         * stdio-common/tst-fileno.c: Likewise.
6601         * stdio-common/scanf4.c: Likewise.
6602         * stdio-common/scanf5.c: Likewise.
6603         * time/clocktest.c: Likewise.
6604         * posix/test-vfork.c: Likewise.
6605         * posix/globtest.c: Likewise.
6606         * io/test-utime.c: Likewise.
6607         * wctype/test_wcfuncs.c: Likewise.
6608         * crypt/cert.c: Likewise.
6609
6610         * stdio-common/tst-printfsz.c: Include <string.h>.
6611         * libio/tst_swscanf.c: Likewise.
6612         * libio/tst_wscanf.c: Likewise.
6613         * posix/runtests.c: Likewise.
6614         * posix/tst-getaddrinfo.c: Likewise.
6615         * posix/wordexp-test.c: Likewise.
6616         * misc/tst-efgcvt.c: Likewise.
6617
6618         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
6619         * nss/test-netdb.c: Likewise.
6620
6621         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
6622         supported kernel for MIPS.
6623
6624         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
6625         * rt/aio_suspend.c: Likewise.
6626
6627 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6628
6629         * math/libm-test.inc: Include <string.h>.
6630
6631 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6632
6633         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
6634
6635 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6636
6637         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
6638         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
6639
6640 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
6641
6642         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
6643
6644 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6645
6646         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
6647
6648 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6649
6650         * locale/programs/ld-collate.c (insert_value): Now take string and
6651         length instead of struct token* parameter.  Adjust use of token.
6652         (handle_ellipsis): Likewise.
6653         (collate_read): Allow <Uxxxx> names and transform them into names
6654         to be passed to insert_value and handle_ellipsis.
6655
6656         * locale/programs/ld-ctype.c (uninames): New array with names of
6657         digits in <Uxxxxxxxx> format.
6658         (ctype_finish): Correct search for space character value.  Likewise
6659         for default outdigits values.
6660
6661 2000-06-20  Greg McGary  <greg@mcgary.org>
6662
6663         * Makerules (objects): Add BP thunks.
6664
6665 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6666
6667         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6668         in width definitions.
6669
6670 2000-06-20  Andreas Jaeger  <aj@suse.de>
6671
6672         * sysdeps/mips/fpu/libm-test-ulps: New file.
6673
6674         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6675         first.
6676
6677         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6678
6679         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6680
6681 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6682
6683         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6684         change in gconv_builtin.h.
6685
6686         * malloc/Makefile: Change all references to memprof into memusage.
6687         * malloc/memprof.c: Rename to...
6688         * malloc/memusage.c: ...this.  New file.
6689         * malloc/memprof.sh: Rename to...
6690         * malloc/memusage.sh: ...this.  New file.
6691         * malloc/memprofstat.c: Rename to...
6692         * malloc/memusagestat.c: ...this.  New file.
6693         * sysdeps/alpha/memprof.h: Rename to..
6694         * sysdeps/alpha/memusage.h: ...this.  New file.
6695         * sysdeps/arm/memprof.h: Rename to..
6696         * sysdeps/arm/memusage.h: ...this.  New file.
6697         * sysdeps/generic/memprof.h: Rename to..
6698         * sysdeps/generic/memusage.h: ...this.  New file.
6699         * sysdeps/i386/memprof.h: Rename to..
6700         * sysdeps/i386/memusage.h: ...this.  New file.
6701         * sysdeps/ia64/memprof.h: Rename to..
6702         * sysdeps/ia64/memusage.h: ...this.  New file.
6703         * sysdeps/m68k/memprof.h: Rename to..
6704         * sysdeps/m68k/memusage.h: ...this.  New file.
6705         * sysdeps/mips/memprof.h: Rename to..
6706         * sysdeps/mips/memusage.h: ...this.  New file.
6707         * sysdeps/powerpc/memprof.h: Rename to..
6708         * sysdeps/powerpc/memusage.h: ...this.  New file.
6709         * sysdeps/sparc/memprof.h: Rename to..
6710         * sysdeps/sparc/memusage.h: ...this.  New file.
6711         * sysdeps/sh/memprof.h: Rename to..
6712         * sysdeps/sh/memusage.h: ...this.  New file.
6713
6714         * elf/sprof.c (print_version): Update year.
6715
6716         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6717         table entry values.  Use D_PTR.
6718         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6719         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6720
6721 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6722
6723         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6724         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6725         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6726         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6727
6728 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6729
6730         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6731
6732 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6733
6734         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6735         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6736         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6737
6738         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6739
6740         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6741         kernel change.
6742
6743         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6744         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6745         structure.
6746         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6747         implementation.
6748
6749 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6750
6751         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6752
6753 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6754
6755         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6756
6757 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6758
6759         * iconv/gconv_int.h (strict gconv_module): Remove all members
6760         associated with regular expressions.  Use a simple string as the
6761         from name.
6762         * iconv/gconv_db.c: Remove code handling regular expressions.
6763         * iconv/gconv_conf.c: Likewise.
6764         * iconv/iconv_prog.c: Likewise.
6765         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6766
6767         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6768         General namespace cleanup.
6769         (struct __gconv_trans_data): Add next field.
6770         (struct __gconv_step_data): Make __trans a pointer.
6771         * iconv/gconv_conf.c: Split out code to find gconv directories from
6772         __gconv_read_conf in new functions.
6773         * iconv/gconv_int.h: Define new data structure and declare new
6774         functions for handling of gconv directory list.
6775         * iconv/gconv_open.c: Allow more than one error handling step being
6776         used.  Call function to load error handling module if it is none
6777         of the builtin transformations.
6778         * iconv/gconv_close.c: Add code to free transliteration data.
6779         * iconv/gconv_trans.c: Add functions to load and unload modules
6780         implementing transliteration etc.
6781         * iconv/skeleton.c: Call all context functions now that more than
6782         one module is allowed.
6783         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6784         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6785         where the full error handling using transliteration is needed.
6786         * iconvdata/8bit-gap.c: Likewise.
6787         * iconvdata/8bit-generic.c: Likewise.
6788         * iconvdata/ansi_x3.110.c: Likewise.
6789         * iconvdata/big5.c: Likewise.
6790         * iconvdata/big5hkscs.c: Likewise.
6791         * iconvdata/euc-cn.c: Likewise.
6792         * iconvdata/euc-jp.c: Likewise.
6793         * iconvdata/euc-kr.c: Likewise.
6794         * iconvdata/euc-tw.c: Likewise.
6795         * iconvdata/gbgbk.c: Likewise.
6796         * iconvdata/gbk.c: Likewise.
6797         * iconvdata/iso-2022-cn.c: Likewise.
6798         * iconvdata/iso-2022-jp.c: Likewise.
6799         * iconvdata/iso-2022-kr.c: Likewise.
6800         * iconvdata/iso646.c: Likewise.
6801         * iconvdata/iso8859-1.c: Likewise.
6802         * iconvdata/iso_6937-2.c: Likewise.
6803         * iconvdata/iso_6937.c: Likewise.
6804         * iconvdata/johab.c: Likewise.
6805         * iconvdata/sjis.c: Likewise.
6806         * iconvdata/t.61.c: Likewise.
6807         * iconvdata/uhc.c: Likewise.
6808         * iconvdata/unicode.c: Likewise.
6809         * iconvdata/utf-16.c: Likewise.
6810         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6811         structure correctly after last change.
6812         * wcsmbs/btowc.c: Likewise.
6813         * wcsmbs/mbrtowc.c: Likewise.
6814         * wcsmbs/mbsnrtowcs.c: Likewise.
6815         * wcsmbs/mbsrtowcs.c: Likewise.
6816         * wcsmbs/wcrtomb.c: Likewise.
6817         * wcsmbs/wcsnrtombs.c: Likewise.
6818         * wcsmbs/wcsrtombs.c: Likewise.
6819         * wcsmbs/wctob.c: Likewise.
6820
6821         * localedata/Makefile: Set -Wno-format for some files since gcc does
6822         not know all the format specifiers.
6823
6824 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6825
6826         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6827         unneeded code.
6828         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6829
6830 2000-06-18  Andreas Jaeger  <aj@suse.de>
6831
6832         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6833         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6834
6835 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6836
6837         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6838         LINUX_LINK_MAX.
6839         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6840
6841         * locale/programs/ld-ctype.c (ctype_output): Really write out
6842         mboutdigits information.
6843         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6844         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6845         * localedata/tests/trans.def: Add outdigit information.
6846
6847         * localedata/tst-mbswcs3.c: Remove comment.
6848
6849         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6850         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6851         * libio/tst_wprintf.c (main): Add test for I flag.
6852
6853         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6854         * locale/langinfo.h: Add entries for translit_ignore information.
6855         * locale/categories.def: Add entries for new LC_CTYPE elements.
6856         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6857         pointer instead of "" where possible.
6858         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6859         * intl/Depend: Add localedata.
6860         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6861         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6862
6863 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6864
6865         * locale/langinfo.h: Add entries for default_missing information.
6866         * locale/C-ctype.c: Add initializers for new fields.
6867         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6868         information.
6869         * locale/categories.h: Add entries for all LC_CTYPE values.
6870         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6871         information.
6872
6873         * localedata/tst-trans.c: Write out an error message if class is
6874         not found.
6875
6876         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6877         * iconv/gconv_open.c: Remove error handling specification from `from'
6878         character set name.
6879         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6880         new parameter to always enable transliteration.
6881         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6882         change.
6883         (struct locale_data): Add new members use_translit and options.
6884         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6885         character set name contained modifier TRANSLIT.
6886         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6887         and options fields.
6888         (_nl_unload_locale): Free options string if necessary.
6889         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6890         the locale names suggested this.
6891         * locale/C-address.c: Add two new initialilzers to adjust data
6892         structure for new format.
6893         * locale/C-collate.c: Likewise.
6894         * locale/C-ctype.c: Likewise.
6895         * locale/C-identification.c: Likewise.
6896         * locale/C-measurement.c: Likewise.
6897         * locale/C-messages.c: Likewise.
6898         * locale/C-monetary.c: Likewise.
6899         * locale/C-name.c: Likewise.
6900         * locale/C-numeric.c: Likewise.
6901         * locale/C-paper.c: Likewise.
6902         * locale/C-telephone.c: Likewise.
6903         * locale/C-time.c: Likewise.
6904
6905         * locale/setlocale.c: Add some more __builtin_expect.
6906
6907 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6908
6909         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6910         unsigned char **.
6911         (__gconv_init_fct): Remove two parameters.
6912         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6913         gconv_transliterate.  Remove two parameters.
6914         Change prototypes of builtin functions according to __gconv_fct change.
6915         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6916         != NULL only during error handling.  Stop in this case after the
6917         conversion.
6918         * iconv/gconv_trans.c: Replace with real implementation for
6919         __gconv_transliterate.
6920         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6921         * iconv/gconv.c: Change calls to downstream functions once again.
6922         Use NULL for the fifth parameter instead of pointer to output buffer.
6923         * libio/iofwide.c: Likewise.
6924         * wcsmbs/btowc.c: Likewise.
6925         * wcsmbs/mbrtowc.c: Likewise.
6926         * wcsmbs/mbsnrtowcs.c: Likewise.
6927         * wcsmbs/mbsrtowcs.c: Likewise.
6928         * wcsmbs/wcrtomb.c: Likewise.
6929         * wcsmbs/wcsnrtombs.c: Likewise.
6930         * wcsmbs/wcsrtombs.c: Likewise.
6931         * wcsmbs/wctob.c: Likewise.
6932         * iconv/gconv_simple.c: Remove two parameters from error handling
6933         function call.
6934         * iconvdata/8bit-gap.c: Likewise.
6935         * iconvdata/8bit-generic.c: Likewise.
6936         * iconvdata/ansi_x3.110.c: Likewise.
6937         * iconvdata/big5.c: Likewise.
6938         * iconvdata/big5hkscs.c: Likewise.
6939         * iconvdata/euc-cn.c: Likewise.
6940         * iconvdata/euc-jp.c: Likewise.
6941         * iconvdata/euc-kr.c: Likewise.
6942         * iconvdata/euc-tw.c: Likewise.
6943         * iconvdata/gbgbk.c: Likewise.
6944         * iconvdata/gbk.c: Likewise.
6945         * iconvdata/iso-2022-cn.c: Likewise.
6946         * iconvdata/iso-2022-jp.c: Likewise.
6947         * iconvdata/iso-2022-kr.c: Likewise.
6948         * iconvdata/iso646.c: Likewise.
6949         * iconvdata/iso8859-1.c: Likewise.
6950         * iconvdata/iso_6937-2.c: Likewise.
6951         * iconvdata/iso_6937.c: Likewise.
6952         * iconvdata/johab.c: Likewise.
6953         * iconvdata/sjis.c: Likewise.
6954         * iconvdata/t.61.c: Likewise.
6955         * iconvdata/uhc.c: Likewise.
6956         * iconvdata/unicode.c: Likewise.
6957         * iconvdata/utf-16.c: Likewise.
6958
6959 2000-06-15  Greg McGary  <greg@mcgary.org>
6960
6961         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6962         of callnum assignment.  Tolerate callnum expressions containing
6963         parens.
6964
6965 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6966
6967         * login/Makefile (utmpd): Remove rule to build utmpd.
6968
6969         * csu/Versions: Move libgcc frame handling functions from here...
6970         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6971         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6972         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6973         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6974         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6975         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6976         New file.
6977         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6978
6979         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6980
6981         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6982
6983 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6984
6985         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6986         compatibility.
6987         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6988         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6989         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6990         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6991
6992 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6993
6994         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6995         defined, terminate quotes and read them after the comment char.
6996         * configure.in (HAVE_SECTION_QUOTES): Test whether
6997         __attribute__((section ("x"))) puts quotes around x or not.
6998         * config.h.in (HAVE_SECTION_QUOTES): Add.
6999         * configure: Rebuilt.
7000
7001 2000-06-14  Andreas Jaeger  <aj@suse.de>
7002
7003         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
7004         depending on the configure option --sysconfdir.
7005         Closes PR libc/1762.
7006         Patch by Andreas Schwab <schwab@suse.de>.
7007
7008         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
7009         entry point.
7010         Reported by Jim Pick <jim@jimpick.com>.
7011
7012 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
7013
7014         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
7015         crashing the application.  Emit some simple error message.
7016         Reported by mju@panasas.com [PR libc/1769].
7017
7018 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7019
7020         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
7021
7022         * crypt/Makefile (distribute): Add md5.h.
7023
7024         * Makefile (distribute): Add include/shlib-compat.h.
7025
7026         * Make-dist: Search for tests also in sysdeps hierachy.
7027
7028         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
7029         ufc.c, speeds.c, README.ufc-crypt, and Banner.
7030
7031         * sysdeps/sparc/Subdirs: New file.
7032
7033         * locale/Makefile (distribute): Add weightwc.h and
7034         programs/localedef.h.
7035
7036         * time/Makefile (distribute): Add datemsk.
7037
7038         * sysdeps/ia64/Dist: Add softpipe.h.
7039
7040         * sysdeps/unix/sysv/aix/Dist: New file.
7041
7042         * posix/setpgrp.c: Moved to...
7043         * sysdeps/generic/setpgrp.c: ...here.  New file.
7044         * io/mknod.c: Moved to...
7045         * sysdeps/generic/mknod.c: ...here.  New file.
7046
7047         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
7048
7049         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
7050
7051         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
7052
7053         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
7054         gprsave0.S, gprrest1.S, and gprrest0.S.
7055
7056         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
7057
7058         * posix/Makefile (routines): Add spawnattr_getsigmask,
7059         spawnattr_getschedpolicy, spawnattr_getschedparam,
7060         spawnattr_setsigmask, spawnattr_setschedpolicy, and
7061         spawnattr_setschedparam.
7062         * posix/Versions: Add posix_spawnattr_getschedpolicy,
7063         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
7064         posix_spawnattr_setschedparam.
7065
7066         * posix/spawnattr_setschedparam.c: Fix typo.
7067
7068         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
7069         Correct typo.
7070
7071         * login/programs/utmpd.c: Removed.
7072         * login/programs/utmpd.h: Removed.
7073         * login/programs/utmpd-private.h: Removed.
7074
7075         * Makefile (distribute): Add include/db_185.h and include/db.h.
7076
7077         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
7078         iso-ir-165.h.
7079
7080         * elf/Makefile (distribute): Add missing files.
7081
7082         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
7083         * elf/eval.c: Moved to...
7084         * dlfcn/eval.c: ...here.  New file.
7085
7086         * Makefile (distribute): Also distribute ChangeLog.1?.
7087
7088         * Make-dist (+tsrcs): Remove .args handling here as well.
7089
7090         * rt/Makefile (tests): Add tst-timer.
7091         * sysdeps/generic/tst-timer.c: New file.
7092
7093         * Makerules (sources): Don't add BP sources here.
7094
7095         * login/Makefile (distribute): Remove xtmp.h.
7096
7097         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
7098         is true.  Reported by Bruno Haible <haible@ilog.fr>.
7099
7100 2000-06-13  Andreas Jaeger  <aj@suse.de>
7101
7102         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
7103         Patch by Ralf Baechle <ralf@gnu.org>.
7104
7105 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
7108         for mincore syscall.
7109
7110         * misc/sys/cdefs.h: Define __bounded and __unbounded if
7111         __BOUNDED_POINTERS__ is not defined.
7112
7113 2000-06-07  Greg McGary  <greg@mcgary.org>
7114
7115         * sysdeps/generic/bp-sym.h: New file.
7116         * sysdeps/generic/bp-start.h: New file.
7117         * sysdeps/i386/elf/start.S: Designate BP symbols.
7118         * sysdeps/generic/libc-start.c: Wrap bounds around
7119         argv & envp and each of their string members.
7120
7121 2000-06-07  Greg McGary  <greg@mcgary.org>
7122
7123         * sysdeps/unix/make-syscalls.sh: Add comments to
7124         output that aid debugging & comprehension.
7125         Map simple syscall signatures to number of args.
7126         Generate BP syscall thunk definitions.
7127         * sysdeps/generic/bp-thunks.h: New file.
7128         * sysdeps/unix/syscalls.list: Replace arg-count with
7129         simple return+arg signature.
7130         * sysdeps/unix/common/syscalls.list: Likewise.
7131         * sysdeps/unix/inet/syscalls.list: Likewise.
7132         * sysdeps/unix/mman/syscalls.list: Likewise.
7133         * sysdeps/unix/sysv/syscalls.list: Likewise.
7134         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7135         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7136
7137 2000-06-07  Greg McGary  <greg@mcgary.org>
7138
7139         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
7140         for all files *.[cS].
7141         (CFLAGS-.ob): Don't optimize sibling calls.
7142         (bppfx): New variable.
7143         * Makerules (elide-bp-thunks): New variable.
7144         (elide-routines.*): Elide BP-* files for all but *.ob.
7145         (sources): Include bp-thunks.
7146
7147 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7148
7149         * iconv/gconv_simple.c: Remove unnecessary prototype.
7150
7151         * iconv/gconv_trans.c: Pretty print.
7152
7153         * elf/elf.h (R_SH_NUM): Got accidently dropped.
7154
7155         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
7156         minimal kernel versions.  Add information about IA-64 kernel.
7157
7158         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
7159         specific minimal supported kernel versions to be specified.
7160
7161         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
7162         step data structure.
7163         * wcsmbs/btowc.c: Likewise.
7164         * wcsmbs/mbrtowc.c: Likewise.
7165         * wcsmbs/mbsnrtowcs.c: Likewise.
7166         * wcsmbs/mbsrtowcs.c: Likewise.
7167         * wcsmbs/wcrtomb.c: Likewise.
7168         * wcsmbs/wcsnrtombs.c: Likewise.
7169         * wcsmbs/wcsrtombs.c: Likewise.
7170         * wcsmbs/wctob.c: Likewise.
7171
7172         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
7173         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
7174
7175         * shlib-versions: Earliest backward compatible version for SH is 2.2.
7176
7177         * misc/sys/cdefs.h: Remove one more __P.
7178
7179         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
7180         Reported by HJ Lu.
7181
7182         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
7183         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
7184         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
7185
7186 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7187             Yutaka Niibe  <gniibe@chroot.org>
7188
7189         * configure.in: Add machine sh3, sh4.
7190         * elf/elf.h: Add SH specific declarations of relocations.
7191         * shlib-versions: Add sh*-*-linux* cases.
7192
7193 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7194
7195         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
7196         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
7197         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
7198         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
7199         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
7200         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
7201
7202         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
7203         instead of KERNEL_MATH_EMULATION.
7204         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
7205         KERNEL_MATH_EMULATION.
7206
7207         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
7208         * sysdeps/sh/sh3/dl-machine.h: Moved to...
7209         * sysdeps/sh/dl-machine.h: ...here.  New file.
7210         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
7211         and include generic SH version.
7212         * sysdeps/sh/sh3/bits/endian.h: Move to...
7213         * sysdeps/sh/bits/endian.h: ...here.  New file.
7214         * sysdeps/sh/sh4/bits/endian.h: Removed.
7215         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
7216         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
7217         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
7218
7219         * include/libc-symbols.h (link_warning): Work around a change in
7220         GAS which warns about changing section attributes.
7221         Proposed by Nick Clifton <nickc@redhat.com>.
7222
7223 2000-06-12  H.J. Lu  <hjl@gnu.org>
7224
7225         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
7226
7227 2000-06-11  H.J. Lu  <hjl@gnu.org>
7228
7229         * sysdeps/i386/fpu/Versions: New file.
7230
7231 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7232
7233         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
7234         parameters.
7235         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
7236         exists.
7237
7238 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
7239
7240         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7241         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
7242         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
7243
7244         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
7245         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
7246         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
7247
7248 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7249             Yutaka Niibe  <gniibe@chroot.org>
7250
7251         * sysdeps/sh/Dist: New file.
7252         * sysdeps/sh/Implies: New file.
7253         * sysdeps/sh/elf/initfini.c: New file.
7254         * sysdeps/sh/gmp-mparam.h: New file.
7255         * sysdeps/sh/init-first.c: New file.
7256         * sysdeps/sh/machine-gmon.h: New file.
7257         * sysdeps/sh/memcpy.S: New file.
7258         * sysdeps/sh/memprof.h: New file.
7259         * sysdeps/sh/memset.S: New file.
7260         * sysdeps/sh/sh3/__longjmp.S: New file.
7261         * sysdeps/sh/sh3/bits/endian.h: New file.
7262         * sysdeps/sh/sh3/bits/huge_val.h: New file.
7263         * sysdeps/sh/sh3/bits/setjmp.h: New file.
7264         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
7265         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
7266         * sysdeps/sh/sh3/dl-machine.h: New file.
7267         * sysdeps/sh/sh3/setjmp.S: New file.
7268         * sysdeps/sh/sh4/__longjmp.S: New file.
7269         * sysdeps/sh/sh4/bits/endian.h: New file.
7270         * sysdeps/sh/sh4/bits/huge_val.h: New file.
7271         * sysdeps/sh/sh4/bits/setjmp.h: New file.
7272         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
7273         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
7274         * sysdeps/sh/sh4/dl-machine.h: New file.
7275         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
7276         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
7277         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
7278         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
7279         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
7280         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
7281         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
7282         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
7283         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
7284         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
7285         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
7286         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
7287         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
7288         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
7289         * sysdeps/sh/sh4/setjmp.S: New file.
7290         * sysdeps/sh/elf/start.S: New file.
7291         * sysdeps/sh/sys/ucontext.h: New file.
7292         * sysdeps/sh/strlen.S: New file.
7293         * sysdeps/sh/sysdep.h: New file.
7294         * sysdeps/unix/sh/sysdep.S: New file.
7295         * sysdeps/unix/sh/sysdep.h: New file.
7296         * sysdeps/unix/sysv/linux/sh/Dist: New file.
7297         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
7298         * sysdeps/unix/sysv/linux/sh/Versions: New file.
7299         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
7300         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
7301         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
7302         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
7303         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
7304         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
7305         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
7306         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
7307         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
7308         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
7309         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
7310         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
7311         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
7312         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
7313         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
7314         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
7315         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
7316         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
7317         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
7318         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
7319         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
7320         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
7321         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
7322         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
7323         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
7324         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
7325         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
7326         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
7327         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
7328         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
7329         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
7330         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
7331         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
7332         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
7333         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
7334         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
7335         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
7336         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
7337         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
7338         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
7339         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7340         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
7341         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
7342         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
7343         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
7344         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7345         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
7346
7347 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7348
7349         * Rules (%.out): Define GCONV_PATH in the environment.
7350         * assert/Depend: New file.
7351         * iconvdata/Depend: New file.
7352         * intl/Depend: New file.
7353         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
7354         * intl/tst-gettext.sh: Likewise.
7355         * iconv/Makefile (routines): Add gconv_trans.
7356         * iconv/gconv_trans.c: New file.
7357         * iconv/gconv.h (struct __gconv_trans_data): New type.
7358         (__gconv_fct): New parameter with starting position in output buffer.
7359         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
7360         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
7361         (struct __gconv_step): Add new member __trans.
7362         * iconv/gconv_int.h: Pretty print prototypes.
7363         (gconv_transliterate): New prototype.
7364         (__BUILTIN_TRANS): Update for new conversion function interface.
7365         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
7366         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
7367         in names, find appropriate function, and install in the conversion
7368         steps it can be used.
7369         * iconv/skeleton.c: Add additional parameter for beginning of output
7370         buffer.  Change calls of downstream functions.
7371         * iconv/loop.c: Change loop function interface completely.  Pass in
7372         step and step_data structure.  Remove optimization for BODY with
7373         NEED_LENGTH_TEST == 0.
7374         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
7375         appropriate error handling code to use transliteration steps.  Remove
7376         optimization for BODY with NEED_LENGTH_TEST == 0.
7377         * iconvdata/8bit-gap.c: Likewise.
7378         * iconvdata/8bit-generic.c: Likewise.
7379         * iconvdata/ansi_x3.110.c: Likewise.
7380         * iconvdata/big5.c: Likewise.
7381         * iconvdata/big5hkscs.c: Likewise.
7382         * iconvdata/euc-cn.c: Likewise.
7383         * iconvdata/euc-jp.c: Likewise.
7384         * iconvdata/euc-kr.c: Likewise.
7385         * iconvdata/euc-tw.c: Likewise.
7386         * iconvdata/gbgbk.c: Likewise.
7387         * iconvdata/gbk.c: Likewise.
7388         * iconvdata/iso-2022-cn.c: Likewise.
7389         * iconvdata/iso-2022-jp.c: Likewise.
7390         * iconvdata/iso-2022-kr.c: Likewise.
7391         * iconvdata/iso646.c: Likewise.
7392         * iconvdata/iso8859-1.c: Likewise.
7393         * iconvdata/iso_6937-2.c: Likewise.
7394         * iconvdata/iso_6937.c: Likewise.
7395         * iconvdata/johab.c: Likewise.
7396         * iconvdata/sjis.c: Likewise.
7397         * iconvdata/t.61.c: Likewise.
7398         * iconvdata/uhc.c: Likewise.
7399         * iconvdata/unicode.c: Likewise.
7400         * iconvdata/utf-16.c: Likewise.
7401         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
7402         DL_CALL_FCT.
7403         * wcsmbs/btowc.c: Likewise.
7404         * wcsmbs/mbrtowc.c: Likewise.
7405         * wcsmbs/mbsnrtowcs.c: Likewise.
7406         * wcsmbs/mbsrtowcs.c: Likewise.
7407         * wcsmbs/wcrtomb.c: Likewise.
7408         * wcsmbs/wcsnrtombs.c: Likewise.
7409         * wcsmbs/wcsrtombs.c: Likewise.
7410         * wcsmbs/wctob.c: Likewise.
7411
7412 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7413
7414         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
7415         other header files.  Mention about 128-byte cache line sizes.
7416         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
7417         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
7418         for current calling sequence.
7419         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
7420
7421         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
7422         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7423
7424         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
7425         and setrlimit syscalls for backwards compatibility.
7426
7427 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7428
7429         * iconv/skeleton.c:  Rename converted written to correcter name
7430         irreversible.
7431         * iconv/gconv.c: Rename converted variable to correcter name
7432         irreversible.
7433         * iconv/gconv_int.h: Likewise.
7434         * iconv/gconv_simple.c: Likewise.
7435         * iconv/iconv.c: Likewise.
7436         * iconv/loop.c: Likewise.
7437         * iconvdata/8bit-gap.c: Likewise.
7438         * iconvdata/8bit-generic.c: Likewise.
7439         * iconvdata/ansi_x3.110.c: Likewise.
7440         * iconvdata/big5.c: Likewise.
7441         * iconvdata/big5hkscs.c: Likewise.
7442         * iconvdata/euc-cn.c: Likewise.
7443         * iconvdata/euc-jp.c: Likewise.
7444         * iconvdata/euc-kr.c: Likewise.
7445         * iconvdata/gbgbk.c: Likewise.
7446         * iconvdata/gbk.c: Likewise.
7447         * iconvdata/iso-2022-cn.c: Likewise.
7448         * iconvdata/iso-2022-jp.c: Likewise.
7449         * iconvdata/iso-2022-kr.c: Likewise.
7450         * iconvdata/iso646.c: Likewise.
7451         * iconvdata/iso8859-1.c: Likewise.
7452         * iconvdata/iso_6937-2.c: Likewise.
7453         * iconvdata/iso_6937.c: Likewise.
7454         * iconvdata/johab.c: Likewise.
7455         * iconvdata/sjis.c: Likewise.
7456         * iconvdata/t.61.c: Likewise.
7457         * iconvdata/uhc.c: Likewise.
7458         * iconvdata/unicode.c: Likewise.
7459         * iconvdata/utf-16.c: Likewise.
7460
7461         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
7462         __cmsg_data field with __extension__.
7463
7464 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
7465
7466         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
7467
7468 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7469
7470         * iconv/gconv_simple.c: Fix various small bugs in several
7471         functions.
7472
7473         * iconv/loop.c: Fix comment.
7474
7475 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
7476
7477         * elf/link.h: Remove libc internal declarations.
7478         * include/link.h: Move them here.
7479
7480 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7481
7482         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
7483         Patch by Dan Pop <Dan.Pop@cern.ch>.
7484
7485         Rewrite error message handling.
7486         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
7487         _dl_catch_error.
7488         * elf/dl-error (struct catch): Add objname member.
7489         (_dl_signal_error): Take new parameter with object name.  When
7490         passing message on simply store object name and duplicate error
7491         message.
7492         (_dl_catch_error): Take new parameter.  Store object name in the
7493         place pointed to.
7494         * include/dlfcn.h: Adjust _dl_catch_error prototype.
7495         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
7496         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
7497         (dlerror): Add objname to asprintf() parameters.
7498         (_dl_error_run): Pass new parameter to _dl_catch_error.
7499         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
7500         * elf/dl-open.c (_dl_open): Likewise.
7501         * elf/rtld.c (dl_main): Likewise.
7502         * elf/dl-close.c: Mark error messages with N_().
7503         * elf/dl-deps.c: Likewise.
7504         * elf/dl-error.c: Likewise.
7505         * elf/dl-load.c: Likewise.
7506         * elf/dl-open.c: Likewise.
7507         * elf/dl-reloc.c: Likewise.
7508         * elf/dl-support.c: Likewise.
7509         * elf/dl-sym.c: Likewise.
7510         * elf/dl-version.c: Likewise.
7511         * elf/dl-lookup.c: Add comments about problems with error message
7512         translations.
7513         * elf/dl-reloc.c: Likewise.
7514         * elf/dl-version.c: Likewise.
7515
7516 2000-06-09  H.J. Lu  <hjl@gnu.org>
7517
7518         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
7519         after freeing it.
7520
7521         * dlfcn/Makefile (distribute): Add failtestmod.c.
7522         (tests): Add failtest.
7523         Add rules to build and run failtest.
7524         * dlfcn/failtest.c: New file.
7525         * dlfcn/failtestmod.c: New file.
7526
7527 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
7528
7529         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
7530         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
7531         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
7532         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
7533         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
7534
7535 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7536
7537         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
7538         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
7539
7540 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7541             Ulrich Drepper  <drepper@redhat.com>
7542
7543         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
7544         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
7545         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
7546         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
7547         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
7548         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
7549
7550 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7551
7552         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
7553         to find correct mount point despite wrong information from the
7554         kernel.
7555
7556 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7557
7558         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
7559         the address of a symbol so function pointers are handled properly.
7560
7561 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7562
7563         * sysdeps/i386/Dist: Add bp-asm.h.
7564
7565         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
7566         defaultdir variable instead of "/var/shm" everywhere.
7567         (defaultdir): Change to /dev/shm/.
7568
7569 2000-06-08  Greg McGary  <greg@mcgary.org>
7570
7571         * sysdeps/i386/bp-asm.h: New file.
7572         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
7573         offsets.  Add ENTER/LEAVE macros for optionally maintaining
7574         frame-pointer chain when debugging.
7575         * sysdeps/i386/add_n.S: Likewise.
7576         * sysdeps/i386/addmul_1.S: Likewise.
7577         * sysdeps/i386/lshift.S: Likewise.
7578         * sysdeps/i386/memchr.S: Likewise.
7579         * sysdeps/i386/memcmp.S: Likewise.
7580         * sysdeps/i386/mul_1.S: Likewise.
7581         * sysdeps/i386/rawmemchr.S: Likewise.
7582         * sysdeps/i386/rshift.S: Likewise.
7583         * sysdeps/i386/stpcpy.S: Likewise.
7584         * sysdeps/i386/stpncpy.S: Likewise.
7585         * sysdeps/i386/strchr.S: Likewise.
7586         * sysdeps/i386/strchrnul.S: Likewise.
7587         * sysdeps/i386/strcspn.S: Likewise.
7588         * sysdeps/i386/strpbrk.S: Likewise.
7589         * sysdeps/i386/strrchr.S: Likewise.
7590         * sysdeps/i386/strspn.S: Likewise.
7591         * sysdeps/i386/strtok.S: Likewise.
7592         * sysdeps/i386/sub_n.S: Likewise.
7593         * sysdeps/i386/submul_1.S: Likewise.
7594         * sysdeps/i386/elf/setjmp.S: Likewise.
7595         * sysdeps/i386/i486/strcat.S: Likewise.
7596         * sysdeps/i386/i486/strlen.S: Likewise.
7597         * sysdeps/i386/i586/add_n.S: Likewise.
7598         * sysdeps/i386/i586/lshift.S: Likewise.
7599         * sysdeps/i386/i586/memcpy.S: Likewise.
7600         * sysdeps/i386/i586/memset.S: Likewise.
7601         * sysdeps/i386/i586/rshift.S: Likewise.
7602         * sysdeps/i386/i586/strchr.S: Likewise.
7603         * sysdeps/i386/i586/strcpy.S: Likewise.
7604         * sysdeps/i386/i586/strlen.S: Likewise.
7605         * sysdeps/i386/i586/sub_n.S: Likewise.
7606         * sysdeps/i386/i686/add_n.S: Likewise.
7607         * sysdeps/i386/i686/memcpy.S: Likewise.
7608         * sysdeps/i386/i686/mempcpy.S: Likewise.
7609         * sysdeps/i386/i686/memset.S: Likewise.
7610         * sysdeps/i386/i686/strcmp.S: Likewise.
7611
7612 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7613
7614         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
7615
7616         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
7617         256 and don't use OPEN_MAX.
7618
7619         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
7620         use it instead of LINK_MAX.
7621         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7622
7623 2000-06-08  Andreas Jaeger  <aj@suse.de>
7624
7625         * libio/genops.c (_IO_list_lock): Only compile body if we're
7626         thread safe.
7627         (_IO_list_unlock): Likewise.
7628         (_IO_list_resetlock): Likewise.
7629
7630 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7631
7632         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
7633         unless user defined it.
7634
7635         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
7636         if not defined by the user.
7637
7638         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
7639         * libio/iofwrite.c (_IO_fwrite): Likewise.
7640
7641         * time/time.h: Add missing __THROW for clock_getcpuclockid
7642         prototype.
7643
7644         * elf/Makefile (distribute): Add dl-dtprocnum.h.
7645         * include/elf.h: Include also <dl-dtprocnum.h>.
7646         * elf/dl-deps.c: Likewise.
7647         * elf/dl-lookup.c: Likewise.
7648         * elf/dl-runtime.c: Likewise.
7649         * elf/dl-version.c: Likewise.
7650         * elf/do-rel.h: Likewise.
7651         * elf/dynamic-link.h: Likewise.
7652         * elf/link.h: Likewise.
7653         * elf/rtld.c: Likewise.
7654         * sysdeps/generic/dl-dtprocnum.h: New file.
7655         * sysdeps/ia64/dl-dtprocnum.h: New file.
7656         * sysdeps/mips/dl-dtprocnum.h: New file.
7657         * sysdeps/sparc/dl-dtprocnum.h: New file.
7658
7659         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
7660
7661         * elf/do-lookup.h: Add some __builtin_expect.
7662
7663         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7664
7665         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7666         (_dl_dynamic_weak): New variable.
7667         * elf/dl-support.c: Likewise.
7668         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7669         * elf/do-lookup.h: If we find a weak definition treat it like a
7670         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7671         case treat it like before.
7672
7673         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7674         is in main program.
7675         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7676
7677         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7678         using l_map_start and l_map_end.
7679
7680         * elf/dl-version.c: Add __builtin_expect in many places.
7681
7682         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7683         Update.
7684
7685 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7686
7687         Lock for stdio stream list becomes global, for use in LinuxThreads.
7688
7689         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7690         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7691         _IO_list_resetlock): New interface for iterating global list of
7692         streams without accessing the _IO_list_all global variable,
7693         and for manipulating the lock which protects this list.
7694         * libio/libioP.h: Likewise.
7695         * libio/Version: Add entries for the new functions.
7696
7697         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7698         pointer to _IO_FILE.
7699
7700 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7701
7702         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7703         BIT() must actually be BITw().
7704
7705         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7706
7707         * locale/programs/charmap.c: Allow string arguments for
7708         code_set_name and repertoiremap.
7709
7710 2000-06-07  Andreas Jaeger  <aj@suse.de>
7711
7712         * elf/Makefile: Build ldconfig only when building shared libraries.
7713
7714 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7715
7716         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7717         __USE_ISOC99.
7718         (fdimf, __fdim, fdim): Likewise.
7719
7720 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7721
7722         * locale/findlocale.c: Add __builtin_expect in many places.
7723         * locale/loadlocale.c: Likewise.
7724
7725 2000-06-06  Greg McGary  <greg@mcgary.org>
7726
7727         * sysdeps/mips/elf/start.S: Trim redundant code.
7728
7729         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7730         Use C comments throughout.  Line up operands column with tabs.
7731         * sysdeps/powerpc/strchr.S: Likewise.
7732         * sysdeps/powerpc/strcmp.S: Likewise.
7733         * sysdeps/powerpc/strcpy.S: Likewise.
7734         * sysdeps/powerpc/strlen.S: Likewise.
7735
7736         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7737         Get low part of &__curbrk with @l.
7738
7739 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7740
7741         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7742         * iconvdata/unicode.c: Likewise.
7743         * iconvdata/uhc.c: Likewise.
7744         * iconvdata/t.61.c: Likewise.
7745         * iconvdata/sjis.c: Likewise.
7746         * iconvdata/johab.c: Likewise.
7747         * iconvdata/iso_6937.c: Likewise.
7748         * iconvdata/iso_6937-2.c: Likewise.
7749         * iconvdata/iso8859-1.c: Likewise.
7750         * iconvdata/iso646.c: Likewise.
7751         * iconvdata/iso-2022-kr.c: Likewise.
7752         * iconvdata/iso-2022-jp.c: Likewise.
7753         * iconvdata/iso-2022-cn.c: Likewise.
7754         * iconvdata/gbgbk.c: Likewise.
7755         * iconvdata/gbk.c: Likewise.
7756         * iconvdata/euc-kr.c: Likewise.
7757         * iconvdata/euc-jp.c: Likewise.
7758         * iconvdata/euc-cn.c: Likewise.
7759
7760 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7761
7762         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7763         * iconvdata/big5.c: Likewise.
7764         * iconvdata/ansi_x3.110.c: Likewise.
7765         * iconvdata/8bit-generic.c: Likewise.
7766         * iconvdata/8bit-gap.c: Likewise.
7767         * iconv/loop.c: Likewise.
7768         * iconv/gconv_db.c: Likewise.
7769         * iconv/gconv_dl.c: Likewise.
7770         * iconv/gconv_simple.c: Likewise.
7771         * iconv/skeleton.c: Likewise.
7772
7773         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7774         (struct __gconv_step_data): Rename __is_last to __flags.
7775         * iconv/gconv_close.c: Change all uses of __is_last.
7776         * iconv/skeleton.c: Likewise.
7777         * iconvdata/iso-2022-cn.c: Likewise.
7778         * iconvdata/iso-2022-jp.c: Likewise.
7779         * iconvdata/iso-2022-kr.c: Likewise.
7780         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7781         Recognize IGNORE error handling, set flag, and remove from name.
7782         * iconv/loop.c (ignore_errors_p): Define.
7783         Add flags parameter to both functions.
7784         * iconv/skeleton.c: Pass flags to all conversion functions.
7785         * iconv/gconv_simple.c: Add flags parameter to all functions.
7786         Don't return error for invald error if ignore flag is set.
7787         (ucs4_internal_loop_single): Add missing pointer increment.
7788         (internal_ucs4le_loop_single): Likewise.
7789         * iconv/iconv_prog.c: Implement handling of -c parameter.
7790         * iconvdata/8bit-gap.c: Don't return error for invald error if
7791         ignore flag is set.
7792         * iconvdata/8bit-generic.c: Likewise.
7793         * iconvdata/ansi_x3.110.c: Likewise.
7794         * iconvdata/big5.c: Likewise.
7795         * iconvdata/big5hkscs.c: Likewise.
7796         * iconvdata/euc-cn.c: Likewise.
7797         * iconvdata/euc-jp.c: Likewise.
7798         * iconvdata/euc-kr.c: Likewise.
7799         * iconvdata/gbgbk.c: Likewise.
7800         * iconvdata/gbk.c: Likewise.
7801         * iconvdata/iso-2022-cn.c: Likewise.
7802         * iconvdata/iso-2022-jp.c: Likewise.
7803         * iconvdata/iso-2022-kr.c: Likewise.
7804         * iconvdata/iso646.c: Likewise.
7805         * iconvdata/iso8859-1.c: Likewise.
7806         * iconvdata/iso_6937-2.c: Likewise.
7807         * iconvdata/iso_6937.c: Likewise.
7808         * iconvdata/johab.c: Likewise.
7809         * iconvdata/sjis.c: Likewise.
7810         * iconvdata/t.61.c: Likewise.
7811         * iconvdata/uhc.c: Likewise.
7812         * iconvdata/unicode.c: Likewise.
7813         * iconvdata/utf-16.c: Likewise.
7814         * libio/fileops.c: Likewise.
7815         * libio/iofwide.c: Likewise.
7816         * wcsmbs/btowc.c: Likewise.
7817         * wcsmbs/mbrtowc.c: Likewise.
7818         * wcsmbs/mbsnrtowcs.c: Likewise.
7819         * wcsmbs/mbsrtowcs.c: Likewise.
7820         * wcsmbs/wcrtomb.c: Likewise.
7821         * wcsmbs/wcsnrtombs.c: Likewise.
7822         * wcsmbs/wcsrtombs.c: Likewise.
7823         * wcsmbs/wctob.c: Likewise.
7824
7825         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7826         an error.
7827
7828 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7829
7830         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7831         counter for the object we are releasing, just decrement it.
7832         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7833
7834 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7835
7836         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7837         if -ffast-math.
7838
7839 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7840
7841         * iconvdata/big5hkscs.c: New file.
7842         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7843
7844         * iconvdata/gconv-modules: Add entry for new module.
7845         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7846         (distribute): Add big5hkscs.c.
7847
7848 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7849
7850         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7851         inlines to match prototypes in mathcalls.h.
7852         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7853         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7854         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7855         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7856
7857 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7858
7859         * elf/elf.h (SHT_SUNW_move): Define.
7860
7861         * elf/elf.h: Add more Solaris compatiblity definitions.
7862
7863 2000-06-03  Andreas Jaeger  <aj@suse.de>
7864
7865         * sysdeps/powerpc/dl-start.S: Close open comment.
7866
7867 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7868
7869         * inet/Versions: Fix typo in rresvport_af export.
7870
7871 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7872
7873         * math/tgmath.h: Pretty print.
7874
7875 2000-06-02  Andreas Jaeger  <aj@suse.de>
7876
7877         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7878         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7879
7880 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7881
7882         * elf/rtld.c (process_envvars): Test for = after variable name.
7883
7884 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7885
7886         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7887         have extra call to __gmon_start__, use the pointer we already have.
7888
7889         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7890         shifting.
7891
7892         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7893         binutils.  gas now emits a jump through the PLT instead of a
7894         relative jump if the jump target is an exported symbol.
7895
7896 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7897
7898         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7899
7900 2000-05-31  Andreas Jaeger  <aj@suse.de>
7901
7902         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7903         gregset_t.
7904
7905         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7906         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7907
7908         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7909         syscall.
7910         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7911
7912 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7915
7916         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7917         * locale/localeconv.c: Make function versioned (with same definition).
7918
7919         * elf/Makefile (modules-names): Strip before using it.
7920
7921 2000-05-30  Andreas Jaeger  <aj@suse.de>
7922
7923         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7924         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7925         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7926         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7927         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7928         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7929
7930 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7931
7932         * Makefile: Add GNU make magic.
7933
7934         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7935         Removed.
7936         * inet/rcmd.c: Remove __P.  Remove unused variables.
7937         (iruserfopen): Make first parameter const.
7938         (ruserok_sa): Return result of ruserok2_sa.
7939         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7940         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7941         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7942         (ruserpass): Check results of memory allocation.
7943         * include/netdb.h: Add prototype for ruserpass.
7944
7945 2000-05-29  Andreas Jaeger  <aj@suse.de>
7946
7947         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7948         for all platforms.
7949
7950 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7951
7952         * inet/rcmd.c (rresvport_af): Use correct port number.
7953
7954 2000-05-26  Andreas Schwab  <schwab@suse.de>
7955
7956         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7957         entries in all-sonames.
7958         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7959         preserving the old name if different for compatibility.
7960
7961 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7962
7963         * posix/Makefile (tests): Add tst-spawn.
7964         (tst-spawn-ARGS): New variable.
7965         * posix/tst-spawn.c: New file.
7966
7967         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7968         * posix/spawn_faction_adddup2.c: Likewise.
7969         * posix/spawn_faction_addopen.c: Likewise.
7970         * posix/spawni.c: Correctly test for success of dup2 calls.
7971
7972         * posix/tst-preadwrite.c: Check success of malloc call.
7973
7974 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7975
7976         * posix/Makefile (tests): Add tst-exec.
7977         (tst-exec-ARGS): New variable.
7978         * posix/tst-exec.c: New file.
7979
7980         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7981
7982 2000-05-04  Andreas Jaeger  <aj@suse.de>
7983
7984         * string/string.h: Remove __strdup prototype, it's not needed in
7985         this file anymore.
7986
7987 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7988
7989         * posix/Makefile (tests): Add tst-fork.
7990         * posix/tst-fork.c: New file.
7991
7992         * resolv/inet_pton.c: Loose __P.
7993
7994 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7995
7996         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7997         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7998         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7999         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
8000         _IO_CHECK_WIDE fails.
8001
8002 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8003
8004         * po/da.po: New file.
8005
8006         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
8007         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
8008
8009         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
8010         (Other iconv Implementations): Fix typo.
8011         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
8012
8013 2000-05-27  Andreas Jaeger  <aj@suse.de>
8014
8015         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
8016         normal version now.
8017         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
8018         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8019         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
8020         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8021         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
8022         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
8023
8024         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
8025         endianness to decide how to pass arguments.
8026         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
8027
8028         * elf/vismain.c: Use test-skeleton interface.
8029         (TEST_FUNCTION): New macro.
8030         (do_test): Renamed from main.
8031
8032 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
8033
8034         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
8035         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
8036
8037         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
8038         handling of AI_V4MAPPED flag.
8039
8040         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
8041         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
8042         perform lookup for T_A type and tell getanswer_r to convert the
8043         result with new argument.
8044         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
8045         Don't convert addresses from IPv4 to IPv6 here.
8046         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
8047         IPv6 is wanted.  Allow qtype and type from reply to disagree if
8048         IPv4 mapping has to be done.  Perform mappings if required by the
8049         caller and not if RES_USE_INET6 bit in _res.options is set.
8050         Add several __builtin_expect.
8051
8052 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
8053
8054         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
8055
8056         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
8057         NULL.
8058
8059         * posix/tst-preadwrite.c: Allow parallel execution of
8060         tst-preadwrite and tst-preadwrite64.
8061
8062         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
8063         * posix/tst-truncate.c: New file.
8064         * posix/tst-truncate64.c: New file.
8065
8066         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
8067         was switched.
8068
8069         * posix/Makefile (tests): Add tst-preadwrite64.
8070         * posix/tst-preadwrite.c: Alloc file being used also for testing
8071         pread64 and pwrite64.
8072         * posix/tst-preadwrite64.c: New file.
8073
8074 2000-05-26  Andreas Jaeger  <aj@suse.de>
8075
8076         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
8077         of arguments dependend on endianness.
8078         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
8079
8080         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
8081         normal version now.
8082         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
8083         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
8084         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8085         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8086
8087         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
8088         endianness to check how to pass argument.
8089         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
8090
8091         * elf/ldconfig.h: Update parameter list for process_elf_file.
8092
8093         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
8094         Add parameter file_length and pass it ot process_elf*file.
8095
8096         * sysdeps/generic/readelflib.c (check_ptr): New.
8097         (process_elf_file): Use check_ptr to check all accesses to the
8098         mmapped file. Add parameter file_length.
8099
8100         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
8101         library names.
8102
8103         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
8104         Closes PR libc/1573, reported by Bradley White
8105         <bww@laurelnetworks.com>.
8106
8107 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
8108
8109         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
8110         __FAST_MATH__ is defined.
8111
8112 2000-05-22  Andreas Jaeger  <aj@suse.de>
8113
8114         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
8115         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
8116
8117         * manual/math.texi (FP Function Optimizations): Document gcc
8118         -ffast-math behaviour with mathinlines.
8119
8120         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
8121         functions unless -ffast-math is given to gcc.
8122
8123 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
8124
8125         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
8126         __sincosl): Guard with __USE_GNU.
8127
8128 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
8129
8130         * csu/Makefile (routines): Add check_fds.
8131         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
8132         binaries.  Add various __builtin_expect.
8133         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
8134         * sysdeps/generic/check_fds.c: ...here.  New file.
8135
8136         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
8137         binaries if file /etc/suid-debug is available.
8138
8139         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
8140         and wcseqorder members.
8141         (struct locale_collate_t): Likewise.
8142         (collate_finish): Assign collation sequence value to each character.
8143         Create tables for output.
8144         (collate_output): Write out tables with collation sequence information.
8145         * locale/C-collate.c: Provide C locale data for collation sequence
8146         table.
8147         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
8148         _NL_COLLATE_COLLSEQWC.
8149         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
8150         _NL_COLLATE_COLLSEQWC.
8151         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
8152         include fnmatch_loop.c.
8153         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
8154         character is matched by range expression.  Use collation sequence
8155         table.  Outside glibc fall back on simple character value comparison.
8156
8157 2000-05-24  Andreas Jaeger  <aj@suse.de>
8158
8159         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
8160         words.
8161
8162         * intl/Makefile: Run gettext-test only if msgfmt is available.
8163
8164         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
8165         Define it for newer kernels.
8166
8167 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
8168
8169         * elf/dl-sym.c: Minor cleanups.
8170
8171         * configure.in: Add test for .protected.
8172         * config.make.in: Add have-protected variable.
8173         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
8174         (tests-vis-yes): Add vismain.
8175         (modules-names): Add $(modules-vis-$(have-protected)).
8176         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
8177         Add rules to generate and run vismain.
8178         * elf/vismain.c: New file.
8179         * elf/vismod1.c: New file.
8180         * elf/vismod2.c: New file.
8181         * elf/vismod3.c: New file.
8182
8183 2000-05-23  Andreas Jaeger  <aj@suse.de>
8184
8185         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
8186
8187         * manual/search.texi (Array Sort Function): Document that qsort is
8188         not necessarily in-place.
8189
8190         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8191         Closes PR libc/1731.
8192
8193         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
8194         * dirent/scandir64.c: Likewise.
8195         * pwd/getpw.c: Likewise.
8196         * stdlib/bsearch.c (bsearch): Likewise.
8197         * stdlib/tst-strtoll.c: Likewise.
8198         * localedata/collate-test.c: Likewise.
8199         * localedata/xfrm-test.c: Likewise.
8200         * posix/bsd-getpgrp.c: Likewise.
8201         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
8202         * sysdeps/generic/bits/siginfo.h: Likewise.
8203         * sysdeps/generic/bits/sockaddr.h: Likewise.
8204         * sysdeps/generic/sys/swap.h: Likewise.
8205         * sysdeps/generic/sys/sysinfo.h: Likewise.
8206         * sysdeps/generic/vfork.c: Likewise.
8207         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
8208         * sysdeps/mach/hurd/fdopen.c: Likewise.
8209         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
8210         * sysdeps/unix/sysv/linux/poll.c: Likewise.
8211         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8212         * sysdeps/unix/sysv/linux/writev.c: Likewise.
8213         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8214         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
8215         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
8216
8217         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
8218         * shadow/lckpwdf.c: Likewise.
8219         * stdlib/tst-strtol.c: Likewise.
8220         * sysdeps/generic/tcsetattr.c: Likewise.
8221         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8222         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8223
8224 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
8225
8226         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
8227         free it and set to (void *) -1.
8228
8229 2000-05-22  Jakub Jelinek <jakub@redhat.com>
8230
8231         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
8232         not the second character in the range.
8233         * stdio-common/tstscanf.c (main): Add testcase for the above.
8234         Reported by jik@kamens.brookline.ma.us.
8235
8236 2000-05-21  H.J. Lu  <hjl@gnu.org>
8237
8238         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
8239         with noexec and noplt parameter.
8240         (do_lookup): Likewise.
8241
8242         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
8243         do_lookup.  Support STV_PROTECTED.
8244         (_dl_lookup_symbol_skip): Likewise.
8245         (_dl_lookup_versioned_symbol): Likewise.
8246         (_dl_lookup_versioned_symbol_skip): Likewise.
8247
8248         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
8249
8250         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
8251
8252 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8253
8254         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
8255         * sysdeps/i386/bits/huge_val.h: Likewise.
8256         * sysdeps/ieee754/bits/huge_val.h: Likewise.
8257         * sysdeps/m68k/bits/huge_val.h: Likewise.
8258         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
8259         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
8260
8261 2000-05-22  Andreas Jaeger  <aj@suse.de>
8262
8263         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
8264         change in iconv.h.
8265
8266 2000-05-19  Andreas Jaeger  <aj@suse.de>
8267
8268         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
8269         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
8270         breaks compilation without linuxthreads.
8271
8272 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8273
8274         * sysdeps/ia64/memccpy.S: New file.
8275         * sysdeps/ia64/memchr.S: New file.
8276         * sysdeps/ia64/memcmp.S: New file.
8277         * sysdeps/ia64/memcpy.S: New file.
8278         * sysdeps/ia64/memmove.S: New file.
8279         * sysdeps/ia64/memset.S: New file.
8280         * sysdeps/ia64/strcat.S: New file.
8281         * sysdeps/ia64/strchr.S: New file.
8282         * sysdeps/ia64/strcmp.S: New file.
8283         * sysdeps/ia64/strcpy.S: New file.
8284         * sysdeps/ia64/strlen.S: New file.
8285         * sysdeps/ia64/strncmp.S: New file.
8286         * sysdeps/ia64/strncpy.S: New file.
8287         * sysdeps/ia64/softpipe.h: New file.
8288         Patches by Dan Pop <Dan.Pop@cern.ch>.
8289
8290         * manual/memory.texi: Document memory handling functions (mlock,
8291         munlock, mlockall, munlockall, brk, and sbrk)
8292         * manual/time.texi: Document timespec and friends.
8293         * manual/conf.texi: Fix references.
8294         * manual/ctype.texi: Likewise.
8295         * manual/errno.texi: Likewise.
8296         * manual/intro.texi: Likewise.
8297         * manual/locale.texi: Likewise.
8298         * manual/sysinfo.texi: Likewise.
8299         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8300
8301 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
8302
8303         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
8304         * sysdeps/ia64/dl-lookupcfg.h: ...here.
8305
8306 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8307
8308         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
8309         dxfer_direction.
8310
8311 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8312
8313         * locale/locale.h (struct lconv): Add new elements from ISO C99.
8314         * locale/localeconv.c: Initialize new elements from ISO C99.
8315         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
8316         new standard elements.
8317         * locale/categories.def: Adjust accordingly.
8318
8319         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
8320         * iconv/iconv.c: Likewise.
8321         * conform/data/iconv.h-data: Likewise.
8322         * iconv/iconv_prog.c (process_block): Remove const from second
8323         parameter.
8324         (main): Remove const from addr definition.
8325         * manual/charset.texi (Generic Conversion Interface): Remove from
8326         inbuf parameter of iconv.
8327
8328         * intl/dcigettext.c: Fix typo in comment.
8329
8330 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
8331
8332         * resolv/res_libc.c (_res): Initialize _sock to -1.
8333
8334 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
8335
8336         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
8337         (fopencookie@@GLIBC_2.2): New.
8338         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
8339         (fopencookie@GLIBC_2.0): New.
8340         * libio/Versions: Add fopencookie to GLIBC_2.2.
8341
8342 2000-05-18  Andreas Jaeger  <aj@suse.de>
8343
8344         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8345         Closes PR libc/1731.
8346
8347         * manual/arith.texi (Parsing of Integers): Fix typo.
8348         Closes PR libc/1744, reported by blp@gnu.org.
8349
8350 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8351
8352         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
8353         __extension__ to hexadecimal floating constant notation.
8354         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8355         Likewise.
8356         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
8357         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8358         Likewise.
8359         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8360         HUGE_VALL): Likewise.
8361         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8362         HUGE_VALL): Likewise.
8363         (HUGE_VALL): Set to HUGE_VAL on sparc32.
8364
8365 2000-05-17  Andreas Jaeger  <aj@suse.de>
8366
8367         * string/envz.h: Add pure attributes if possible.
8368
8369         * string/argz.h: argz_count is a pure function.
8370
8371         * string/strings.h: Add pure and const attributes if possible.
8372
8373         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
8374         possibly searching through the whole memory.
8375         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
8376
8377 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8378
8379         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
8380         not yet defined.
8381         (_dl_cache_check_flags): Likewise.
8382         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
8383         dl-cache.h.
8384
8385 2000-05-17  Andreas Jaeger  <aj@suse.de>
8386
8387         * manual/creature.texi (Feature Test Macros): Remove paragraph
8388         since the description is wrong.
8389         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
8390
8391         * scripts/config.sub: New version.
8392         * scripts/config.guess: Likewise.
8393         * manual/texinfo.tex: Likewise.
8394
8395         * time/test_time.args: Removed.
8396         * time/Makefile (test_time-ARGS): Added contents here instead.
8397
8398         * posix/tstgetopt.args: Removed.
8399         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
8400
8401         * Rules: Allow arguments for test files to be specified in
8402         Makefile with testname-ARGS; remove rules with .args in it.
8403
8404         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
8405         remove old bogus rule for opendir-tst1.args.
8406
8407         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
8408
8409         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
8410         into objdir.  This allows a readonly sourcetree.
8411         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
8412
8413 2000-05-16  Andreas Jaeger  <aj@suse.de>,
8414             David Huggins-Daines <dhd@linuxcare.com>
8415
8416         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
8417         cache_data in case of only new cache format correctly.
8418
8419         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
8420         cache_file_new.
8421
8422         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
8423         struct cache_file_new.
8424
8425         * elf/cache.c (save_cache): Fix str_offset if only new cache is
8426         present.
8427
8428         * elf/cache.c (save_cache): Align struct new_file_cache.
8429         (print_cache): Likewise.
8430
8431 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
8432
8433         * elf/soinit.c (__libc_global_ctors): Move
8434         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
8435         * resolv/resolv.h (__res_state): Added __attribute__((const)).
8436         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
8437         variable, don't define it to __res_state call.
8438
8439 2000-05-13  Andreas Jaeger  <aj@suse.de>
8440
8441         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
8442         Linux 2.3.99pre7.
8443         (AF_PPPOX): Likewise.
8444         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
8445         (AF_PPPOX): Likewise.
8446
8447 2000-05-12  Andreas Jaeger  <aj@suse.de>
8448
8449         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
8450         Reported by tmoestl@gmx.net, closes PR libc/1732.
8451
8452 2000-05-11  Jan Hubicka  <jh@suse.cz>
8453
8454         * misc/sys/cdefs.h: Add support for pure attribute.
8455
8456         * include/string.h: Add __attribute_pure__ to various functions.
8457         * string/string.h: Likewise.
8458
8459 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8460
8461         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
8462         argument.
8463         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8464         R_SPARC_UA64.
8465         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
8466
8467 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8468
8469         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
8470         at proper place.  Compute the high nibble correctly.
8471
8472 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
8473
8474         * elf/ldconfig.c: Include elf.h.
8475
8476         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
8477         (_dl_vsym): Likewise.
8478         Reported by Owen Taylor <otaylor@redhat.com>.
8479
8480         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
8481         always.
8482
8483 2000-05-08  Andreas Jaeger  <aj@suse.de>
8484
8485         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
8486
8487         * intl/bindtextdom.c (set_binding_values): Add prototype.
8488
8489 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
8492         call to elf_machine_fixup_plt.
8493         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8494         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8495
8496 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8497
8498         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
8499         they are not dlclose'd from underneath us.
8500
8501 2000-05-08  Andreas Schwab  <schwab@suse.de>
8502
8503         * posix/execle.c: Fix size parameter of memcpy.
8504
8505 2000-05-08  Andreas Schwab  <schwab@suse.de>
8506
8507         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
8508         getpagesize syscall if available.
8509
8510 2000-05-08  Andreas Jaeger  <aj@suse.de>
8511
8512         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
8513         set errno.
8514
8515 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8516
8517         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
8518         sizeof(struct link_map *) chunks, not in bytes.
8519
8520 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8521
8522         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
8523         only needed for locale.
8524         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
8525         It's only needed for catgets.
8526         Patches by Greg McGary <gkm@eng.ascend.com>.
8527
8528 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
8529
8530         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
8531         Remove duplicate <errno.h> include.  Remove inclusion of
8532         <libintl.h> and "nsswitch.h".
8533         (set_cloexec_flag): New function, broken out of dbopen.
8534         (dbopen): Changed return type to `enum
8535         nss_status'.  Mostly rewritten to make sure that we do not report
8536         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
8537         (internal_setent): Change return type to nss_status.
8538         Document, and make sure that the function
8539         behaves accordingly.  Make dynamically loading the database
8540         library really thread-safe and return NSS_STATUS_UNAVAIL if it
8541         failed.
8542         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
8543         unecessary casts.
8544         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
8545         documentation.
8546         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
8547         c_get function member.
8548         * nss/nss_db/nss_db.h: Add and tweak some comments.
8549         (DBT): Move typedef before NSS_DBC typedef.
8550         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
8551
8552 2000-05-07  H.J. Lu  <hjl@gnu.org>
8553
8554         * csu/initfini.c: Moved to ....
8555         * sysdeps/generic/initfini.c: ...here.
8556
8557         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
8558
8559 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8560
8561         * manual/resource.texi: Document POSIX scheduling functions.
8562         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8563
8564         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
8565         reading anything.  Reported by Andries.Brouwer@cwi.nl.
8566
8567         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
8568         for x since promotion in comparison might leads to unexpected
8569         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
8570
8571         * iconv/Makefile (tests): Add tst-iconv1.
8572         * iconv/tst-iconv1.c: New file.
8573         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
8574         empty input buffer over full output buffer.
8575         (ucs4_internal_loop): Likewise.
8576         (ucs4_internal_loop_unaligned): Likewise.
8577         (internal_ucs4le_loop): Likewise.
8578         (internal_ucs4le_loop_unaligned): Likewise.
8579         (ucs4le_internal_loop): Likewise.
8580         (ucs4le_internal_loop_unaligned): Likewise.
8581         Reported by yaoz@nih.gov.
8582
8583 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8584
8585         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
8586         returned != __GCONV_OK, there is nothing to clean up.
8587
8588 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8589
8590         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
8591         OUTPUT_CHARSET environment variables.
8592
8593 2000-05-06  Andreas Jaeger  <aj@suse.de>
8594
8595         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
8596         (struct cache_file_new): New.
8597         (struct file_entry): New (moved from cache.c).
8598         (struct cache_file): New (moved from cache.c).
8599
8600         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
8601         from _dl_load_cache_lookup.
8602         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
8603         the different cache formats.
8604         New variable cache_new for new format.
8605
8606         * elf/ldconfig.h: Change according to changes in cache.c and
8607         ldconfig.c; remove cache_libcmp; add opt_format.
8608
8609         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
8610         stuff that's defined in those headers.
8611         Add hwcap to struct lib_entry.
8612         (opt_format): New variable to select cache format.
8613         (options): Add format parameter.
8614         (is_hwcap): New function.
8615         (path_hwcap): New function.
8616         (parse_opt): Handle new format parameter.
8617         (search_dir): Handle hwcap, search also subdirectories with hwcap.
8618
8619         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
8620         ldconfig is part of glibc.
8621         Include dl-cache.h and remove stuff that's defined there.
8622         (struct cache_entry): Add new member hwcap.
8623         (print_entry): Print hwcap, cleanup a bit.
8624         (print_cache): Print new and old formats.
8625         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
8626         (save_cache): Save new and old formats.
8627         (add_to_cache): Handle hwcap.
8628
8629         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
8630         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
8631         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
8632         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
8633         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
8634         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
8635
8636 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8637
8638         * intl/dcigettext.c (alignof): New macro.
8639         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
8640         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
8641         freemem_size to 0.
8642
8643 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8644
8645         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
8646         return value.
8647
8648 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8649
8650         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
8651         (mempcpy): Correct typo is parameter list.
8652
8653 2000-05-06  Andreas Jaeger  <aj@suse.de>
8654
8655         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
8656         functions unless -ffast-math is given to gcc.
8657
8658 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8659
8660         * po/ko.po: Update from translation team.
8661
8662 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8663
8664         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8665         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8666         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8667         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8668         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8669         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8670
8671         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8672         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8673         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8674
8675         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8676         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8677         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8678         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8679
8680         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8681         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8682
8683 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8684
8685         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8686         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8687
8688         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8689         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8690
8691         * sysdeps/ia64/Implies: New file.
8692         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8693         * sysdeps/ia64/Makefile: New file.
8694         * sysdeps/ia64/gmp-mparam.h: New file,
8695
8696         * sysdeps/ia64/elf/start.S: New file.
8697
8698         * sysdeps/ia64/bits/fenv.h: New file.
8699
8700 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8701
8702         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8703
8704 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8705
8706         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8707         ia64 has 64 bit .hash entries just as the Alpha.
8708
8709 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8710
8711         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8712
8713 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8714
8715         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8716         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8717         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8718         * sysdeps/ia64/fpu/fegetenv.c: New file.
8719         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8720         * sysdeps/ia64/fpu/fegetround.c: New file.
8721         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8722         * sysdeps/ia64/fpu/fesetenv.c: New file.
8723         * sysdeps/ia64/fpu/fesetround.c: New file.
8724         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8725         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8726         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8727         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8728         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8729
8730 2000-05-05  Andreas Jaeger  <aj@suse.de>
8731
8732         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8733
8734         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8735         (_dl_string_hwcap): New, does nothing.
8736
8737         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8738         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8739         (_dl_string_hwcap): New function, converts from string to hwcap
8740         encoding.
8741         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8742         (_DL_HWCAP_COUNT): New.
8743         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8744         (_dl_string_hwcap): New function, converts from string to hwcap
8745         encoding.
8746         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8747         (_DL_HWCAP_COUNT): New.
8748         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8749         (_dl_string_hwcap): New function, converts from string to hwcap
8750         encoding.
8751
8752 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8753
8754         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8755         * sysdeps/ia64/Dist: New file.
8756
8757         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8758         parameter to mprotect and for variable assignments.
8759
8760 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8761
8762         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8763         validity of map before dereferencing it.
8764
8765         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8766
8767 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8768
8769         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8770         lookup to the arguments to elf_machine_fixup_plt().
8771
8772         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8773         of the symbol being resolved to input argument list and make the
8774         function return the pointer to the reloc.
8775
8776         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8777         return valuie to lookup_t and return the value.
8778         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8779         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8780         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8781         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8782         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8783         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8784
8785         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8786         Make it an inline function returning value after calling
8787         __elf_machine_fixup_plt().
8788
8789         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8790         symbol address.
8791
8792         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8793         obtain the symbol address.
8794
8795         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8796         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8797
8798         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8799         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8800         inline on non ia64.
8801
8802 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8803
8804         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8805         symbol address of an object.
8806
8807         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8808         the symbol address of an object.
8809
8810         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8811         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8812         (_dl_lookup_symbol_skip): Likewise.
8813         (_dl_lookup_versioned_symbol): Likewise.
8814         (_dl_lookup_versioned_symbol_skip): Likewise.
8815
8816 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8817
8818         * elf/rtld.c (_dl_start): Get the function pointer return address
8819         via _dl_start_address for architectures that need a function
8820         pointer descriptor rather than just a pointer (ia64).
8821
8822         * sysdeps/generic/dl-lookupcfg.h: New file.
8823         * sysdeps/ia64/dl-lookupcfg.h: New file.
8824         * sysdeps/ia64/dl-machine.h: New file.
8825         * sysdeps/ia64/dl-symaddr.c: New file.
8826         * sysdeps/ia64/dl-fptr.c: New file.
8827
8828         * elf/elf.h: Add IA-64 specific definitions.
8829
8830 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8831
8832         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8833         end of enum.
8834
8835 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8836
8837         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8838         happy.
8839
8840 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8841
8842         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8843         symbol.  Call _dl_init rather than the old way.
8844
8845 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8846
8847         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8848         test for pointer in range of DSO address space.
8849
8850 2000-05-04  Andreas Jaeger  <aj@suse.de>
8851
8852         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8853
8854 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8855
8856         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8857         calls of _nl_make_l10nflist.
8858
8859         * libio/stdio.h: Make fseeko and ftello prototypes available is
8860         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8861
8862         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8863         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8864
8865 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8866
8867         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8868         before calling tfind.
8869
8870 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8871
8872         * resolv/resolv.h (res_querydomain): Remove redefinition to
8873         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8874
8875 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8876
8877         * po/gl.po: Update from translation team.
8878
8879         * manual/intro.texi (Program Basics): Change section title.
8880         * manual/process.texi: Fix reference.
8881         (Executing a File): Add reference exec in other section.
8882         * manual/signal.texi: Fix reference.
8883         * manual/startup.texi: Document syscall function.
8884         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8885
8886 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8887
8888         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8889         * intl/bindtextdom.c (set_binding_values): New function.
8890         (bindtextdomain): Call it.
8891         (bind_textdomain_codeset): New function.
8892         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8893         (free_mem): Free each binding's codeset.
8894         * intl/gettextP.h (struct binding): Add codeset field.
8895         (_nl_find_domain): Add domainbinding argument.
8896         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8897         Pass it to _nl_make_l10nflist.
8898         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8899         (_nl_make_l10nflist): Add domainbinding argument.
8900         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8901         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8902         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8903         locale_charset().
8904         * manual/message.texi: New node "Charset conversion in gettext".
8905
8906 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8907
8908         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8909         appropriate.  Handle possible __read error.
8910
8911 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8912
8913         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8914         compiler builtin.
8915         * intl/loadinfo.h (__builtin_expect): Likewise.
8916         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8917         __builtin_expect where appropriate.
8918         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8919         * intl/localealias.c (extend_alias_table): Return an error indicator.
8920         (read_alias_file): Bail out if extend_alias_table fails.
8921
8922 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8923
8924         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8925         * intl/localealias.c: Likewise.
8926
8927 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8928
8929         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8930         Initialize domain->plural and domain->nplurals even if there is no
8931         nullentry.
8932
8933 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8934
8935         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8936         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8937         In case of failure, goto converted.
8938
8939 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8940
8941         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8942         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8943         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8944         __gconv_open.
8945
8946 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8947
8948         * intl/dcigettext.c (transcmp): Compare the domains as well.
8949         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8950         not before.
8951         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8952         <errno.h>.
8953
8954 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8955
8956         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8957         Reported by Bruno Haible.
8958
8959 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8960
8961         * manual/arith.texi: Remove @w from @itemize.
8962
8963 2000-05-02  Andreas Jaeger  <aj@suse.de>
8964
8965         * conform/data/tar.h-data: Add some checks for specific values.
8966
8967         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8968         and RAND_MAX.
8969
8970         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8971         FOPEN_MAX.
8972
8973         * conform/data/netinet/in.h-data: Add exact checks for the values
8974         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8975
8976         * conform/data/float.h-data: Add some minimal values.
8977
8978         * conform/conformtest.pl: Test for macros with string constants,
8979         check for minimum and maximum values.
8980         Add limits.h to headers.
8981
8982         * conform/data/cpio.h-data: Test for value of MAGIC.
8983
8984         * conform/data/limits.h-data: New file.
8985
8986 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8987
8988         * math/Makefile (headers): Add bits/fenvinline.h.
8989
8990 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8991
8992         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8993         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8994
8995         * posix/Versions: Change posix_spawnattr_getdefault and
8996         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8997         and posix_spawnattr_setsigdefault respectively.
8998         * posix/spawn.h: Likewise.
8999         * posix/spawnattr_getdefault.h: Likewise.
9000         * posix/spawnattr_setdefault.h: Likewise.
9001         * conform/data/spawn.h-data: Likewise.
9002
9003 2000-05-01  Andreas Jaeger  <aj@suse.de>
9004
9005         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
9006
9007 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9008
9009         * manual/sysinfo.texi: Document getdomainname, setdomainname
9010         and sysctl.
9011         * manual/string.texi: Fix typo.
9012         * manual/terminal.texi: Document gtty and stty.
9013         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9014
9015 2000-04-30  Andreas Jaeger  <aj@suse.de>
9016
9017         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
9018         accordance with Austin Draft.
9019
9020 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9021
9022         * catgets/gencat.c (read_input_file): Use isblank and not isspace
9023         to recognize second character in comment line.
9024
9025         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
9026         ENOBUFS if we are out of memory.
9027
9028         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
9029         available if __USE_XOPEN2K.
9030         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9031         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9032         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9033         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9034         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9035         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9036         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
9037         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9038
9039 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9040
9041         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
9042         Recognize option -s, -c, and -l.
9043
9044 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
9045
9046         * nscd/nscd.c: Start new session for nscd, drop privilegs
9047         to configured user if requested and no -S parameter are used.
9048         * nscd/nscd.conf: Add new option "server-user".
9049         * nscd/nscd_conf.c: Add support for new "server-user" option.
9050         * nscd/nscd.h: Add declaration for server_user variable.
9051         Based on patch by Chris Wing <wingc@engin.umich.edu>
9052
9053 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9054
9055         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
9056         that changing the __restore and __restore_rt signal return code
9057         will break GDB.
9058
9059 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9060
9061         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
9062         <sys/user.h>.
9063
9064 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9065
9066         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
9067
9068 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
9071         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
9072         arpa/inet.h.
9073         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
9074         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
9075         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
9076         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
9077         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
9078         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
9079         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
9080         posix_fallocate, and posix_madvise.
9081         * conform/data/netdb.h-data: New file.
9082         * conform/data/pthread.h-data: Add pthread_barrier_t,
9083         pthread_barrierattr_t, pthread_barrier_destroy,
9084         pthread_barrier_init, pthread_barrier_wait,
9085         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
9086         pthread_barrierattr_init, pthread_barrierattr_setpshared,
9087         pthread_condattr_getclock, pthread_condattr_setclock,
9088         pthread_getcpuclockid, pthread_mutex_timedlock,
9089         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9090         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
9091         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
9092         * conform/data/sched.h-data: Add sched_ss_low_priority,
9093         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
9094         SCHED_SPORADIC.
9095         * conform/data/semaphore.h-data: Add sem_timedwait.
9096         * conform/data/signal.h-data: Add SIGIO.
9097         * conform/data/spawn.h-data: New file.
9098         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
9099         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
9100         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
9101         Fix typo in gmtime_r definition.
9102         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
9103         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
9104         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
9105         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
9106         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
9107         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
9108         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
9109         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
9110         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
9111         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
9112         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
9113         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
9114         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
9115         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
9116         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
9117         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
9118         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
9119         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
9120         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
9121         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
9122         typo in off_t definition.
9123         * conform/data/net/if.h-data: New file.
9124         * conform/data/netinet/in.h-data: New file.
9125         * conform/data/netinet/tcp.h-data: New file.
9126         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
9127         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
9128         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
9129         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
9130         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
9131         and posix_typed_mem_open.
9132         * conform/data/sys/socket.h-data: New file.
9133         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
9134         * conform/data/sys/types.h-data: Add pthread_barrier_t,
9135         pthread_barrierattr_t, and pthread_spinlock_t.
9136         * conform/data/sys/un.h-data: New file.
9137         * conform/data/sys/utsname.h-data: New file.
9138
9139         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
9140         parameter.
9141         * inet/gethstbyad.c (gethostbyname): Likewise.
9142         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
9143         * inet/getipnodebyad.c (getipnodebyad): Likewise.
9144         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
9145         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
9146         Likewise.
9147         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
9148         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
9149         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
9150         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
9151         * resolv/gethnamaddr.c (gethostbyname): Likewise.
9152         * resolv/netdb.h (struct hostent): Fix type of h_length member.
9153         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
9154         and second parameter.
9155
9156         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
9157         == NULL.
9158
9159 2000-04-29  Andreas Jaeger  <aj@suse.de>
9160
9161         * conform/data/arpa/inet.h-data: New file.
9162
9163 2000-04-28  Geoff Clare <gwc@unisoft.com>
9164
9165         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
9166         path passed to ftw() or nftw() is an empty string.
9167         Closes PR libc/1710.
9168
9169 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9170
9171         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
9172         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
9173         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
9174         * localedata/tst-mbswcs4.c: New file.
9175         * localedata/tst-mbswcs5.c: New file.
9176
9177         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
9178         == NULL.  Little optimization.
9179
9180         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
9181         DT_PREINIT_ARRAYSZ).
9182         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
9183
9184         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
9185         overflows in conversion from ASCII.
9186
9187 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9188
9189         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
9190         * Makerules (full_config_sysdirs): Likewise.
9191         * MakeTAGS (full_config_sysdirs): Likewise.
9192
9193 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9194
9195         * .cvsignore: Remove linuxthreads.
9196         * po/.cvsignore: Remove *.pot.
9197         * posix/glob/.cvsignore: Removed.
9198         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
9199
9200 2000-04-25  Andreas Jaeger  <aj@suse.de>
9201
9202         * conform/Makefile (distribute): Also distribute contents of
9203         subdirectories.
9204
9205         * Makerules (no_deps): Remove abi-versions.h.
9206
9207         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
9208
9209 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9210
9211         * sysdeps/sparc/sparc64/elf/Dist: Remove.
9212         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
9213         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
9214         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
9215         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
9216         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
9217         objects.
9218
9219 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
9220
9221         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
9222
9223 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9224
9225         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
9226         * intl/l10nflist.c: Likewise.
9227
9228 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9229
9230         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
9231         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
9232         * intl/textdomain.c [!_LIBC]: Likewise.
9233         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
9234         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
9235         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
9236         syntax error.
9237
9238 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9239
9240         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
9241         character set conversion also in the case the translation was found
9242         after a hash collision or through binary search.  Store the maximum
9243         index together with the converted message.  Use iconv() when available.
9244         In case of out of memory during conversion, return the unconverted
9245         translated string, not NULL.
9246
9247 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9248
9249         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
9250         to avoid name clashes with the ia32 linker.
9251
9252 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9253
9254         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
9255         handling.
9256
9257 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9258
9259         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
9260         strtoumax, strfry, and memfrob.
9261         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
9262         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9263
9264         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
9265         if this function is available.
9266
9267         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
9268         all values.
9269
9270 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
9271
9272         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
9273
9274 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9275
9276         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
9277         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
9278         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
9279         * localedata/tst-mbswcs3.c: New file.
9280
9281 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
9282
9283         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
9284         characters.  Don't handle incomplete characters as errors.
9285         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
9286         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
9287         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
9288         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
9289         * localedata/tst-mbswcs2.c: New file.
9290
9291         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
9292         stored character in state in UNPACK_BYTES macro.
9293         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
9294         test for available characters, handle result of BODY code correctly.
9295         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
9296         (distribute): Add tst-mbswcs.sh.
9297         Add rule to run tst-mbswcs.sh.
9298         * localedata/tst-mbswcs.sh: New file.
9299         * localedata/tst-mbswcs1.c: New file.
9300
9301 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9302
9303         * nis/nis_callback.c (__nis_create_callback): Do failed memory
9304         allocation fixups centrally, fix __builtin_expect call, return NULL
9305         on failure, not NIS_NOMEMORY.
9306
9307 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
9308
9309         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
9310
9311         * intl/loadinfo.h (internal_function): Define if not already defined.
9312
9313 2000-04-27  Andreas Jaeger  <aj@suse.de>
9314
9315         * intl/libintl.h: Fix typo, reported by Bruno Haible
9316         <haible@clisp.cons.org>.
9317
9318 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
9319
9320         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
9321         setting the state to GMON_PROF_BUSY.
9322
9323 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
9324
9325         * elf/dl-profile.c (_dl_start_profile): define all variables which
9326         do not have to be global as local variables.
9327
9328         * nis/nis_callback.c (__nis_create_callback): Partially undo last
9329         patch.  Keep needed tests for failed memory allocation.
9330
9331         * elf/dl-reloc.c (_dl_relocate_object): Add one more
9332         __builtin_expect saying that we don't normally expect to profile.
9333
9334         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
9335         __builtin_expect where desirable.
9336
9337 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9338
9339         * manual/Makefile (chapters): Add syslog.
9340         * manual/syslog.texi: New file.
9341         * manual/math.texi: Fix references.
9342         * manual/terminal.texi: Likewise.
9343         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9344
9345 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
9346
9347         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
9348         stdlib.h was not included or __USE_XOPEN not defined.
9349
9350 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9351
9352         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
9353         Patch by Zack Weinberg <zack@wolery.cumb.org>.
9354
9355 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
9356
9357         * manual/examples/subopt.c (mount_opts): Add missing terminating
9358         entry.
9359         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
9360
9361         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
9362         * libio/ftello.c: Likewise.
9363         * libio/ftello64.c: Likewise.
9364         * libio/ioftell.c: Likewise.
9365         * sysdeps/generic/memrchr.c: Likewise.
9366         * sysdeps/posix/libc_fatal.c: Likewise.
9367         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9368         * misc/fstab.c: Include <string.h> for strcmp prototype.
9369         * sysdeps/generic/ldsodefs.h: Likewise.
9370         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9371         Patch by Kurt Roeckx <Q@ping.be>.
9372
9373         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
9374         Remove db-open.  Change all uses.
9375         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
9376
9377 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9378
9379         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
9380         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
9381         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
9382         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
9383         with .set noat/at to shut up warnings.
9384         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
9385         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
9386         compilation if __NR_pciconfig_iobase is not defined.
9387         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
9388         Add alias.
9389
9390 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9391
9392         * manual/sysinfo.texi: Fix typo.
9393         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
9394         Replace "high precision time" with "high accuracy clock".
9395         Fix language.
9396         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9397
9398         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
9399         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
9400         instead of malloc.
9401         * nis/nis_subr.c: Use __builtin_expect.
9402         * nis/ypclnt.c: Likewise.
9403         * nis/nis_getservlist.c: Likewise.
9404         * nis/nis_creategroup.c: Likewise.
9405
9406         * nis/nis_callback.c (__nis_create_callback): Check result of
9407         memory allocation.  Fix memory leaks.  Use __builtin_expect.
9408         (__nis_destroy_callback): Fix memory leaks.
9409
9410 2000-04-21  Andreas Jaeger  <aj@suse.de>
9411
9412         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
9413         * sysdeps/mips/mips64/add_n.S: Likewise.
9414         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9415         * sysdeps/mips/mips64/lshift.S: Likewise.
9416         * sysdeps/mips/mips64/mul_1.S: Likewise.
9417         * sysdeps/mips/mips64/rshift.S: Likewise.
9418         * sysdeps/mips/mips64/setjmp.S: Likewise.
9419         * sysdeps/mips/mips64/sub_n.S: Likewise.
9420         * sysdeps/mips/mips64/submul_1.S: Likewise
9421         * sysdeps/unix/mips/sysdep.S: Likewise.
9422
9423         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
9424         and update comment.  The strtab from _dl_relocate_object can be
9425         used.
9426
9427 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9428
9429         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
9430         * iconv/iconv_close.c (iconv_close): Likewise.
9431         * iconv/iconv_open.c (iconv_open): Likewise.
9432
9433         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
9434         __builtin_expect where useful.
9435
9436         * grp/initgroups.c (initgroups): Test for result of memory
9437         allocation and punt if it fails.
9438
9439         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
9440         * grp/fgetgrent.c (fgetfrent): Likewise.
9441         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
9442
9443 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9444
9445         * libio/vasprintf.c: Include string.h to get memcpy prototype.
9446
9447 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9448
9449         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
9450         don't search for NUL byte to decrement counter.
9451         Reported by Ulrich.Brink@sap.com.
9452
9453         * iconv/gconv_simple.c: Define separate functions to convert from
9454         UCS4/UCS4-LE to the internal encoding.
9455         * iconv/gconv_builtin.h: Use separate functions to convert from
9456         UCS4/UCS4-LE to the internal encoding.
9457         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
9458         __gconv_transform_ucs4le_internal.
9459
9460         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
9461         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
9462
9463         * iconv/skeleton.c: Add some more __builtin_expect.
9464         * iconv/loop.c: Likewise.
9465
9466 2000-03-08  H.J. Lu  <hjl@gnu.org>
9467
9468         * posix/regex.c (regex_compile): Correctly handle "\{" when
9469         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
9470
9471 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9472
9473         * manual/stdio.texi: Give advise about handling error when using
9474         stream functions.
9475         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
9476
9477 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
9478
9479         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
9480         field to nelems * sizeof (uint32_t).
9481         * locale/programs/ld-address.c (address_output): Align word fields
9482         properly.
9483         * locale/programs/ld-monetary.c (monetary_output): Likewise.
9484         Don't restart idx pointers to idx end at the duo_int_curr_symbol
9485         field.
9486         Avoid giving arbitrary garbage in the crncystr field.
9487         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
9488         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
9489         fields.
9490         * locale/programs/ld-numeric.c (numeric_output): Likewise.
9491         Don't restart idx pointers to idx end at the decimal_point_wc field.
9492         * locale/programs/ld-time.c (time_output): week_1stday should be
9493         word, not byte.  Align it properly.
9494
9495 2000-04-19  H.J. Lu  <hjl@gnu.org>
9496
9497         * csu/gmon-start.c (_start): Declared as "extern void".
9498         (etext): Likewise.
9499
9500 2000-04-18  Andreas Jaeger  <aj@suse.de>
9501
9502         * manual/install.texi (Running make install): Don't mention utmpd
9503         anymore.
9504
9505 2000-04-18  Andreas Jaeger  <aj@suse.de>
9506
9507         * linuxthreads/Versions: Use ld instead of ld.so.
9508
9509         * elf/Makefile (ld-map): Use ld.map.
9510
9511         * Versions.def: Use ld instead of ld.so.
9512         * elf/Versions: Likewise.
9513         * sysdeps/mach/hurd/Versions: Likewise.
9514
9515 2000-04-20  Andreas Jaeger  <aj@suse.de>
9516
9517         * elf/rtld.c (print_statistics): Move ifndef further up.
9518         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
9519         (dl_main): Likewise.
9520
9521 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9522
9523         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
9524         * gmon/Versions: Move moncontrol to GLIBC_2.2.
9525
9526         * po/cs.po: Update from translation team.
9527
9528         * sysdeps/generic/updwtmp.c: Remove daemon support.
9529
9530         * login/Makefile (routines): Remove utmp_daemon.
9531
9532         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
9533         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
9534         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
9535         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
9536
9537         * elf/rtld.c: Display statitics option also if hp timing is not
9538         available.
9539
9540         * login/programs/connection.c: Removed.
9541         * login/programs/database.c Removed.
9542         * login/programs/error.c: Removed.
9543         * login/programs/request.c: Removed.
9544         * login/programs/xtmp.c: Removed.
9545         * login/programs/xtmp.h: Removed.
9546         * login/Makefile: Remove rules for utmpd.
9547         * login/README.utmpd: Removed.
9548         * login/utmp_daemon.c: Removed.
9549         * login/getutent_r.c: Remove references to daemon functions.
9550         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
9551         declaration.
9552
9553 2000-04-18  Andreas Jaeger  <aj@suse.de>
9554
9555         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9556         2.2 for libnsl, libresolv, librt, libnss_*.
9557
9558         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
9559
9560         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
9561
9562 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9563
9564         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
9565         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
9566         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
9567         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
9568         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
9569         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
9570         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
9571         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
9572         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
9573         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
9574         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
9575         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
9576         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
9577         it here.
9578         * sysdeps/unix/sysv/aix/msync.c: New file.
9579         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
9580         * sysdeps/unix/sysv/aix/net/if.h: New file.
9581         * sysdeps/unix/sysv/aix/pipe.c: New file.
9582         * sysdeps/unix/sysv/aix/poll.c: New file.
9583         * sysdeps/unix/sysv/aix/rename.c: New file.
9584         * sysdeps/unix/sysv/aix/rmdir.c: New file.
9585         * sysdeps/unix/sysv/aix/select.c: New file.
9586         * sysdeps/unix/sysv/aix/semctl.c: New file.
9587         * sysdeps/unix/sysv/aix/semget.c: New file.
9588         * sysdeps/unix/sysv/aix/semop.c: New file.
9589         * sysdeps/unix/sysv/aix/sendto.c: New file.
9590         * sysdeps/unix/sysv/aix/setgroups.c: New file.
9591         * sysdeps/unix/sysv/aix/setpgid.c: New file.
9592         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
9593         * sysdeps/unix/sysv/aix/setpriority.c: New file.
9594         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
9595         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
9596         * sysdeps/unix/sysv/aix/setsid.c: New file.
9597         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
9598         * sysdeps/unix/sysv/aix/shmat.c: New file.
9599         * sysdeps/unix/sysv/aix/shmctl.c: New file.
9600         * sysdeps/unix/sysv/aix/shmdt.c: New file.
9601         * sysdeps/unix/sysv/aix/shmget.c: New file.
9602         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
9603         * sysdeps/unix/sysv/aix/sigstack.c: New file.
9604         * sysdeps/unix/sysv/aix/socket.c: New file.
9605         * sysdeps/unix/sysv/aix/socketpair.c: New file.
9606         * sysdeps/unix/sysv/aix/speed.c: New file.
9607         * sysdeps/unix/sysv/aix/symlink.c: New file.
9608         * sysdeps/unix/sysv/aix/sync.c: New file.
9609         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
9610         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
9611         * sysdeps/unix/sysv/aix/times.c: New file.
9612         * sysdeps/unix/sysv/aix/ulimit.c: New file.
9613         * sysdeps/unix/sysv/aix/umask.c: New file.
9614         * sysdeps/unix/sysv/aix/unlink.c: New file.
9615         * sysdeps/unix/sysv/aix/ustat.c: New file.
9616         * sysdeps/unix/sysv/aix/utimes.c: New file.
9617
9618 2000-04-18  Andreas Jaeger  <aj@suse.de>
9619
9620         * manual/startup.texi (Environment Access): Fix putenv prototype
9621         according to recent changes.
9622         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
9623         PR libc/1692.
9624
9625         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
9626         needed.
9627
9628 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9629
9630         * posix/Makefile (tests): Add tst-getaddrinfo.
9631         * posix/tst-getaddrinfo.c: New file.
9632
9633 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9634
9635         * manual/sysinfo.texi: Document that umount2 is not widely available.
9636
9637         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
9638         signal timing is not really implemented.
9639
9640 2000-04-17  Andreas Jaeger  <aj@suse.de>
9641
9642         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
9643
9644 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9645
9646         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
9647         and inst_libdir.
9648
9649 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9650
9651         * manual/intro.texi: Change reference from System Information to
9652         System Management.
9653         * manual/users.texi: Likewise.
9654         * manual/conf.texi: Likewise.
9655         * manual/sysinfo.texi: Document mount, umount, and umount2.
9656         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9657
9658 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9659
9660         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
9661         Create wnumstr as well as numstr to support wide character output
9662         correctly.
9663
9664 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9665
9666         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9667         modification and move it...
9668         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9669         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9670         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9671         switch to $(LD) on sparc-linux.
9672
9673 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9674
9675         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9676         and setresuid from sysdep_routines.
9677
9678 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9679
9680         * manual/Makefile (chapters): Add resource.
9681
9682         * manual/time.texi: Move section on resources to...
9683         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9684         and vtimes.
9685         * manual/setjmp.texi: Adjust back reference.
9686         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9687
9688         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9689         definition.
9690         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9691         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9692         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9693         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9694         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9695         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9696         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9697         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9698         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9699         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9700         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9701         * sysdeps/unix/sysv/aix/Implies: New file.
9702         * sysdeps/unix/sysv/aix/Versions: New file.
9703         * sysdeps/unix/sysv/aix/bind.c: New file.
9704         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9705         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9706         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9707         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9708         * sysdeps/unix/sysv/aix/chdir.c: New file.
9709         * sysdeps/unix/sysv/aix/chmod.c: New file.
9710         * sysdeps/unix/sysv/aix/chroot.c: New file.
9711         * sysdeps/unix/sysv/aix/creat.c: New file.
9712         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9713         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9714         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9715         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9716         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9717         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9718         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9719         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9720         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9721         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9722         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9723         * sysdeps/unix/sysv/aix/link.c: New file.
9724         * sysdeps/unix/sysv/aix/madvise.c: New file.
9725         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9726         * sysdeps/unix/sysv/aix/mknod.c: New file.
9727         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9728         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9729         * sysdeps/unix/sysv/aix/msgget.c: New file.
9730         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9731
9732 2000-04-17  Andreas Jaeger  <aj@suse.de>
9733
9734         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9735         as suggested by Ulrich Drepper.
9736         (__dl_runtime_resolve): Remove unused variable, initialize sym
9737         directly.
9738         (RTLD_START): Document OFFSET_GP_GOT.
9739         (OFFSET_GP_GOT): New magic value.
9740         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9741         (elf_machine_got_rel): Only declare strtab if needed.
9742         (elf_machine_relplt): Removed, it's not needed.
9743         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9744
9745         * sysdeps/mips/add_n.S: Add newline at EOF.
9746         * sysdeps/mips/rshift.S: Likewise.
9747         * sysdeps/mips/mul_1.S: Likewise.
9748         * sysdeps/mips/lshift.S: Likewise.
9749         * sysdeps/mips/addmul_1.S: Likewise.
9750
9751 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9752
9753         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9754
9755         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9756         * elf/dl-lookup.c: Likewise.
9757         * elf/dl-init.c (_dl_init): Likewise.
9758         * elf/dl-fini.c (_dl_fini): Likewise.
9759         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9760         * elf/dl-close.c (_dl_close): Likewise.
9761         * elf/rtld.c (_dl_start_final): Likewise.
9762
9763         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9764
9765 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9766
9767         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9768         only fall back on using Linux.
9769
9770         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9771         Before testing versions check that we actually loaded the object
9772         and whether we are in trace mode.  If not loaded during tracing don't
9773         test versions in this object.
9774         (_dl_check_all_versions): Take new parameter and pass to
9775         _dl_check_map_versions.
9776         * sysdeps/generic/ldsodefs.h: Update prototypes for
9777         _dl_check_all_versions and _dl_check_map_versions.
9778         * elf/rtld.c (struct version_check_args): Add dotrace.
9779         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9780         (dl_main): Pass info about trace mode to version_check_doit.
9781         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9782         _dl_check_all_versions.
9783
9784         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9785         and getutmpx.
9786         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9787
9788         * manual/argp.texi: Document index parameter of argp_parse.
9789         Fix typo.
9790         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9791
9792 2000-04-14  Andreas Jaeger  <aj@suse.de>
9793
9794         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9795         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9796
9797         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9798
9799 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9800
9801         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9802         compat_symbol call for old adjtime.
9803
9804         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9805         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9806
9807         * posix/Makefile (headers): Add spawn.h.
9808         (distribute): Add spawn_int.h.
9809         (routines): Add spawn_faction_init, spawn_faction_destroy,
9810         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9811         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9812         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9813         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9814         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9815         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9816         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9817         posix_spawnattr_init, posix_spawnattr_destroy,
9818         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9819         posix_spawnattr_getflags, posix_spawnattr_setflags,
9820         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9821         and posix_spawnp.
9822         * posix/spawn.c: New file.
9823         * posix/spawn.h: New file.
9824         * posix/spawn_faction_addclose.c: New file.
9825         * posix/spawn_faction_adddup2.c: New file.
9826         * posix/spawn_faction_addopen.c: New file.
9827         * posix/spawn_faction_destroy.c: New file.
9828         * posix/spawn_faction_init.c: New file.
9829         * posix/spawn_int.h: New file.
9830         * posix/spawnattr_destroy.c: New file.
9831         * posix/spawnattr_getdefault.c: New file.
9832         * posix/spawnattr_getflags.c: New file.
9833         * posix/spawnattr_getpgroup.c: New file.
9834         * posix/spawnattr_getschedparam.c: New file.
9835         * posix/spawnattr_getschedpolicy.c: New file.
9836         * posix/spawnattr_getsigmask.c: New file.
9837         * posix/spawnattr_init.c: New file.
9838         * posix/spawnattr_setdefault.c: New file.
9839         * posix/spawnattr_setflags.c: New file.
9840         * posix/spawnattr_setpgroup.c: New file.
9841         * posix/spawnattr_setschedparam.c: New file.
9842         * posix/spawnattr_setschedpolicy.c: New file.
9843         * posix/spawnattr_setsigmask.c: New file.
9844         * posix/spawni.c: New file.
9845         * posix/spawnp.c: New file.
9846
9847         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9848         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9849
9850 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9851
9852         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9853         * malloc/malloc.c: Implement posix_memalign for glibc.
9854         * include/stdlib.h: Add prototype for __posix_memalign.
9855         * stdlib/stdlib.h: Add prototype for posix_memalign.
9856
9857 2000-04-14  Andreas Jaeger  <aj@suse.de>
9858
9859         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9860         symidx correctly.
9861         (elf_machine_got_rel): Cast sym correctly.
9862
9863         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9864         * sysdeps/mips/addmul_1.S: Likewise.
9865         * sysdeps/mips/lshift.S: Likewise.
9866         * sysdeps/mips/mul_1.S: Likewise.
9867         * sysdeps/mips/rshift.S: Likewise.
9868         * sysdeps/mips/sub_n.S: Likewise.
9869         * sysdeps/mips/submul_1.S: Likewise.
9870
9871         * stdlib/stdlib.h: Fix typo in comment.
9872
9873         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9874         2.2 for libdl, ld and libm.
9875
9876         * sysdeps/generic/madvise.c: Fix typos.
9877
9878         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9879
9880         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9881
9882         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9883         warnings.
9884
9885 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9886
9887         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9888         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9889         Make old name weak alias.
9890         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9891         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9892         Make old name weak alias.
9893         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9894
9895         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9896         posix_fallocate, and posix_fallocate64.
9897         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9898         posix_fallocate, and posix_fallocate64.
9899         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9900         posix_fallocate, and posix_fallocate64.
9901         * sysdeps/generic/fadvise.c: New file.
9902         * sysdeps/generic/fadvise64.c: New file.
9903         * sysdeps/generic/fallocate.c: New file.
9904         * sysdeps/generic/fallocate64.c: New file.
9905         * sysdeps/posix/fallocate.c: New file.
9906         * sysdeps/posix/fallocate64.c: New file.
9907         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9908         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9909         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9910         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9911         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9912         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9913         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9914         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9915         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9916
9917         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9918         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9919
9920 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9921
9922         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9923         * misc/sys/mman.h (posix_madvise): Add prototype.
9924         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9925         old name and posix_madvise weak aliases.
9926         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9927         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9928         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9929         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9930         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9931         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9932         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9933
9934 2000-04-13  Andreas Jaeger  <aj@suse.de>
9935
9936         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9937         versioning.
9938         (elf_machine_got_rel): Only add runtime display if needed.
9939         (elf_machine_got_rel): Handle symbol versioning.
9940
9941 2000-04-13  Andreas Jaeger  <aj@suse.de>
9942
9943         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9944
9945         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9946         default.
9947
9948         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9949         with some applications.
9950         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9951
9952         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9953         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9954         * sysdeps/mips/setjmp.S: Likewise.
9955
9956         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9957
9958 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9959
9960         * posix/globtest.sh: Work around inconsistency with expanding ~/
9961         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9962
9963 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9964
9965         * posix/getconf.c: Add support for many more POSIX options.
9966         * sysdeps/posix/sysconf.c: Likewise.
9967         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9968         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9969         _POSIX_SHELL.
9970         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9971         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9972         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9973         CLOCK_THREAD_CPUTIME_ID.
9974         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9975         CLOCK_PROCESS_CPUTIME_ID.
9976         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9977         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9978         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9979         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9980
9981         * malloc/Makefile (tests): Add tst-calloc.
9982         * malloc/tst-calloc.c: New file.
9983
9984         * sysdeps/arm/libm-test-ulps: New file.
9985
9986         * malloc/malloc.c: Undo all of today's changes.
9987
9988         * locale/programs/locale.c (show_info): Don't try to look into
9989         data for LC_ALL (there is none).
9990
9991         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9992         avoid writing over boundary.
9993         Patch by Greg McGary <gkm@eng.ascend.com>.
9994
9995         * sysdeps/arm/memprof.h: New file.
9996
9997 2000-04-12  Andreas Jaeger  <aj@suse.de>
9998
9999         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
10000
10001         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
10002         for memmem declaration.
10003
10004 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
10005
10006         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
10007         to -1.
10008         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
10009
10010         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
10011         mode is invalid.
10012         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
10013         Patch by Bart Veer <bartv@redhat.com>.
10014
10015         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
10016         function interface.
10017
10018 2000-04-11  Andreas Jaeger  <aj@suse.de>
10019
10020         * sysdeps/mips/dl-machine.h: Update some comments.
10021         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
10022
10023 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10024
10025         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
10026         _POSIX_SHARED_MEMORY_OBJECTS.
10027
10028         * rt/Makefile (tests): Add tst-shm.
10029         Add rules to generate tst-shm.
10030         * rt/tst-shm.c: New file.
10031
10032         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
10033         for descriptor.
10034
10035         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
10036         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
10037         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
10038         * sysdeps/generic/shm_open.c: New file.
10039         * sysdeps/generic/shm_unlink.c: New file.
10040         * sysdeps/unix/sysv/linux/shm_open.c: New file.
10041         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
10042         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
10043          __endmntent, __getmntent_r, __setmntent, and __statfs.
10044
10045         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
10046         fragmentation by allocating new memory at the end instead of
10047         reallocating.
10048
10049         * posix/globtest.sh: Fix last change.
10050
10051 2000-04-10  Philip Blundell  <philb@gnu.org>
10052
10053         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
10054         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
10055         IPV6_DROP_MEMBERSHIP.
10056         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
10057         Likewise.
10058
10059 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10060
10061         * elf/readlib (process_file): Close streams in case of an error.
10062
10063 2000-04-09  Andreas Jaeger  <aj@suse.de>
10064
10065         * elf/readlib.c (process_file): Check if file is big enough to
10066         contain aout and ELF headers.
10067         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
10068
10069 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
10070
10071         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
10072
10073 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10074
10075         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
10076         stream unbuffered.
10077         * rt/Makefile (tests): Add tst-clock.
10078         Add rules to build tst-clock.
10079         * rt/tst-clock.c: New file.
10080         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
10081         about initialization of nsec.
10082         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
10083         about initialization of freq.  Set retval to zero if successful.
10084         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
10085
10086 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10087
10088         * Versions.def (librt): Add GLIBC_2.2.
10089         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
10090         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
10091         timer_getoverr, timer_gettime, and timer_settime.
10092         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
10093         clock_settime, timer_create, timer_delete, timer_getoverrun,
10094         timer_gettime, and timer_settime.
10095         * sysdeps/generic/clock_getcpuclockid.c: New file.
10096         * sysdeps/generic/get_clockfreq.c: New file.
10097         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
10098         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
10099         * sysdeps/mach/hurd/i386/bits/time.h: New file.
10100         * sysdeps/unix/i386/i586/clock_getres.c: New file.
10101         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
10102         * sysdeps/unix/i386/i686/Implies: New file.
10103         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
10104         * time/Makefile (routines): Move clock_getres, clock_gettime,
10105         clock_settime, timer_create, timer_delete, timer_getoverr,
10106         timer_gettime, and timer_settime to rt/Makefile.
10107         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
10108         clock_settime, timer_create, timer_delete, timer_getoverrun,
10109         timer_gettime, and timer_settime.
10110         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
10111
10112         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
10113         and not const as attribute name.
10114
10115 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
10116
10117         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
10118
10119 2000-04-10  Andreas Schwab  <schwab@suse.de>
10120
10121         * posix/globtest.sh: Skip tests that depend on unreadable
10122         directories if run as root.
10123
10124 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10125
10126         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
10127         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
10128
10129 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10130
10131         * sysdeps/unix/clock_gettime.c: New file.
10132         * sysdeps/unix/clock_settime.c: New file.
10133         * sysdeps/posix/clock_getres.c: New file.
10134
10135         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
10136
10137         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
10138         lseek call be passing in a buffer which never allow a successful
10139         first getdents syscall if not at leas the initial entry can be
10140         stored in the user buffer.
10141
10142         * localedata/Makefile: Add rules to clean up directories created by
10143         new strfmon tests.
10144
10145 2000-04-09  Geoff Clare  <gwc@unisoft.com>
10146
10147         * localedata/tst-fmon.data: Added new tests for strfmon()
10148         using test locales with all combinations of cs_precedes,
10149         sign_posn and sep_by_space.
10150         * localedata/tst-fmon.sh: Updated to support the new tests.
10151         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
10152         the localedef source for the new strfmon() test locale.
10153         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
10154         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
10155         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
10156         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
10157         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
10158         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
10159         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
10160         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
10161         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
10162         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
10163         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
10164         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
10165         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
10166         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
10167
10168         * stdlib/strfmon.c: Correct problems with missing or extra
10169         spaces for unusual combinations of sign_posn and sep_by_space.
10170         Improved left-precision alignment code.
10171
10172 2000-04-07  Andreas Jaeger  <aj@suse.de>
10173
10174         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
10175
10176 2000-04-10  Andreas Jaeger  <aj@suse.de>
10177
10178         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
10179
10180 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10181
10182         Implement handling of restartable conversion functions according to
10183         ISO C.
10184         * iconv/gconv.h (__gconv_fct): Add additional parameter.
10185         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
10186         * iconv/gconv.c: Pass additional parameter to conversion function.
10187         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
10188         (internal_ucs4le_loop_single): New function.
10189         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
10190         (__gconv_transform_internal_ascii): Likewise.
10191         (__gconv_transform_internal_utf8): Likewise.
10192         (__gconv_transform_utf8_internal): Likewise.
10193         (__gconv_transform_ucs2_internal): Likewise.
10194         (__gconv_transform_internal_ucs2): Likewise.
10195         (__gconv_transform_ucs2reverse_internal): Likewise.
10196         (__gconv_transform_internal_ucs2reverse): Likewise.
10197         (internal_ucs4le_loop_unaligned): Before return
10198         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
10199         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
10200         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
10201         * iconv/loop.c: Fit in definition of function to convert one character
10202         for processing of left-over bytes from the state object.
10203         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
10204         inend to match names in loop functions.
10205         (RESET_INPUT_BUFFER): Change apprpriately.
10206         (gconv): If needed, call function to process bytes from the state
10207         object.  Similar at the end: store left over bytes if input is
10208         incomplete.
10209         Take extra argument and add new argument to all calls of the
10210         conversion function.
10211         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
10212         information in the state object to not conflict with length count.
10213         * iconvdata/iso-2022-jp.c: Likewise.
10214         * iconvdata/iso-2022-kr.c: Likewise.
10215         * iconvdata/unicode.c: Adjust for change change in parameters of
10216         skeleton function.
10217         * iconvdata/utf-16.c: Likewise.
10218         * libio/iofwide.c: Add new parameter to all calls of conversion
10219         function.
10220         * wcsmbs/btowc.c: Likewise.
10221         * wcsmbs/mbrtowc.c: Likewise.
10222         * wcsmbs/mbsnrtowcs.c: Likewise.
10223         * wcsmbs/mbsrtowcs.c: Likewise.
10224         * wcsmbs/wcrtomb.c: Likewise.
10225         * wcsmbs/wcsnrtombs.c: Likewise.
10226         * wcsmbs/wcsrtombs.c: Likewise.
10227         * wcsmbs/wctob.c: Likewise.
10228
10229         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
10230         MAX_NEEDED_INPUT.
10231
10232 2000-04-07  Andreas Jaeger  <aj@suse.de>
10233
10234         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
10235         newer kernels.
10236
10237 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
10238
10239         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
10240         element a union to allow byte access.
10241         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
10242         mbstate_t.
10243         * iconvdata/iso-2022-jp.c: Likewise.
10244         * iconvdata/iso-2022-kr.c: Likewise.
10245         * wcsmbs/mbsinit.c: Likewise.
10246         * stdlib/mblen.c: Likewise.
10247         * stdio-common/printf-parse.h: Likewise.
10248
10249 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10250
10251         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
10252         kernel does not allow relative seeks on descriptors associated
10253         with directories.  Go back to get the position in the directory
10254         every time we enter the function.  Return -1 and set errno if one
10255         entry could be read from the kernel but does not fit into the
10256         buffer passed in by the user.
10257
10258         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
10259         Support ..(2).. ellipsis.
10260         (parse_charmap): Recognize ..(2).. etc and pass step down.
10261         Correctly generate names for UCS4 characters.
10262
10263         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
10264         (ctype_finish): We know the wide character value for <SP>,
10265         don't search.
10266         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
10267         (charclass_ucs4_ellipsis): Likewise.
10268         (read_translit_ignore_entry): Store ellipsis step.
10269         (ctype_read): Recognize ..(2).. etc and pass step down.
10270
10271         * locale/programs/linereader.c (lr_token): When seeing comment
10272         character ignore only rest of line in sources but stop at escaped
10273         newline.
10274         Recognize ..(2).. and ....(2).....
10275
10276         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
10277         and tok_ellipsis4_2.
10278
10279 2000-04-06  Andreas Jaeger  <aj@suse.de>
10280
10281         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
10282         removed, remove it here also.
10283         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10284         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
10285         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
10286         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
10287
10288 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
10289
10290         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
10291         include bits/sigcontext.h.
10292         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10293
10294 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10295
10296         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
10297         collation symbol definition.  Value in quivalence definition must
10298         be defined, don't check that it is not.
10299
10300         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
10301         values as character names.
10302
10303         * locale/programs/ld-ctype.c (get_character): Handle missing
10304         repertoire map correctly.
10305
10306 2000-04-05  Cristian Gafton  <gafton@redhat.com>
10307
10308         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
10309         because it is used in generic code.
10310         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
10311         * wcsmbs/wcwidth.h: Declare __ctype32_b.
10312         * intl/gettext.c: Include <locale.h>.
10313         * intl/ngettext.c: Likewise.
10314
10315 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
10316
10317         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
10318         socklen_t type for size.
10319         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
10320         init function interface.
10321         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10322         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
10323         sys/ucontext.h.
10324         (__jmp_buf): Declare the whole type structure here, don't use
10325         ucontext.
10326
10327 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
10328
10329         * iconv/skeleton.c (put16u): Fix typo.
10330         Reported by Bruno Haible <haible@ilog.fr>.
10331
10332         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
10333         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
10334         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
10335         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
10336         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
10337         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
10338
10339         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
10340         * Makefile (distribute): Add abi-versions.awk and
10341         firstversions.awk.
10342         Patches by Torsten Duwe <duwe@caldera.de>.
10343
10344 2000-04-05  Andreas Schwab  <schwab@suse.de>
10345
10346         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
10347
10348 2000-04-05  Andreas Schwab  <schwab@suse.de>
10349
10350         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
10351         entry point, used on Hurd.
10352
10353 2000-04-04  Andreas Jaeger  <aj@suse.de>
10354
10355         * intl/Makefile: Only run the gettext test with shared libraries.
10356
10357 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10358
10359         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10360         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10361
10362 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
10363
10364         * Makeconfig: Undo last change.
10365         * configure.in: If --disable-shared was given, don't set VERSIONING,
10366         don't define DO_VERSIONING, and don't give scare warning for no
10367         versioning.
10368         * configure: Regenerated.
10369
10370 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
10371
10372         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
10373
10374 2000-04-04  Andreas Jaeger  <aj@suse.de>
10375
10376         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
10377
10378 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
10379
10380         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
10381         STV_HIDDEN and STV_INTERNAL during lookup.
10382         (profile_fixup): Likewise.
10383         * elf/dl-reloc.c (RESOLVE): Likewise.
10384
10385         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
10386         unaligned so that it compiles for system which need unaligned
10387         access handling.
10388
10389 2000-04-04  Andreas Schwab  <schwab@suse.de>
10390
10391         * elf/cache.c (print_entry): Only look at the type field when
10392         printing the type.
10393
10394 2000-04-04  Andreas Schwab  <schwab@suse.de>
10395
10396         * iconvdata/big5.c (BODY): Fix typo.
10397
10398 2000-04-04  Andreas Schwab  <schwab@suse.de>
10399
10400         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
10401         function interface.  Remove unused _dl_start_user entry point.
10402
10403 2000-04-03  Andreas Jaeger  <aj@suse.de>
10404
10405         * include/arpa/inet.h (__inet_aton): Add protoype.
10406
10407 2000-04-01  Andreas Jaeger  <aj@suse.de>
10408
10409         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
10410
10411         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
10412         * sysdeps/mach/mips/thread_state.h: Likewise.
10413
10414         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
10415         * sysdeps/generic/fegetenv.c: Likewise.
10416         * sysdeps/generic/fesetenv.c: Likewise.
10417         * sysdeps/generic/feupdateenv.c: Likewise.
10418         * sysdeps/generic/fraiseexcpt.c: Likewise.
10419         * sysdeps/generic/fsetexcptflg.c: Likewise.
10420         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
10421         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10422         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10423         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10424
10425 2000-04-02  H.J. Lu  <hjl@gnu.org>
10426
10427         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
10428
10429 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10430
10431         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
10432         (add_name_to_object): Add cast in malloc call.
10433         (fillin_rpath): Optimize loop to initialize ->status a bit.
10434
10435         * sysdeps/i386/dl-machine.h: Undo last change.
10436         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
10437         Restore %edx register after call here.
10438
10439         * sysdeps/arm/atomicity.h: New file.
10440         Contributed by Jesper Skov <jskov@redhat.com>.
10441
10442 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
10443
10444         * Makeconfig (preprocess-versions): Undo last change.
10445         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
10446
10447         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
10448         here, before we might move the stack.
10449         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
10450         (init1): And not here.
10451
10452         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
10453         change, to restore argc value in call-clobbered register after
10454         RTLD_START_SPECIAL_INIT, which will contain a call.
10455
10456         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
10457         allocating and initializing L->l_initfini.
10458
10459         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
10460
10461 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10462
10463         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
10464         RUNPATH, RPATH, and LD_LIBRARY_PATH.
10465         (open_path): Change type of fourth parameter.  Make pointer to array
10466         of pointers.  Create variable dirs with original type.
10467         Track whether any directory for the object exists and if not,
10468         change *DIRSP to (void*) -1 to signal there is no such search path.
10469         (_dl_map_object): Change all calls of open_path.
10470         Rewrite decompose_rpath calls.
10471
10472 2000-03-31  Andreas Schwab  <schwab@suse.de>
10473
10474         * string/strfry.c: Declare STATE as array of char instead of int
10475         and do not initialize it (done by initstate_r).  Pass correct
10476         size.
10477
10478 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10479
10480         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
10481
10482         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
10483         instruction out of the code.
10484
10485 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10486
10487         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
10488         element at this position.
10489
10490         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
10491         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
10492         l_reldeps elements.
10493         * elf/dl-lookup.c (add_dependency): New function.
10494         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
10495         dynamically loaded object.
10496         (_dl_lookup_symbol_skip): Likewise.
10497         (_dl_lookup_versioned_symbol): Likewise.
10498         (_dl_lookup_versioned_symbol_skip): Likewise.
10499         * elf/dl-open.c: Don't define _dl_load_lock here...
10500         * elf/rtld.c: ...but here...
10501         * elf/dl-support.c: ...and here.
10502         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
10503         through relocation.
10504         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
10505         relocations.
10506         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
10507         anymore.
10508         * dlfcn/glrefmain.c: Add one more debug message.
10509
10510         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
10511         command line.
10512         * Makerules (sysd-versions): Use ( ) instead of { }.
10513
10514         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
10515         optimize for the non-debugging case.
10516         * elf/dl-lookup.c: Likewise.
10517         * sysdeps/generic/libc-start.c: Likewise.
10518
10519 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
10520
10521         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
10522         (init1): Don't initialize __environ here, since init already does it.
10523         (first_init): New function, broken out of _init.
10524         (_hurd_stack_setup): Use it.
10525         [SHARED] (_dl_init_first): New function, renamed from old _init.
10526         (init1) [SHARED]: Don't call posixland_init here.
10527         (posixland_init): Take ENVP arg, so signature is usual for initializer.
10528         [SHARED] (_init): Define as alias for posixland_init.
10529         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
10530         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
10531         RTLD_START_SPECIAL_INIT before calling initializers.
10532         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
10533         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
10534         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
10535         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
10536
10537         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
10538         since we define the function with the name `tmpfile'.
10539
10540         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
10541         * hurd/Versions: Likewise.
10542
10543 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10544
10545         * elf/dl-runtime.c (fixup): Fix typo in comment.
10546
10547         * resolv/netdb.h (getnameinfo): All length parameters are of type
10548         socklen_t.
10549         * inet/getnameinfo.c: Likewise.
10550
10551 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
10552
10553         * posix/unistd.h (socklen_t): Define if it has not yet happened.
10554         (gethostname): Change type of second parameter to socklen_t.
10555         * include/unistd.h (__gethostname): Change type of second
10556         parameter to socklen_t.
10557         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
10558         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
10559         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
10560         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
10561         Likewise.
10562         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
10563         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
10564         Allow definition elsewhere.
10565         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10566         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10567         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10568         * sysdeps/generic/bits/types.h: Define __socklen_t.
10569         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
10570         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
10571         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
10572         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10573         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
10574         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
10575         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
10576
10577         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
10578         (inet_lnaof): Likewise.
10579         (inet_netof): Likewise.
10580         (inet_network): Likewise.
10581         (inet_aton): Likewise.
10582         (inet_makeaddr): Change parameter types to in_addr_t.
10583         (inet_neta): Likewise.
10584         (inet_ntop): Change type of last parameter to socklen_t.
10585         (inet_aton): Only make available if __USE_MISC.
10586         (inet_neta): Likewise.
10587         (inet_net_ntop): Likewise.
10588         (inet_net_pton): Likewise.
10589         (inet_nsap_ntoa): Likewise.
10590
10591         * inet/in.h: Define in_port_t type.
10592         Define in_addr_t type.
10593         (struct in_addr): Use in_addr_t in definition.
10594         (IN_CLASSA): Use cast to in_addr_t.
10595         (IN_CLASSB): Likewise.
10596         (IN_CLASSC): Likewise.
10597         (IN_CLASSD): Likewise.
10598         (IN_EXPERIMENTAL): Likewise.
10599         (IN_BADCLASS): Likewise.
10600         (INADDR_ANY): Likewise.
10601         (INADDR_BROADCAST): Likewise.
10602         (INADDR_NONE): Likewise.
10603         (INADDR_LOOPBACK): Likewise.
10604         (INADDR_UNSPEC_GROUP): Likewise.
10605         (INADDR_ALLHOSTS_GROUP): Likewise.
10606         (INADDR_ALLRTRS_GROUP): Likewise.
10607         (INADDR_MAX_LOCAL_GROUP): Likewise.
10608         (struct sockaddr_in): Use in_port_t for sin_port element.
10609         (struct sockaddr_in6): Use in_port_t for sin6_port element.
10610         Use uint8_t instead of u_int8_t.
10611
10612         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
10613         Call __inet_aton instead of inet_aton.
10614         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
10615
10616         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
10617         (innetgr): Likewise.
10618         (struct addrinfo): Use socklen_t for ai_addrlen element.
10619
10620         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
10621         IPV6_RECVERR): New defines.
10622
10623         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
10624         * inet/getnetbyad.c: Likewise.
10625         * inet/getnetbyad_r.c: Likewise.
10626         * nis/nss_nis/nis-network.c: Likewise.
10627         * nis/nssplus_nis/nisplus-network.c: Likewise.
10628         * nss/nss_files/files-network.c: Likewise.
10629         * resolv/netdb.h: Define uint32_t if not already happened.
10630         Include bits/netdb.h.  Remove definition of struct netent.
10631         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
10632         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
10633         * sysdeps/generic/bits/netdb.h: New file.
10634         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
10635
10636         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
10637         (tests): Add glrefmain.
10638         Add rules to build modules and run tests.  Ignore result of glrefmain
10639         for now since it fails.
10640         * dlfcn/glrefmain.c: New file.
10641         * dlfcn/glreflib1.c: New file.
10642         * dlfcn/glreflib2.c: New file.
10643
10644         * test-skeleton.c: Include <string.h> for strsignal prototype.
10645
10646         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
10647         to be missing.
10648
10649         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
10650         former init-first.h.  Initialize __libc_multiple_libcs.
10651
10652 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10653
10654         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
10655         #if expression for use of unaligned function to the one used in
10656         the definition of these functions.
10657         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
10658         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
10659         (internal_ucs4le_loop_unaligned): New function.
10660
10661         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
10662         (tests): Add order.
10663         (module-names): Add dep1, dep2, dep3, and dep4.
10664         Add dependencies for dep* modules and order.
10665         Define rule for order.out which checks the result.
10666         * elf/dep1.c: New file.
10667         * elf/dep2.c: New file.
10668         * elf/dep3.c: New file.
10669         * elf/dep4.c: New file.
10670         * elf/order.c: New file.
10671
10672         * elf/dl-init.c: Fix typo in comment.
10673
10674 2000-03-31  Andreas Jaeger  <aj@suse.de>
10675
10676         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10677         init function interface.
10678         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10679
10680 2000-03-31  Andreas Jaeger  <aj@suse.de>
10681
10682         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10683         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10684         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10685         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10686         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10687
10688         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10689         anymore, update comment.
10690
10691         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10692
10693         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10694         SHLIB_COMPAT - the struct is always needed.
10695
10696 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10697
10698         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10699         * elf/dl-support.c: Define _dl_starting_up.
10700
10701 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10702
10703         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10704         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10705
10706         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10707
10708         * elf/Makefile (dl-routines): Remove preinit.
10709         * elf/Versions: Remove _dl_preinit.
10710         * elf/dl-preinit.c: Removed.  Move content into...
10711         * elf/dl-init.c: ...here.
10712         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10713
10714         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10715         elements.
10716
10717 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10718
10719         * stdlib/strfmon.c: Corrected problems with the code that
10720         sets default values for [np]_sep_by_space and
10721         [np]_sign_posn; also the new positive/negative alignment
10722         code from the previous patch was not quite right for
10723         [np]_sign_posn = 0.
10724
10725         * localedata/tst-fmon.data: Changes corresponding to the
10726         two sets of fixes made to stdlib/strfmon.c.
10727
10728 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10729
10730         * malloc/malloc.c: Declare bit flags UL so that they will not
10731         default to int size when being inverted.
10732
10733 2000-03-29  Andreas Jaeger  <aj@suse.de>
10734
10735         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10736         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10737
10738 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10739             Ralf Baechle <ralf@uni-koblenz.de>
10740
10741         * Makeconfig: Introduce new variable SHARED to mark code used in
10742         the shared library.
10743         * elf/dl-close.c: Use it instead of PIC.
10744         * elf/dl-load.c: Likewise.
10745         * elf/dl-open.c: Likewise.
10746         * hurd/geteuids.c: Likewise.
10747         * include/libc-symbols.h: Likewise.
10748         * include/shlib-compat.h: Likewise.
10749         * libio/freopen.c: Likewise.
10750         * linuxthreads/cancel.c: Likewise.
10751         * linuxthreads/pthread.c: Likewise.
10752         * linuxthreads/wrapsyscall.c: Likewise.
10753         * nss/nsswitch.c: Likewise.
10754         * stdio-common/vfprintf.c: Likewise.
10755         * sysdeps/arm/init-first.c: Likewise.
10756         * sysdeps/i386/init-first.c: Likewise
10757         * sysdeps/generic/init-first.c: Likewise.
10758         * sysdeps/generic/libc-start.c: Likewise.
10759         * sysdeps/mips/init-first.c: Likewise.
10760         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10761         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10762         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10763         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10764         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10765
10766         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10767
10768 2000-03-29  Andreas Jaeger  <aj@suse.de>
10769
10770         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10771         Use D_PTR to access relocated entries in l_info.
10772         (elf_machine_rela): Likewise.
10773
10774         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10775         Likewise.
10776         (elf_machine_rela): Likewise.
10777
10778         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10779         Likewise.
10780         (__elf_machine_fixup_plt): Likewise.
10781         (__process_machine_rela): Likewise.
10782
10783         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10784         (elf_machine_rela): Likewise.
10785
10786         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10787         (elf_machine_rel): Likewise.
10788
10789         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10790         (elf_machine_fixup_plt): Likewise.
10791         (elf_machine_rela): Likewise.
10792
10793 2000-03-29  Andreas Jaeger  <aj@suse.de>
10794
10795         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10796         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10797         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10798         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10799         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10800         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10801         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10802         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10803         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10804         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10805         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10806         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10807         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10808         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10809         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10810
10811         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10812         macros, remove K&R prototypes.
10813
10814 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10815
10816         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10817         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10818         (PR libc/1677).
10819
10820 2000-03-30  Andreas Jaeger  <aj@suse.de>
10821
10822         * misc/sys/cdefs.h: Remove K&R support.
10823
10824 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10825
10826         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10827         more cases.
10828         * iconv/loop.c: Likewise.
10829
10830 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10831
10832         * iconv/loop.c (put16): Remove __const. Fix access index.
10833         (put32): Remove __const. Use uint32_t instead of uint16_t.
10834         * iconv/skeleton.c: Likewise.
10835
10836 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10837
10838         * mach/Versions (libc: GLIBC_2.0)
10839         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10840         __vm_allocate on this.
10841         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10842         mutex- and spinlock-related symbols on this.
10843         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10844         New version set.  Lock-related symbols go here instead in this case.
10845         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10846         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10847         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10848         * hurd/Versions
10849         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10850         Put them here instead.
10851         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10852         New version set.  Those cthreads symbols go here instead in this case.
10853         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10854
10855 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10856
10857         * elf/dl-init.c (_dl_init): We don't need to call constructors
10858         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10859
10860         Implement dynamic determination of constructor/destructor order in
10861         the dynamic linker.
10862         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10863         (GLIBC_2.2): Add _dl_init.
10864         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10865         r_duplist is not anymore allocated separately.  l_initfini is and
10866         therefore free it if necessary.
10867         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10868         malloc block.  Otherwise allocate l_initfini list only.
10869         Put dependencies for the object in l_initfini list.
10870         Sort dependencies for the object to be loaded topologically.
10871         * elf/dl-fini.c: Before running the destructors sort the topologically.
10872         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10873         call constructors instead of iterating over the pointers.  Get list of
10874         objects for which to run constructors from l_initfini element. Accept
10875         argc, argv, and env as parameters and pass them to the constructors.
10876         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10877         with size of dynamic section.
10878         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10879         _dl_init_next and calling constructors ourself.
10880         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10881         Take argc, argv, and env as parameters and pass them to the
10882         constructors.  Rewrite to call all constructors and not iterate over
10883         the pointers.
10884         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10885         precompute l_initcount and l_preinitcount.
10886         * elf/link.h (struct link_map): Add l_ldnum member.
10887         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10888         l_initcount, and l_preinitcount.  Add l_initfini.
10889         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10890         one for _dl_init.
10891         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10892         function interface.
10893         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10894         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10895         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10896         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10897         conventions now match.
10898
10899         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10900         effect for shared objects.  Don't emit message and call only for
10901         static library.
10902
10903 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10904
10905         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10906         CSA_Z243.4-1985-1..UCS2.
10907         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10908         ISO-8859-10..UCS2.
10909
10910 2000-03-29  Andreas Jaeger  <aj@suse.de>
10911
10912         * include/unistd.h: Remove duplicate entry for __rmdir.
10913         Remove declaration of __mkdir since __mkdir is declared in
10914         sys/stat.h.
10915
10916         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10917         by Michael Deutschmann <michael@talamasca.ocis.net>.
10918
10919         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10920         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10921         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10922         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10923         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10924
10925 2000-03-28  Andreas Jaeger  <aj@suse.de>
10926
10927         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10928         declaration, the prototype is defined via bits/mathcalls.h.
10929         (__sincosf): Likewise.
10930         (__sincosl): Likewise.
10931         (ldexp): Likewise.
10932         (ldexpf): Likewise.
10933         (ldexpl): Likewise.
10934         (__finite): Likewise.
10935         (__inline_mathcodeNP): New macro without prototype
10936         declarations.
10937         (__inline_mathcodeNP2): Likewise.
10938         (__inline_mathcodeNP3): Likewise.
10939         (__inline_mathcodeNP_): Likewise.
10940         (__inline_mathcodeNP2_): Likewise.
10941         (__inline_mathcodeNP3_): Likewise.
10942         (__inline_mathopNP): Likewise.
10943         (__inline_mathop_declNP): Likewise.
10944         (__inline_mathop_declNP_): Likewise.
10945         (__inline_mathcode_): Use __inline_mathcodeNP_.
10946         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10947         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10948         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10949         (__expm1l): Don't define prototype, the prototype is defined via
10950         bits/mathcalls.h.
10951         (exp): Likewise.
10952         (__expl): Likewise.
10953         (tan): Likewise.
10954         (atan2): Likewise.
10955         (__atan2l): Likewise.
10956         (fmod): Likewise.
10957         (pow): Likewise.
10958         (fabsf): Likewise.
10959         (fabsl): Likewise.
10960         (__fabsl): Likewise.
10961         (asin): Likewise.
10962         (acos): Likewise.
10963         (sinh): Likewise.
10964         (cosh): Likewise.
10965         (tanh): Likewise.
10966         (floor): Likewise.
10967         (ceil): Likewise.
10968         (expm1): Likewise.
10969         (log1p): Likewise.
10970         (asinh): Likewise.
10971         (acosh): Likewise.
10972         (atanh): Likewise.
10973         (hypot): Likewise.
10974         (logb): Likewise.
10975         (fma): Likewise.
10976         (drem): Likewise.
10977         (sqrt): Likewise.
10978         (__sqrtl): Likewise.
10979         (sin): Likewise.
10980         (cos): Likewise.
10981         (atan): Likewise.
10982         (log): Likewise.
10983         (log10): Likewise.
10984         (asinh): Likewise.
10985         (log2): Likewise.
10986         (rint): Likewise.
10987
10988 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10989
10990         * Makerules: If make variable md5 is defined to yes after
10991         generating dependencies generate MD5 sum for the object.
10992
10993         * iconv/gconv_builtin.h: Fix length in transformation definition
10994         for UNICODEBIG.
10995
10996         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10997
10998         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10999         allow as well reading from/writing to unaligned addresses on machines
11000         which don't support this in hardware.  Use FCTNAME macro to define
11001         function name.  Include the file a second time for platforms which
11002         need special unaligned handling.
11003         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
11004         to access potentially unaligned addresses.  These macros are intended
11005         to be used only outside the loops.
11006         (unaligned): New definition.  In case the machine can handle unaligned
11007         access define as zero.  Otherwise as a variable which is initialized
11008         as nonzero in case the buffer passed in at runtime is unaligned with
11009         respect to the character set encoding involved.
11010         Call aligned or unaligned looop functions according to unaligned
11011         variable.
11012         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
11013         of direct casting pointer to potentially handle unaligned memory
11014         accesses.
11015         * iconvdata/8bit-generic.c: Likewise.
11016         * iconvdata/ansi_x3.110.c: Likewise.
11017         * iconvdata/big5.c: Likewise.
11018         * iconvdata/euc-cn.c: Likewise.
11019         * iconvdata/euc-jp.c: Likewise.
11020         * iconvdata/euc-kr.c: Likewise.
11021         * iconvdata/euc-tw.c: Likewise.
11022         * iconvdata/gbk.c: Likewise.
11023         * iconvdata/iso-2022-cn.c: Likewise.
11024         * iconvdata/iso-2022-jp.c: Likewise.
11025         * iconvdata/iso-2022-kr.c: Likewise.
11026         * iconvdata/iso646.c: Likewise.
11027         * iconvdata/iso_6937-2.c: Likewise.
11028         * iconvdata/iso_6937.c: Likewise.
11029         * iconvdata/johab.c: Likewise.
11030         * iconvdata/sjis.c: Likewise.
11031         * iconvdata/t.61.c: Likewise.
11032         * iconvdata/uhc.c: Likewise.
11033         * iconvdata/unicode.c: Likewise.
11034         * iconvdata/utf-16.c: Likewise.
11035
11036         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
11037         prototypes.
11038
11039         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
11040         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
11041         public.
11042         * malloc/mcheck.h (mcheck_check_all): Declare.
11043
11044         * stdio-common/Makefile (tests): Add tst-obprintf.
11045
11046 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
11047
11048         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
11049         Declare pthread_sigmask.
11050
11051         * csu/version.c: Add 2000 to copyright years.
11052         Remove Emacs local variables section.
11053
11054 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11055
11056         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
11057         __gconv_transform_internal_ucs2little): Remove declarations.
11058         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
11059         __gconv_transform_internal_ucs2): Never need to bswap_16.
11060         (__gconv_transform_ucs2reverse_internal,
11061         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
11062
11063 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11064
11065         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
11066         obsoleting version not being defined at all, in which case the
11067         result is always true.
11068
11069         * Makeconfig (preprocess-versions): New canned sequence for running
11070         cpp on shlib-versions and the like.
11071         (soversions.i): Use it.
11072         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
11073         Versions.def and Versions files.
11074
11075 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11076
11077         * stdio-common/tst-obprintf.c (main): Add another check to see
11078         obstack_printf handling all possible beginnings of the block
11079         inside an obstack chunk.
11080
11081         * locale/programs/localedef.c: Use __malloc_initialize_hook to
11082         install mcheck handler.
11083
11084         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
11085         handling problem.
11086
11087 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11088
11089         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
11090
11091         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
11092         on [HAVE_ELF && DO_VERSIONING].
11093
11094 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11095
11096         * stdio-common/tst-obprintf.c: New file.
11097
11098 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11099
11100         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
11101         _IO_OVERFLOW directly instead through __overflow.
11102
11103         * locale/programs/localedef.c (construct_output_path): If path
11104         contains a / compute the end of the directory name correctly.
11105
11106         * include/features.h: Undef and document __USE_XOPEN2K.
11107
11108         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
11109         whenever a function is called.  Initiated by calling mcheck_pedantic
11110         instead of mcheck.
11111         * malloc/mcheck.h: Declare mcheck_pedantic.
11112         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
11113         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
11114         for now.
11115
11116 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11117
11118         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
11119         * dlfcn/dlopenold.c: Likewise.
11120         * nss/getXXbyYY_r.c: Likewise.
11121         * nss/getXXent_r.c: Likewise.
11122         * hurd/hurdinit.c: Likewise.
11123         * hurd/compat-20.c: Likewise.
11124         * libio/oldiofopen.c: Likewise.
11125         * libio/oldiofclose.c: Likewise.
11126         * libio/oldiofdopen.c: Likewise.
11127         * libio/oldfileops.c: Likewise.
11128         * libio/oldstdfiles.c: Likewise.
11129         * libio/oldiofsetpos.c: Likewise.
11130         * libio/oldiofgetpos.c: Likewise.
11131         * libio/oldiofgetpos64.c: Likewise.
11132         * libio/oldiofsetpos64.c: Likewise.
11133         * libio/oldiopopen.c: Likewise.
11134         * libio/oldpclose.c: Likewise.
11135         * libio/oldtmpfile.c: Likewise.
11136         * libio/freopen.c (freopen): Likewise.
11137         * libio/iofclose.c (_IO_new_fclose): Likewise.
11138
11139         * sysdeps/mach/sys/reboot.h: Include <features.h>.
11140         (reboot): Declare it.
11141
11142         * libio/Makefile (headers): Add bits/stdio-lock.h here.
11143
11144         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
11145
11146         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
11147
11148         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
11149         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
11150         We need this for the sbrk decl, which can be included without Unix98.
11151
11152 2000-03-20  Richard Henderson  <rth@cygnus.com>
11153
11154         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
11155         argument to yperr2nss is an int, not size_t.
11156         * posix/regex.c (print_partial_compiled_pattern): Cast all
11157         ptrdiff_t to long for printing.
11158         (print_compiled_pattern): Use Z for printing size_t.
11159         * posix/testfnm.c (tests): Avoid trigraphs.
11160         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
11161         Use a C comment, not an assembly comment.
11162
11163         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
11164         of __ASSUME_32BITUIDS.
11165
11166 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11167
11168         * libio/iofopncook.c: Remove K&R prototypes.
11169
11170 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11171
11172         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
11173         an initial value of 1024 instead of RLIM_INFINITY.
11174
11175         * Versions.def (libmachuser, libhurduser): Remove these sections,
11176         since these libraries do not presently use symbol versions.
11177
11178         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
11179         is RLIM_INFINITY, return -1 instead.
11180
11181 2000-03-24  Andreas Jaeger  <aj@suse.de>
11182
11183         * Makefile (postclean): Added soversions.i.
11184
11185 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11186
11187         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
11188         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
11189         and _FPU_IEEE.  Change _FPU_RESERVED.
11190
11191 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11192
11193         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
11194
11195 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11196
11197         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
11198         (gaih_inet): Remove unused duplicate variable.
11199
11200         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
11201         Don't use __libc_sa_len, which only exists for Linux.  Just handle
11202         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
11203         only flavors supported by this function anyway.
11204
11205 2000-03-24  Geoff Clare  <gwc@unisoft.com>
11206
11207         * stdlib/strfmon.c: Corrected problems with missing signs and
11208         missing or extra spaces; allow for sign strings longer than
11209         one character; add padding to ensure positive and negative
11210         formats are aligned when a left precision is used.
11211
11212 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11213
11214         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
11215         Patch by John Mizel <John.Mizel@msdw.com>.
11216
11217 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
11218
11219         * manual/install.texi: Remove references to crypt add-on.
11220
11221 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
11222
11223         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
11224         section while taking the _hurd_rlimit_lock.
11225         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
11226
11227 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11228
11229         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
11230         using $(LN_S).
11231
11232         * sysdeps/mach/hurd/if_index.c: New file.
11233
11234         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
11235         * sysdeps/gnu/net/if.h: here.
11236         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
11237         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
11238         * sysdeps/generic/net/if.h: New file.  Declares just the standard
11239         functions and `struct if_nameindex' type.
11240         * socket/Makefile (headers): Add net/if.h here.
11241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
11242         * sysdeps/mach/hurd/Dist: Remove it here.
11243         * sysdeps/unix/sysv/linux/Dist: And here.
11244         * sysdeps/generic/if_index.c: Include <net/if.h>.
11245
11246 2000-03-24  Andreas Jaeger  <aj@suse.de>
11247
11248         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
11249         access relocated entries in l_info.
11250         (elf_machine_got_rel): Likewise.
11251         (elf_machine_runtime_setup): Likewise.
11252         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
11253         (elf_machine_runtime_setup): Likewise.
11254         (__dl_runtime_resolve): Likewise.
11255
11256 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
11257
11258         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
11259         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
11260         according to RFC 2553.
11261         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
11262         * inet/getnameinfo.c: Likewise.
11263         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11264
11265 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11266
11267         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
11268         Remove no-op pointer increment.
11269
11270 2000-03-23  Andreas Jaeger  <aj@suse.de>
11271
11272         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
11273         follow change for libio.h from 2000-03-10.
11274
11275 2000-03-23  Andreas Jaeger  <aj@suse.de>
11276
11277         * elf/dl-addr.c: Adjust include paths for ldsodefs location
11278         change.
11279         * elf/dl-debug.c: Likewise.
11280         * elf/dl-deps.c: Likewise.
11281         * elf/dl-error.c: Likewise.
11282         * elf/dl-fini.c: Likewise.
11283         * elf/dl-init.c: Likewise.
11284         * elf/dl-load.c: Likewise.
11285         * elf/dl-lookup.c: Likewise.
11286         * elf/dl-minimal.c: Likewise.
11287         * elf/dl-object.c: Likewise.
11288         * elf/dl-open.c: Likewise.
11289         * elf/dl-preinit.c: Likewise.
11290         * elf/dl-profile.c: Likewise.
11291         * elf/dl-profstub.c: Likewise.
11292         * elf/dl-reloc.c: Likewise.
11293         * elf/dl-runtime.c: Likewise.
11294         * elf/dl-support.c: Likewise.
11295         * elf/dl-symbol.c: Likewise.
11296         * elf/dl-version.c: Likewise.
11297         * elf/rtld.c: Likewise.
11298         * elf/sprof.c: Likewise.
11299         * sysdeps/generic/dl-cache.c: Likewise.
11300         * sysdeps/generic/dl-origin.c: Likewise.
11301         * sysdeps/generic/dl-sysdep.c: Likewise.
11302         * sysdeps/generic/elf/backtracesyms.c: Likewise.
11303         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11304         * sysdeps/generic/libc-start.c: Likewise.
11305         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11306         * sysdeps/powerpc/dl-machine.c: Likewise.
11307         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11308         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11309         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11310         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
11311
11312         * elf/ldsodefs.h: Move file to ...
11313         * sysdeps/generic/ldsodefs.h: ... here.
11314
11315         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
11316
11317         * sysdeps/mips/elf/ldsodefs.h: New file.
11318
11319         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
11320         entries in l_info.
11321         (_dl_check_map_versions): Likewise.
11322         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11323         * elf/dl-load.c (_dl_init_paths): Likewise.
11324         (_dl_map_object): Likewise.
11325         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
11326         (elf_get_dynamic_info): Likewise.
11327         * elf/do-lookup.h (FCT): Likewise.
11328         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
11329         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
11330         * elf/dl-addr.c (_dl_addr): Likewise.
11331         * elf/dl-runtime.c (profile_fixup): Likewise.
11332         (fixup): Likewise.
11333         * elf/dl-init.c (_dl_init_next): Likewise.
11334         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
11335         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
11336         (DISTINGUISH_LIB_VERSIONS): Likewise.
11337         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
11338         (elf_machine_rel): Likewise.
11339
11340         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
11341         for writable dynamic section.
11342
11343 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
11344
11345         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
11346         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11347
11348 2000-03-22  Andreas Jaeger  <aj@suse.de>
11349
11350         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
11351         from latest Linux kernel.
11352
11353 2000-03-21  Andreas Jaeger  <aj@suse.de>
11354
11355         * Versions.def: Add version 2.1.4.
11356
11357 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11358
11359         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
11360         * libio/oldiofopen.c: Likewise.
11361         * libio/oldiofclose.c: Likewise.
11362         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11363
11364 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
11365
11366         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
11367         indicating the first version set to obsolete the conditionalized code.
11368         (compat_symbol): New macro.
11369         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
11370         rhs be the ABI_* macro for the subsuming version.  Assign increasing
11371         integer values to the ABI_* macros for supported versions.
11372         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
11373         compat_symbol macro.
11374
11375 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11376
11377         * nscd/connections.c (nscd_run): Pretty print.
11378         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
11379
11380         * manual/charset.texi: Fix typos.  Rephrase.
11381         * manual/process.texi: Likewise.
11382         * manual/signal.texi: Likewise.
11383         Patches by Mike Coleman <mkc@kc.net>.
11384
11385         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
11386         versions.
11387         * libio/iofdopen.c: Likewise.
11388         * libio/iofgetpos.c: Likewise.
11389         * libio/iofgetpos64.c: Likewise.
11390         * libio/iofopen.c: Likewise.
11391         * libio/iofsetpos.c: Likewise.
11392         * libio/iofsetpos64.c: Likewise.
11393         * libio/iopopen.c: Likewise.
11394         * libio/oldiofopen.c: Likewise.
11395         * libio/pclose.c: Likewise.
11396         * sysdeps/gnu/siglist.c: Likewise.
11397         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11398
11399         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
11400         chance to expand VERSION_##lib##_##version.
11401
11402         * libio/fileops.c: Use new macros from shlib-compat.h to define
11403         versions.
11404         * libio/iofclose.c: Likewise.
11405         * libio/oldiofclose.c: Likewise.
11406         Patch by Roland McGrath <roland@frob.com>.
11407
11408 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
11409
11410         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
11411         Lay out struct sigcontext according to what really gets passed on
11412         the stack.
11413         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
11414         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
11415         (prgregset_t, prfpregset_t): Define to elf_* types.
11416         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
11417         Define to correct value.
11418         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
11419         sigcontext.
11420         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
11421
11422 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
11423
11424         * scripts/firstversions.awk: Allow multiple version sets in the
11425         "earliest version" specification, meaning that version sets in the
11426         gaps between listed versions should be folded into the earliest later
11427         version that is explicitly listed.
11428         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
11429         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
11430
11431 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11432
11433         * iconv/gconv_builtin.c: Include <endian.h>.
11434         * iconv/gconv_builtin.h: Add UCS-BE aliases.
11435         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
11436         according to current platform.
11437         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
11438         __gconv_transform_internal_ucs2reverse, and
11439         __gconv_transform_internal_ucs4le.
11440         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
11441         __gconv_transform_ucs2reverse_internal and
11442         __gconv_transform_internal_ucs2reverse.
11443         * iconvdata/Makefile (modules): Add UNICODE.
11444         (distribute): Add unicode.c.
11445         * iconvdata/gconv-modules: Add definitions for UNICODE module.
11446         * iconvdata/unicode.c: New file.
11447
11448         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
11449         determine byte order of input and convert accordingly.
11450
11451         * iconvdata/utf-16.c (gconv_init): Fix typo.
11452
11453 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11454
11455         * iconvdata/gconv-modules: Fix typo.
11456
11457         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
11458         more messages.
11459
11460         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
11461
11462 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11463
11464         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
11465
11466 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11467
11468         * misc/Makefile (routines): Add mincore.
11469
11470 2000-03-20  Andreas Jaeger  <aj@suse.de>
11471
11472         * sysdeps/generic/mincore.c: New stub file.
11473
11474         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
11475         from latest Linux kernel.
11476
11477 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11478
11479         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
11480         _SC_GETPW_R_SIZE_MAX.
11481
11482 2000-03-20  Richard Henderson  <rth@cygnus.com>
11483
11484         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
11485         in GLIBC_2.1.4.
11486
11487 2000-03-20  Richard Henderson  <rth@cygnus.com>
11488
11489         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
11490         of arithmetic instructions.
11491
11492         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
11493         with the fpcr.  Protect from INV exception.
11494         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11495         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
11496         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11497
11498         * sysdeps/alpha/fpu/s_copysign.c: New.
11499         * sysdeps/alpha/fpu/s_copysignf.c: New.
11500         * sysdeps/alpha/fpu/s_fabs.c: New.
11501         * sysdeps/alpha/fpu/s_fabsf.c: New.
11502         * sysdeps/alpha/fpu/s_rint.c: New.
11503         * sysdeps/alpha/fpu/s_rintf.c: New.
11504
11505         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
11506
11507         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
11508         Kill sethae.
11509         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
11510         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
11511         Use physical addresses not KSEG addresses.
11512         (io_system): Add PYXIS.
11513         (io): Remove hae.reg, sys, hae_shift.
11514         (stb_mb, stw_mb, stl_mb, __sethae): New.
11515         (inline_outb, inline_outw, inline_outl): Don't set hae.
11516         (inline_inb, inline_inw, inline_inl): Likewise.
11517         (dense_sethae): New null function.
11518         (struct cpuinfo_data): New.
11519         (process_cpuinfo): Use local and stack variables, not static.
11520         Move readlink check here from init_iosys.
11521         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
11522         (_iopl): Simplify.
11523         (_hae_shift): Calculate it here.
11524         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
11525         add pciconfig_iobase.
11526
11527 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
11528
11529         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
11530         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
11531
11532         * scripts/versions.awk: Fixed version renaming code to distinguish
11533         libraries properly.
11534
11535 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11536
11537         * include/stdlib.h: Add prototype for __cxa_atexit.
11538
11539         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
11540         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
11541
11542 2000-03-17  Cristian Gafton  <gafton@redhat.com>
11543
11544         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
11545         existing rtld-installed-name.
11546         ($(rtld-installed-name)): Request libc-$(version) be installed too.
11547         replace existing rtld-installed-name using $(symbolic-link-prog).
11548
11549 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11550
11551         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
11552         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
11553         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
11554         but not the former.
11555
11556 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11557
11558         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
11559         glob64.  Since there is no glob64 in the LFS proposal applications
11560         can assume that glob handles LFS situations.  glob64 is only needed
11561         if alternative filesystem functions are used.
11562
11563 2000-03-19  Geoff Clare  <gwc@unisoft.com>
11564
11565         * sysdeps/generic/glob.c: Correct gl_pathc value returned
11566         when GLOB_DOOFFS is set; correct handling of patterns
11567         containing escaped wildcards (and no unescaped ones);
11568         GLOB_ERR flag was being ignored in some situations.
11569
11570         * posix/globtest.c, posix/globtest.sh: Updated to include
11571         tests for the problems fixed by the above changes to glob.c.
11572
11573         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
11574
11575 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
11576
11577         * Makeconfig (soversion.i): Use only first match for each lib.
11578
11579         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
11580
11581         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
11582         rather than $(sysd-dirs-done) to protect these rules.
11583
11584         * Makerules (version-renames.def): Target removed.
11585         (Versions.all): Depend on soversions.i directly and parse it.
11586
11587         * Makeconfig (soversions.i): New target, input-reading parts of
11588         soversions.mk generation moved here; result is a canonicalized
11589         list "LIB VERSION [SET]" for this configuration.
11590         (soversions.mk): Use that as input.  Don't emit map-firstversions.
11591         * Makerules (version-renames.def): New target, generated from
11592         soversions.i with contents that was in $(map-firstversions).
11593         (Versions.all): Don't depend on soversions.mk, depend on
11594         version-renames.def instead; just cat it into the input.
11595
11596         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
11597         for $(map-firstversions), which better handles it being empty.
11598
11599         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
11600         supported version for libc 0.2.90.libio to GLIBC_2.2.
11601
11602         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
11603         and use it to emit new variable `map-firstversions'.
11604         * scripts/firstversions.awk: New file.
11605         * Makerules (Versions.all): Use scripts/firstversions.awk and
11606         the $(map-firstversions) value to generate a modified versions list
11607         that includes renames in "A = B" syntax for each version set earlier
11608         than the "earliest symbol version" named in shlib-versions.
11609         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
11610         rename version set A to B in the output to the intermediate file.
11611         * scripts/abi-versions.awk: New file.
11612         * Makerules (abi-versions.h): New target, generated by that script.
11613         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
11614         * include/shlib-compat.h: New file, uses that generated header.
11615
11616 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
11617
11618         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
11619         after stripping # comments, and then run it through cpp.
11620         This allows things like "%ifdef FOO" based on config.h settings.
11621         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
11622
11623         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
11624         and other errors that indicate a pseudo-receive happened, grok through
11625         the message buffer for port rights that need references fixed up.
11626
11627 2000-03-16  Andreas Jaeger  <aj@suse.de>
11628
11629         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
11630
11631         * sysdeps/unix/sysv/linux/madvise.c: Remove.
11632
11633         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
11634         from latest Linux kernel.
11635         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
11636
11637         * misc/sys/mman.h: Add prototype for mincore.
11638
11639 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
11640
11641         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
11642         entry for GLIBC_2.0 version of setrlimit.
11643         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11644
11645 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11646
11647         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
11648         * nis/nss_compat/compat-initgroups.c: Likewise.
11649         * nis/nss_nis/nis-initgroups.c: Likewise.
11650         * nis/nss_nis/nis-netgrp.c: Likewise.
11651         * nis/nss_nis/nis-proto.c: Likewise.
11652         * nis/nss_nis/nis-rpc.c: Likewise.
11653         * nis/nss_nis/nis-service.c: Likewise.
11654         * nis/ypclnt.c: Likewise.
11655
11656 2000-03-16  Andreas Jaeger  <aj@suse.de>
11657
11658         * manual/Makefile: MAKEINFO is set to `:' from configure if it
11659         doesn't exist, correct checks.  Fixes PR libc/1649.
11660
11661 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11662
11663         * nscd/hstcache.c: Restore correct UID.
11664         * nscd/pwdcache.c: Likewise.
11665         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11666
11667 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11668
11669         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11670         macros for register names, in line with 2000-03-14 linux change.
11671
11672         * sysdeps/mach/sched_yield.c: New file.
11673
11674 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11675
11676         * sysdeps/generic/lockfile.c: Include <stdio.h>
11677         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11678         case <libio.h> defined them.
11679         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11680         from __internal_*.
11681         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11682         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11683
11684         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11685         for more pleasing parse error.
11686
11687 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11688
11689         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11690         memory for eras.
11691         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11692
11693         * elf/Makefile: Add rules to compile and run constload1 test.
11694         * elf/constload1.c: New file.
11695         * elf/constload2.c: New file.
11696         * elf/constload3.c: New file.
11697
11698 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11699
11700         * sysdeps/posix/open64.c: Make __open64 weak alias.
11701         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11702         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11703         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11704         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11705         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11706         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11707         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11708         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11709         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11710         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11711
11712 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11713
11714         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11715         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11716
11717 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11718
11719         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11720         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11721
11722 2000-03-08  Andreas Jaeger  <aj@suse.de>
11723
11724         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11725
11726 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11727
11728         * timezone/africa: Update from tzdata2000d.
11729         * timezone/asia: Likewise.
11730         * timezone/australasia: Likewise.
11731         * timezone/europe: Likewise.
11732         * timezone/northamerica: Likewise.
11733         * timezone/southamerica: Likewise.
11734
11735         * po/fr.po: Update from translation team.
11736         * po/de.po: Likewise.
11737
11738         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11739         last parameter.  Move code to add map to global scope from here...
11740         * elf/dl-open.c (dl_open_worker): ...here.
11741         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11742         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11743
11744         * locale/programs/ld-collate.c (collate_read): Fix warning.
11745
11746         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11747         values and macros for register names.
11748
11749         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11750         returned by seek cookie function is -1.
11751
11752 2000-03-14  Andreas Jaeger  <aj@suse.de>
11753
11754         * locale/localeconv.c (localeconv): Fix typo.
11755         Reported by Andre Charbonneau <andrec@corel.com>.
11756
11757 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11758
11759         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11760         since modules depend on it counting the number of times the conversion
11761         function got called.
11762
11763         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11764
11765         * iconv/gconv.h: Pretty print.
11766
11767 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11768
11769         * posix/wordexp-test.c: Correct one of the tests added in the last
11770         change.  Really get the root passwd entry to check again ~root.
11771
11772 2000-03-10  Andreas Jaeger  <aj@suse.de>
11773
11774         * manual/filesys.texi (Working Directory): Fix last patch.
11775         Patch by Martin Buchholz  <martin@xemacs.org>.
11776
11777 2000-03-10  Andreas Jaeger  <aj@suse.de>
11778
11779         * manual/creature.texi (Feature Test Macros): Fix language.
11780
11781 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11782
11783         * mach/devstream.c (devstream_write, devstream_read): New functions.
11784         (input, output): Functions removed.
11785         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11786         using only the vanilla fopencookie interface.
11787
11788         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11789         as macro for __io_functions.
11790         (funcsio): Use cookie_io_functions_t type name.
11791         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11792
11793         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11794         fopencookie.
11795         (fopencookie): Use it.
11796         * libio/libio.h: Declare _IO_cookie_init.
11797         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11798         _IO_cookie_init.
11799
11800         * libio/libio.h (__io_seek_fn): Fix second argument type
11801         to be a pointer, in line with the manual and the old stdio.
11802         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11803
11804         * sysdeps/generic/bits/stdio-lock.h: New file.
11805         This is a stub with #error, but that's better than no file at all.
11806
11807 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11808
11809         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11810         * manual/message.texi (Using gettextized software): Doc Fixes.
11811         * manual/message.texi (Message Translation): Doc Fixes.
11812         * manual/filesys.texi (File Size): Doc Fixes.
11813         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11814         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11815         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11816         * manual/install.texi: Doc Fixes.
11817         * manual/search.texi (Hash Search Function): Doc Fixes.
11818         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11819         * FAQ.in: Doc Fixes.
11820         * config.h.in: Doc Fixes.
11821         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11822         Doc Fixes.  `allows to' is not correct English.
11823
11824         * elf/rtld.c: Doc fixes.
11825         * manual/creature.texi (Feature Test Macros): Doc fixes.
11826         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11827
11828         * manual/filesys.texi (Working Directory): Check for ERANGE to
11829         avoid infloop.
11830
11831 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11832
11833         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11834         conditions so as not to clobber the final '\0' when there is only one
11835         element in the vector.
11836
11837 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11838
11839         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11840         broken by 2000-02-27 change.
11841
11842         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11843
11844 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11845
11846         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11847         argument type, for 2000-02-22 change in signal/signal.h declaration.
11848
11849 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11850
11851         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11852         to getdirentries64 (no __), since the Linux implementation
11853         has no __ name, and there is no declaration for the __ name.
11854
11855         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11856
11857         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11858         sed regexp so as not to break directory names including /../ within.
11859
11860         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11861         The sysdeps/generic file is right for BSD.  This file was in fact the
11862         Hurd file, but the only difference was the WNOREAP flag that was never
11863         actually implemented or used anywhere.
11864
11865         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11866         since AC_PATH_PROG already does it for us.
11867         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11868         correctness and sh portability.  I replaced the broken check
11869         with a more sensible implementation of the apparently intended
11870         semantics, which might still be questionable.  Using expr causes
11871         a non-numeric value for `perl -V:apiversion` to be accepted,
11872         refusing to use only a perl that reports a number less than 5;
11873         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11874         * configure: Regenerated.
11875
11876 2000-03-08  Andreas Jaeger  <aj@suse.de>
11877
11878         * manual/crypt.texi: Fix paths.
11879
11880 2000-03-07  Andreas Jaeger  <aj@suse.de>
11881
11882         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11883         were swapped.
11884         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11885         libc/1636.
11886
11887 2000-03-06  Andreas Jaeger  <aj@suse.de>
11888
11889         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11890         in __sgn1l, otherwise g++ fails to parse this.
11891         Reported by Sean Chen <sean.chen@turbolinux.com>.
11892
11893 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11894
11895         * configure.in: Compute sizeof-long-double.
11896         * configure: Regenerated.
11897         * config.make.in: Make sizeof-long-double available to sub-makes.
11898
11899 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11900
11901         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11902         call.
11903
11904 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11905
11906         * Makeconfig (rpath-dirs): Add crypt.
11907         (all-subdirs): Remove md5crypt.
11908         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11909         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11910         * sysdeps/generic/crypt-entry.c: Delete.
11911         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11912         * sysdeps/generic/crypt.h: Delete.
11913         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11914         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11915         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11916         * sysdeps/generic/des_impl.c: Delete.
11917         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11918         * crypt/sysdeps: Delete.
11919         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11920         * md5-crypt/Versions: Move to crypt/.
11921         * md5-crypt/md5-crypt.c: Move to crypt/.
11922         * md5-crypt/md5.c: Move to crypt/.
11923         * md5-crypt/md5c-test.c: Move to crypt/.
11924         * md5-crypt/md5test.c: Move to crypt/.
11925         * md5-crypt: Delete.
11926         * crypt/Makefile: Adjust for new structure.
11927
11928 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11929
11930         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11931         define to 1 if not defined.
11932
11933 2000-03-03  Andreas Jaeger  <aj@suse.de>
11934
11935         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11936
11937 2000-03-03  Andreas Jaeger  <aj@suse.de>
11938
11939         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11940         cases.
11941         (xdr_int64_t): Correctly handle lower half.
11942         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11943
11944 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11945
11946         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11947         call.
11948
11949 2000-03-02  Andreas Jaeger  <aj@suse.de>
11950
11951         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11952         2.3.43.
11953
11954 2000-03-02  Andreas Jaeger  <aj@suse.de>
11955
11956         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11957
11958 2000-03-01  Andreas Jaeger  <aj@suse.de>
11959
11960         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11961         (tests): Added tst-getdate.
11962
11963         * time/tst-getdate.c: New file.
11964
11965         * time/datemsk: New file, needed for tst-getdate.
11966
11967 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11968
11969         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11970
11971 2000-02-17  H.J. Lu  <hjl@gnu.org>
11972
11973         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11974
11975         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11976         available.
11977         (svcudp_recv): Set up message with the new "xp_pad" field for
11978         IP_PKTINFO.
11979         (svcudp_reply): Support IP_PKTINFO if available.
11980
11981 2000-03-01  Andreas Jaeger  <aj@suse.de>
11982
11983         * time/getdate.c (check_mday): Fix check for february.
11984         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11985         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11986
11987 2000-03-02  Andreas Jaeger  <aj@suse.de>
11988
11989         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11990         g++ fails to parse this.
11991         Reported by Sean Chen <sean.chen@turbolinux.com>.
11992
11993 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11994
11995         * io/creat.c: Moved to...
11996         * sysdeps/generic/creat.c: ...here.
11997         * io/creat64.c: Moved to...
11998         * sysdeps/generic/creat64.c: ...here.
11999         * io/lockf.c: Moved to...
12000         * sysdeps/generic/lockf.c: ...here.
12001
12002         * crypt/crypt.texi: Moved to...
12003         * manual/crypt.texi: ...here.
12004         * crypt/examples/genpass.c: Moved to...
12005         * manual/examples/genpass.c: ...here.
12006         * crypt/examples/mygenpass.c: Moved to...
12007         * manual/examples/mygenpass.c: ...here.
12008         * crypt/examples/testpass.c: Moved to...
12009         * manual/examples/testpass.c: ...here.
12010
12011         * manual/Makefile (chapters): Add crypt.
12012         * manual/conf.texi: Add usual header for not-last chapter.
12013         * manual/crypt.texi: Add special header for last chapter.
12014
12015 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12016
12017         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
12018         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
12019         complain if there is no crypt add-on.
12020         * crypt/configure: Removed.
12021
12022         * crypt/crypt.texi: Update documentation of US export restrictions
12023         to match the 14 Jan 2000 regulations.
12024
12025 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12026
12027         * crypt: New subdirectory, merged in from the crypt add-on.
12028
12029 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12030
12031         * include/unistd.h: Add __rmdir and __mkdir prototypes.
12032
12033
12034 See ChangeLog.10 for earlier changes.