Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-10-02  Jakub Jelinek  <jakub@redhat.com>
2
3         * elf/nextmod1.c (failing_rtld_next_use): Ensure it is not tail call
4         optimized.
5
6         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: New file.
7
8 2000-10-02  Ralf Baechle  <ralf@gnu.org>
9
10         * sysdeps/unix/sysv/linux/mips/sys/tas.h: Add missing .mips0 at the
11         end of inline assembler code.
12
13 2000-10-02  Ulrich Drepper  <drepper@redhat.com>
14
15         * include/features.h [__USE_FILE_OFFSET && !__REDIRECT]: Define
16         __USE_LARGEFILE64 and __USE_LARGEFILE to 1 and not nothing.
17
18 2000-10-02  Andreas Jaeger  <aj@suse.de>
19
20         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Synch with Linux
21         2.4.0-test9-pre8.
22
23         * sysdeps/unix/sysv/linux/alpha/bits/resource.h: Add RLIMIT_LOCKS.
24
25 2000-10-01  Ralf Baechle  <ralf@gnu.org>
26
27         * sysdeps/mips/dl-machine.h (RTLD_START): Fix computation of envp
28         argument passed to _dl_init.
29
30 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
31
32         * locale/programs/charmap-dir.h: New file.
33         * locale/programs/charmap-dir.c: New file.
34         * locale/programs/linereader.h (lr_create): New declaration.
35         * locale/programs/linereader.c (lr_create): New function, split out
36         from lr_open.
37         (lr_open): Tailcall lr_create.
38         * locale/programs/locale.c: Include "charmap-dir.h". Don't include
39         <unistd.h>.
40         (xstrdup): New declaration.
41         (more_help): Use xstrdup instead of strdup.
42         (write_locales): Likewise. When encountering a symbolic link, call
43         stat.
44         (write_charmaps): Simplify using the charmap-dir.h functions.
45         Use xstrdup instead of strdup.
46         * locale/programs/charmap.c: Include "charmap-dir.h". Don't include
47         <dirent.h> and <unistd.h>.
48         (cmlr_open): New function.
49         (charmap_read): Use cmlr_open instead of lr_open. Simplify using the
50         charmap-dir.h functions.
51         * locale/Makefile (distribute): Add charmap-dir.h.
52         (lib-modules): Add charmap-dir.
53         (CFLAGS-charmap-dir.c): Set to -Wno-write-strings, because posix_spawn
54         wants a 'char **', not a 'const char **'.
55         * include/spawn.h: New file.
56
57 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
58
59         * posix/spawn_faction_init.c: Include "spawn_int.h".
60         (__posix_spawn_file_actions_realloc): Fix second realloc argument.
61
62 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
63
64         * locale/programs/config.h (DEFAULT_CHARMAP): Set to ANSI_X3.4-1968.
65
66 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
67
68         * wcsmbs/wcwidth.h (__ctype32_wctype): Remove declaration.
69         (internal_wcwidth): Remove the tests for L'\0' and iswprint.
70         * locale/programs/ld-ctype.c (find_idx): If max == NULL, return
71         a pointer to the table entry, without extending the table.
72         (allocate_arrays): Set a width only for characters with 'print'
73         property. Set the width of L'\0' to 0.
74         * locale/C-ctype.c (_nl_C_LC_CTYPE_width): Use default entry 0xff
75         for unprintable characters.  Set entry of NUL to 0.
76
77 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
78
79         * locale/programs/charmap.c (charmap_read): Avoid redundant tests.
80         Don't forget to call closedir when the filename was found as a
81         code_set_name.
82
83 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
84
85         * iconv/gconv.h (__gconv_trans_context_fct): Change first argument's
86         type to 'void *'.
87
88 2000-09-30  Bruno Haible  <haible@clisp.cons.org>
89
90         * locale/programs/ld-ctype.c (wctype_table_init): Initialize level1,
91         level2, and level3 as well.
92         (wctype_table_add): Remove a few unnecessary conditionals.
93
94 2000-09-30  Ralf Baechle  <ralf@gnu.org>
95
96         * wcsmbs/Versions [libc] (GLIBC_2.0): Add __mbrtowc.
97
98 2000-09-30  H.J. Lu  <hjl@gnu.org>
99
100         * sysdeps/ieee754/ldbl-96/s_ceill.c (__ceill): Handle overflow.
101         * sysdeps/ieee754/ldbl-96/s_floorl.c (__floorl): Likewise.
102
103 2000-09-29  H.J. Lu  <hjl@gnu.org>
104
105         * math/libm-test.inc (init_max_error): Clear all exceptions
106         before starting test.
107         (acosh_test): Test for existence of function.
108         (asinh_test): Likewise.
109         (atan2_test): Likewise.
110         (cabs_test): Likewise.
111         (cacos_test): Likewise.
112         (cacosh_test): Likewise.
113         (casin_test): Likewise.
114         (casinh_test): Likewise.
115         (catan_test): Likewise.
116         (catanh_test): Likewise.
117         (ccos_test): Likewise.
118         (ccosh_test): Likewise.
119         (cexp_test): Likewise.
120         (clog_test): Likewise.
121         (clog10_test): Likewise.
122         (cosh_test): Likewise.
123         (cpow_test): Likewise.
124         (csin_test): Likewise.
125         (csinh_test): Likewise.
126         (csqrt_test): Likewise.
127         (ctan_test): Likewise.
128         (ctanh_test): Likewise.
129         (fmod_test): Likewise.
130         (hypot_test): Likewise.
131         (remainder_test): Likewise.
132         (remquo_test): Likewise.
133         (sincos_test): Likewise.
134         (sinh_test): Likewise.
135         (tanh_test): Likewise.
136
137 2000-09-29  H.J. Lu  <hjl@gnu.org>
138
139         * sysdeps/ia64/ieee754.h: New file.
140
141         * sysdeps/ia64/fpu/math_ldbl.h: New file.
142
143 2000-09-30  Jakub Jelinek  <jakub@redhat.com>
144
145         * elf/ldconfig.h (FLAG_X8664_LIB64): Define.
146         * sysdeps/unix/sysv/linux/i386/readelflib.c: New file.
147
148 2000-09-30  Ulrich Drepper  <drepper@redhat.com>
149
150         * manual/charset.texi: Correct notations, reference to C90 amd 1,
151         and some other details.
152         * manual/ctype.texi: Likewise.
153         Patches by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
154
155 2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
156
157         * sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
158
159 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
160
161         * elf/cache.c (save_cache): Initialize __unused field in new cache
162         as well to get reproducable results.
163
164 2000-09-29  H.J. Lu  <hjl@gnu.org>
165
166         * sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
167
168 2000-09-29  H.J. Lu  <hjl@gnu.org>
169
170         * sysdeps/ia64/bits/huge_val.h: New file.
171
172 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
173
174         * elf/chroot_canon.c: Don't report a failure if the last path
175         component is not available.
176         * elf/ldconfig.c (parse_conf): Use canonicalized name when reporting
177         error.
178
179         * elf/cache.c (print_cache): Use stat64 instead of stat.
180         * elf/ldconfig.c (chroot_stat): Likewise.
181         (create_links): Likewise.
182         (manual_link): Likewise.
183         (search_dir): Likewise.
184         * elf/readlib.c (process_file): Likewise.
185
186         * Makefile (install): Set LC_ALL and LANGUAGE to C before running
187         ldconfig.
188
189 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
190
191         * elf/chroot_canon.c: New file.
192         * elf/Makefile: Build and distribute it.
193         * elf/ldconfig.h (process_file): Add real_file_name argument.
194         (chroot_canon): Add prototype.
195         * elf/ldconfig.c (cache_file): Remove const.
196         (chroot_stat): New.
197         (create_links): Add real_path argument.
198         If opt_chroot, maintain both real and given filenames.
199         (manual_link): Likewise.
200         (search_dir): Likewise.
201         (parse_conf): If opt_chroot, use chroot_canon to find the real
202         config file.
203         (main): For -r, try to use chroot, if it fails, leave opt_chroot set
204         and use chroot_canon where appropriate to do the same as if chroot
205         succeeded.
206         * elf/readlib.c (process_file): Add real_file_name argument, pass it
207         to fopen.
208
209 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
210
211         * math/complex.h (_Complex): We can be more specific when _Complex
212         is defined by the compiler.
213
214 2000-09-29  H.J. Lu  <hjl@gnu.org>
215
216         * sysdeps/unix/sysv/linux/ia64/dl-cache.h: New.
217
218         * elf/cache.c (print_entry): Replace 64bit with IA-64 in message
219         for x86/IA-64 binary.
220
221 2000-09-29  Andreas Schwab  <schwab@suse.de>
222
223         * sysdeps/unix/sysv/linux/ia64/readelflib.c: New file.
224
225         * elf/cache.c (print_entry): Check for FLAG_IA64_LIB64.
226
227 2000-09-29  Mark Kettenis  <kettenis@gnu.org>
228
229         * sysdeps/mach/hurd/dl-sysdep.c (__access): New function.  Dummy
230         implementation for use by the dynamic linker.
231
232 2000-09-29  Andreas Jaeger  <aj@suse.de>
233
234         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Protect DN_* by
235         __USE_GNU.
236         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
237         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
238         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
239         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
240         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
241         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
242
243 2000-09-29  Andreas Jaeger  <aj@suse.de>
244
245         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Synch with Linux
246         2.4.0-test9-pre7.
247         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
248         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Likewise.
249         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
250         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
251         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
252         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
253
254 2000-09-29  David Mosberger  <davidm@hpl.hp.com>
255
256         * sysdeps/unix/sysv/linux/ia64/sysdep.S (__ia64_syscall): Cleanup.
257
258         * sysdeps/unix/sysv/linux/ia64/sysdep.h (CALL_MCOUNT): Implement.
259
260 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
261
262         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Fix it so it actually
263         works: call to __sigjmp_save must be done unconditionally to
264         ensure jmp_buf is initialized properly.
265
266 2000-09-27  Andreas Jaeger  <aj@suse.de>
267
268         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Synch with Linux
269         2.4.0-test9-pre7.
270
271 2000-09-29  Jakub Jelinek  <jakub@redhat.com>
272
273         * nscd/nscd-client.h (NSCD_VERSION): Bump to 3.
274         Use nscd_ssize_t where appropriate.
275         * nscd/nscd_gethst_r.c (nscd_gethst_r): Use nscd_ssize_t instead of
276         ssize_t where appropriate.
277         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
278         * nscd/hstcache.c (cache_addhst): Likewise.
279         * nscd/grpcache.c (cache_addgr): Likewise.
280         * sysdeps/generic/nscd-types.h: New file.
281         * sysdeps/alpha/nscd-types.h: New file.
282
283 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
284
285         * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
286         INADDR_LOOPBACK instead of numeric value.
287
288 2000-09-28  H.J. Lu  <hjl@gnu.org>
289
290         * sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
291         _dl_skip_args.
292         (ELF_MACHINE_FIXED_STACK): Removed.
293
294 2000-09-29  Andreas Jaeger  <aj@suse.de>
295
296         * sysdeps/unix/sysv/linux/s390/lockf64.c: New file.
297
298         * sysdeps/unix/sysv/linux/s390/fcntl.c: New file.
299
300         * sysdeps/unix/sysv/linux/powerpc/lockf64.c: New file.
301
302         * sysdeps/unix/sysv/linux/powerpc/fcntl.c: New file.
303
304 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
305
306         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Handle unaligned
307         relocation also for R_ALPHA_RELATIVE.
308         Reported by Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
309
310 2000-09-18  Bruno Haible  <haible@clisp.cons.org>
311
312         * intl/dcigettext.c: Outside libc, use local variable names that don't
313         clash with those in libc.
314         * intl/bindtextdom.c: Likewise.
315         * intl/textdomain.c: Likewise.
316
317 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
318
319         * elf/ldconfig.c (parse_conf): Print full name of config dir
320         including chroot() path.
321         (main): Remove trailing / from opt_chroot string.
322
323         * include/features.h: Correct description of what happens if no
324         *_SOURCE macro is defined.
325
326         * sysdeps/posix/getaddrinfo.c (gaih_inet): Handle req->ai_socktype
327         correctly.  Reported by Felix von Leitner <leitner@convergence.de>.
328
329 2000-09-19  H.J. Lu  <hjl@gnu.org>
330
331         * malloc/malloc.h (__memalign_hook): Fix the parameter order.
332         * malloc/malloc.c (__memalign_hook): Likewise.
333         (memalign_hook_ini): Likewise.
334
335 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
336
337         * stdio-common/tmpnam.c (tmpnam): Optimize a bit.
338
339         * sysdeps/posix/getaddrinfo.c (gaih_local): Don't use tmpnam, use
340         underlying functions directly.
341
342         * sysdeps/unix/sysv/linux/bits/resource.h: Add RLIMIT_LOCKS.
343         * sysdeps/unix/sysv/linux/arm/bits/resource.h: Likewise.
344         * sysdeps/unix/sysv/linux/i386/bits/resource.h: Likewise.
345         * sysdeps/unix/sysv/linux/mips/bits/resource.h: Likewise.
346         * sysdeps/unix/sysv/linux/powerpc/bits/resource.h: Likewise.
347         * sysdeps/unix/sysv/linux/sh/bits/resource.h: Likewise.
348         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
349
350 2000-09-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
351
352         * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
353         define it for powerpc for kernel >= 2.4.0.
354         * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
355         __ASSUME_32BITUIDS.
356         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
357         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
358         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
359         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
360         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
361         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
362
363 2000-09-28  Martin Schwidefsksy  <schwidefsky@de.ibm.com>
364
365         * sysdeps/s390/atomicity.h: Fix compare_and_swap.
366
367         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h
368         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
369
370 2000-09-28  Denis Joseph Barrow  <djbarrow@de.ibm.com>
371
372         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
373         ucontext.h.
374         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
375
376 2000-09-27  Andreas Schwab  <schwab@suse.de>
377
378         * math/Makefile (distribute): Explicitly add the long double test
379         sources, to get them included even if long double is not supported.
380
381 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
382
383         * elf/soinit.c (struct object): Move definition to gccframe.h and
384         include it.  Problem identified by HJ Lu.
385
386         * sysdeps/ia64/gccframe.h: New file.  ia64 specific version of
387         struct object to be searched for frame unwind info.
388         * sysdeps/generic/gccframe.h: New file.  Generic version of
389         struct object to be searched for frame unwind info.
390
391 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
392
393         * manual/errno.texi: Correct error text for ENXIO.
394         Reported by Jörg Schilling <schilling@fokus.gmd.de>.
395
396 2000-09-27  Jes Sorensen  <jes@linuxcare.com>
397
398         * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
399         exception status bits rather than the exception disable bits.
400         Don't include math.h.
401
402         * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
403         status of exceptions currently raised rather than which exceptions
404         are enabled.
405
406         * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
407         rather than unsigned long int.
408
409         * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
410         the exceptions actually requested by the caller and not just
411         disable all exceptions.
412
413         * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
414         the ia64 are enabled by clearing the respective bits in the fpsr,
415         not setting them.
416
417         * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
418         unsigned long int rather than unsigned long to be consistent with
419         the coding conventions.
420
421 2000-09-20  H.J. Lu  <hjl@gnu.org>
422
423         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
424         unsigned long int.
425         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
426
427 2000-09-28  Ulrich Drepper  <drepper@redhat.com>
428
429         * string/bits/string2.h: Unify #if usage.
430
431 2000-09-27  Jakub Jelinek  <jakub@redhat.com>
432
433         * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
434         and disabling underflow or overflow, disable inexact as well.
435
436 2000-09-26  Andreas Jaeger  <aj@suse.de>
437
438         * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
439
440         * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND.
441
442         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (F_SETLKW64,
443         F_GETLK64, F_SETLK64): Update from Linux-2.4.0-test9-pre4.
444
445         * elf/ldconfig.c (search_dir): Allow unlimited path length.
446         (create_links): Likewise.
447
448 2000-09-27  Ulrich Drepper  <drepper@redhat.com>
449
450         * posix/tst-dir.c: Test a few error cases of chdir.
451
452 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
453
454         * math/math_private.h: Don't add long double prototypes if
455         NO_LONG_DOUBLE is defined.
456
457         * sysdeps/unix/i386/i586/clock_nanosleep.c (CLOCK_P): Remove
458         CLOCK_MONOTONIC.
459         * sysdeps/unix/i386/i586/clock_gettime.c (EXTRA_CLOCK_CASES): Likewise.
460         * sysdeps/unix/i386/i586/clock_getres.c (EXTRA_CLOCK_CASES): Likewise.
461
462         * sysdeps/unix/sysv/linux/i386/bits/time.h: Remove CLOCK_MONOTONIC.
463
464 2000-09-26  Jakub Jelinek  <jakub@redhat.com>
465
466         * sysdeps/sparc/sparc32/bits/endian.h: Remove.
467         * sysdeps/sparc/sparc32/ieee754.h: New.
468         * sysdeps/sparc/sparc64/bits/endian.h: Move...
469         * sysdeps/sparc/bits/endian.h: ...here.
470         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Optimize.
471         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Check
472         %o1, not %o0 to see if we're parent or child.  Optimize.
473
474 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
475
476         * sysdeps/unix/sysv/linux/ia64/fork.S: New file (based on code
477         by Hans Boehm).
478         * sysdeps/unix/sysv/linux/ia64/vfork.S: New file (based on
479         code by Hans Boehm).
480         * sysdeps/unix/sysv/linux/ia64/fork.c: Deleted (obsoleted by fork.S).
481
482 2000-09-20  H.J. Lu  <hjl@gnu.org>
483
484         * sysdeps/ia64/fpu/printf_fphex.c: New file.
485
486         * sysdeps/ia64/fpu/libm-test-ulps: New file.
487
488 2000-09-17  H.J. Lu  <hjl@gnu.org>
489
490         * sysdeps/ia64/Makefile (long-double-fcts): New.  Defined as yes.
491
492         * sysdeps/ia64/fpu/s_isinfl.c: New file.  Include
493         sysdeps/i386/fpu/s_isinfl.c.
494
495         * sysdeps/ia64/fpu/s_isnanl.c: New file.  Include
496         sysdeps/i386/fpu/s_isnanl.c.
497
498         * sysdeps/ia64/fpu/s_nextafterl.c: New file.  Include
499         sysdeps/i386/fpu/s_nextafterl.c.
500
501         * sysdeps/ia64/fpu/bits/mathdef.h: New file.  Copied from
502         sysdeps/i386/fpu/bits/mathdef.h.
503
504 2000-09-16  H.J. Lu  <hjl@gnu.org>
505
506         * sysdeps/generic/ldsodefs.h (DL_UNMAP): New.  Defined if
507         DL_UNMAP_IS_SPECIAL is not defined.
508
509         * sysdeps/ia64/dl-lookupcfg.h (DL_UNMAP_IS_SPECIAL): Defined.
510         (_dl_unmap): New prototype.
511         (DL_UNMAP): New.  Defined as _dl_unmap.
512
513         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_unmap.
514
515         * elf/dl-close.c (_dl_close): Replace __munmap with DL_UNMAP.
516
517 2000-09-16  H.J. Lu  <hjl@gnu.org>
518
519         * sysdeps/generic/ldsodefs.h (DL_LOOKUP_ADDRESS): New. Defined
520         if ELF_FUNCTION_PTR_IS_SPECIAL is not defined.
521
522         * sysdeps/ia64/dl-lookupcfg.h (_dl_lookup_address): New
523         prototype.
524         (DL_LOOKUP_ADDRESS): New. Defined as _dl_lookup_address.
525
526         * sysdeps/ia64/dl-fptr.c (_dl_lookup_address): New. Lookup
527         the memory location of a function from a function descriptor.
528
529         * sysdeps/ia64/Versions [ld] (GLIBC_2.2): Add _dl_lookup_address.
530
531         * elf/dl-addr.c (_dl_addr): Use DL_LOOKUP_ADDRESS to get the
532         memory location.
533
534 2000-09-14  Jes Sorensen  <jes@linuxcare.com>
535
536         * sysdeps/ia64/bits/byteswap.h (__bswap_16): Don't mark output
537         variable as input argument.
538         (__bswap_32): Likewise.
539
540         * sysdeps/ia64/dl-machine.h: Add missing stop bit in RTLD_START()
541         - found by Jim Wilson <wilson@cygnus.com>
542
543 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
544
545         * string/strxfrm.c: Only require alignment on __alignof__ (int32_t)
546         instead of 4.
547
548 2000-09-26  Andreas Schwab  <schwab@suse.de>
549
550         * locale/programs/ld-collate.c (collate_output): Only require
551         alignment on __alignof__ (int32_t) instead of 4.
552         * locale/loadlocale.c (_nl_load_locale): Likewise.
553         * string/strcoll.c: Likewise.
554
555 2000-09-26  Jes Sorensen  <jes@linuxcare.com>
556
557         * sysdeps/ieee754/ldbl-96/e_atan2l.c (__ieee754_atan2l): Add
558         parentheses around arithmetic used in | statement to kill compiler
559         warning.
560
561         * math/math_private.h: Add prototype for __finitel.
562         (__ilogbl): Likewise.
563         (__isinfl): Likewise.
564         (__isnanl): Likewise.
565         (__atanl): Likewise.
566         (__copysignl): Likewise.
567         (__expm1l): Likewise.
568         (__floorl): Likewise.
569         (__frexpl): Likewise.
570         (__ldexpl): Likewise.
571         (__log1pl): Likewise.
572         (__nanl): Likewise.
573         (__rintl): Likewise.
574         (__scalbnl): Likewise.
575         (__sqrtl): Likewise.
576         (fabsl): Likewise.
577         (__sincosl): Likewise.
578
579 2000-09-26  Andreas Schwab  <schwab@suse.de>
580
581         * sysdeps/m68k/fpu/libm-test-ulps: New file
582
583 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
584
585         * locale/langinfo.h (__nl_langinfo_l): Add prototype.
586
587 2000-09-26  Andreas Jaeger  <aj@suse.de>
588
589         * misc/mkstemp64.c: New file.
590         * misc/Makefile (routines): Add mkstemp64.
591         * stdlib/stdlib.h: Add prototype and redirection magic.
592         * misc/Versions: Add mkstemp64.
593
594 2000-09-26  Thorsten Kukuk  <kukuk@suse.de>
595
596         * nscd/dbg_log.c (dbg_log): Add missing format string.
597
598 2000-09-26  Ulrich Drepper  <drepper@redhat.com>
599
600         * catgets/catgets.c (catopen): Use getenv instead of __secure_getenv
601         since we filter out the variable once.
602         * iconv/gconv_conf.c (__gconv_get_path): Likewise.
603         * locale/newlocale.c (__newlocale): Likewise.
604         * locale/setlocale.c (setlocale): Likewise.
605         * malloc/malloc.c (ptmalloc_init): Likewise.
606         * resolv/res_hconf.c (_res_hconf_init): Likewise.
607         * resolv/res_init.c (__res_vinit): Likewise.
608         * time/tzfile.c (__tzfile_read): Likewise.
609         * sysdeps/generic/unsecvars.h: New file.
610         * elf/dl-support.c (non_dynamic_init): Use it here to remove variables.
611         * elf/rtld.c (process_envvars): Likewise.
612         * elf/Makefile (distribute): Add unsecvars.h.
613
614         * misc/daemon.c (daemon): Fail if !noclose and we cannot open the
615         real /dev/null device.
616
617         * sysdeps/generic/check_fds.c: Include device-nrs.h.
618         * sysdeps/generic/device-nrs.h: New file.
619         * sysdeps/unix/sysv/linux/device-nrs.h: New file.
620         * misc/Makefile (distribute): Add device-nrs.h.
621
622         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Use O_TRUNC to
623         remove possible garbage at the end of the file.
624
625 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
626
627         * stdio-common/tmpnam_r.c: Warn about insecure tmpnam_r.
628         * stdio-common/tmpnam.c: Warn about insecure tmpnam.
629         * stdio-common/tempnam.c: Warn about insecure tempnam.
630         * misc/mktemp.c: Warn about insecure mktemp.
631
632         * sysdeps/generic/check_fds.c: Check that file opened is really
633         /dev/null.
634         * posix/wordexp.c (exec_comm_child): Likewise.
635
636         * elf/rtld.c (process_envvars): Open debug output file with O_NOFOLLOW.
637
638         * locale/Makefile (routines): Add nl_langinfo_l.
639         * locale/Versions [libc] (GLIBC_2.2): Add __nl_langinfo_l.
640         * locale/nl_langinfo_l.c: New file.
641         * locale/nl_langinfo.c: Allow use of file for __nl_langinfo_l
642         definition.
643
644 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
645
646         * iconvdata/gbk.c (USE_PRIVATE_AREA): Define to 0.
647         (__gbk_to_ucs): Conditionalize private area mappings.
648         (__gbk_from_ucs4_tab9): Likewise.
649         (BODY for TO_LOOP): Likewise.
650         * iconvdata/testdata/GBK: Don't use characters not yet in Unicode.
651         * iconvdata/testdata/GBK..UTF-8: Likewise.
652         * iconvdata/tst-tables.sh: Enable GBK test.
653
654 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
655
656         * iconvdata/gbk.c (__gbk_to_ucs): Swap U+2014 and U+2015.
657         (__gbk_from_ucs4_tab4): Swap entries for U+2014 and U+2015.
658         (BODY for FROM_LOOP): Reject input > 0xFEA0, avoids out-of-bounds
659         array access.
660         * iconvdata/gbgbk.c (BODY for FROM_LOOP): Map 0xA844 to 0xA1AA.
661         * iconvdata/testdata/GBK..UTF8: Swap U+2014 and U+2015.
662
663 2000-09-23  Bruno Haible  <haible@clisp.cons.org>
664
665         * iconvdata/johab.c (final_to_ucs): Fix typos.
666         (jamo_from_ucs_table): Likewise.
667         (BODY for FROM_LOOP): Map 0x5c to U+20A9. Reject ranges
668         0xD9E6..0xD9FE and 0xDEF2..0xDEFE.
669         (BODY for TO_LOOP): Map U+20A9 to 0x5c. Don't produce values in
670         the range 0xD9E6..0xD9FE.
671         * iconvdata/tst-tables.sh: Enable JOHAB testing.
672
673 2000-09-25  Ulrich Drepper  <drepper@redhat.com>
674
675         * iconv/gconv_conf.c (__gconv_get_path): Fix problem with relative
676         GCONV_PATH.
677
678 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
679
680         * libio/genops.c (_IO_doallocbuf): Don't use single byte buffer if
681         stream is in wide mode.
682
683         * stdio-common/vfprintf.c (buffered_vfprintf): Orient stream.
684
685 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
686
687         * iconvdata/iso-2022-cn-ext.c (EMIT_SHIFT_TO_INIT): Shift __count
688         by 3, not 2.
689         (INIT_PARAMS, UPDATE_PARAMS): Likewise.
690
691 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
692
693         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
694         reallocation logic for MALLOC (%as, %aS formats).
695
696 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
697
698         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
699         Add missing case in va_arg handling for numbers.
700         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
701         handling.
702         * stdio/tst-printf.sh: Adjust expected results.
703         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
704
705 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
706
707         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
708         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
709         characters.
710         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
711         as equivalent to uppercase hexadecimal digits.
712
713 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
714
715         * iconvdata/testdata/EUC-KR..UTF8: New file.
716         * iconvdata/testdata/EUC-TW: New file.
717         * iconvdata/testdata/EUC-TW..UTF8: New file.
718         * iconvdata/testdata/EUC-JP: New file.
719         * iconvdata/testdata/EUC-JP..UTF8: New file.
720         * iconvdata/testdata/ISO-2022-JP: New file.
721         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
722         * iconvdata/testdata/ISO-2022-JP-2: New file.
723         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
724         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
725         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
726         * iconvdata/testdata/ISO-2022-CN: New file.
727         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
728         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
729         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
730         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
731         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
732
733 2000-09-24  Andreas Jaeger  <aj@suse.de>
734
735         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
736         function add_single_dir.
737         (add_single_dir): New function.
738         (search_dir): Use add_single_dir instead of recursing.
739
740         * sysdeps/generic/dl-cache.h: Include stdint.h.
741         (struct file_entry_new): Use fixed sizes for interoperability
742         between 32bit and 64bit systems, add __unused to make alignment
743         explicit.
744         (CACHE_VERSION): Increment.
745         (struct cache_file_new): Use fixed sizes, add one more unused
746         entry to make alignment explicit.
747
748 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
749
750         * elf/ldconfig.c (search_dir): Make more use of d_type information.
751
752 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
753
754         * stdio-common/printf-parse.h (parse_one_spec): Clear
755         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
756
757 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
758
759         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
760         #undef since we don't have msync.
761
762         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
763         constant since that is what clock_t is.
764         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
765
766 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
767
768         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
769         multiply by LOAD_SCALE.
770
771 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
772
773         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
774         (crypt_r, setkey_r, encrypt_r): Likewise.
775
776 2000-09-22  Andreas Jaeger  <aj@suse.de>
777
778         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
779         array size.
780
781         * sysdeps/alpha/fpu/libm-test-ulps: New file.
782         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
783
784 2000-09-21  Andreas Jaeger  <aj@suse.de>
785
786         * math/libm-test.inc (atan_test): Test for existence of function.
787         (expm1_test): Likewise.
788         (acos_test): Likewise.
789         (asin_test): Likewise.
790         (exp_test): Likewise.
791         (log10_test): Likewise.
792         (log_test): Likewise.
793         (pow_test): Likewise.
794         (sqrt_test): Likewise.
795         (cos_test): Likewise.
796         (sin_test): Likewise.
797         (tan_test): Likewise.
798         (log1p_test): Likewise.
799         (log2_test): Likewise.
800
801         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
802
803         * libio/oldiofsetpos64.c: Fix alias names.
804
805 2000-09-21  Martin Buchholz  <martin@xemacs.org>
806
807         * manual/terminal.texi (Allocation): Sample code correction.
808
809 2000-09-20  Andreas Jaeger  <aj@suse.de>
810
811         * iconvdata/Makefile (generated): Add tst-tables.out.
812
813         * intl/Makefile (generated): Add test output.
814
815 2000-09-19  Andreas Jaeger  <aj@suse.de>
816
817         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
818         Reported by Jens-Uwe Mager <jum@helios.de>.
819
820 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
821
822         * version.h (VERSION): Bump to 2.1.94.
823
824         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
825         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
826         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
827         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
828
829         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
830
831 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
832
833         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
834         range 0xD800..0xDFFF.
835         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
836         (BODY for FROM_LOOP): Likewise.
837         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
838         (internal_ucs2_loop): Likewise.
839         (ucs2reverse_internal_loop): Likewise.
840         (internal_ucs2reverse_loop): Likewise.
841
842 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
843
844         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
845         names.
846
847 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
848
849         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
850         * iconvdata/tst-table-to.c (main): Likewise.
851
852 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
853
854         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
855         __isoir165_tab.
856         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
857         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
858         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
859         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
860         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
861         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
862         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
863         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
864         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
865         encodings when needed.  When outputting an announcement, don't clear
866         most other announcements.
867
868 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
869
870         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
871         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
872
873 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
874
875         * intl/Versions: Add bind_textdomain_codeset.
876
877 2000-09-16  Ralf Baechle  <ralf@gnu.org>
878
879         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
880         as function.
881         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
882         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
883         it will even work when not loaded to the standard address.
884         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
885         before the dynamic linker itself is relocated.
886
887 2000-09-18  Andreas Jaeger  <aj@suse.de>
888
889         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
890         __ASSUME_32BITUIDS for MIPS.
891         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
892         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
893
894 2000-09-17  H.J. Lu  <hjl@gnu.org>
895
896         * catgets/Makefile ($(objpfx)de/libc.cat): Use
897         $(make-target-directory) instead of mkdir.
898
899 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
900
901         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
902         __ASSUME_32BITUIDS for __powerpc__.
903         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
904         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
905
906 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
907
908         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
909         patch.
910         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
911
912 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
913
914         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
915         first.
916         * sysdeps/m68k/Implies: Likewise.
917         * sysdeps/sparc/sparc64/Implies: Likewise.
918
919 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
920
921         * elf/readlib.c (process_file): Don't error for stale .so links either.
922
923 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
924
925         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
926         __builtin_expect.
927
928         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
929         Patch by Thorsten Kukuk <kukuk@suse.de>.
930
931         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
932         (test): Add default.
933         (modules-names): Add defaultmod1 and defaultmod2.
934         Add rules to build test objects.
935
936 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
937
938         * wctype/wctype.h: Always include <bits/types.h>.
939         Reported by Jim Meyering <meyering@ascend.com>.
940
941         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
942         * elf/dl-support.c: Likewise.
943
944         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
945         st_blocks member in stat and stat64 structs.
946         Patch by Bill Nottingham <notting@redhat.com>.
947
948         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
949         take longer.
950
951         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
952         __extension__ to _Complex_I definition since gcc warns if -pedantic.
953         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
954         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
955
956         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
957         necessary.  Move includes of POSIX and Unix limits files to the end.
958         * stdlib/Makefile (tests): Add tst-limits.
959         * stdlib/tst-limits.h: New file.
960
961 2000-09-15  Andreas Jaeger  <aj@suse.de>
962
963         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
964
965         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
966
967 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
968
969         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
970         clobber.
971         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
972         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
973
974 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
975
976         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
977         (tests): Add next.
978         (modules-names): Add nextmod1 and nextmod2.
979         Add rules to build and run next.
980         * elf/next.c: New file.
981         * elf/nextmod1.c: New file.
982         * elf/nextmod2.c: New file.
983
984 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
985
986         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
987
988 2000-09-15  Andreas Jaeger  <aj@suse.de>
989
990         * sysdeps/mips/fpu/fenv_libc.h: New file.
991         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
992         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
993         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
994
995         * sysdeps/mips/fpu/feenablxcpt.c: New file.
996         * sysdeps/mips/fpu/fegetexcept.c: New file.
997         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
998
999 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
1000
1001         * intl/Makefile: Avoid unnecessary test reruns.
1002
1003         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
1004
1005         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
1006         to not use sysctl().  Too many architectures have problems with it.
1007
1008 2000-09-14  Andreas Jaeger  <aj@suse.de>
1009
1010         * scripts/config.sub: New version from subversions.gnu.org.
1011
1012         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
1013         long.
1014
1015 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
1016
1017         * posix/regex.c (compile_range): Cast collseq index to unsigned char
1018         to avoid accessing data before collseq.
1019
1020         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
1021         pasting strings together.
1022
1023 2000-09-14  Greg McGary  <greg@mcgary.org>
1024
1025         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
1026         copyright notice.
1027         * sysdeps/generic/bp-semctl.h: Likewise.
1028         * sysdeps/generic/bp-start.h: Likewise.
1029         * sysdeps/generic/bp-sym.h: Likewise.
1030         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
1031         rename prototype.
1032
1033 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1034
1035         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
1036         don't fail.
1037
1038         * elf/elf.h: Add missing official relocations.
1039
1040         * libio/stdio.h: Define __FILE if __need___FILE is defined.
1041         * stdio/stdio.h: Likewise.
1042         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
1043         * include/stdio.h: Handle __need___FILE like __need_FILE.
1044         * include/wchar.h: Use __FILE instead of FILE.
1045         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
1046         * libio/fwscanf.c: Likewise.
1047         * libio/getwc.c: Likewise.
1048
1049         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
1050         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
1051         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
1052
1053         * assert/assert.h: Update comment header about ISO C section.
1054         * math/complex.h: Likewise.
1055         * ctype/ctype.h: Likewise.
1056         * include/errno.h: Likewise.
1057         * include/limits.h: Likewise.
1058         * locale/locale.h: Likewise.
1059         * math/math.h: Likewise.
1060         * setjmp/setjmp.h: Likewise.
1061         * signal/signal.h: Likewise.
1062         * stdio/stdio.h: Likewise.
1063         * libio/stdio.h: Likewise.
1064         * stdlib/stdlib.h: Likewise.
1065         * string/string.h: Likewise.
1066         * time/time.h: Likewise.
1067         * wcsmbs/wchar.h: Likewise.
1068         * wctype/wctype.h: Likewise.
1069         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1070
1071 2000-09-13  Andreas Jaeger  <aj@suse.de>
1072
1073         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
1074         for no more entries.
1075         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
1076         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
1077         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
1078
1079 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1080
1081         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
1082         constant since this is what clock_t is.
1083         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
1084         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
1085         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
1086         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
1087
1088         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
1089         definitions are requested.
1090
1091 2000-09-13  Andreas Jaeger  <aj@suse.de>
1092
1093         * shlib-versions: libBrokenLocale needs minimal version for ia64,
1094         sparc64 and sh to synch with libc.
1095
1096 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
1097
1098         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
1099         (distribute): Add iso-2022-cn-ext.c.
1100         Add definitions to compile the new module.
1101         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
1102         * iconvdata/iso-2022-cn-ext.c: New file.
1103         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
1104         ucs4_from_isoir165.  Increment input pointer if successful.
1105
1106         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
1107
1108         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
1109
1110 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
1111
1112         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
1113         __syscall_getdents64 wrapper.
1114
1115         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
1116
1117 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
1118
1119         * iconvdata/gb18030.c: Many many changes.  Make consistent with
1120         charmap and with itself.
1121         * iconvdata/tst-tables.sh: Test GB18030.
1122
1123 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1124
1125         * iconv/skeleton.c: Fix last patch, add missing parameter to
1126         unaligned function call.
1127
1128 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1129
1130         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
1131         of decimal ellipsis.
1132
1133 2000-09-11  Bruno Haible <haible@clisp.cons.org>
1134
1135         * locale/programs/ld-collate.c (collate_read): Always initialize
1136         error_section.next.
1137
1138 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1139
1140         * locale/programs/ld-collate.c (collate_finish): Upper bound for
1141         ruleidx is 128, not 256.
1142
1143 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * locale/programs/ld-collate.c (collate_read): Correct check for
1146         already inserted entries.
1147
1148 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1149
1150         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
1151         second try as well.
1152
1153 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1154
1155         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
1156         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
1157
1158 2000-09-10  Bruno Haible <haible@clisp.cons.org>
1159
1160         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
1161         SAVE_RESET_STATE.
1162
1163 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
1164
1165         * iconvdata/utf-7.c: New file.
1166         * iconvdata/gconv-modules (UTF-7): New module entries.
1167         * iconvdata/Makefile (modules): Add UTF-7.
1168         (distribute): Add utf-7.c.
1169         * iconvdata/testdata/UTF-7: New file.
1170         * iconvdata/testdata/UTF-7..UTF8: New file.
1171         * iconvdata/TESTS (UTF-7): New entry.
1172         * iconvdata/run-iconv-test.sh: Fix confusing output.
1173
1174 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
1175
1176         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
1177
1178 2000-09-10  David S. Miller  <davem@redhat.com>
1179
1180         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
1181         frame pointer offset for non-fast path.
1182
1183 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1184
1185         * locale/programs/3level.h (*_init): Initialize level1, level2,
1186         and level3 as well.
1187         (*_add): Remove a few unnecessary conditionals.
1188
1189 2000-09-05  Wolfram Gloger  <wg@malloc.de>
1190
1191         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
1192         ensure usability of mutex as an `in use' flag.
1193
1194 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
1195
1196         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
1197
1198         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
1199         ugly GMON_WEAK_START hack.
1200         Patch by Philip Blundell <philb@gnu.org>.
1201
1202         * sysdeps/i386/i486/bits/string.h: Pretty printing.
1203
1204 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1205
1206         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
1207         and PPC_ICBI asm for broken compilers.
1208         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1209
1210 2000-09-09  Andreas Jaeger  <aj@suse.de>
1211
1212         * manual/message.texi (Advanced gettext functions): Fix typo.
1213
1214         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
1215         strncpy prototype.
1216
1217 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
1218
1219         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
1220         warnings.
1221         * sysdeps/ia64/memccpy.S: Likewise.
1222         Patches by Jim Wilson <wilson@redhat.com>.
1223
1224         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
1225         before trying to read /proc.
1226         Patch by Matt Wilson <msw@redhat.com>.
1227         * include/sys/utsname.h: Declare __uname.
1228         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
1229         * sysdeps/mach/hurd/uname.c: Likewise.
1230         * sysdeps/unix/syscalls.list: Likewise.
1231
1232         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
1233         unloading a bit.
1234
1235 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
1236
1237         * posix/getopt.c (_getopt_internal): When long_only is set always
1238         recognize conflicts just like before.
1239
1240 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1241
1242         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
1243
1244 2000-09-08  Greg McGary  <greg@mcgary.org>
1245
1246         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
1247         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
1248         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
1249
1250 2000-09-08  Andreas Jaeger  <aj@suse.de>
1251
1252         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
1253
1254         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
1255
1256         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
1257         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
1258         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
1259
1260 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1261
1262         * iconvdata/tst-tables.sh: Enable EUC-KR test.
1263
1264         * elf/dl-load.c (lose): Decrement _nl_loaded.
1265         (_dl_map_object_from_fd): Don't try to dlopen executables.
1266
1267         * iconvdata/tst-tables.sh: Actually return with an error if
1268         something goes wrong.
1269         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
1270         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
1271
1272         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
1273
1274         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
1275         * iconvdata/tst-table-from.c: Include <string.h>.
1276         (try): Correct cast in iconv call.
1277
1278         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
1279         too.
1280         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
1281         (sysdep_routines): Remove dl-start.
1282         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1283
1284         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
1285
1286         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
1287         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
1288
1289 2000-09-06  Andreas Schwab  <schwab@suse.de>
1290
1291         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
1292
1293 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1294
1295         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
1296
1297         * scripts/config.sub: Strip out -unknown for Linux targets.
1298         Patch by Scott Bambrough <scottb@netwinder.org>.
1299
1300         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
1301         add one more test.
1302
1303 2000-09-07  Andreas Jaeger  <aj@suse.de>
1304
1305         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
1306
1307         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
1308         syscalls.
1309
1310         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
1311
1312         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
1313         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
1314
1315         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
1316
1317         * stdlib/tst-bsearch.c (main): Add more test cases.
1318
1319         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
1320         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1321         Reported by GOTO Masanori <gotom@debian.or.jp>.
1322
1323 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
1324
1325         * posix/Makefile (tests): Add tst-dir.
1326         (tst-dir-ARGS): New variable.
1327         * posix/tst-dir.c: New file.
1328
1329 2000-09-07  Andreas Jaeger  <aj@suse.de>
1330
1331         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
1332         (SYS_fcntl64): New.
1333
1334         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
1335
1336 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
1337
1338         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
1339         use the hack with tryopen_o_directory to determine at runtime
1340         whether it works.
1341         * sysdeps/unix/sysv/linux/opendir.c: New file.
1342         * sysdeps/unix/sysv/linux/kernel-features.h: Define
1343         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
1344
1345         * catgets/Depend: New file.  Add intl.
1346         * catgets/Makefile (tests): Add tst-catgets.
1347         (generated): Remove de.msg.
1348         (generated-dirs): Add de.
1349         Add dependency if tst-catgets output on de/libc.cat.
1350         * catgets/tst-catgets.c: New file.
1351
1352         * po/ja.po: New file.
1353         * po/el.po: Update from translation team.
1354
1355         * wcsmbs/Depend: New file.
1356         * wcsmbs/Makefile (tests): Add tst-btowc.
1357         (tst-btowc-ENV): Define.
1358         * wcsmbs/tst-btowc.c: New file.
1359
1360         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
1361         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
1362
1363         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
1364
1365         * stdlib/Makefile (tests): Add tst-bsearch.
1366         * stdlib/tst-bsearch.c: New file.
1367
1368         * posix/getopt.c (_getopt_internal): Don't recognize an option
1369         name as ambiguous if it's a prefix for more than one name but the
1370         other struct option values are identical.
1371
1372         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
1373         Don't depend on visual inspection of the output file to recognize
1374         errors.
1375         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
1376
1377 2000-09-06  Andreas Jaeger  <aj@suse.de>
1378
1379         * sysdeps/alpha/soft-fp/Dist: New file.
1380         * sysdeps/i386/soft-fp/Dist: New file.
1381         * sysdeps/mips/mips64/soft-fp/Dist: New file.
1382         * sysdeps/mips/soft-fp/Dist: New file.
1383         * sysdeps/powerpc/soft-fp/Dist: New file.
1384         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
1385         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
1386
1387         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
1388         Use sysdep_routines instead of routines to fix make dist failure.
1389         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
1390         out code).
1391         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
1392
1393         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
1394         sysdep_headers instead of headers for make dist.
1395
1396         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
1397         Likewise.
1398
1399 2000-09-06  Andreas Schwab  <schwab@suse.de>
1400
1401         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
1402
1403 2000-09-06  Andreas Jaeger  <aj@suse.de>
1404
1405         * soft-fp/Makefile (distribute): Remove ChangeLog.
1406
1407         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
1408         sysdep_routines instead of routines for make dist.
1409
1410 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1411
1412         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
1413         compatibility check for old stream and call _IO_wide in doubt.
1414         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
1415         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
1416         needed tst for such an old structure and don't do anything.
1417         * libio/freopen.c: Remove declaration of _IO_stdin_used.
1418
1419 2000-09-06  Andreas Jaeger  <aj@suse.de>
1420
1421         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
1422         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1423         and dl-routines.
1424
1425         * soft-fp/ChangeLog: Merged with this file.
1426
1427 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
1428
1429         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
1430
1431         * soft-fp/Makefile (distribute): Add the math functions, too.
1432
1433         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
1434
1435 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
1436
1437         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
1438         as a statement.
1439
1440         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
1441         * soft-fp/sysdeps/powerpc/q_*: New files.
1442
1443 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1444
1445         * stdio-common/vfprintf.c (process_string_arg): Handle precision
1446         in wide char case correctly.  Don't allocate too long temporary
1447         strings with alloca.
1448
1449         * stdio-common/Makefile (tests): Add tst-swprintf.
1450         (tst-swprintf-ENV): New variable.
1451         * stdio-common/tst-swprintf.c: New file.
1452
1453 2000-09-05  Andreas Jaeger  <aj@suse.de>
1454
1455         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
1456         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
1457         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1458
1459 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
1460
1461         * configure.in: Strip out "unknown" from configuration names.
1462
1463 2000-09-05  Andreas Jaeger  <aj@suse.de>
1464
1465         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
1466
1467         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
1468         * sysdeps/sparc/sparc32/Implies: Likewise.
1469         * sysdeps/powerpc/Implies: Likewise.
1470
1471         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
1472         * libio/oldiofgetpos64.c: Likewise.
1473
1474         * soft-fp/Makefile (distribute): Remove configure.
1475
1476         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
1477
1478         * soft-fp/configure: Remove.
1479
1480         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1481         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1482
1483         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
1484         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
1485
1486         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
1487         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
1488
1489         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
1490         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
1491
1492         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
1493         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
1494
1495         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
1496         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
1497
1498         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
1499         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
1500
1501         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
1502         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
1503
1504         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
1505         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
1506
1507         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
1508         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
1509
1510         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
1511         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
1512
1513         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
1514         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
1515
1516         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
1517         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
1518
1519         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
1520         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
1521
1522         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
1523         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
1524
1525         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
1526         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
1527
1528         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
1529         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
1530
1531         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
1532         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
1533
1534         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
1535         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
1536
1537         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
1538         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
1539
1540         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
1541         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
1542
1543         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
1544         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
1545
1546         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
1547         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
1548
1549         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
1550         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
1551
1552         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
1553         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
1554
1555         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
1556         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
1557
1558         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
1559         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
1560
1561         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
1562         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
1563
1564         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
1565         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
1566
1567         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
1568         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
1569
1570         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
1571         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
1572
1573         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
1574         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
1575
1576         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
1577         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
1578
1579         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
1580         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
1581
1582         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
1583         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
1584
1585         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
1586         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
1587
1588         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
1589         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
1590
1591         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
1592         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
1593
1594         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
1595         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
1596
1597         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
1598         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
1599
1600         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
1601         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
1602
1603         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
1604         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
1605
1606         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
1607         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
1608
1609         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
1610         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
1611
1612         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
1613         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
1614
1615         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
1616         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
1617
1618         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
1619         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
1620
1621         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
1622         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
1623
1624         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
1625         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
1626
1627         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
1628         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
1629
1630         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
1631         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
1632
1633         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
1634         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
1635
1636         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
1637         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
1638
1639         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
1640         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
1641
1642         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
1643         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
1644
1645         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
1646         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
1647
1648         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
1649         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
1650
1651         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
1652         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
1653
1654         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
1655         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
1656
1657         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
1658         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
1659
1660         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
1661         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
1662
1663         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
1664         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
1665
1666         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
1667         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
1668
1669         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
1670         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
1671
1672         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
1673         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
1674
1675         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
1676         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
1677
1678         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
1679         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
1680
1681         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
1682         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
1683
1684         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
1685         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
1686
1687         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
1688         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
1689
1690         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
1691         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1692
1693         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1694         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1695
1696         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1697         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1698
1699         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1700         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1701
1702         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1703         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1704
1705         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1706         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1707
1708         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1709         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1710
1711         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1712         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1713
1714         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1715         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1716
1717         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1718         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1719
1720         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1721         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1722
1723         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1724         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1725
1726         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1727         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1728
1729         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1730         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1731
1732         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1733         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1734
1735         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1736         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1737
1738         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1739         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1740
1741         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1742         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1743
1744         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1745         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1746
1747         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1748         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1749
1750         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1751         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1752
1753         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1754         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1755
1756         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1757         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1758
1759         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1760         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1761
1762         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1763         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1764
1765         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1766         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1767
1768         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1769         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1770
1771         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1772         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1773
1774         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1775         change symbol version.
1776         * libio/oldiofgetpos64.c: Likewise.
1777         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1778
1779         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1780         typo.
1781         Reported by dyky@kondara.org, closes PR libc/1886.
1782
1783         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1784         libc/1880.
1785
1786 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1787
1788         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1789         script when ^C is hit.
1790
1791         * locale/programs/localedef.c (construct_output_path): Correct
1792         computation of endp after asprintf.
1793         * locale/programs/locfile.c (write_locale_data): Don't add extra
1794         slash in filename.
1795
1796 2000-09-05  Andreas Jaeger  <aj@suse.de>
1797
1798         * scripts/config.guess: New upstream version.
1799         * scripts/config.sub: Likewise.
1800         * manual/texinfo.tex: Likewise.
1801
1802 2000-09-04  Andreas Schwab  <schwab@suse.de>
1803
1804         * elf/Makefile (all-dl-routines): New variable.
1805         (elide-routines.os): Use it instead of $(dl-routines).
1806         (all-rtld-routines): New variable.
1807         (extra-objs): Use it instead of $(rtld-routines).
1808         ($(objpfx)dl-allobjs.os): Likewise.
1809         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1810         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1811         and dl-routines.
1812
1813 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1814
1815         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1816         Set fname to NULL if the module wasn't found.
1817
1818 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1819
1820         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1821         true if trans->name already ends in ".so".
1822
1823 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1824
1825         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1826         void.
1827         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1828         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1829         (__gconv_release_shlib): Change return type to void.
1830         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1831         step->__counter here.
1832         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1833         if the reference is zero.
1834         (release_step): New function.
1835         (gen_steps): Always initialize the __counter to 1. Use release_step.
1836         Don't call the destructor on the step whose initializer failed.
1837         (increment_counter): Use release_step. Don't normally run destructors
1838         here.
1839         (__gconv_close_transform): Use release_step.
1840
1841 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1842
1843         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1844         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1845
1846 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1847
1848         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1849         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1850         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1851         to check for incomplete input.
1852         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1853         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1854         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1855         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1856         0x9f9d..0x9fa5.
1857         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1858         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1859         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1860         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1861         upto index 0x0052.
1862
1863 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1864
1865         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1866         solution.
1867
1868 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1869
1870         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1871         are invalid.
1872
1873 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1874
1875         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1876         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1877         U+007E.
1878
1879 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1880
1881         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1882
1883 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1884
1885         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1886
1887 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1888
1889         * iconvdata/tst-tables.sh: New file.
1890         * iconvdata/tst-table.sh: New file.
1891         * iconvdata/tst-table-from.c: New file.
1892         * iconvdata/tst-table-to.c: New file.
1893         * iconvdata/tst-table-charmap.sh: New file.
1894         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1895         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1896         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1897         ISIRI-3342.irreversible, SJIS.irreversible.
1898         (tests): Add dependency on tst-tables.out.
1899         (tst-tables.out, tst-tables-clean): New rules.
1900         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1901         * iconvdata/ISIRI-3342.irreversible: New file.
1902         * iconvdata/EUC-JP.irreversible: New file.
1903         * iconvdata/SJIS.irreversible: New file.
1904
1905 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1906
1907         * manual/locale.texi (General Numeric): Update description of
1908         representation of the grouping information in the locale data.
1909         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1910
1911 2000-09-04  Andreas Jaeger  <aj@suse.de>
1912
1913         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1914         * iconv/iconv_prog.c (options): Fix typo.
1915         Reported by dyky@kondara.org, closes PR libc/1885.
1916
1917 2000-09-04  Andreas Jaeger  <aj@suse.de>
1918
1919         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1920         Reported by Rob Levin <lilo@transvirtual.com>.
1921
1922 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1923
1924         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1925         to the typedefs of __timezone_ptr_t.
1926         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1927
1928 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1929
1930         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1931         the loop.
1932
1933 2000-09-01  H.J. Lu  <hjl@gnu.org>
1934
1935         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1936         to run a binary if it is in $(tests-static).
1937
1938         * Rules (binaries-static): Add $(tests-static).
1939
1940 2000-09-02  Andreas Jaeger  <aj@suse.de>
1941
1942         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1943
1944         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1945         patch.
1946
1947 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1948
1949         * iconvdata/big5hkscs.c: Regenerated from charmap.
1950         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1951         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1952
1953         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1954         statement.  General cleanup.
1955
1956 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1957
1958         * wctype/wcfuncs.c (iswblank): New function.
1959         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1960         * wctype/wcextra.c: Remove file.
1961         * wctype/wcextra_l.c: Remove file.
1962         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1963
1964 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1965
1966         * locale/programs/ld-collate.c (collate_output): Remove redundant
1967         assert call.
1968         * string/strcoll.c: Likewise.
1969         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1970         string/strcoll.c.
1971
1972 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1973
1974         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1975         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1976         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1977         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1978         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1979         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1980         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1981         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1982         _NL_CTYPE_GAP5/6 respectively.
1983
1984         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1985         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1986         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1987         Don't initialize __ctype_names and __ctype_width.
1988         * wctype/cname-lookup.h: Remove file.
1989         * wctype/Makefile (distribute): Remove cname-lookup.h.
1990         * wctype/wchar-lookup.h: Include stdint.h.
1991         * wctype/wctype.c (__wctype): Assume new locale format.
1992         * wctype/wctype_l.c (__wctype_l): Likewise.
1993         * wctype/iswctype.c: Don't include cname-lookup.h.
1994         (__iswctype): Assume new locale format.
1995         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1996         (__iswctype_l): Assume new locale format.
1997         * wctype/wctrans.c: Don't include ctype.h.
1998         (wctrans): Assume new locale format.
1999         * wctype/wctrans_l.c (__wctrans_l): Likewise.
2000         * wctype/towctrans.c: Don't include cname-lookup.h.
2001         (__towctrans): Assume new locale format.
2002         * wctype/towctrans_l.c: Don't include cname-lookup.h.
2003         (__towctrans_l): Assume new locale format.
2004         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
2005         localeinfo.h instead.
2006         (__NO_WCTYPE): Remove unused macro.
2007         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
2008         declarations.
2009         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
2010         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
2011         (towlower, towupper): Likewise.
2012         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
2013         localeinfo.h instead.
2014         (__NO_WCTYPE): Remove unused macro.
2015         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
2016         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
2017         __iswxdigit_l): Assume new locale format.
2018         (__towlower_l, __towupper_l): Likewise.
2019         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
2020         (__ctype32_b): Remove declaration.
2021         (internal_wcwidth): Assume new locale format.
2022         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
2023         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
2024         to map32_b, rename width_3level to width.
2025         (ctype_output): Always create new locale format. Don't emit
2026         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
2027         (allocate_arrays): Always create new locale format.
2028
2029         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
2030         * locale/weightwc.h (findidx): Assume new locale format.
2031         * string/strcoll.c (wcscoll): Remove local variables size, layers,
2032         names.
2033         * string/strxfrm.c (wcsxfrm): Likewise.
2034         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
2035         local variable collseq to 'const char *'.
2036         (SUFFIX): Don't use, don't undefine.
2037         * posix/fnmatch.c: Remove SUFFIX definition.
2038         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
2039         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
2040         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
2041         (collate_finish): Always create new locale format. Remove local
2042         variables min_total, act_size.
2043         (collate_output): Always create new locale format. Remove local
2044         variables table_size, names, tablewc. Rename tablewc_3level to
2045         tablewc.
2046
2047 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
2048
2049         * locale/programs/ld-collate.c (obstack_int32_grow,
2050         obstack_int32_grow_fast): New inline functions.
2051         (output_weightwc, collate_output): Use them where possible.
2052
2053 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
2054
2055         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
2056         patch (_mode -> _flags).
2057
2058         * libio/Makefile (headers): Add stdio_ext.h.
2059         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
2060         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
2061         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
2062         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
2063         __fsetlocking, and _flushlbf.
2064         * libio/__fbufsize.c: New file.
2065         * libio/__flbf.c: New file.
2066         * libio/__fpending.c: New file.
2067         * libio/__fpurge.c: New file.
2068         * libio/__freadable.c: New file.
2069         * libio/__freading.c: New file.
2070         * libio/__fsetlocking.c: New file.
2071         * libio/__fwritable.c: New file.
2072         * libio/__fwriting.c: New file.
2073         * libio/stdio_ext.h: New file.
2074         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
2075         * libio/libio.h (_IO_USER_LOCK): Define.
2076         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
2077         test _IO_USER_LOCK flag first.
2078
2079         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
2080         malloc fails.
2081
2082 2000-09-01  Andreas Jaeger  <aj@suse.de>
2083
2084         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
2085
2086         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
2087
2088 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2089
2090         * math/Makefile (tests): Add tst-defintions.
2091         * math/tst-definitions.c: New file.
2092
2093         * stdlib/Makefile (headers): Add bits/wchar.h.
2094         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
2095         * sysdeps/generic/bits/wchar.h: New file.
2096         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
2097         file to define WCHAR_MIN and WCHAR_MAX.
2098         Change UINT*8_MAX and UIN*16_MAX value to type int.
2099         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
2100         file to define WCHAR_MIN and WCHAR_MAX.
2101         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
2102         int values.
2103         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
2104         * sysdeps/generic/bits/mathdef.h: Likewise.
2105         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
2106         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
2107         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
2108         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
2109         * locale/locale.h (struct lconv): Add __ prefix to the new members
2110         if not C99.
2111         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
2112         imaxdiv optimizations.
2113         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
2114         * sysdeps/wordsize-64/ldiv.c: Likewise.
2115         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
2116         const fenv_t*.
2117         * sysdeps/generic/bits/fenv.h: Likewise.
2118         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
2119         * sysdeps/ia64/bits/fenv.h: Likewise.
2120         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
2121         * sysdeps/mips/bits/fenv.h: Likewise.
2122         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
2123         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
2124         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2125
2126         * inet/rcmd.c: Use *stat64 instead of *stat internally.
2127         * inet/ruserpass.c: Likewise.
2128         * catgets/open_catalog.c: Likewise.
2129         * intl/loadmsgcat.c: Likewise.
2130         * io/getdirname.c: Likewise.
2131         * locale/loadlocale.c: Likewise.
2132         * misc/getusershell.c: Likewise.
2133         * stdlib/canonicalize.c: Likewise.
2134         * sysdeps/posix/euidaccess.c: Likewise.
2135         * sysdeps/posix/isfdtype.c: Likewise.
2136         * sysdeps/posix/posix_fallocate.c: Likewise.
2137         * sysdeps/posix/tempname.c: Likewise.
2138         * sysdeps/unix/grantpt.c: Likewise.
2139         * sysdeps/unix/opendir.c: Likewise.
2140         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
2141         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
2142         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2143         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
2144         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2145         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
2146         * sysvipc/ftok.c: Likewise.
2147         * time/getdate.c: Likewise.
2148
2149         * time/getdate.c: Add extra access test.
2150
2151 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
2152
2153         * version.h (VERSION): Bump to 2.1.93.
2154
2155         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
2156         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
2157
2158         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
2159         Make this a new rule depending on tst-gettext.out and run mtrace.
2160         * intl/tst-gettext.c: Call mtrace.
2161         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
2162
2163         * elf/dl-reloc.c: Add a few more __builtin_expect.
2164
2165         * configure.in: Remove --with-gettext option.
2166
2167         * intl/dcigettext.c (free_mem): Correct freeing of
2168         _nl_domain_bindings list.
2169
2170         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
2171         allocated memory.
2172
2173         * intl/locale.alias: Add aliases for bokmal and nynorsk.
2174
2175         * locale/iso-639.def: Fix 639-1 code for Bokmal.
2176
2177         * stdio-common/itoa-digits.c: Move upper digits to...
2178         * stdio-common/itoa-udigits.c: ...here.  New file.
2179         * stdio-common/Makefile (routines): Add itoa-udigits.
2180
2181         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
2182         relocate ld.so don't add supprt for relocations which should not
2183         appear in ld.so.
2184
2185         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
2186         __secure_getenv.  Instead test __libc_enable_secure once.
2187
2188         * io/pwd.c (main): Provide a good example, use *_unlocked function.
2189
2190 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2191
2192         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
2193         whether the new record should be freed if it's a duplicate.
2194         (add_module): Adjust insert_module call.
2195         (__gconv_read_conf): Likewise.
2196         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
2197         mtrace-tst-loading.
2198         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
2199
2200         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
2201         _dl_all_init_dirs.
2202         * include/link.h (struct r_search_path_struct): New.
2203         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
2204         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
2205         _dl_all_init_dirs.
2206         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
2207         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
2208         added at startup time.
2209         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
2210         contains element to remember fact that we can free memory.
2211         (all_dirs): Renamed to _dl_all_dirs.  Made global.
2212         (_dl_init_all_dirs): New variable.
2213         (fillin_rpath): Save one malloc call.
2214         (decompose_rpath): Change interface.  New first parameter points to
2215         r_search_path_struct.
2216         (_dl_init_paths): Adjust for changes.  Mark all memory as not
2217         deletable.  Set _dl_init_all_paths value.
2218         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
2219         parameter replaced with r_search_path_struct *.  Information about
2220         freeing now contained in r_search_path_struct.
2221         (_dl_map_object): Adjust for above changes.
2222
2223         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
2224
2225         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
2226         when adding new entries.
2227
2228         * elf/dl-load.c (fillin_rpath): Make local copy of where string
2229         since the object being loaded can be unloaded.
2230
2231         * iconvdata/Makefile (tests): Add tst-loading.
2232         * iconvdata/tst-loading.c: New file.
2233
2234 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
2235
2236         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
2237         When comparing a char with an int, always cast the char to
2238         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
2239         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
2240
2241 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
2242
2243         * time/strftime.c (my_strftime): Add compatibility code for use
2244         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
2245
2246         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
2247         return 0 for success but always < 0 on failure.
2248
2249         * nss/getXXbyYY_r.c: Define result to *result before including
2250         digits_dots.c.
2251
2252 2000-08-30  Andreas Jaeger  <aj@suse.de>
2253
2254         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
2255
2256 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2257
2258         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
2259         official file.
2260         * iconvdata/TESTS: Add BIG5HKSCS entry.
2261         * iconvdata/testdata/BIG5HKSCS: New file.
2262         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
2263
2264         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
2265         always true.
2266
2267         * libio/iogetline.c: Set mode before the loop in case n==0.
2268         * libio/iogetwline.c: Likewise.
2269
2270 2000-08-29  H.J. Lu  <hjl@gnu.org>
2271
2272         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
2273         of fp->_mode < 0.
2274         (_IO_new_file_overflow): Likewise.
2275         * libio/genops.c (_IO_flush_all): Likewise.
2276         * libio/ioftell.c (_IO_ftell): Likewise.
2277
2278 2000-08-29  Akira Higuchi  <a@kondara.org>
2279
2280         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
2281         and __end_fct fields of struct __gconv_step.
2282         * iconv/Makefile (tests): Add iconv-bug2.
2283         * iconv/iconv-bug2.c: New file.
2284
2285         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
2286         instead of 'inptr - inend' to ksc5601_to_ucs4.
2287
2288         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
2289
2290         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
2291         character or shift sequence is found at the end of the input
2292         string, return__GCONV_INCOMPLETE_INPUT instead of
2293         __GCONV_EMPTY_INPUT.
2294         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
2295         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
2296
2297         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
2298         __GCONV_ILLEGAL_INPUT for 8bit characters.
2299
2300 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
2301
2302         * signal/signal.h (sigpause): Move __THROW before __asm__.
2303
2304         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
2305         names don't match don't return.
2306         Patch by Olaf Kirch <okir@flash.lst.de>.
2307
2308 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2309
2310         * time/strftime.c (my_strftime): Handle # flag for %b as well.
2311
2312 2000-08-27  H.J. Lu  <hjl@gnu.org>
2313
2314         * posix/Makefile (otherlibs): Add for building with static-nss
2315         for "make check".
2316
2317 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2318
2319         * libio/stdio.h: Add fmemopen prototype.
2320
2321 2000-08-25  Andreas Jaeger  <aj@suse.de>
2322
2323         * libio/Makefile (routines): Add fmemopen.
2324         (tests): Add test-fmemopen.
2325         * libio/Versions: Add fmemopen with version GLIBC_2.2.
2326         * libio/test-fmemopen.c: New file.
2327         * libio/fmemopen.c: New file.
2328         Patches by Hanno Mueller <kontakt@hanno.de>.
2329
2330 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2331
2332         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
2333         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
2334
2335         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
2336         to avoid crashing statically linked applications.
2337
2338 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2339
2340         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
2341         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
2342
2343         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
2344         If the result is fits in the buffer, copy only as many bytes as needed.
2345
2346         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
2347         buffer after copying numbuf into it.
2348         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
2349
2350 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2351
2352         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
2353         the result.  When string_len < len, don't clear the rest of the buffer.
2354
2355 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2356
2357         Support for new LC_COLLATE format.
2358         * locale/coll-lookup.h: New file.
2359         * locale/weightwc.h (findidx): When size == 0, call
2360         collidx_table_lookup.
2361         * wcsmbs/wcscoll.c: Include coll-lookup.h.
2362         * wcsmbs/wcsxfrm.c: Likewise.
2363         * posix/fnmatch.c: Likewise.
2364         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
2365         collseq_table_lookup.
2366         * locale/programs/3level.h: New file.
2367         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
2368         by including "3level.h".
2369         * locale/programs/ld-collate.c (wchead_table, collidx_table,
2370         collseq_table): New types, defined by including "3level.h".
2371         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
2372         (encoding_mask, encoding_byte): Remove.
2373         (utf8_encode): Use simple shifts instead.
2374         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
2375         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
2376         (collate_output): New local variable tablewc_3level. When
2377         !oldstyle_tables, set table_size to 0 and names to NULL and fill
2378         tablewc_3level instead of tablewc. Change format of TABLEWC and
2379         COLLSEQWC entries written to the file.
2380         * locale/C-collate.c (collseqwc): Change format.
2381         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
2382         of COLLSEQWC.
2383         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
2384
2385 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2386
2387         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
2388         (locale_ctype_t): New charnames_idx field.
2389         (ctype_startup): Initialize charnames_idx field.
2390         (find_idx): Speed up dramatically by using charnames_idx inverse table.
2391
2392 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2393
2394         * locale/C-ctype.c: Switch to new locale format.
2395         (_nl_C_LC_CTYPE_names): Remove array.
2396         (STRUCT_CTYPE_CLASS): New macro.
2397         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2398         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2399         New three-level tables.
2400         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
2401         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
2402         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
2403         12 class tables and 2 map tables at the end.
2404         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
2405         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
2406         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
2407         New declarations.
2408         (b): Remove trailing semicolon.
2409         (__ctype_names, __ctype_width): Don't initialize.
2410         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
2411
2412 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
2413
2414         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
2415         is guaranteed to be allocated with the same malloc() and may be
2416         passed to free().
2417         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
2418         been set to empty by an earlier open_path call, don't pass it again.
2419
2420 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2421
2422         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
2423         we are not optimizing.
2424
2425         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
2426         inclusion.
2427
2428         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
2429         really match EOF.
2430         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2431
2432 2000-08-28  Andreas Jaeger  <aj@suse.de>
2433
2434         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
2435
2436 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
2437
2438         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
2439         getpeername.  Use ISO C style function definition.
2440         (getpeername): Provide weak alias.
2441         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
2442         setrlimit.  Use ISO C style function definition.
2443         (setrlimit): Provide weak alias.
2444
2445 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2446
2447         * shlib-versions: Add a rule for S/390 to the libm version list.
2448         * sysdeps/s390/Versions: New file.
2449         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
2450         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
2451         * sysdeps/unix/sysv/linux/s390/Versions: New file.
2452         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
2453         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
2454         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
2455         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
2456         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
2457         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
2458         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
2459         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
2460         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
2461         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
2462         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
2463         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
2464         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
2465         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
2466         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
2467
2468 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
2469
2470         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
2471         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
2472
2473         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
2474         * elf/dl-close.c (_dl_close): Print debug message if object is not
2475         unloaded.
2476         * elf/dl-open.c (dl_open_worked): Print message about opencount before
2477         returning to caller.
2478
2479         * po/zh.po: Renamed to...
2480         * po/zh_TW.po: ...this.
2481
2482 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
2483
2484         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
2485
2486         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
2487         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
2488         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
2489         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
2490
2491 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
2492
2493         * locale/programs/ld-collate.c (insert_weights): Also update
2494         backpointer of next element.
2495         (collate_read): Allow definition of new collation symbols in stage 2.
2496         Symbol after reorder-after can be UCS4 value.
2497         Allow reordering of collation symbols and elements.
2498         Do not only move reorder entry in new position.  Instead call
2499         insert_weight to do this and read the weights.
2500
2501         * locale/findlocale.c (free_mem): Add cast to avoid warning.
2502
2503         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
2504         to determine invalid locale name.
2505         * locale/findlocale.c (_nl_find_locale): Likewise.
2506
2507         * posix/annexc.c: Correct test for unavailable feature.
2508
2509         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
2510         __inline.
2511
2512 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
2513
2514         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
2515         syscall.
2516
2517         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
2518         (sysdep_routines): Add oldgetrlimit64.
2519
2520         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
2521         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
2522         (tests): Add unload, reldep, reldep2, and reldep3.
2523         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
2524         and reldepmod4.
2525         Add rules to build and run unload, reldep, reldep2, and reldep3.
2526         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
2527         Don't create relocation dependency if it is nonzero.
2528         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
2529         can never happen here.
2530         (_dl_lookup_versioned_symbol): Add new parameter explicit.
2531         Don't create relocation dependency if it is nonzero.
2532         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
2533         stuff.  This can never happen here.
2534         * sysdeps/generic/ldsodefs.h: Change prototypes.
2535         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
2536         _dl_lookup_up and _dl_lookup_versioned_symbol.
2537         (RESOLV): Likewise.
2538         * elf/dl-runtime.c (fixup): Likewise.
2539         (profile_fixup): Likewise.
2540         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
2541         _dl_lookup_symbol.
2542         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
2543         * elf/rtld.c (dl_main): Likewise.
2544         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
2545         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
2546         and pass down the caller map.
2547         (_dl_vsym): Likewise.
2548         * elf/reldep.c: New file.
2549         * elf/reldep2.c: New file.
2550         * elf/reldep3.c: New file.
2551         * elf/reldepmod1.c: New file.
2552         * elf/reldepmod2.c: New file.
2553         * elf/reldepmod3.c: New file.
2554         * elf/reldepmod4.c: New file.
2555         * elf/unload.c: New file.
2556         * elf/unloadmod.c: New file.
2557
2558         * elf/do-lookup.h: Remove unused undef_name parameter.
2559         * elf/dl-lookup.c: Adjust callers.
2560
2561 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2562
2563         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
2564         irreversible in recursive call of conversion function to signal that
2565         no error handling is wanted.
2566         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
2567         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
2568         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
2569         recursive error handling call, otherwise to &lirreversible.  Use it
2570         for calls to conversion functions.
2571         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
2572         transliterating.
2573         (ucs4_internal_loop_unaligned): Likewise.
2574         (ucs4le_internal_loop): Likewise.
2575         (ucs4le_internal_loop_unaligned): Likewise.
2576
2577 2000-08-25  Greg McGary  <greg@mcgary.org>
2578
2579         * sysdeps/i386/memchr.S: Check high bound against chars
2580         actually scanned.
2581         * sysdeps/i386/memcmp.S: Likewise.
2582         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
2583         account for pointers that lie one beyond end-of-buffer.
2584
2585 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2586
2587         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
2588         * elf/nodelete.c (fini_ran): New global variable.
2589         (do_test): Before every dlclose call clear fini_ran and test
2590         afterwards that it is not set by the destructors.
2591         * elf/nodelmod1.c: Add destructor which sets fini_ran.
2592         * elf/nodelmod2.c: Likewise.
2593         * elf/nodelmod4.c: Likewise.
2594
2595 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
2596
2597         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
2598         getrlimit to the list.
2599
2600 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
2601
2602         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
2603         long double format so use ldbl-96 instead of ldbl-128.
2604
2605 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
2606
2607         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
2608         even if bits 10 a 11 are non-zero.
2609         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
2610
2611         * Makeconfig: Ensures the soversions.mk part of Makefile gets
2612         included before building gnu/lib-names.h
2613         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2614
2615         * elf/dl-close.c (_dl_close): Don't run destructors of objects
2616         marked DF_1_NODELETE.
2617
2618         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
2619         since we call sigaction in the child.
2620
2621 2000-08-25  Andreas Jaeger  <aj@suse.de>
2622
2623         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
2624         gconv-modules.
2625
2626 2000-08-25  Andreas Jaeger  <aj@suse.de>
2627
2628         * manual/arith.texi (Control Functions): Clarify possible
2629         arguments.  Closes PR libc/1856.
2630
2631 2000-08-24  H.J. Lu  <hjl@gnu.org>
2632
2633         * stdio-common/Makefile (tests): Don't do it for cross compiling.
2634         * malloc/Makefile (tests): Likewise.
2635
2636 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * iconvdata/unicode.c (gconv_init): Correct test for direction.
2639
2640 2000-08-24  Andreas Jaeger  <aj@suse.de>
2641
2642         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
2643         only if LIBGD is available.
2644
2645 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2646
2647         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
2648         problems with now restrict parameter types.
2649         (convaddr4to6): Likewise.
2650
2651 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
2652
2653         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
2654         * sysdeps/s390/fpu/feenablxcpt.c: New file.
2655         * sysdeps/s390/fpu/fegetexcept.c: New file.
2656         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
2657         FPC_VALID_MASK.
2658
2659 2000-08-24  Andreas Jaeger  <aj@suse.de>
2660
2661         * malloc/Makefile (extra-objs): Add memusagestat.o.
2662         (generated): Added memusage and memusagestat for make clean.
2663
2664         * libio/tst_putwc.c (do_test): Delete temporary file.
2665         Move inclusion of test-skeleton to front to have prototype for
2666         add_temp_file.
2667
2668         * posix/Makefile (generated): Add wordexp-tst.out.
2669
2670 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2671
2672         * resolv/res_hconf.c (free_mem): Remove not needed if.
2673
2674         * time/tzset.c (free_mem): New function.
2675         * string/strsignal.c (free_mem): New function.
2676         * inet/inet_ntoa.c (free_mem): New function.
2677         * sunrpc/clnt_perr.c (free_mem): New function.
2678
2679 2000-08-24  Andreas Jaeger  <aj@suse.de>
2680
2681         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
2682         * sysdeps/unix/sysv/syscalls.list: Likewise.
2683
2684         * posix/unistd.h: Move internal prototypes from here ...
2685         * include/unistd.h: ... to here.
2686
2687         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
2688
2689 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
2690
2691         * grp/initgroups.c (initgroups): Deallocate groups array.
2692         Reported by jani.raiha@sonera.com [PR libc/1868].
2693
2694         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2695         * sysdeps/alpha/Dist: Likewise.
2696
2697 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2698
2699         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2700         destructor).  Reported by Solar Designer <solar@false.com>.
2701
2702         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2703         avoid adding double slashes.
2704
2705 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2706
2707         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2708         out of the __REDIRECT macro.
2709
2710 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2711
2712         * stdio-common/vfscanf.c: Add %F format support.
2713
2714         * locale/programs/ld-ctype.c (ctype_output): Make sure
2715         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2716         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2717         (ctype_read): Enable returning of wide character strings for reading
2718         transliteration information.
2719
2720 2000-08-23  Andreas Jaeger  <aj@suse.de>
2721
2722         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2723         Use static __inline instead of _EXTERN_INLINE.
2724
2725         * misc/sys/select.h: Move prototypes of __select from here ...
2726         * include/sys/select.h: ... to here.
2727
2728         * socket/sys/socket.h: Move prototypes of __send and __connect
2729         from here....
2730         * include/sys/socket.h: ... to here.
2731
2732         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2733         lr_error.
2734
2735 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2736
2737         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2738         __setrlimit as strong name. Takes only 2 arguments.
2739
2740         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2741         takes only 2 arguments.
2742
2743 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2744
2745         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2746
2747         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2748
2749 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2750
2751         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2752         default_missing character being specified, pick the first
2753         representable.
2754
2755 2000-08-23  Andreas Jaeger  <aj@suse.de>
2756
2757         * include/wchar.h: Add some pure attributes.
2758
2759         * time/time.h: Add const attribute for dysize.
2760
2761         * include/stdlib.h: Add malloc attribute to __posix memalign.
2762
2763         * stdlib/stdlib.h: Add some pure and malloc attributes.
2764         * wcsmbs/wchar.h: Likewise.
2765
2766         * dirent/dirent.h: Add some pure attributes.
2767         * include/dirent.h: Likewise.
2768
2769 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2770
2771         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2772         on 64bit arches.
2773
2774 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2775
2776         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2777         missing buffer size checks.
2778
2779 2000-08-23  Andreas Jaeger  <aj@suse.de>
2780
2781         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2782         strong name.
2783         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2784
2785         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2786         otherwise __LINUX_KERNEL_VERSION might not be defined.
2787         (MIN): Define if not already defined.
2788
2789 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2790
2791         * stdio-common/vfprintf.c: Handle %F format.
2792         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2793         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2794
2795         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2796
2797         * po/zh.po: New file.
2798
2799         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2800         enough room in target buffer.
2801         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2802         * iconvdata/bug-iconv1.c: New file.
2803         * iconvdata/Makefile (tests): Add bug-iconv1.
2804
2805         * locale/iso-4217.def: Update entry for Nicaragua.
2806
2807 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2808
2809         * hurd/hurdsig.c: Rearrange headers a bit.
2810         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2811         when cthreads is being used.
2812
2813 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2814
2815         * elf/Makefile (distribute): Add dl-osinfo.h.
2816         * sysdeps/generic/dl-osinfo.h: New file.
2817         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2818         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2819         if defined.
2820         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2821         only for !SHARED case.  Get the code from dl-osinfo.h.
2822
2823         * stdlib/random_r.c: Cleanups.
2824         * stdlib/tst-random.c: New file.
2825         * stdlib/Makefile (tests): Add tst-random.
2826         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2827
2828 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2829
2830         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2831         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2832         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2833         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2834
2835 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2836
2837         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2838         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2839         (__syscall__sysctl): Add.
2840
2841 2000-08-21  Andreas Jaeger  <aj@suse.de>
2842
2843         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2844         libc/1864).
2845         * stdlib/tst-strtoll.c: Likewise.
2846
2847 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2848
2849         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2850         correctly.
2851         (__initstate_r): Set errno on error.
2852         (__random_r): Likewise.
2853         (__setstate_r): Correct offset when computing
2854         new rptr and fptr.  Test for arg_state being NULL.
2855         Reported by Michael Fischer <fischer@cs.yale.edu>.
2856
2857         * posix/regex.h: Add macro definitions to allow compiling outside
2858         glibc.
2859
2860         * sysdeps/i370/Implies: Removed.
2861         * sysdeps/mvs/Implies: Removed.
2862
2863         * catgets/catgets.c (catopen): Filter out env_var values with / if
2864         necessary.
2865
2866         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2867         locale name after all getenvs.
2868
2869         * configure.in: Allow sed versions like 3.02.8.
2870         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2871
2872 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2873
2874         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2875
2876 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2877
2878         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2879         of gethostbyname2_r call.
2880
2881         * intl/locale.alias: Add aliases for Korean.
2882
2883 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2884
2885         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2886         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2887         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2888         * sysdeps/s390/fpu/fegetenv.c: New file.
2889         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2890         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2891         * sysdeps/s390/fpu/fenv_libc.h: New file.
2892         * sysdeps/s390/fpu/fesetenv.c: New file.
2893         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2894         * sysdeps/s390/fpu/feupdateenv.c: New file.
2895         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2896         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2897         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2898         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2899         * sysdeps/s390/fpu/ftestexcept.c: New file.
2900         * sysdeps/s390/fpu/libm-test-ulps: New file.
2901         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2902         * sysdeps/s390/initfini.c: New file.
2903         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2904         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2905         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2906         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2907         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2908         sys/procfs.h as proposed by Mark Kettenis.
2909         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2910
2911 2000-08-21  Andreas Jaeger  <aj@suse.de>
2912
2913         * include/poll.h: Include include/sys/poll.h to get __poll
2914         declaration.
2915
2916         * io/sys/poll.h: Move __poll declaration from here...
2917         * include/sys/poll.h: ...to here.
2918
2919         * include/sys/socket.h (__getpeername): Add declaration.
2920
2921         * include/wchar.h (__vswprintf): Add declaration.
2922
2923         * include/stdio.h (__flockfile): Add declaration.
2924         (__funlockfile): Likewise.
2925
2926 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2927
2928         * misc/sys/cdefs.h: Define __restrict_arr.
2929         * include/sys/time.h: Add restrict where required by AGd4.
2930         * inet/arpa/inet.h: Likewise.
2931         * io/sys/stat.h: Likewise.
2932         * io/sys/statvfs.h: Likewise.
2933         * misc/search.h: Likewise.
2934         * misc/sys/select.h: Likewise.
2935         * posix/glob.h: Likewise.
2936         * posix/regex.h: Likewise.
2937         * posix/spawn.h: Likewise.
2938         * posix/unistd.h: Likewise.
2939         * rt/aio.h: Likewise.
2940         * signal/signal.h: Likewise.
2941         * socket/sys/socket.h: Likewise.
2942         * stdlib/ucontext.h: Likewise.
2943         * streams/stropts.h: Likewise.
2944         * string/string.h: Likewise.
2945         * time/time.h: Likewise.
2946         * time/sys/time.h: Likewise.
2947
2948         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2949         and posix_spawnattr_setscheparam.
2950
2951         * libio/stdio.h: Make cuserid prototype again available for all
2952         XPG versions.
2953
2954         * argp/argp-help.c: Unify use of function aliases to make more compact
2955         PLT.
2956         * include/libintl.h: Likewise.
2957         * inet/rcmd.c: Likewise.
2958         * intl/dcigettext.c: Likewise.
2959         * libio/iofputws.c: Likewise.
2960         * libio/iofputws_u.c: Likewise.
2961         * libio/iogetwline.c: Likewise.
2962         * libio/swprintf.c: Likewise.
2963         * malloc/malloc.c: Likewise.
2964         * nss/digits_dots.c: Likewise.
2965         * posix/fnmatch.c: Likewise.
2966         * posix/spawn_faction_addclose.c: Likewise.
2967         * posix/spawn_faction_adddup2.c: Likewise.
2968         * posix/spawn_faction_addopen.c: Likewise.
2969         * posix/spawni.c: Likewise.
2970         * posix/wordexp.c: Likewise.
2971         * posix/spawni.c: Likewise.
2972         * resolv/res_hconf.c: Likewise.
2973         * resolv/res_init.c: Likewise.
2974         * shadow/lckpwdf.c: Likewise.
2975         * signal/sighold.c: Likewise.
2976         * signal/sigrelse.c: Likewise.
2977         * stdio-common/printf-parse.h: Likewise.
2978         * stdio-common/printf-prs.c: Likewise.
2979         * stdio-common/printf_fp.c: Likewise.
2980         * stdio-common/vfprintf.c: Likewise.
2981         * stdio-common/vfscanf.c: Likewise.
2982         * stdlib/rpmatch.c: Likewise.
2983         * sunrpc/create_xid.c: Likewise.
2984         * sunrpc/key_call.c: Likewise.
2985         * sysdeps/generic/setrlimit64.c: Likewise.
2986         * sysdeps/generic/utmp_file.c: Likewise.
2987         * sysdeps/generic/vlimit.c: Likewise.
2988         * sysdeps/posix/posix_fallocate.c: Likewise.
2989         * sysdeps/posix/posix_fallocate64.c: Likewise.
2990         * sysdeps/posix/sigpause.c: Likewise.
2991         * sysdeps/posix/sigset.c: Likewise.
2992         * sysdeps/unix/grantpt.c: Likewise.
2993         * sysdeps/unix/bsd/ualarm.c: Likewise.
2994         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2995         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2996         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2997         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2998         * time/strftime.c: Likewise.
2999         * wcsmbs/wcscoll.c: Likewise.
3000         * wcsmbs/wcsxfrm.c: Likewise.
3001
3002         * time/tst-getdate.c (main): Make error messages more human readable.
3003
3004         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
3005         postinc/predec instruction.
3006         (_FPU_SETCW): Likewise.
3007         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3008
3009 2000-08-20  Andreas Jaeger  <aj@suse.de>
3010
3011         * time/tst-getdate.c (main): Increase error in case of wrong
3012         conversion.
3013         Fix typo in test case.
3014
3015 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
3016
3017         * ctype/ctype.h (isblank): Make available if ISO C99.
3018         * wctype/wctype.h (iswblank): Make available if ISO C99.
3019         * math/math.h (signgam): Don't make available if ISO C99.
3020         * math/tgmath.h (tgamma): Renamed from gamma.
3021         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
3022
3023         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
3024         Pretty printing.
3025         * intl/plural.y (new_exp): Take number of optional parameters in
3026         second parameter.  Test for correct number of parameters and free
3027         correctly in case of failure.  Adjust all callers.
3028         (yylex): Allow ';' as terminator character.
3029
3030 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3031
3032         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
3033         walt_digits.
3034
3035         * locale/findlocale.c (free_mem): Also free here->filename.
3036
3037         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
3038
3039         * math/test-fenv.c (feenv_tests): Clear all exceptions before
3040         first test.
3041         (feexcp_nomask_test): Correct printf args.
3042         (feexcp_mask_test): Likewise.
3043
3044 2000-08-19  Andreas Jaeger  <aj@suse.de>
3045
3046         * inet/tst-gethnm.c: Include string.h to provide prototype for
3047         strcmp.
3048
3049         * malloc/mtrace.pl (usage): Inform about --help.
3050
3051 2000-08-19  Wolfram Gloger  <wg@malloc.de>
3052
3053         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
3054         size HEAP_MAX_SIZE.
3055
3056 2000-08-19  Andreas Jaeger  <aj@suse.de>
3057
3058         * shlib-versions: Remove libnss_db, libdb and libdb1.
3059
3060 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
3061
3062         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
3063         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
3064         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
3065         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
3066         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
3067         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
3068         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
3069         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
3070         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
3071         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
3072         getdents.
3073         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
3074         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
3075
3076 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3077
3078         * include/glob.h (__glob64): Add prototype.
3079         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
3080         define glob and glob_in_dir.
3081         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
3082         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
3083         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
3084         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
3085         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
3086         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
3087         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
3088         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
3089
3090 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
3091
3092         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
3093
3094 2000-08-17  Andreas Jaeger  <aj@suse.de>
3095
3096         * math/test-fenv.c (fe_single_test): New function.
3097         (fe_env_tests): Use fe_single_test.
3098         (feenable_test): New tests for feenable/fedisable and
3099         fegetexcpetions.
3100         (feexcp_mask_test): New function.
3101         (feexcp_nomask_test): New function.
3102
3103 2000-08-19  Richard Henderson  <rth@cygnus.com>
3104
3105         * sysdeps/alpha/fpu/fenv_libc.h: New file.
3106         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
3107         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
3108         * sysdeps/alpha/fpu/fesetround.c: Likewise.
3109         * sysdeps/alpha/fpu/fegetround.c: Likewise.
3110         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
3111         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
3112         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
3113         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
3114         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
3115         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
3116         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
3117         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
3118         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
3119         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
3120         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
3121         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
3122
3123 2000-08-19  Andreas Jaeger  <aj@suse.de>
3124
3125         * elf/constload1.c: Include <stdio.h> for puts prototype.
3126
3127 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
3128
3129         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
3130         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
3131         a dynamically loaded object remove old l_initfini list.
3132         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
3133         remove some dynamically allocated memory blocks in the dynamic
3134         loading data structures.
3135         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
3136         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
3137         Instead call _dl_check_map_versions only for the dependencies.
3138         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
3139         information of initial objects as not free-able.
3140         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
3141         element.
3142
3143         * elf/filter.c: Call mtrace.
3144         * elf/restest1.c: Likewise.  Close the objects.
3145         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
3146         debug information.
3147
3148         * elf/constload1.c: Add comment explaining not freed memory.
3149
3150 2000-08-18  Andreas Jaeger  <aj@suse.de>
3151
3152         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
3153         alignment for structs stat and stat64.
3154         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
3155
3156 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3157
3158         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
3159         handling.  Patch by Richard Henderson <rth@twiddle.net>.
3160
3161         * nss/Versions: Remove libnss_db information.
3162
3163 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3164
3165         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
3166         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
3167         * sysdeps/sparc/fpu/fegetexcept.c: New file.
3168         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
3169
3170         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
3171         to match Solaris.
3172
3173 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
3174
3175         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
3176         (_FPU_SETCW): Likewise.
3177         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3178
3179         * stdio-common/printf_fp.c: Fix chars_needed computation.
3180         Patch by Greg McGary <greg@mcgary.org>.
3181
3182 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3183
3184         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
3185         _dl_loaded are NULL.
3186
3187 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3188
3189         * manual/arith.texi (feholdexcept): Returns 0 on success.
3190
3191 2000-08-17  Andreas Jaeger  <aj@suse.de>
3192
3193         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
3194         (ifr_newname): New.
3195         Reported by Andi Kleen <ak@suse.de>.
3196
3197 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
3198
3199         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
3200         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
3201         * sysdeps/alpha/fpu/fegetexcept.c: New file.
3202
3203 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3204
3205         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
3206         of buf->st_ino and kbuf->st_ino, not __st_ino.
3207         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
3208         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
3209         directive so that only linux/getdents.c is used, not some
3210         architecture specific one.
3211
3212 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
3213
3214         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
3215         enabled, not disabled exceptions.
3216         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3217         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
3218
3219 2000-08-17  Greg McGary  <greg@mcgary.org>
3220
3221         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
3222         from test program name when constructing suffix for $(LDLIBS-*).
3223         (bounded-thread-library): New variable.
3224         * crypt/Makefile
3225         [build-shared, build-static] (libcrypt-dep): Remove variable.
3226         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3227         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3228         * linuxthreads/Makefile (libpthread, librt): Remove variables.
3229         (librt-tests): Add variable.  (tests): Use it.
3230         [build-shared, build-static]
3231         ($(addprefix $(objpfx),$(tests)),
3232         $(addprefix $(objpfx),$(librt-tests))):
3233         Consolidate individual dependencies.
3234         [build-bounded]
3235         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
3236         Add dependencies.
3237         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
3238         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3239         * misc/Makefile
3240         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
3241         * rt/Makefile
3242         [build-shared, build-static]
3243         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
3244         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
3245
3246 2000-08-17  Greg McGary  <greg@mcgary.org>
3247
3248         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
3249         * sysdeps/unix/make-syscalls.sh: Likewise.
3250         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3251         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
3252         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
3253         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
3254         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
3255
3256 2000-08-17  Greg McGary  <greg@mcgary.org>
3257
3258         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
3259         Wrap extern symbols in BP_SYM ().
3260         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3261         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3262         * sysdeps/i386/fpu/s_remquo.S: Likewise.
3263         * sysdeps/i386/fpu/s_remquof.S: Likewise.
3264         * sysdeps/i386/fpu/s_remquol.S: Likewise.
3265         * sysdeps/i386/fpu/s_sincos.S: Likewise.
3266         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
3267         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
3268         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3269         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3270
3271 2000-08-16  Andreas Schwab  <schwab@suse.de>
3272
3273         * sysdeps/m68k/fpu/fegetexcept.c: New file.
3274         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
3275         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
3276
3277 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3278
3279         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
3280         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
3281         * elf/dl-support.c: Define _nl_nloaded.
3282         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
3283         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
3284         object to global list.
3285         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
3286         from _dl_loaded list.
3287         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3288         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
3289         number here.
3290
3291         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
3292         unmask, exceptions.
3293         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
3294         exceptions.
3295         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
3296
3297 2000-08-16  Andreas Jaeger  <aj@suse.de>
3298
3299         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
3300
3301 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
3302
3303         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
3304
3305 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3306
3307         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
3308         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
3309         (sysdep_routines): Add oldgetrlimit64.
3310         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
3311         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3312
3313         * include/link.h: Undo last patches.  Hurd now has stat64.
3314         * elf/Makefile: Likewise.
3315         * elf/dl-load.c: Likewise.
3316         * elf/dl-misc.c: Likewise.
3317         * elf/dl-profile.c: Likewise.
3318         * sysdeps/generic/sysd-link.h: Removed.
3319         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
3320
3321         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
3322         thread event callback function.
3323         (__aio_notify_only): Use function above.
3324         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
3325
3326 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
3327
3328         * sysdeps/mach/hurd/lseek64.c: New file.
3329
3330 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3331
3332         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
3333         Remove typedefs.
3334         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
3335         typedefs.
3336         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
3337         typedefs.
3338         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
3339
3340 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3341
3342         * sysdeps/mach/hurd/xstatconv.c: New file.
3343         * sysdeps/mach/hurd/fxstat64.c: New file.
3344         * sysdeps/mach/hurd/lxstat64.c: New file.
3345         * sysdeps/mach/hurd/xstat64.c: New file.
3346         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
3347
3348 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
3349
3350         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
3351         Initialize, needed for change in common symbol handling in newer
3352         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
3353
3354 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
3357         * elf/constload2.c: Add destructor to unload constload3.
3358
3359         * include/link.h: Include sysd-link.h.
3360         * sysdeps/generic/sysd-link.h: New file.
3361         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
3362         * elf/Makefile (distribute): Add sysd-link.h.
3363         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
3364         types and functions directly.
3365         * elf/dl-misc.c: Likewise.
3366         * elf/dl-profile.c: Likewise.
3367
3368         * elf/loadfail.c (main): Close all successfully loaded objects.
3369
3370         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
3371         free wd.
3372         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
3373         there is already one.
3374
3375         * elf/dl-close.c: Pretty print.
3376
3377 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
3378
3379         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
3380         global (with file scope).  Add __libc_subfreeres function to free the
3381         string.
3382         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
3383         in ttyname function.
3384
3385         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
3386
3387         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
3388
3389         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
3390         mapping them to /x5c and /x7e respectively.
3391
3392         * locale/programs/ld-ctype.c: Add support for more definitions after
3393         copy statement.
3394
3395 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
3396
3397         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
3398         * sysdeps/unix/sysv/linux/kernel-features.h
3399         (__ASSUME_GETDENTS64_SYSCALL): Define.
3400         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
3401         syscall if available to get d_type fields.
3402         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
3403         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
3404         __lxstat64): Export at GLIBC_2.2.
3405         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
3406         Likewise.
3407         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
3408         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
3409         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
3410         getdirentries64, versionsort64): Remove.
3411         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
3412         getdirentries64, versionsort64): Remove.
3413
3414 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3415
3416         * posix/Makefile: Remove rules to generate glob package.
3417
3418         * posix/Makefile (tests): Add tst-regexloc.
3419         (tst-regexloc-ENV): Add LOCPATH.
3420         * posix/tst-regexloc.c: New file.
3421
3422 2000-08-12  Andreas Jaeger  <aj@suse.de>
3423
3424         * include/features.h (__STDC_ISO_10646__): Define.
3425         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
3426
3427 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3428
3429         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
3430
3431         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
3432         for revision 6 and up).
3433
3434         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
3435         including <time.h>.
3436         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
3437         to get definitions of just these types.
3438
3439         * signal/signal.h: Define thread signal handling functions also for
3440         POSIX95.
3441
3442         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
3443         POSIX95.
3444         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
3445         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
3446         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
3447         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
3448
3449         * sysvipc/sys/shm.h: Define pid_t for XPG.
3450
3451         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
3452         they are not anymore required here.
3453
3454         * wcsmbs/wchar.h: Make the various wide char string and stream
3455         functions available for the respective XPG versions.
3456
3457         * nss/Makefile: Remove rules to build and distribute nss_db.
3458
3459         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
3460         * sysdeps/generic/scandir64.c: Likewise.
3461         * sysdeps/generic/versionsort64.c: Likewise.
3462
3463 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
3464             Benjamin Koznik  <bkoz@redhat.com>
3465
3466         * libio/fileops.c: Merge with libstdc++-v3.
3467         * libio/genops.c: Likewise.
3468         * libio/iofclose.c: Likewise.
3469         * libio/iofopen.c: Likewise.
3470         * libio/iofwide.c: Likewise.
3471         * libio/libio.h: Likewise.
3472         * libio/libioP.h: Likewise.
3473         * libio/stdfiles.c: Likewise.
3474         * libio/stdio.c: Likewise.
3475         * libio/wfileops.c: Likewise.
3476         * libio/wgenops.c: Likewise.
3477
3478         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
3479
3480 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3481
3482         * locale/programs/localedef.c: Implement --prefix option to allow
3483         writing in standard places of alternative install directories.
3484
3485         * posix/regex.c (compile_range): Implement collation sequence
3486         handling for glibc.  Use simple character ordering otherwise and
3487         not strcoll.
3488
3489 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
3490
3491         * sysdeps/generic/scandir64.c: Include <dirent.h>.
3492
3493 2000-08-12  Andreas Jaeger  <aj@suse.de>
3494
3495         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
3496         __USE_FILE_OFFSET64 correctly for locking.
3497         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3498
3499 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
3500
3501         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3502         Define for 2.4.1 on sparc as well.
3503         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
3504         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3505         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
3506         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
3507
3508 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3509
3510         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
3511         defined.
3512
3513 2000-08-12  Andreas Jaeger  <aj@suse.de>
3514
3515         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
3516         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
3517
3518         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
3519         mips2 for assembler.
3520
3521         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
3522         if fnctl64 is not available for F_*LK*64.
3523
3524         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
3525
3526 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
3527
3528         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3529         Define for 2.4.1 on x86.
3530         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
3531         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
3532         for F_GETLK64, F_SETLK64, and F_SETLKW64.
3533
3534         * dirent/dirent.h: Define DT_WHT.
3535
3536         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
3537         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
3538         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
3539         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
3540         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
3541         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
3542
3543 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
3544
3545         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
3546         lookup, pass pointer to array with NULL pointer [PR libc/1858].
3547         * inet/Makefile (tests): Add tst-gethnm.
3548         * inet/tst-gethnm.c: New file.
3549
3550         * rt/aio_cancel.c: If canceling a specific request which is running
3551         *really* do nothing.
3552         * rt/aio_misc.h: Add `done' to states of a request.
3553         * rt/aio_misc.c: Add several tests for the correct state.
3554         Simplify request table memory handling.
3555
3556 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
3557
3558         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
3559         * dirent/scandir64.c: Move...
3560         * sysdeps/generic/scandir64.c: ...here.
3561         * dirent/alphasort64.c: Move...
3562         * sysdeps/generic/alphasort64.c: ...here.
3563         * dirent/versionsort64.c: Move...
3564         * sysdeps/generic/versionsort64.c: ...here.
3565         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
3566         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
3567         Export symbols at GLIBC_2.2.
3568         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
3569         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
3570         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
3571         __versionsort64): Add prototypes.
3572         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
3573         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
3574         unused prototype.
3575         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
3576         and GLIBC_2.2.
3577         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
3578         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
3579         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
3580         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
3581         __u_quad_t.
3582         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
3583         Adjust for kernel-2.4.0-test6 layout.
3584         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
3585         GLIBC_2.1 and GLIBC_2.2.
3586         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
3587         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
3588         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
3589         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
3590         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
3591         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
3592         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
3593         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
3594         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
3595         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
3596         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
3597         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
3598         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
3599         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
3600         __u_quad_t.
3601         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
3602         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
3603         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
3604         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
3605         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
3606         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
3607         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
3608         __u_quad_t.
3609         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
3610         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
3611         Define.
3612         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
3613         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
3614         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
3615         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
3616         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
3617         Define.
3618         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
3619         alpha/readdir.c.
3620         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
3621         alpha/readdir_r.c
3622         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
3623         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
3624         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
3625         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
3626         st_ino from __st_ino.
3627         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
3628         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
3629         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
3630         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
3631         set __st_ino in addition to st_ino.
3632         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
3633         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
3634         __old_getdents64 as well.
3635         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
3636         getdirentries64 and old_getdirentries64 as well.
3637         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
3638         __GETDENTS): Define.
3639         (GETDENTS64): Remove.
3640         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
3641         Define.
3642         (GETDENTS64): Remove.
3643         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
3644         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
3645         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
3646         as well.
3647         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
3648         __old_readdir64_r as well.
3649         * sysdeps/unix/sysv/linux/kernel-features.h: Define
3650         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
3651
3652 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
3653
3654         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
3655         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
3656         define of the kernel.
3657         Add missing __SEG_PSTKOVF definition.
3658         Adjust the padding of struct siginfo and struct sigevent to
3659         match the fact that sigval_t is 64 bit.
3660
3661 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
3662
3663         * timezone/zic.c: Update from tzcode2000f.
3664         * timezone/australasia: Update from tzdata2000f.
3665         * timezone/europe: Likewise.
3666         * timezone/southamerica: Likewise.
3667         * timezone/yearistype: Likewise.
3668
3669 2000-08-10  Andreas Jaeger  <aj@suse.de>
3670
3671         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
3672         stat with current MIPS kernel.
3673
3674 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
3675
3676         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
3677         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
3678         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
3679         Remove the junk that's only relevant in the Linux kernel itself.
3680         Add a warning saying that this file is now obsolete, and include
3681         <sys/procfs.h>.
3682         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
3683         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
3684         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
3685         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
3686         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
3687         and add the notice that the file is primarily there for GDB.
3688         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
3689
3690 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3691
3692         * time/tzfile.c (__tzfile_compute): __tzstring zones
3693         from zone_names.
3694
3695 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3696
3697         * resolv/resolv.h (__res_state): Surround prototype with
3698         __BEGIN_DECLS/__END_DECLS.
3699         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3700
3701 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3702
3703         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3704         Make independant of asm/resource.h from the Linux kernel.
3705
3706 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3707
3708         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3709
3710 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3711
3712         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3713         * locale/Makefile (locale-CPPFLAGS): Likewise.
3714
3715 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3716
3717         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3718         for AMD processors.
3719
3720 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3721
3722         * misc/Versions (mincore): Export at GLIBC_2.2.
3723
3724 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3725
3726         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3727
3728 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3729
3730         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3731         socketpair.  Made socketpair a weak alias.
3732         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3733         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3734         conforming, but fall back on the old protocol if the socket server
3735         doesn't support it.
3736         * include/sys/socket.h: Add prototype for __socketpair.
3737
3738 2000-08-09  Andreas Schwab  <schwab@suse.de>
3739
3740         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3741         long long modifier is seen.
3742
3743         * elf/nodelete.c (do_test): Remove reference to undefined member
3744         sa_restorer.
3745         * rt/tst-aio4.c (do_test): Likewise.
3746
3747         * configure.in: Add `-lm' when checking for libgd.
3748         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3749         linking.
3750
3751 2000-08-09  Andreas Jaeger  <aj@suse.de>
3752
3753         * configure.in: Change required make versions.
3754
3755         * manual/install.texi (Tools for Compilation): Document required
3756         make version.
3757         (Supported Configurations): Update list of supported
3758         configurations.
3759
3760 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3761
3762         * locale/linereader.c (get_string): Don't print an error is a string
3763         contains an unknown character.
3764
3765 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3766
3767         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3768         (new_symbol): Take new parameters with name of the symbol.
3769         Adjust callers.
3770         (handle_ellipsis): Don't only allow character symbols.
3771         (collate_read): Allow string of collating elements contain invalid
3772         characters; ignore entry in this case.
3773         Handle ellipsis of collating symbols before first order_start.
3774         Allow ellipsis in state 0.
3775
3776 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3777
3778         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3779         error message.
3780         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3781
3782 2000-08-04  Greg McGary  <greg@mcgary.org>
3783
3784         * posix/regex.c (SET_HIGH_BOUND): New macro.
3785         (MOVE_BUFFER_POINTER): Use it.
3786         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3787         (EXTEND_BUFFER): Use it.
3788
3789 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3790
3791         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3792         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3793         _wide_data but from _IO_FILE directly.
3794         * libio/iofclose.c: Likewise.
3795         * libio/wfileops.c: Likewise.
3796
3797         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3798         * libio/libioP.h: Change prototypes.
3799
3800 2000-08-03  Greg McGary  <greg@mcgary.org>
3801
3802         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3803         frame pointer early so that we save caller's frame pointer.
3804         * sysdeps/i386/elf/setjmp.S: Likewise.
3805
3806         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3807         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3808
3809         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3810         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3811         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3812
3813 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3814
3815         * iconvdata/big5.c: Updated.
3816         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3817
3818 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3819
3820         * Makeconfig (all-subdirs): Add conform.
3821         * conform/Makefile: Include ../Rules.
3822
3823         * Makefile (README): Add rules to generate here as well.
3824
3825 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3826
3827         * version.h (VERSION): Bump to 2.1.92.
3828
3829         * sysdeps/ia64/Dist: Add _mcount.S.
3830
3831         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3832
3833         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3834
3835         * elf/Makefile (distribute): Add missing modules.
3836
3837         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3838
3839         * posix/regex.c (compile_range): Translate range start and end
3840         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3841
3842         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3843         asm/resource.h.
3844
3845         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3846
3847 2000-08-02  Andreas Jaeger  <aj@suse.de>
3848
3849         * elf/elf.h (EM_S390): Added.
3850         (R_390_*): New relocs for S390.
3851
3852         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3853         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3854         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3855         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3856         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3857         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3858         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3859         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3860         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3861         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3862         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3863         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3864         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3865         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3866         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3867         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3868         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3869         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3870         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3871         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3872         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3873         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3874         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3875         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3876         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3877         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3878         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3879         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3880         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3881         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3882         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3883         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3884         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3885         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3886         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3887         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3888         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3889         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3890         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3891         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3892         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3893         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3894         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3895         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3896         * sysdeps/s390/sysdep.h: New file.
3897         * sysdeps/s390/sys/ucontext.h: New file.
3898         * sysdeps/s390/sub_n.S: New file.
3899         * sysdeps/s390/strncpy.S: New file.
3900         * sysdeps/s390/strcpy.S: New file.
3901         * sysdeps/s390/stackinfo.h: New file.
3902         * sysdeps/s390/setjmp.S: New file.
3903         * sysdeps/s390/s390-mcount.S: New file.
3904         * sysdeps/s390/mul_1.S: New file.
3905         * sysdeps/s390/memusage.h: New file.
3906         * sysdeps/s390/memset.S: New file.
3907         * sysdeps/s390/memcpy.S: New file.
3908         * sysdeps/s390/memchr.S: New file.
3909         * sysdeps/s390/machine-gmon.h: New file.
3910         * sysdeps/s390/ldbl2mpn.c: New file.
3911         * sysdeps/s390/gmp-mparam.h: New file.
3912         * sysdeps/s390/fpu/fpu_control.h: New file.
3913         * sysdeps/s390/fpu/fesetround.c: New file.
3914         * sysdeps/s390/fpu/fegetround.c: New file.
3915         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3916         * sysdeps/s390/fpu/bits/fenv.h: New file.
3917         * sysdeps/s390/ffs.c: New file.
3918         * sysdeps/s390/elf/start.S: New file.
3919         * sysdeps/s390/elf/setjmp.S: New file.
3920         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3921         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3922         * sysdeps/s390/dl-machine.h: New file.
3923         * sysdeps/s390/bzero.S: New file.
3924         * sysdeps/s390/bsd-setjmp.S: New file.
3925         * sysdeps/s390/bsd-_setjmp.S: New file.
3926         * sysdeps/s390/bits/string.h: New file.
3927         * sysdeps/s390/bits/setjmp.h: New file.
3928         * sysdeps/s390/bits/huge_val.h: New file.
3929         * sysdeps/s390/bits/endian.h: New file.
3930         * sysdeps/s390/bits/byteswap.h: New file.
3931         * sysdeps/s390/bcopy.S: New file.
3932         * sysdeps/s390/backtrace.c: New file.
3933         * sysdeps/s390/atomicity.h: New file.
3934         * sysdeps/s390/asm-syntax.h: New file.
3935         * sysdeps/s390/addmul_1.S: New file.
3936         * sysdeps/s390/add_n.S: New file.
3937         * sysdeps/s390/abort-instr.h: New file.
3938         * sysdeps/s390/__longjmp.c: New file.
3939         * sysdeps/s390/Makefile: New file.
3940         * sysdeps/s390/Implies: New file.
3941         * sysdeps/s390/Dist: New file.
3942         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3943
3944 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3945
3946         Remove incompatible IPv6 extension of RPC.
3947         * sunrpc/Makefile: Undo changes.
3948         * sunrpc/rpc_main.c: Likewise.
3949         * sunrpc/rpc/clnt.h: Likewise.
3950         * sunrpc/rpc/svc.h: Likewise.
3951         * sunrpc/bindrsvprt6.c: Removed.
3952         * sunrpc/clnt_tcp6.c: Removed.
3953         * sunrpc/clnt_udp6.c: Removed.
3954         * sunrpc/svc_tcp6.c: Removed.
3955         * sunrpc/svc_udp6.c: Removed.
3956
3957         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3958         dgettext, and dcgettetxt.
3959
3960         * intl/locale.alias: Update japanese aliases.
3961
3962         * sysdeps/ia64/bits/byteswap.h: New file.
3963         Patch by Dan Pop <Dan.Pop@cern.ch>.
3964
3965         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3966         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3967
3968 2000-07-13  H.J. Lu  <hjl@gnu.org>
3969
3970         * posix/regex.c (re_max_failures): Set to 4000.
3971
3972 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3973
3974         * gnulib/Makefile (tests): Add tst-gcc.
3975         * gnulib/tst-gcc.c: New file.
3976
3977         * assert/Makefile (routines): Add __assert.
3978         * assert/Versions: Export __assert for glibc 2.2.
3979         * assert/__assert.c: New file.
3980         * assert/assert.h: Declare __assert.
3981
3982 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3983
3984         * locale/localeinfo.h (_ISCTYPE): New macro.
3985         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3986         LC_CTYPE locale format.
3987         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3988         (ctype_output): Output class_b[nr] right before class_3level[nr].
3989         (allocate_arrays): Fill class_b, similarly to class_3level.
3990
3991 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3992             Joseph S. Myers  <jsm28@cam.ac.uk>
3993
3994         * math/tgmath.h: Make standard compliant.  Don't ask how.
3995
3996 2000-07-04  H.J. Lu  <hjl@gnu.org>
3997
3998         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3999         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
4000         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
4001
4002 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4003
4004         * include/features.h (_XOPEN_SOURCE): Update the explanation.
4005         (__USE_LARGEFILE): Add an explanation.
4006         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
4007         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
4008
4009 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
4010
4011         * libio/Makefile: Enable exception handling for genops, wgenops,
4012         fileops, and wfileops.
4013
4014 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4015
4016         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
4017         acount that elf/rtld's main program might remove some varibales
4018         from the environment if we're trying to be secure.  Move the Hurd
4019         startup data if necessary, or, if we there is no startup data,
4020         make sure the magical convention that ARGV[0] is stored just after
4021         the environment list.
4022
4023 2000-08-01  Philip Blundell  <philb@gnu.org>
4024
4025         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
4026         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
4027         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
4028         oldsetrlimit for GLIBC_2.0.
4029
4030 2000-08-01  Andreas Jaeger  <aj@suse.de>
4031
4032         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
4033         (LINE_PARSER): Allow any number of spaces between ip address and
4034         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
4035
4036         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
4037
4038         * include/netdb.h: Remove getipnodebyaddr and friends, leave
4039         constants in.
4040
4041         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
4042         _nss_nisplus_getipnodebyname_r.
4043
4044         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
4045         now, getipnodebyname is deprecated.
4046         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
4047         Likewise.
4048
4049         * inet/Makefile (routines): Don't build getipnodebyaddr and
4050         friends.
4051
4052         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
4053
4054         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
4055
4056         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
4057
4058         * wctype/Makefile (distribute): Add wchar-lookup.h.
4059
4060         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
4061
4062         * iconvdata/Makefile (distribute): Add isiri-3342.h.
4063
4064 2000-08-01  Andreas Schwab  <schwab@suse.de>
4065
4066         * Make-dist (dist): Resolve `..' in file names.
4067
4068 2000-08-01  Andreas Jaeger  <aj@suse.de>
4069
4070         * stdio-common/Makefile (distribute): Remove removed files, add
4071         new files.
4072
4073         * Makefile (distribute): Remove include/db_185.h and db.h.
4074
4075         * include/db_185.h: Remove, it's not needed anymore.
4076         * include/db.h: Likewise.
4077
4078 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4079
4080         * inet/Makefile (tests): Remove tst-ipnode.
4081         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
4082         now.
4083
4084 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4085
4086         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
4087         endp statements have already been added.
4088
4089 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
4090
4091         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
4092         <sysdeps/ia64/sysdep.h>.
4093
4094         * sysdeps/ia64/_mcount.S: New file.
4095
4096         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
4097         __gmon_start__.  Fix up extraneous whitespace.
4098
4099 2000-01-12  H.J. Lu  <hjl@gnu.org>
4100
4101         * sysdeps/ia64/elf/initfini.c: New file.
4102
4103 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
4104
4105         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
4106         dependency between branch and ar.pfs write.
4107
4108 2000-07-31  H.J. Lu  <hjl@gnu.org>
4109
4110         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
4111         handle the wchar_t array.
4112
4113 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4114
4115         * iconvdata/gb18030.c: Don't map to and from positions in ISO
4116         10646 which are not yet assigned.
4117         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
4118
4119 2000-07-31  Andreas Jaeger  <aj@suse.de>
4120
4121         * inet/Versions: Remove getipnodebyaddr and friends from
4122         GLIBC_2.2.
4123
4124         * resolv/netdb.h: Remove getipnodebyaddr and friends.
4125
4126 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4127
4128         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
4129         ch >= 0x81 && ch2 < 0x40 as invalid.
4130
4131 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4132
4133         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
4134         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
4135
4136 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4137
4138         * iconvdata/johab.c (BODY for TO_LOOP): After calling
4139         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
4140
4141 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4142
4143         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
4144         0xb8.
4145         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
4146
4147 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4148
4149         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
4150
4151 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4152
4153         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
4154         (from_ucs4): Change values of U+00A4 and U+00ED.
4155         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
4156
4157 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4158
4159         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
4160         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
4161
4162 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4163
4164         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
4165         * iconvdata/isiri-3342.h: New file.
4166         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
4167         treat 0x80 as a gap.
4168
4169 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
4170
4171         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
4172         (utf8_encode): Use simple shifts instead.  Fix return value.
4173
4174 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
4175
4176         * timezone/private.h: Update from tzcode2000e.
4177         * timezone/asia: Update from tzdata2000e.
4178         * timezone/australasia: Likewise.
4179         * timezone/europe: Likewise.
4180         * timezone/northamerica: Likewise.
4181         * timezone/zone-tab: Likewise.
4182
4183 2000-07-30  Ralf Baechle  <ralf@gnu.org>
4184
4185         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
4186         the order of struct sigaltstack members is different.
4187
4188 2000-07-26  Philip Blundell  <philb@gnu.org>
4189
4190         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
4191
4192 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
4193
4194         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
4195         * locale/programs/ld-ctype.c: Adjust for this.
4196
4197         * locale/programs/ld-collate.c: Add more alignment checks.
4198         * locale/string/strcoll.c: Likewise.
4199
4200 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
4201
4202         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
4203         outside USE_IN_LIBIO block.
4204
4205 2000-07-26  Philip Blundell  <philb@gnu.org>
4206
4207         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
4208         (elf_machine_rel): Use it for out-of-range PC24 relocs.
4209
4210 2000-07-28  Philip Blundell  <philb@gnu.org>
4211
4212         * math/test-fpucw.c: Ignore reserved bits in control word.
4213
4214 2000-07-28  Philip Blundell  <philb@gnu.org>
4215
4216         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
4217         (ret): Redefine to PSEUDO_RET.
4218         (PSEUDO): Remove jump to syscall_error.
4219
4220 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4221
4222         * resolv/README: Add some information about using the resolver in
4223         multi-threaded code and with C++.  Spelling fixes.
4224
4225 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
4226
4227         * resolv/resolv.h (struct __sockaddr_in): Remove.
4228         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
4229
4230 2000-07-29  Greg McGary  <greg@mcgary.org>
4231
4232         * Rules (test-bp-inputs, make-test-out): New variables.
4233         ($(objpfx)%-bp.out): New rule.
4234         ($(objpfx)%.out): Rewrite in terms of new variables.
4235
4236         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
4237         internal function that uses vtable.
4238         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4239         * libio/vswprintf.c (_IO_vswprintf): Likewise.
4240
4241         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
4242         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
4243         (chunk_align): Likewise.
4244
4245         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
4246         in a way that conforms to decl, and avoids spurious bounds violation.
4247
4248         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
4249         * sysdeps/generic/frame.h: Likewise.
4250         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
4251         around return value.
4252         (__backtrace): Qualify frame-pointer chain and return address
4253         pointers as __unbounded.  Wrap bounds around variable `current'.
4254         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
4255         around return value.
4256         (catch_segfault): Qualify frame-pointer chain and return address
4257         pointers as __unbounded.  Wrap bounds around variable `current'.
4258         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
4259         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
4260         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
4261         __unbounded.
4262         (__backtrace): Qualify frame-pointer chain and return address
4263         pointers as __unbounded.  Wrap bounds around variable `current'.
4264
4265         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
4266         * sysdeps/i386/mul_1.S: Likewise.
4267         * sysdeps/i386/submul_1.S: Likewise.
4268         * sysdeps/i386/i586/addmul_1.S: Likewise.
4269         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
4270         * sysdeps/i386/i586/submul_1.S: Likewise.
4271
4272 2000-07-27  Andreas Jaeger  <aj@suse.de>
4273
4274         * libio/Depend: New file, libio needs localedata for tests.
4275         * posix/Depend: Likewise.
4276
4277 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
4278
4279         * stdio-common/_i18n_itoa.c: Removed.
4280         * stdio-common/_i18n_itoa.h: Removed.
4281         * stdio-common/_i18n_itowa.c: Removed.
4282         * stdio-common/_i18n_itowa.h: Removed.
4283         * stdio-common/_i18n_number.h: New file.
4284         * stdio-common/Depend: New file.
4285         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
4286         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
4287         printing.  Change printing of numbers with locale specific digits to
4288         use new code in _i18n_number.h.
4289         * stdio-common/Makefile (routines): Remove _i18n_itoa and
4290         _i18n_itowa.
4291
4292         * stdio-common/bug13.c: Improve messages.
4293
4294         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
4295         (set_class_defaults): Always search also for Uxxxx names.
4296         Detect insufficient number of outdigits.
4297
4298         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
4299
4300 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4301
4302         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
4303         _NL_CTYPE_MAP_NAMES.
4304         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
4305         * wctype/wcfuncs.c (towlower, towupper): Use them.
4306         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
4307         * wctype/wctrans.c (wctrans): Likewise.
4308         * wctype/wctrans_l.c (__wctrans_l): Likewise.
4309
4310 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
4311
4312         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
4313         Use the optimized version of this function outside glibc as well.
4314
4315 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
4316
4317         * locale/indigits.h (indigit_value): Correct.
4318         * locale/indigitswc.h (indigitwc_value): Correct.
4319         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
4320         conversion, add GROUP checking for it, fix GROUP number
4321         conversion with strlen(thousands) > 1.
4322         Honour width correctly in the presence of floating
4323         decimal points and thousands separators.
4324         * stdio-common/tst-sscanf.c: New test.
4325         * stdio-common/Makefile: Add it to tests.
4326         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
4327         thousands separators and group argument is non-zero.
4328
4329 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4330
4331         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
4332         starts at GLIBC_2.2.
4333
4334 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4335
4336         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
4337         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
4338         _test_and_set.
4339         (headers): Add sys/tas.h.
4340         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
4341         GLIBC_2.2 from libc.
4342         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
4343         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
4344         _test_and_set.
4345
4346 2000-07-28  Andreas Jaeger  <aj@suse.de>
4347
4348         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
4349
4350         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
4351         ($(objpfx)tst-dladdr.out): new.
4352         (tests): Add tst-dladdr.
4353         ($(objpfx)glrefmain): Use libdl.
4354
4355         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
4356         <vs@caldera.de>.
4357
4358 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4359
4360         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
4361         ftruncate(64) calls.
4362
4363 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4364
4365         * intl/tst-translit.c: Include string.h to get prototype for
4366         strcmp().
4367
4368 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
4369
4370         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
4371         name and add weak alias for __fork.
4372
4373         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
4374         & pwrite to use __libc_<name> as strong names instead of
4375         __syscall_<name>.
4376
4377         * include/sched.h: Add clone2 prototype.
4378
4379 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
4380
4381         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
4382         procedure name twice.
4383
4384 2000-07-27  Philip Blundell  <philb@gnu.org>
4385
4386         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
4387
4388 2000-07-27  Andreas Jaeger  <aj@suse.de>
4389
4390         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
4391         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
4392         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
4393         Reported by Andi Kleen <ak@suse.de>.
4394
4395         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
4396         (do_wait): Test requests with aio_return64.
4397         (do_test): Change callers of do_wait.
4398
4399 2000-07-26  Andreas Jaeger  <aj@suse.de>
4400
4401         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
4402         (do_wait): Test requests with aio_return.
4403         (do_test): Change callers of do_wait.
4404
4405 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
4406
4407         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
4408         from request list.  Don't do the list handling here, call
4409         __aio_remove_request.
4410         * rt/aio_misc.h: Add prototype for __aio_remove_request.
4411         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
4412         request might already be processed.  Don't do the list handling
4413         here, call __aio_remove_request.
4414
4415         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
4416         LIO_DSYNC.
4417
4418         * rt/aio_misc.c: Add comment explaining why writer memory barriers
4419         are missing.
4420
4421 2000-07-27  Greg McGary  <greg@mcgary.org>
4422
4423         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
4424         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
4425         in union init.  Pass zero for ignored semnum arg to semctl.
4426         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
4427
4428 2000-07-26  Greg McGary  <greg@mcgary.org>
4429
4430         * sysdeps/gnu/bits/msq.h: Qualify kernel's
4431         data structure pointers as __unbounded.
4432         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
4433         * sysdeps/generic/bp-semctl.h: New file.
4434         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
4435         pointers as __unbounded.  Check bounds of syscall args.
4436         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
4437         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
4438         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
4439         * sysdeps/unix/sysv/linux/semop.c: Likewise.
4440         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
4441         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
4442         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
4443         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
4444         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
4445         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
4446         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
4447         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
4448         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
4449         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
4450         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
4451         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
4452
4453 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4454
4455         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
4456         by default.
4457         * locale/C-ctype.c: Likewise.
4458         * wcsmbs/wcsmbsload.c: Likewise.
4459
4460 2000-07-26  Greg McGary  <greg@mcgary.org>
4461
4462         * Makeconfig (+link-bounded, link-libc-bounded,
4463         link-extra-libs-bounded): New variables.
4464         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
4465         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
4466         * Rules (tests-bp.out): New variable.
4467         (tests): Conditionally add BP tests.
4468         (binaries-bounded): Add variable and associated rule.
4469         * csu/Makefile [build-bounded] (extra-objs, install-lib):
4470         Move conditional stuff after place where condition is defined.
4471
4472         * malloc/malloc.c (bp-checks.h): Add #include.
4473         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
4474         (_bin_at): Add unbounded version of bin_at.
4475         (IAV, chunk_alloc): Use unbounded _bin_at.
4476         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
4477         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
4478         Wrap BOUNDED_N around return value.
4479         (chunk_realloc): Adjust oldsize once.
4480
4481         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
4482         (__ubp_memchr): Add correct decl.
4483         (_CHECK_STRING): Use __ubp_memchr.
4484         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
4485         New alias for unbounded-pointer __memchr.
4486         * sysdeps/i386/memchr.S: Likewise.
4487         * sysdeps/ia64/memchr.S: Likewise.
4488         * sysdeps/m68k/memchr.S: Likewise.
4489         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4490         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4491         * sysdeps/vax/memchr.s: Likewise.
4492
4493         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
4494         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
4495         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
4496         * sysdeps/i386/i686/strtok.S: Likewise.
4497         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
4498         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
4499
4500         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
4501         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
4502
4503         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
4504         bounds of copy_result to mount_proc.
4505
4506 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4507
4508         * wctype/wctype.h (__wctrans_l): New declaration.
4509         * wctype/wctrans_l.c: New file.
4510         * wctype/Makefile (routines): Add wctrans_l.
4511
4512 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4513
4514         * posix/fnmatch_loop.c: Fixes for use outside glibc.
4515         Patch by MacGyver <macgyver@tos.net>.
4516
4517 2000-07-26  Andreas Jaeger  <aj@suse.de>
4518
4519         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
4520         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
4521         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
4522
4523         * rt/tst-aio.c (test_file): Fix typo.
4524         * rt/tst-aio64.c (test_file): Likewise.
4525
4526         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
4527         * rt/Makefile: Add rules to build and run tst-aio3.
4528
4529         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
4530         it's not needed and confuses only.
4531
4532 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
4533
4534         * resolv/res_init.c: Add support for nameserver communication with
4535         IPv6.
4536         * resolv/res_send.c: Likewise.
4537         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
4538         in nsaddrs field.
4539         Patch by <venaas@nvg.ntnu.no>.
4540
4541 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4542
4543         * locale/programs/ld-ctype.c (wctype_table_get): New function.
4544         (wcwidth_table_get): New function.
4545         (wcwidth_table_add): Call it.
4546         (wctrans_table_get): New function.
4547         (wctrans_table_add): Call it.
4548
4549 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4550
4551         * rt/lio_listio.c (lio_listio): Always disable individual
4552         notification.
4553         * rt/Makefile: Add rules to build and run tst-aio2.
4554         * rt/tst-aio2.c: New file.
4555
4556         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
4557         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
4558
4559 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4560
4561         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
4562         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
4563         leading and trailing spaces from host, user and domain name.
4564
4565 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
4566
4567         * csu/defs.awk: Add support for need_endp.
4568
4569 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4570
4571         * resolv/resolv.h: Remove __P from res_send_qhook and
4572         res_send_rhook typedefs.
4573
4574 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
4575
4576         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
4577
4578 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4579
4580         * iconv/gconv_builtin.h: Add WCHAR_T alias.
4581
4582 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
4583
4584         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
4585         calling thread, set the cancellation flag and return success
4586         instead of EINTR.
4587
4588 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4589
4590         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
4591         * libio/tst-widetext.c: New file.
4592         * libio/tst-widetext.input: New file.
4593
4594         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
4595
4596         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
4597         empty external buffer correctly.
4598
4599 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4600
4601         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
4602         __STRING(entry) and not #entry.
4603         (_RTLD_EPILOGUE): Likewise.
4604         * sysdeps/mips/mips64/dl-machine.h: Likewise.
4605
4606 2000-07-25  Andreas Jaeger  <aj@suse.de>
4607
4608         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
4609         according to changes in test program, run also with static only
4610         builds.
4611         ($(objpfx)tst-printf.out): Likewise.
4612
4613         * stdio-common/tst-unbputc.sh: Likewise.
4614         * stdio-common/tst-printf.sh: Likewise.
4615
4616 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
4617
4618         * libio/wfileops.c (_IO_wdo_write): Correct return value.
4619
4620         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
4621         loop.
4622
4623         * libio/fileops.c: Pretty print.
4624
4625 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
4626
4627         * wctype/wchar-lookup.h: New file.
4628         * wctype/iswctype.c: Include "wchar-lookup.h".
4629         (__iswctype): Support alternate locale format with 3-level tables.
4630         * wctype/iswctype_l.c (__iswctype_l): Likewise.
4631         * wctype/towctrans.c (__towctrans): Likewise.
4632         * wctype/towctrans_l.c (__towctrans_l): Likewise.
4633         * wctype/wcfuncs.c: Include "wchar-lookup.h".
4634         (__ctype32_wctype, __ctype32_wctrans): Declare external.
4635         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
4636         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
4637         __iswxdigit, towlower, towupper): Support alternate locale format
4638         with 3-level tables.
4639         * wctype/wcextra.c (iswblank): Likewise.
4640         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
4641         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
4642         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
4643         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
4644         format with 3-level tables.
4645         * wctype/wcextra_l.c (__iswblank_l): Likewise.
4646         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
4647         format, return a 3-level table pointer.
4648         * wctype/wctype_l.c (__wctype_l): Likewise.
4649         * wctype/wctrans.c (wctrans): Likewise.
4650         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
4651         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
4652         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
4653         (iswctype): Remove macro definition.
4654         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
4655         (internal_wcwidth): Support alternate locale format with 3-level
4656         tables.
4657         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4658         New nl_items.
4659         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
4660         Define them as being type "word".
4661         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
4662         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
4663         __ctype32_width): New exported variables.
4664         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
4665         alternate locale format. Don't initialize __ctype_names and
4666         __ctype_width in the alternate locale format.
4667         * locale/programs/localedef.h (oldstyle_tables): New declaration.
4668         * locale/programs/localedef.c (oldstyle_tables): New variable.
4669         (OPT_OLDSTYLE): New macro.
4670         (options): Add --old-style option.
4671         (parse_opt): Handle --old-style option.
4672         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
4673         map_offset, class_3level, map_3level, width_3level members.
4674         (ctype_output): Support for alternate locale format: Computation of
4675         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
4676         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
4677         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
4678         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
4679         now contain both class and map tables.
4680         (struct wctype_table): New type.
4681         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
4682         functions.
4683         (struct wcwidth_table): New type.
4684         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
4685         functions.
4686         (struct wctrans_table): New type.
4687         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
4688         functions.
4689         (allocate_arrays): Support for alternate locale format: Set
4690         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
4691         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4692         to the first 256 characters. Compute ctype->map_3level. Set
4693         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4694         instead of ctype->width.
4695
4696 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4697
4698         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4699         string functions.
4700
4701 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4702
4703         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4704         in wide characters, not bytes.
4705         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4706         into file.
4707
4708 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4709
4710         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4711         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4712         LC_MEASUREMENT, LC_IDENTIFICATION.
4713
4714         * locale/xlocale.h (struct __locale_struct): Increase size of
4715         __locales array.
4716         * locale/duplocale.c (__duplocale): Copy newly added categories as
4717         well.
4718         * locale/freelocale.c (__freelocale): Free newly added categories.
4719         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4720         If a base is given, use it, don't simply return it.
4721
4722 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4723
4724         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4725         variables, copied_key and copied_salt, instead of boolean variables.
4726
4727 2000-07-24  Andreas Jaeger  <aj@suse.de>
4728
4729         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4730         check for offset.
4731
4732         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4733         initgroups_function, adopted prototype for change from 2000-07-23.
4734         (initgroups): Follow type change.
4735
4736         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4737         & PAGE_MASK case, reformat.
4738
4739         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4740         from stdin and setup environment.
4741
4742 2000-07-24  Andreas Schwab  <schwab@suse.de>
4743
4744         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4745
4746 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4747
4748         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4749         more.  Patch by scarlet@mit.edu [PR libc/1799].
4750
4751         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4752         [PR libc/1792].
4753
4754         * argp/argp-parse.c (parser_finalize): Reverse order in which
4755         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4756
4757         * grp/initgroups.c (initgroups): Don't limit the possible number
4758         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4759         the setgroups call while the call fails and descrease the number
4760         of groups each round.
4761         The name of the initgroups function in the NSS modules changed.
4762         (compat_call): Adapt for dynamic resizing.
4763         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4764         Implement dynamic resizing.
4765         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4766         Likewise.
4767         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4768         * hesiod/Versions: Change exported interface name.
4769         * nis/Versions: Change exported interface name.
4770
4771 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4772
4773         * locale/iso-639.def: Some errors corrected.
4774         Patch by Keld Simonsen.
4775
4776         * include/limits.h: Update non-gcc portion.
4777         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4778
4779 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4780
4781         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4782         program's data space, reallocate only the space that was just
4783         deallocated to release its backing space.
4784
4785 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4786
4787         * stdio-common/vfprintf.c (process_string_arg): For wide character
4788         version, handle precision also correctly.
4789
4790         * nss/nss_files/files-hosts.c: Correct problem with three or more
4791         entries with the same name.
4792
4793         * nss/nss_files/files-hosts.c: Implement multi handling.
4794         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4795
4796 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4797
4798         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4799         strcasecmp.
4800
4801         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4802         * malloc/Makefile: Likewise.
4803         * malloc/tst-mtrace.sh: Likewise.
4804         * posix/Makefile: Likewise.
4805         * posix/globtest.sh: Likewise.
4806         * posix/wordexp-tst.sh: Likewise.
4807         * string/Makefile: Likewise.
4808
4809 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4810
4811         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4812         size instead of LC_ALL to take into account the new locale
4813         categories.
4814
4815 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4816
4817         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4818         remainders of hash table.
4819         * locale/categories.def: Remove remainders of transliteration
4820         hash table.
4821         * locale/langinfo.h: Likewise.
4822         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4823         transliteration tables.
4824
4825         * locale/gen-translit.pl: New file.
4826         * locale/C-translit.h.in: New file.
4827         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4828         data pointers with data from this file.
4829         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4830         and gen-translit.pl.
4831         Add rule to generate C-translit.h.
4832         * intl/tst-translit.c (main): Update for now performed
4833         transliteration.
4834
4835         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4836         (it's no input error).
4837         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4838         * stdio-common/scanf12.c: Correct expected result for first scanf.
4839
4840         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4841         of multibyte character strings in %s format with precision.
4842
4843 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4844
4845         * locale/programs/ld-collate.c (collate_read): Allow collating
4846         symbols and elements be named in reorder-after instructions.
4847         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4848
4849         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4850         duplication with generated name, not the name of the first
4851         character.
4852         Patch by Yong Li <yong.li@asu.edu>.
4853
4854         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4855         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4856
4857 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4858
4859         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4860         allocations only if a non-main arena cannot be extended.
4861
4862 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4863
4864         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4865         in DF_1_NODEFLIB handling.
4866
4867 2000-07-21  Andreas Jaeger  <aj@suse.de>
4868
4869         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4870         own rule.
4871
4872         * libio/fwide.c: Include <wchar.h> for prototype.
4873
4874 2000-07-21  Greg McGary  <greg@mcgary.org>
4875
4876         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4877         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4878         Define in terms of chunk_at_offset.
4879         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4880         (next_bin, prev_bin): offset by size of real array elements.
4881         (chunk_align): Make `m' a scalar, since that's how it's used.
4882
4883 2000-07-21  Greg McGary  <greg@mcgary.org>
4884
4885         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4886         UNCHECK_BOUNDS.
4887         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4888         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4889         Wrap bounds around argv & envp and each of their string members.
4890         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4891         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4892         symbol in BP_SYM ().  Discard bounds of address arg.
4893         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4894         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4895         Discard bounds on address arg, add bounds to return value.
4896
4897 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4898
4899         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4900         * elf/filter.c: New file.
4901         * elf/filtmod1.c: New file.
4902         * elf/filtmod2.c: New file.
4903
4904         * elf/rtld.c: Define _dl_bind_not variable.
4905         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4906         * elf/dl-support.c: Likewise.
4907         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4908         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4909         _dl_bind_not.
4910         (profile_fixup): Likewise.
4911
4912         * libio/Makefile (routines): Add fwide.
4913         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4914         fwide now.  Internal calls to _IO_fwide must do locking themselves
4915         or don't need locking.
4916         * libio/fwide.c: New file.
4917
4918         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4919
4920         * elf/Makefile: Add no modules for nodelete test.
4921         * elf/nodelmod3.c: New file.
4922         * elf/nodelmod4.c: New file.
4923         * elf/nodelete.c: Also test case where dependency of dlopen() object
4924         is marked nodelete.
4925
4926         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4927         * elf/nodlopen.c: New file.
4928         * elf/nodlopenmod.c: New file.
4929         * include/dlfcn.h: Define __RTLD_DLOPEN.
4930         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4931         and this is a dlopen() call, do not load the binary.
4932         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4933         * dlfcn/dlopenold.c: Likewise.
4934         * configure.in: Add test for -z nodelete option.
4935         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4936
4937 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4938
4939         Make Hesiod NSS module thread-safe.
4940
4941         * hesiod/README.hesiod: Update.
4942
4943         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4944         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4945         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4946         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4947         hesiod-proto.
4948         * hesiod/nss_hesiod/hesiod-init.c: New file.
4949         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4950         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4951         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4952         * hesiod/nss_hesiod/hesiod-service.c
4953         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4954         looking up services by port number.
4955         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4956
4957         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4958         * hesiod/hesiod.h: Likewise.
4959         * hesiod/hesiod_p.h: Likewise.
4960
4961 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4962
4963         Fix problems with `struct __res_state' getting too big.
4964         * resolv/resolv.h (struct __sockaddr_in): New definition.
4965         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4966         the private parts of the structure to save some space.
4967         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4968         (struct sockaddr_in *) in call to sock_eq.
4969         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4970
4971 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4972
4973         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4974         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4975         with nodelete.
4976         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4977         to _dl_map_object.  Return immediately if no object loaded.
4978         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4979         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4980         if it exists into l_flags_1 word.
4981         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4982         it to determine whether loading is wanted or not.
4983         (_dl_map_object): Likewise.
4984         Call _dl_map_object_from_fd with new parameter.
4985         * sysdeps/generic/ldsodefs.h: Update prototype.
4986         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4987         * elf/rtld.c: Likewise.
4988         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4989         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4990         * elf/noload.c: New file.
4991         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4992         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4993         * sysdeps/mips/bits/dlfcn.h: Likewise.
4994         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4995         (tests-nodelete-yes): Define.
4996         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4997         Add rules to build nodelete and modules.
4998         * elf/nodelete.c: New file.
4999         * elf/nodelmod1.c: New file.
5000         * elf/nodelmod2.c: New file.
5001         * configure.in: Add test for -z nodelete option.
5002         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
5003
5004         * libio/Makefile (tests): Add tst_wprintf2.
5005         (tst_wprintf2-ARGS): Define.
5006         * libio/tst_wprintf2.c: New file.
5007         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
5008
5009         * libio/wfiledoalloc.c: Only allocate external buffer if this
5010         hasn't happened yet.
5011
5012         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
5013         something in the buffer.  gconv call can write up to end of the
5014         buffer, not only _IO_write_end.
5015         (_IO_wfile_overflow): Allocate also external buffer.
5016
5017 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
5018
5019         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
5020         strings with precision in vfwprintf correctly.
5021         * stdio-common/vfprintf.c: Fix completely broken handling of
5022         unbuffered wide character streams.
5023         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
5024
5025         * resolv/Makefile (distribute): Add README.
5026
5027         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
5028
5029 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
5030
5031         Update resolver code to BIND 8.2.3-T5B.
5032
5033         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
5034         __res_nclose.
5035         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
5036         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
5037         __res_search.
5038         * resolv/Banner: BIND-8.2.3-T5B.
5039
5040         * resolv/base64.c: Update from BIND 8.2.3-T5B.
5041         * resolv/herror.c: Likewise.
5042         * resolv/inet_addr.c: Likewise.
5043         * resolv/inet_net_ntop.c: Likewise.
5044         * resolv/inet_net_pton.c: Likewise.
5045         * resolv/inet_neta.c: Likewise.
5046         * resolv/inet_ntop.c: Likewise.
5047         * resolv/nsap_addr.c: Likewise.
5048         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
5049         IPv6 addresses (ISC bug #520).
5050
5051         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
5052         * resolv/ns_parse.c: Likewise.
5053         * resolv/ns_netint.c: Likewise.
5054         * resolv/ns_samedomain.c: Likewise.
5055         * resolv/ns_ttl.c: Likewise.
5056         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
5057         RCS ID in object file.
5058
5059         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
5060         * resolv/res_mkquery.c: Likewise.
5061         * resolv/res_query.c: Likewise.
5062         * resolv/res_init.c: Likewise.
5063         (res_setoptions): Mark internal.
5064         * resolv/res_send.c: Likewise.
5065         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
5066         by using poll instead.
5067         * resolv/res_comp.c: Likewise.
5068         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
5069         weak alias for __dn_expand.
5070         * resolv/res_data.c: Likewise.
5071         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
5072         in _res.options.  Avoids a potential security risk by avoiding a
5073         close (0).
5074         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
5075         res_mkquery, res_query, res_querydomain adn res_search weak
5076         aliases for __res_mkquery, __res_query, __res_querydomain and
5077         __res_search.
5078         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
5079         instead to avoid close(0).
5080         (res_init): Always use the static resolver context.
5081         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
5082         alias for __res_init.
5083
5084         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
5085         RES_SET_H_ERRNO and accompanying comment to...
5086         * include/resolv.h: ... here.
5087
5088         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
5089         * resolv/arpa/nameser_compat.h: Likewise.
5090
5091 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5092
5093         * nss/makedb.c (main): Compare result of load_db with
5094         NSS_STATUS_SUCCESS and not 0.
5095         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
5096
5097         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
5098
5099 2000-07-18  Greg McGary  <greg@mcgary.org>
5100
5101         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
5102         (EXTEND_BUFFER): Use it.
5103
5104 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5105
5106         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
5107         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
5108         __builtin_return_address.
5109         * dlfcn/dlopenold.c: Likewise.
5110         * dlfcn/dlsym.c: Likewise.
5111         * dlfcn/dlvsym.c: Likewise.
5112         * elf/dl-profstub.c: Likewise.
5113         * malloc/malloc.c: Likewise.
5114         * sysdeps/generic/machine-gmon.h: Likewise.
5115         Based on a patch by schwidefsky@de.ibm.com.
5116
5117 2000-07-18  Andreas Jaeger  <aj@suse.de>
5118
5119         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
5120         NULL to elf_machine_fixup_plt t argument to silence GCC.
5121
5122         * include/string.h: Add prototype for __memchr.
5123
5124         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
5125
5126         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
5127         instead of memrchr.
5128
5129 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
5130
5131         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
5132
5133         * locale/C-ctype.c: Add initializers for gap elements.
5134         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
5135         for gap elements.
5136
5137 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5138
5139         * nscd/nscd.c (print_version): Update copyright year.
5140
5141 2000-07-17  Greg McGary  <greg@mcgary.org>
5142
5143         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5144         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
5145         signature argnames with angle-brackets for use as word delimiters,
5146         and to induce syntax errors for any args not handled.  Split
5147         multi-echo echoes and comment each stage.
5148         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
5149         * sysdeps/unix/inet/syscalls.list: Likewise.
5150         * sysdeps/unix/mman/syscalls.list: Likewise.
5151         * sysdeps/unix/syscalls.list: Likewise.
5152         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5153         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5154         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5155         * sysdeps/unix/sysv/syscalls.list: Likewise.
5156         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
5157
5158         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
5159         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
5160         qualifiers.  Don't check NULL-terminator of argv & envp.
5161         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
5162         unbounded pointer type in word-size assertion.
5163         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
5164         cases to stifle warnings.
5165
5166         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
5167         _IO_file_attach.
5168         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5169
5170         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
5171         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
5172         ptr as __unbouned.
5173
5174         * Makerules (o-objects): Supplement with $(o-objects$o).
5175         * string/Makefile (o-objects.ob): Add variable to pull
5176         unbounded versions of memcpy, memset and memchr into libc_b.
5177
5178         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
5179         rather than non-existent __ubp_memchr.
5180         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
5181         (_CHECK_STRING, _CHECK_N): New macros.
5182         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
5183         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
5184         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
5185         Add weak alias "memchr".
5186         * sysdeps/generic/memchr.c: Likewise.
5187         * sysdeps/i386/memchr.S: Likewise.
5188         * sysdeps/ia64/memchr.S: Likewise.
5189         * sysdeps/m68k/memchr.S: Likewise.
5190         * sysdeps/sparc/sparc32/memchr.S: Likewise.
5191         * sysdeps/sparc/sparc64/memchr.S: Likewise.
5192         * sysdeps/vax/memchr.s: Likewise.
5193
5194         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
5195
5196         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
5197         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
5198         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
5199         __BOUNDED_POINTERS__.
5200         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
5201         for __BOUNDED_POINTERS__.
5202
5203 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
5204
5205         * iconv/gconv_open.c (__gconv_open): Initialize the __data
5206         field of struct __gconv_trans_data differently.  Don't pass NULL to
5207         trans_init_fct.  Simplify list append operation.
5208
5209 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
5210
5211         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
5212         not only those having tsearch.
5213
5214 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
5215
5216         * locale/langinfo.h: Add placeholder values in enum for removed
5217         LC_CTYPE entries.
5218
5219 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
5220
5221         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
5222         chain if the PHDR check fails.
5223
5224 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
5225
5226         * nss/getent.c (print_hosts): Make sure we always print a space
5227         between numeric addresses and hostnames.
5228
5229 2000-07-17  Wolfram Gloger  <wg@malloc.de>
5230
5231         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
5232         i.e. if n_mmaps_max>0.
5233
5234 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
5235
5236         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
5237         values to remove possible clash with other AI_* constants.
5238         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
5239         hexadecimal constants to stress the fact they're in fact
5240         bit flags.
5241
5242 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
5243
5244         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
5245         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
5246         instead of res_init.
5247
5248 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
5249
5250         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
5251         parameters of memset calls to avoid warnings.
5252
5253 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5254
5255         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
5256         necessary.
5257
5258         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
5259         Patch by Greg McGary <greg@mcgary.org>.
5260
5261         * io/Makefile (tests): Add tst-getcwd.
5262         * io/tst-getcwd.c: New file.
5263
5264         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
5265
5266 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
5267
5268         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
5269         structure.
5270
5271 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
5272
5273         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
5274         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
5275
5276 2000-07-12  H.J. Lu  <hjl@gnu.org>
5277
5278         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
5279         GLIBC_2.2.
5280         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
5281         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
5282         (sysdep-routines): Add clone2.
5283         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
5284
5285 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
5286
5287         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
5288         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
5289
5290 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
5291
5292         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
5293         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
5294         Change type of si_band from "int" to "long".
5295         (si_imm) [USE_GNU]: Define
5296         (si_isr) [USE_GNU]: Likewise.
5297         (ILL_BREAK) [USE_GNU]: Likewise.
5298         (FPE_DECOVF) [USE_GNU]: Likewise.
5299         (FPE_DECDIV) [USE_GNU]: Likewise.
5300         (FPE_DECERR) [USE_GNU]: Likewise.
5301         (FPE_INVASC) [USE_GNU]: Likewise.
5302         (FPE_INVDEC) [USE_GNU]: Likewise.
5303         (TRAP_BRANCH) [USE_GNU]: Likewise.
5304         (TRAP_HWBKPT) [USE_GNU]: Likewise.
5305
5306 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
5307
5308         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5309         bits/sigcontext as struct mcontext does not depend on it.
5310
5311         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
5312
5313 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
5314
5315         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
5316
5317 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
5318
5319         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
5320
5321 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5322
5323         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
5324
5325 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
5326
5327         * intl/Makefile (test-srcs): Add tst-translit.
5328         (tests): Likewise.
5329         Add rules to build and run tst-translit.
5330         * intl/tst-translit.c: New file.
5331         * intl/tst-translit.sh: New file.
5332         * intl/translit.po: New file.
5333
5334 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5335
5336         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
5337         transliteration function did its job, continue, don't stop.
5338
5339         * iconvdata/iso646.c: Little optimizations in body for conversion
5340         from UCS4.
5341
5342 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5343
5344         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
5345
5346 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
5347
5348         * configure.in: Check for pwd binary.
5349         * config.make.in: Add PWD_P to be subsituted.
5350         * Makerules: Use $(PWD_P) instead of /bin/pwd.
5351
5352 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5353
5354         * iconvdata/Makefile (modules): Add GB18030.
5355         (distribute): Add gb18030.c.
5356         * iconvdata/gconv-modules: Add entries for GB18030 module.
5357         * iconvdata/gb18030.c: New file.
5358         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
5359         and Wu Jian.
5360
5361 2000-07-13  Andreas Jaeger  <aj@suse.de>
5362
5363         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
5364         patch.
5365
5366         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
5367         * inet/getnetgrent.c (free_mem): Likewise.
5368         * misc/mntent.c (free_mem): Likewise.
5369         * nss/getXXbyYY.c (free_mem): Likewise.
5370         * nss/getXXent.c (free_mem): Likewise.
5371         * pwd/fgetpwent.c (free_mem): Likewise.
5372         * shadow/fgetspent.c (free_mem): Likewise.
5373
5374 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
5375
5376         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
5377         64-bit architecture correctly [PR libc/1794].
5378
5379 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
5380
5381         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
5382         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
5383         report that we are out of memory.
5384         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
5385         * elf/dl-libc.c (dlerror_run): Likewise.
5386         * elf/dl-open.c (_dl_open): Likewise.
5387         * elf/rtld.c (dl_main): Likewise.
5388         * elf/dl-error.c: Define _dl_out_of_memory.
5389         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
5390         the error string.
5391         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
5392         [PR libc/1813].
5393
5394         * dlfcn/dlerror.c (free_key_mem): Also free error string.
5395
5396         * iconv/loop.c: Fix comment.
5397
5398         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
5399
5400 2000-07-13  Andreas Jaeger  <aj@suse.de>
5401
5402         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
5403         getcwd (NULL, size) with size > 0.
5404         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
5405
5406 2000-07-13  Andreas Jaeger  <aj@suse.de>
5407
5408         * posix/Makefile: Remove build rules for libposix.
5409
5410 2000-07-13  Andreas Schwab  <schwab@suse.de>
5411
5412         * sysdeps/generic/glob.c (glob): Fix memory leak.
5413         [SHELL]: Remove reference to undefined variable `files'.
5414         Fixes PR libc/1782.
5415
5416 2000-07-13  Andreas Jaeger  <aj@suse.de>
5417
5418         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
5419         functions.
5420
5421         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
5422         memory if it was allocated.
5423
5424 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5425
5426         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
5427         step.
5428
5429         * iconv/gconv_open.c (__gconv_open): Reapply
5430         2000-07-12 Bruno Haible <haible@clisp.cons.org>
5431
5432                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5433
5434         * iconv/gconv_open.c: Undo last two changes for now.  They break
5435         everything.
5436
5437 2000-07-12  Andreas Jaeger  <aj@suse.de>
5438
5439         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
5440         compiler.
5441         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
5442         (CFLAGS-dl-cache.c): Likewise.
5443         (CFLAGS-ldconfig.c): Added, passes directory locations.
5444
5445         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
5446         locate cache.
5447         * elf/ldconfig.c (LD_SO_CONF): Likewise.
5448         (main): Use configured LIBDIR and SLIBDIR.
5449
5450 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
5451
5452         * math/bits/cmathcalls.h (cimag): Add __THROW.
5453         (creal, conj): Likewise.
5454         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
5455         by negative value.
5456
5457 2000-07-12  H.J. Lu  <hjl@gnu.org>
5458
5459         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
5460         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
5461
5462 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5463
5464         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
5465         it is wrong.
5466
5467 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5468
5469         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
5470
5471 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5472
5473         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
5474         __modname.
5475
5476 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
5477
5478         * iconv/gconv_open.c (__gconv_open): Initialize
5479         result->__steps[cnt].__data.
5480
5481 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
5482
5483         * nss/getent.c (services_keys): Pass port number in network byte
5484         order in call to getservbyport.
5485
5486 2000-07-11  Andreas Jaeger  <aj@suse.de>
5487
5488         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
5489         source dir.
5490         * intl/Makefile (do-gettext-test): Likewise.
5491         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
5492
5493 2000-07-11  Andreas Schwab  <schwab@suse.de>
5494
5495         * Makeconfig (run-program-prefix): New rule.
5496         (built-program-cmd): Use run-program-prefix.
5497
5498 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
5499
5500         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
5501         and NOEXPR unconditionally available.
5502
5503 2000-07-12  Greg McGary  <greg@mcgary.org>
5504
5505         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
5506         * sysdeps/posix/open64.c: Likewise.
5507         * sysdeps/generic/fegetenv.c: Likewise.
5508         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
5509         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
5510         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
5511         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
5512         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
5513         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
5514
5515 2000-07-11  Greg McGary  <greg@mcgary.org>
5516
5517         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
5518         Add extra level of macro expansion.
5519         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
5520         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
5521         is available at the time `select' prototype is declared.
5522         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
5523         Collect non-versioned weak aliases.  Consider only non-versioned
5524         aliases for the user-visible systemcall name.  Do checks inline with
5525         call to primitive system call.
5526         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
5527         stand-alone bounds checks to suppress unused value warnings.
5528         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
5529
5530 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
5531
5532         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
5533         file descriptor checking in SUID programs for the Hurd.
5534
5535         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
5536         res_hostalias instead of __hostalias for thread-safety.
5537
5538 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
5539
5540         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
5541         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
5542
5543 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
5544
5545         * include/features.h: Include ISO C99 features if the compiler used
5546         is an ISO C99 compiler.
5547         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
5548
5549 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5550
5551         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
5552
5553 2000-07-10  Andreas Jaeger  <aj@suse.de>
5554
5555         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
5556         it's overridden by libpthreads.
5557         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5558         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5559         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5560         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5561         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5562
5563         * malloc/Makefile: Run tst-mtrace only with shared libs.
5564
5565         * stdio-common/Makefile: Run unbputc and tst-printf tests only
5566         with shared libs.
5567
5568 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
5569
5570         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
5571         that gpreg really points to the GOT section of the calling object.
5572         Scan all PT_LOAD segments of objects for stub_pc, instead of only
5573         checking a start address of first one.
5574         Fix typos.
5575         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
5576         Likewise.
5577
5578         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
5579
5580 2000-07-10  Andreas Jaeger  <aj@suse.de>
5581
5582         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
5583         (string_alias->strong_alias).
5584
5585 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
5588
5589 2000-07-07  Greg McGary  <greg@mcgary.org>
5590
5591         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
5592         have no names without leading underscores.
5593
5594 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5595
5596         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
5597         U007E.
5598
5599         * stdio-common/Makefile (tests): Remove tst-printf here...
5600         (tests-srcs): ...and add it here.
5601         (distribute): Add tst-unbputc.sh and tst-printf.sh.
5602         Add rules to run tst-printf.sh.
5603         * stdio-common/tst-printf.c: Move code around so that there is really
5604         no further output where it's stated.
5605         * stdio-common/tst-printf.sh: New file.
5606
5607 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
5608
5609         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
5610         (do_write): Renamed from pwrite.
5611         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
5612         `struct _IO_cookie_file'.
5613
5614 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5615
5616         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
5617         detected.
5618         * malloc/tst-mtrace.sh: Run mtrace script.
5619
5620 2000-07-07  Greg McGary  <greg@mcgary.org>
5621
5622         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
5623         Move all three components of a bounded pointer.
5624
5625 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
5626
5627         * locale/programs/locale.c (write_locales): Don't simply add all
5628         directories found in the subdir, test whether at least the
5629         LC_CTYPE file is in there.
5630
5631 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
5632
5633         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
5634         * iconvdata/euc-kr.c: Likewise.
5635
5636         * stdio-common/vfprintf.c (process_string_arg): Check result of
5637         wcrtomb call and bail out if it failed.
5638
5639         * malloc/Makefile (test-srcs): Add tst-mtrace.
5640         (distribute): Add tst-mtrace.sh.
5641         Add rule to run tst-mtrace.sh.
5642         * malloc/tst-mtrace.c: New file.
5643         * malloc/tst-mtrace.sh: New file.
5644
5645         * include/signal.h: Declare __libc_sigaction.
5646         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
5647         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
5648         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5649         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5650         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5651         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5652         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5653
5654         * configure.in: Fix CFLAGS-memprofstat.c definition after
5655         2000-06-19 change.
5656         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
5657
5658 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
5659
5660         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
5661         instead of NULL to elf_machine_fixup_plt t argument.
5662         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5663         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
5664         cast.
5665
5666 2000-07-06  Andreas Jaeger  <aj@suse.de>
5667
5668         * crypt/Makefile (LDLIBS-cert): Removed.
5669         (LDLIBS-md5c-test): Removed.
5670         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
5671         ($(objpfx)md5c-test): Likewise for md5c-test.out.
5672
5673 2000-07-06  Andreas Jaeger  <aj@suse.de>
5674
5675         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
5676         of the proc system is "proc".
5677
5678         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
5679         thread library for static programs.
5680
5681 2000-07-06  Greg McGary  <greg@mcgary.org>
5682
5683         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
5684         New macros.
5685         * sysdeps/generic/strcpy.c: Add bounds checks.
5686         * sysdeps/unix/fxstat.c: Likewise.
5687         * sysdeps/unix/xstat.c: Likewise.
5688         * sysdeps/unix/common/lxstat.c: Likewise.
5689         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
5690         * sysdeps/unix/sysv/linux/execve.c: Likewise.
5691         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5692         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5693         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5694         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5695         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5696         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5697         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5698         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5699         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5700         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5701         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5702         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5703         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5704         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5705         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5706         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5707         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5708         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5709         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5710         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5711         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5712         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5713         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5714         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5715         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5716         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5717         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5718         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5719         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5720         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5721         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5722         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5723         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5724         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5725         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5726         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5727         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5728         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5729         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5730         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5731         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5732         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5733         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5734         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5735         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5736         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5737         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5738         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5739         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5740         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5741         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5742         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5743         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5744         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5745         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5746         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5747         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5748         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5749         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5750         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5751         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5752         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5753
5754         * string/endian.h (__LONG_LONG_PAIR): New macro.
5755         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5756         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5757         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5758         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5759         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5760         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5761         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5762         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5763         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5764         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5765         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5766         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5767
5768         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5769
5770 2000-07-06  Andreas Jaeger  <aj@suse.de>
5771
5772         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5773         Initialize result.
5774
5775         * math/test-fpucw.c: Include <stdio.h> for printf.
5776
5777 2000-07-05  Greg McGary  <greg@mcgary.org>
5778
5779         * sysdeps/generic/bp-checks.h: New file.
5780         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5781         with list of #include files.
5782         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5783         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5784         Don't generate BP thunk if `V' appears in signature.
5785         Generate thunks with complete bounds checks.
5786         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5787         * sysdeps/unix/inet/syscalls.list: Likewise.
5788         * sysdeps/unix/mman/syscalls.list: Likewise.
5789         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5790         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5791         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5792         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5793
5794 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5795
5796         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5797         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5798         If mount not in the file fall back on /proc.
5799
5800         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5801         string got copied in.
5802         Patch by Solar Designer <solar@false.com>.
5803
5804 2000-07-05  Andreas Jaeger  <aj@suse.de>
5805
5806         * manual/install.texi (Installation): Update information about
5807         add-ons.
5808         (Configuring and compiling): Update for glibc 2.2.
5809
5810 2000-07-04  Andreas Jaeger  <aj@suse.de>
5811
5812         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5813         (_FPU_IEEE): Likewise.
5814
5815         * math/Makefile (tests): Add test-fpucw.
5816
5817         * math/test-fpucw.c (main): New file.
5818
5819 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5820
5821         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5822
5823         * locale/programs/ld-collate.c (collate_output): Also write out the
5824         collation sequence values and the wide character string for the
5825         collation symbol table.
5826
5827         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5828         * posix/fnmatch_loop.c: Implement collating symbol handling.
5829         * posix/tst-fnmatch.input: Add more tests, especially for collating
5830         symbol handling.
5831
5832         * posix/regex.c: Fix comment.
5833
5834 2000-07-05  Andreas Jaeger  <aj@suse.de>
5835
5836         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5837         (_FPU_GETCW): Remove extra colon.
5838         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5839
5840         * posix/fnmatch_loop.c (FCT): Only declare len if
5841         !WIDE_CHAR_VERSION to silence GCC.
5842
5843         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5844         prototype.
5845         * sysdeps/generic/strchrnul.c: Likewise.
5846         * sysdeps/generic/strlen.c: Likewise.
5847         * sysdeps/generic/strchr.c: Likewise.
5848         * sysdeps/generic/memchr.c: Likewise.
5849
5850 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5851
5852         * posix/fnmatch_loop.c: Implement equivalence class handling.
5853         * posix/tst-fnmatch.input: Add tests for equivalence class
5854         handling.
5855
5856         * posix/fnmatch_loop.c: Improve performance for single-byte
5857         character sets by not using btowc.
5858
5859         * posix/tst-fnmatch.input: Add tests for locale dependent
5860         behaviour.
5861         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5862
5863         * posix/tst-fnmatch.input: Add more test cases.
5864
5865         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5866         are not aligned to alignof(md5_uint32) do it before calling
5867         __md5_process_bytes.
5868         * crypt/md5.c: Make sure buffers are aligned.
5869         * crypt/md5.h: Likewise.
5870         Reported by Solar Designer <solar@false.com>.
5871
5872         * crypt/Makefile: Add dependencies for test programs.
5873
5874         * Rules: Define LC_ALL=C in environments of all programs we run.
5875
5876         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5877
5878 2000-07-03  H.J. Lu  <hjl@gnu.org>
5879
5880         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5881         is 2 + elem + offset, not 2 + elem + offset + 2.
5882
5883 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5884
5885         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5886         suite.
5887         * posix/Makefile (tests): Add tst-fnmatch.
5888         (tst-fnmatch-ENV): Define.
5889         * posix/tst-fnmatch.c: New file.
5890         * posix/tst-fnmatch.sh: New file.
5891
5892 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5893
5894         * locale/programs/charmap.c (charmap_read): Prepend
5895         the condition filename == NULL.
5896
5897 2000-07-03  Greg McGary  <greg@mcgary.org>
5898
5899         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5900
5901         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5902         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5903
5904         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5905         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5906         (FILEBUF_LITERAL): Add cast for CHAIN init.
5907         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5908         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5909         Revert type of `fp' to _IO_FILE*.
5910         (_IO_iter_file): Remove cast.
5911         (_IO_iter_next): Elide intermediate member reference.
5912
5913         * sysdeps/powerpc/strchr.S:  Check bounds.
5914         Wrap extern symbols in BP_SYM ().
5915
5916 2000-07-03  Andreas Jaeger  <aj@suse.de>
5917
5918         * dlfcn/Makefile (generated): New.
5919
5920 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5921
5922         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5923         (__uflow): Likewise.
5924         (__underflow): Likewise.
5925         * libio/wgenops.c (__wunderflow): Likewise.
5926         * stdio-common/tst-unbputc.c: New file.
5927         * stdio-common/tst-unbputc.sh: New file.
5928         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5929
5930         * po/en_GB.po: New file.
5931         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5932
5933 2000-07-01  Andreas Jaeger  <aj@suse.de>
5934
5935         * intl/Makefile (generated-dirs): New.
5936
5937         * elf/Makefile (generated): trusted-dirs.h is always generated,
5938         move out of build-shared condition.
5939         (generated): Merge the two entries for build-shared.
5940
5941 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5942
5943         * debug/Makefile (distribute): Add xtrace.sh.
5944
5945 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5946
5947         * version.h (VERSION): Bump to 2.1.91.
5948
5949         * configure.in: Update warning comment.  glibc should not be
5950         broken anymore.
5951
5952         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5953         ioperm.c, sys/procfs.h, and sys/io.h.
5954
5955         * sysdeps/powerpc/Dist: Add bp-asm.h.
5956
5957         * assert/Depend: Add localedata.
5958         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5959         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5960
5961         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5962         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5963         relocation address to prevent unaligned trap.
5964         Suggested by Richard Henderson <rth@cygnus.com>.
5965
5966 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5967
5968         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5969         if redirecting and either redirection is done using defines or
5970         not optimizing.
5971
5972 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5973
5974         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5975         generated expressions.
5976         Patch by Darren McClelland <dmcclell@zetec.com>.
5977
5978         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5979         since zic uses setlocale and gettext but we cannot make it use the
5980         new locale data since zic calls a shell which might not use the
5981         new libc.
5982
5983         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5984         handling the internation currency symbol.  POSIX says that the
5985         fourth character is used to separate the currency symbol from the
5986         value.  Therefore it does not have to be printed.  But we cannot
5987         remove the space if the currency symbol is printed before the
5988         number since this is what many locales expect.
5989
5990         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5991         whether this information is available.
5992
5993         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5994         buffers in case the translation is too large.  Remember allocated
5995         memory blocks in a list.
5996         (free_mem): Free memory for translations.
5997
5998         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5999
6000         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
6001         information is available set the string length to zero.
6002
6003         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
6004
6005 2000-06-30  Greg McGary  <greg@mcgary.org>
6006
6007         * sysdeps/powerpc/bp-asm.h: New file.
6008         * sysdeps/powerpc/__longjmp.S:  Check bounds.
6009         Wrap extern symbols in BP_SYM ().
6010         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
6011         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
6012         * sysdeps/powerpc/setjmp.S: Likewise.
6013         * sysdeps/powerpc/add_n.S: Likewise.
6014         * sysdeps/powerpc/addmul_1.S: Likewise.
6015         * sysdeps/powerpc/lshift.S: Likewise.
6016         * sysdeps/powerpc/rshift.S: Likewise.
6017         * sysdeps/powerpc/mul_1.S: Likewise.
6018         * sysdeps/powerpc/sub_n.S: Likewise.
6019         * sysdeps/powerpc/submul_1.S: Likewise.
6020         * sysdeps/powerpc/strlen.S: Likewise.
6021         * sysdeps/powerpc/memset.S: Likewise.
6022         * sysdeps/powerpc/stpcpy.S: Likewise.
6023         * sysdeps/powerpc/strcmp.S: Likewise.
6024         * sysdeps/powerpc/strcpy.S: Likewise.
6025         * sysdeps/powerpc/elf/bzero.S: Likewise.
6026
6027         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
6028         Line up operands column with tabs.
6029
6030 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
6031
6032         * elf/Makefile (LDFLAGS-origtest): Actually add it.
6033
6034         * sysdeps/ia64/htonl.S: New file.
6035         * sysdeps/ia64/htons.S: New file.
6036         * sysdeps/ia64/memcpy.S: Replace with version which does not use
6037         floating point registers.
6038         Patches by Dan Pop <Dan.Pop@cern.ch>.
6039
6040 2000-06-30  Andreas Jaeger  <aj@suse.de>
6041
6042         * posix/Makefile (tests): tst-exec and tst-spawn only work with
6043         shared libraries.
6044
6045         * io/Makefile (CFLAGS-test-lfs.c): New.
6046         (tests): Add test-lfs.
6047
6048         * io/test-lfs.c: New file.
6049
6050 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
6051
6052         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
6053         instruction.
6054
6055 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
6056
6057         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
6058
6059 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
6060
6061         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
6062         alias to the fstatfs call.
6063
6064         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
6065         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
6066
6067         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
6068         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
6069
6070         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
6071         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
6072         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
6073         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
6074
6075         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
6076         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
6077
6078         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
6079         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
6080
6081         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
6082         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
6083
6084         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
6085
6086 2000-06-29  Andreas Jaeger  <aj@suse.de>
6087
6088         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
6089         with syslog.
6090         (print_err_message): Likewise.
6091         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
6092
6093 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6094
6095         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
6096         used as words is properly aligned.
6097
6098         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
6099         data files.
6100
6101 2000-06-29  Greg McGary  <greg@mcgary.org>
6102
6103         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
6104         * sysdeps/unix/make-syscalls.sh: Handle signatures of
6105         length 7..9, just in case...
6106         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
6107
6108         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
6109         (POP_ERRNO_LOCATION_RETURN): Fold insns.
6110         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
6111         (PUSH_SIGNAL_MASK): New macro.
6112         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
6113         LEAVE is unnecessary.  Check bounds of jmp_buf.
6114         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
6115         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
6116         immediately before tail-call.
6117         * sysdeps/i386/setjmp.S: Likewise.
6118         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6119         * sysdeps/i386/bsd-setjmp.S: Likewise.
6120
6121 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
6122
6123         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
6124         versioned_symbol.
6125         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
6126         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
6127         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
6128         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
6129         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
6130         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
6131         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
6132         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
6133
6134 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6135
6136         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
6137         we later need to calling free().
6138         Patch by Matt Wilson <msw@redhat.com>.
6139
6140         * stdio-common/tst-printf.c: Add test for above problem.
6141
6142 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
6143
6144         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
6145         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
6146
6147 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6148
6149         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
6150         prototype for abs().
6151         * sysdeps/ieee754/flt-32/s_exp2f.c: Likewise.
6152
6153 2000-06-23  Andreas Jaeger  <aj@suse.de>
6154
6155         * config.h.in: Don't use regparm with bounded pointers.
6156
6157 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
6158
6159         * stdlib/grouping.h: Correctly handle multibyte thousands
6160         separator and decimal point.
6161         * stdlib/stdtod.c: Likewise.
6162         * sysdeps/generic/strtol.c: Likewise.
6163
6164         * locale/categories.def: Add entries for wide character decimal point
6165         and thousands separator in numeric and monetary category.
6166
6167 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
6170         second definition and initialization of decimal.
6171
6172 2000-06-28  Greg McGary  <greg@mcgary.org>
6173
6174         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
6175         out.
6176         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
6177         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
6178         in.
6179         (_IO_JUMPS): Don't cast THIS--expect arg to be a
6180         (struct _IO_FILE_plus *).
6181         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
6182         THIS, since _IO_JUMPS no longer does it implicitly.
6183         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
6184         arg type as (struct _IO_FILE_plus *).
6185         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
6186         arg as (_IO_strfile *).
6187         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
6188         Declare 1st arg as (_IO_strfile *).
6189         * libio/fileops.c (_IO_new_file_init): Declare
6190         arg type as (struct _IO_FILE_plus *).
6191         * libio/oldfileops.c (_IO_old_file_init): Likewise.
6192         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
6193         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
6194         Declare iteration pointer as (struct _IO_FILE_plus *).
6195         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
6196                 (struct _IO_FILE_plus *).
6197         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
6198         * libio/oldstdfiles.c (_IO_list_all): Likewise.
6199         (_IO_check_libio): Set user-visible handles to
6200         (struct _IO_FILE_plus *).
6201         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
6202         to (struct _IO_FILE_plus *).
6203
6204         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
6205         whose high bound includes vtable to all functions that will use
6206         vtable.  For streambufs, pass pointer whose bounds include struct
6207         _IO_strfile.
6208         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
6209         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
6210         * libio/iofopen.c (_IO_new_fopen): Likewise.
6211         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
6212         * libio/iofopen64.c (_IO_fopen64): Likewise.
6213         * libio/iopopen.c (_IO_new_popen): Likewise.
6214         * libio/oldiopopen.c (_IO_old_popen): Likewise.
6215         * libio/memstream.c (open_memstream): Likewise.
6216         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
6217         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
6218         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
6219         * libio/iofopncook.c (_IO_cookie_init): Likewise.
6220         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
6221         * libio/vasprintf.c (_IO_vasprintf): Likewise.
6222         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
6223         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6224         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
6225         * stdlib/strfmon.c (__strfmon_l): Likewise.
6226         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
6227         (vfprintf): Qualify computed-goto targets as unbounded.
6228
6229 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6230
6231         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
6232         thousands separator correctly.
6233
6234         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
6235         * stdio-common/vfwscanf.c: Likewise.
6236
6237 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
6238
6239         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
6240         count into signatures for most calls.
6241
6242 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6243
6244         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
6245         the generic parser now.
6246
6247 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6248
6249         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
6250         table entries are 32 bit on the ia64 (as specified by the ABI),
6251         not 64 bit as on the Alpha.
6252
6253         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
6254         change of objects to use 32 bit hash table indices (see above).
6255
6256 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
6257
6258         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
6259         prototype for abs().
6260
6261 2000-06-28  Wolfram Gloger  <wg@malloc.de>
6262
6263         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
6264         fails, try mmap_chunk() as a last resort even though n_mmaps_max
6265         may have been reached.
6266
6267 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
6268
6269         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
6270         symbols in multi-character weights correctly.
6271
6272         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
6273         depending on whether the input string is empty or not.
6274
6275         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
6276         given state and not avoiding this by modifying a local object.
6277         * wcsmbs/wcrtomb.c: Likewise.
6278
6279         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
6280         object since some incomplete characters might be in there.
6281
6282         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
6283         sequences with first byte 0x8e correctly.
6284
6285         * iconvdata/jis0208.h: Remove redundant test.
6286
6287 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
6288
6289         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
6290         Add it where it is needed now.
6291
6292         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
6293         the input charset into account when generating the hash table.
6294         (allocate_arrays): Correct setting default width.  Not all empty slots
6295         in the table are filled, only those not covert explicitly by the
6296         locale description and in the charset.
6297
6298         * wctype/towctrans.c (__towctrans): Be graceful and accept error
6299         return values from the wctrans function.
6300
6301         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
6302         wide character version.
6303         For %C handling, test correct pointer variable for NULL.
6304
6305         * wcsmbs/wctob.c: Handle WEOF special.
6306
6307         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
6308
6309         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
6310         always-true test to avoid warning.
6311
6312 2000-06-27  Greg McGary  <greg@mcgary.org>
6313
6314         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
6315         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
6316         (symbol_version, default_symbol_version): Factor redundant
6317         definitions out of conditional.
6318
6319 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
6320
6321         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
6322         not obstack_blank.
6323
6324 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6325
6326         * include/libc-symbols.h (symbol_version): Add extra level of
6327         macro expansion.
6328         (default_symbol_version): Likewise.
6329
6330 2000-06-26  Greg McGary  <greg@mcgary.org>
6331
6332         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
6333         for BP return value & push implicit struct-return pointer to
6334         __errno_location.
6335         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
6336         (SYSCALL_ERROR_HANDLER): Likewise.
6337         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6338         (SYSCALL_ERROR_HANDLER): Likewise.
6339
6340         * Makeconfig: Add missing comment.
6341         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
6342         BP-flavored startup object.
6343         ($(objpfx)b$(start-installed-name)): New rule.
6344         * include/libc-symbols.h (symbol_set_declare): Change type
6345         of `__start_##set' and `__stop_##set' to pointer-to-function.
6346         (symbol_set_declare): Change type of `set' to array of
6347         pointer-to-function.
6348         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
6349         pointer-to-function.
6350
6351         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
6352
6353         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
6354         Remove clock_* and timer_* entries.
6355         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
6356         arg-count with signatures.
6357
6358         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
6359         Check bounds of arguments.
6360         * sysdeps/i386/addmul_1.S: Likewise.
6361         * sysdeps/i386/lshift.S: Likewise.
6362         * sysdeps/i386/mul_1.S: Likewise.
6363         * sysdeps/i386/rshift.S: Likewise.
6364         * sysdeps/i386/sub_n.S: Likewise.
6365         * sysdeps/i386/submul_1.S: Likewise.
6366         * sysdeps/i386/i586/add_n.S: Likewise.
6367         * sysdeps/i386/i586/addmul_1.S: Likewise.
6368         * sysdeps/i386/i586/lshift.S: Likewise.
6369         * sysdeps/i386/i586/rshift.S: Likewise.
6370         * sysdeps/i386/i586/sub_n.S: Likewise.
6371         * sysdeps/i386/i686/add_n.S: Likewise.
6372
6373         * sysdeps/i386/memchr.S: Likewise.
6374         * sysdeps/i386/memcmp.S: Likewise.
6375         * sysdeps/i386/rawmemchr.S: Likewise.
6376         * sysdeps/i386/i586/bzero.S: Likewise.
6377         * sysdeps/i386/i586/memcpy.S: Likewise.
6378         * sysdeps/i386/i586/mempcpy.S: Likewise.
6379         * sysdeps/i386/i586/memset.S: Likewise.
6380         * sysdeps/i386/i686/bzero.S: Likewise.
6381         * sysdeps/i386/i686/memcpy.S: Likewise.
6382         * sysdeps/i386/i686/mempcpy.S: Likewise.
6383         * sysdeps/i386/i686/memset.S: Likewise.
6384
6385         * sysdeps/i386/stpcpy.S: Likewise.
6386         * sysdeps/i386/stpncpy.S: Likewise.
6387         * sysdeps/i386/strchr.S: Likewise.
6388         * sysdeps/i386/strchrnul.S: Likewise.
6389         * sysdeps/i386/strcspn.S: Likewise.
6390         * sysdeps/i386/strpbrk.S: Likewise.
6391         * sysdeps/i386/strrchr.S: Likewise.
6392         * sysdeps/i386/strspn.S: Likewise.
6393         * sysdeps/i386/strtok.S: Likewise.
6394         * sysdeps/i386/strtok_r.S: Likewise.
6395         * sysdeps/i386/i486/strcat.S: Likewise.
6396         * sysdeps/i386/i486/strlen.S: Likewise.
6397         * sysdeps/i386/i586/strchr.S: Likewise.
6398         * sysdeps/i386/i586/strcpy.S: Likewise.
6399         * sysdeps/i386/i586/strlen.S: Likewise.
6400         * sysdeps/i386/i686/strcmp.S: Likewise.
6401         * sysdeps/i386/i686/strtok.S: Likewise.
6402         * sysdeps/i386/i686/strtok_r.S: Likewise.
6403
6404         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
6405         * sysdeps/i386/fpu/fesetenv.c: Likewise.
6406         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
6407         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
6408         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
6409
6410         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
6411         * sysdeps/i386/mul_1.S: Likewise.
6412         * sysdeps/i386/submul_1.S: Likewise.
6413         * sysdeps/i386/i586/add_n.S: Likewise.
6414         * sysdeps/i386/i586/addmul_1.S: Likewise.
6415         * sysdeps/i386/i586/lshift.S: Likewise.
6416         * sysdeps/i386/i586/mul_1.S: Likewise.
6417         * sysdeps/i386/i586/rshift.S: Likewise.
6418         * sysdeps/i386/i586/sub_n.S: Likewise.
6419         * sysdeps/i386/i586/submul_1.S: Likewise.
6420
6421 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
6422
6423         * rt/Makefile (librt-routines): Add clock_nanosleep.
6424         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
6425         * sysdeps/generic/clock_nanosleep.c: New file.
6426         * sysdeps/unix/clock_nanosleep.c: New file.
6427         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
6428         * time/time.h: Declare clock_nanosleep.
6429
6430 2000-06-26  Greg McGary  <greg@mcgary.org>
6431
6432         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
6433         INSN1, INSN2, TEXT, GLOBL): Remove macros.
6434         (ALIGN): Cleanup surrounding conditionals.
6435
6436         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
6437         Call ENTER/LEAVE macros.
6438         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
6439         * sysdeps/i386/submul_1.S: Likewise.
6440
6441         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
6442         syntax.  Define & use symbolic argument stack offsets.  Call
6443         ENTER/LEAVE macros.
6444         * sysdeps/i386/i586/mul_1.S: Likewise.
6445         * sysdeps/i386/i586/submul_1.S: Likewise.
6446
6447 2000-06-25  Greg McGary  <greg@mcgary.org>
6448
6449         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
6450         not as bcopy.
6451
6452 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
6453
6454         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
6455         * iconvdata/gen-8bit-gap.sh: Likewise.
6456         * iconvdata/gen-8bit.sh: Likewise.
6457
6458         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
6459
6460         * locale/programs/ld-collate.c (collate_read): Don't actually read
6461         the copy locale if we are ignoring the content.
6462
6463         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
6464         unknown character.
6465
6466         * locale/programs/ld-collate.c: Correct handling of different
6467         collation sections.
6468         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
6469         as extra parameter from which to copy category information.
6470         Change all callers.
6471         (load_locale): Likewise.
6472         * locale/programs/localedef.h: Update prototypes of add_to_readlist
6473         and load_locale.
6474         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
6475         * locale/programs/locfile.h: Likewise.
6476         * locale/programs/locfile-kw.gperf: Add entry for script.
6477         * locale/programs/locfile-token.h: Add tok_script.
6478
6479         * locale/programs/locale.c: Update copyright year.
6480         * locale/programs/localedef.c: Likewise.
6481
6482 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
6483
6484         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
6485         Jens Moeller <jens.moeller@waii.com>.
6486
6487 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
6488
6489         * locale/programs/ld-name.c (name_finish): Add missing format
6490         specifier to test for name_fmt.
6491
6492         * locale/programs/ld-address.c (iso639): Correct length of string
6493         elements.
6494         (iso3166): Likewise.
6495
6496         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
6497
6498         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
6499         Define.
6500
6501         * elf/elf.h (NT_PRFPXREG): Define.
6502
6503 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
6504
6505         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
6506         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
6507
6508 2000-06-23  Andreas Schwab  <schwab@suse.de>
6509
6510         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
6511         with signatures.
6512
6513 2000-06-23  Andreas Jaeger  <aj@suse.de>
6514
6515         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
6516
6517         * io/test-stat.c: Add copyright header, mention Maciej.
6518
6519         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
6520         SYS_mincore, SYS_madvise): Added.
6521
6522         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
6523         execve.
6524
6525 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6526
6527         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
6528         (CFLAGS-tst_putwc.c): New definition.
6529         * libio/tst_getwc.c: New file.
6530         * libio/tst_getwc.input: New file.
6531         * libio/tst_putwc.c: New file.
6532
6533         * include/string.h: Add prototype for __strdup.
6534
6535 2000-06-22  Greg McGary  <greg@mcgary.org>
6536
6537         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
6538         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
6539         Fix signatures.
6540
6541 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
6542
6543         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
6544
6545 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6546
6547         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
6548
6549 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
6550
6551         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
6552         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
6553
6554 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
6555
6556         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
6557         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
6558         and __S_TYPEISSHM.
6559         * sysdeps/mach/hurd/bits/stat.h: Likewise.
6560         * sysdeps/unix/bsd/bits/stat.h: Likewise.
6561         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
6562         * sysdeps/unix/sysv/bits/stat.h: Likewise.
6563         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
6564         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
6565         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
6566         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
6567         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
6568         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
6569         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
6570         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
6571         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
6572         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
6573         S_TYPEISSHM.
6574
6575 2000-06-22  Andreas Jaeger  <aj@suse.de>
6576
6577         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
6578         with signatures.
6579
6580         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
6581
6582         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
6583
6584 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6585
6586         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
6587         ahead.
6588
6589 2000-06-21  Greg McGary  <greg@mcgary.org>
6590
6591         * Makerules (elide-routines.*, elide-bp-thunks):
6592         Define unconditionally.
6593
6594 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6595
6596         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6597
6598 2000-06-21  Andreas Jaeger  <aj@suse.de>
6599
6600         * io/Makefile (tests): Add test-stat.
6601         (CFLAGS-test-stat.c): New.
6602
6603         * io/test-stat.c: New file from Maciej W. Rozycki
6604         <macro@ds2.pg.gda.pl>.
6605
6606 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
6607
6608         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
6609         in __rlimit_resource to make them match the kernel order.
6610         rlim_t is always 64 bit, use __rlim64_t to declare it
6611         unconditionally.
6612
6613 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
6614
6615         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
6616         RLIM_INFINITY before defining it to avoid clash with kernel header
6617
6618 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
6619
6620         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
6621
6622 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
6623
6624         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
6625
6626 2000-06-21  Andreas Jaeger  <aj@suse.de>
6627
6628         * stdio-common/temptest.c: Include <stdlib.h>.
6629         * stdio-common/tst-fileno.c: Likewise.
6630         * stdio-common/scanf4.c: Likewise.
6631         * stdio-common/scanf5.c: Likewise.
6632         * time/clocktest.c: Likewise.
6633         * posix/test-vfork.c: Likewise.
6634         * posix/globtest.c: Likewise.
6635         * io/test-utime.c: Likewise.
6636         * wctype/test_wcfuncs.c: Likewise.
6637         * crypt/cert.c: Likewise.
6638
6639         * stdio-common/tst-printfsz.c: Include <string.h>.
6640         * libio/tst_swscanf.c: Likewise.
6641         * libio/tst_wscanf.c: Likewise.
6642         * posix/runtests.c: Likewise.
6643         * posix/tst-getaddrinfo.c: Likewise.
6644         * posix/wordexp-test.c: Likewise.
6645         * misc/tst-efgcvt.c: Likewise.
6646
6647         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
6648         * nss/test-netdb.c: Likewise.
6649
6650         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
6651         supported kernel for MIPS.
6652
6653         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
6654         * rt/aio_suspend.c: Likewise.
6655
6656 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6657
6658         * math/libm-test.inc: Include <string.h>.
6659
6660 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6661
6662         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
6663
6664 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6665
6666         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
6667         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
6668
6669 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
6670
6671         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
6672
6673 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6674
6675         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
6676
6677 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6678
6679         * locale/programs/ld-collate.c (insert_value): Now take string and
6680         length instead of struct token* parameter.  Adjust use of token.
6681         (handle_ellipsis): Likewise.
6682         (collate_read): Allow <Uxxxx> names and transform them into names
6683         to be passed to insert_value and handle_ellipsis.
6684
6685         * locale/programs/ld-ctype.c (uninames): New array with names of
6686         digits in <Uxxxxxxxx> format.
6687         (ctype_finish): Correct search for space character value.  Likewise
6688         for default outdigits values.
6689
6690 2000-06-20  Greg McGary  <greg@mcgary.org>
6691
6692         * Makerules (objects): Add BP thunks.
6693
6694 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6695
6696         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6697         in width definitions.
6698
6699 2000-06-20  Andreas Jaeger  <aj@suse.de>
6700
6701         * sysdeps/mips/fpu/libm-test-ulps: New file.
6702
6703         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6704         first.
6705
6706         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6707
6708         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6709
6710 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6711
6712         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6713         change in gconv_builtin.h.
6714
6715         * malloc/Makefile: Change all references to memprof into memusage.
6716         * malloc/memprof.c: Rename to...
6717         * malloc/memusage.c: ...this.  New file.
6718         * malloc/memprof.sh: Rename to...
6719         * malloc/memusage.sh: ...this.  New file.
6720         * malloc/memprofstat.c: Rename to...
6721         * malloc/memusagestat.c: ...this.  New file.
6722         * sysdeps/alpha/memprof.h: Rename to..
6723         * sysdeps/alpha/memusage.h: ...this.  New file.
6724         * sysdeps/arm/memprof.h: Rename to..
6725         * sysdeps/arm/memusage.h: ...this.  New file.
6726         * sysdeps/generic/memprof.h: Rename to..
6727         * sysdeps/generic/memusage.h: ...this.  New file.
6728         * sysdeps/i386/memprof.h: Rename to..
6729         * sysdeps/i386/memusage.h: ...this.  New file.
6730         * sysdeps/ia64/memprof.h: Rename to..
6731         * sysdeps/ia64/memusage.h: ...this.  New file.
6732         * sysdeps/m68k/memprof.h: Rename to..
6733         * sysdeps/m68k/memusage.h: ...this.  New file.
6734         * sysdeps/mips/memprof.h: Rename to..
6735         * sysdeps/mips/memusage.h: ...this.  New file.
6736         * sysdeps/powerpc/memprof.h: Rename to..
6737         * sysdeps/powerpc/memusage.h: ...this.  New file.
6738         * sysdeps/sparc/memprof.h: Rename to..
6739         * sysdeps/sparc/memusage.h: ...this.  New file.
6740         * sysdeps/sh/memprof.h: Rename to..
6741         * sysdeps/sh/memusage.h: ...this.  New file.
6742
6743         * elf/sprof.c (print_version): Update year.
6744
6745         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6746         table entry values.  Use D_PTR.
6747         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6748         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6749
6750 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6751
6752         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6753         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6754         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6755         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6756
6757 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6758
6759         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6760
6761 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6762
6763         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6764         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6765         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6766
6767         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6768
6769         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6770         kernel change.
6771
6772         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6773         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6774         structure.
6775         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6776         implementation.
6777
6778 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6779
6780         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6781
6782 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6783
6784         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6785
6786 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6787
6788         * iconv/gconv_int.h (strict gconv_module): Remove all members
6789         associated with regular expressions.  Use a simple string as the
6790         from name.
6791         * iconv/gconv_db.c: Remove code handling regular expressions.
6792         * iconv/gconv_conf.c: Likewise.
6793         * iconv/iconv_prog.c: Likewise.
6794         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6795
6796         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6797         General namespace cleanup.
6798         (struct __gconv_trans_data): Add next field.
6799         (struct __gconv_step_data): Make __trans a pointer.
6800         * iconv/gconv_conf.c: Split out code to find gconv directories from
6801         __gconv_read_conf in new functions.
6802         * iconv/gconv_int.h: Define new data structure and declare new
6803         functions for handling of gconv directory list.
6804         * iconv/gconv_open.c: Allow more than one error handling step being
6805         used.  Call function to load error handling module if it is none
6806         of the builtin transformations.
6807         * iconv/gconv_close.c: Add code to free transliteration data.
6808         * iconv/gconv_trans.c: Add functions to load and unload modules
6809         implementing transliteration etc.
6810         * iconv/skeleton.c: Call all context functions now that more than
6811         one module is allowed.
6812         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6813         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6814         where the full error handling using transliteration is needed.
6815         * iconvdata/8bit-gap.c: Likewise.
6816         * iconvdata/8bit-generic.c: Likewise.
6817         * iconvdata/ansi_x3.110.c: Likewise.
6818         * iconvdata/big5.c: Likewise.
6819         * iconvdata/big5hkscs.c: Likewise.
6820         * iconvdata/euc-cn.c: Likewise.
6821         * iconvdata/euc-jp.c: Likewise.
6822         * iconvdata/euc-kr.c: Likewise.
6823         * iconvdata/euc-tw.c: Likewise.
6824         * iconvdata/gbgbk.c: Likewise.
6825         * iconvdata/gbk.c: Likewise.
6826         * iconvdata/iso-2022-cn.c: Likewise.
6827         * iconvdata/iso-2022-jp.c: Likewise.
6828         * iconvdata/iso-2022-kr.c: Likewise.
6829         * iconvdata/iso646.c: Likewise.
6830         * iconvdata/iso8859-1.c: Likewise.
6831         * iconvdata/iso_6937-2.c: Likewise.
6832         * iconvdata/iso_6937.c: Likewise.
6833         * iconvdata/johab.c: Likewise.
6834         * iconvdata/sjis.c: Likewise.
6835         * iconvdata/t.61.c: Likewise.
6836         * iconvdata/uhc.c: Likewise.
6837         * iconvdata/unicode.c: Likewise.
6838         * iconvdata/utf-16.c: Likewise.
6839         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6840         structure correctly after last change.
6841         * wcsmbs/btowc.c: Likewise.
6842         * wcsmbs/mbrtowc.c: Likewise.
6843         * wcsmbs/mbsnrtowcs.c: Likewise.
6844         * wcsmbs/mbsrtowcs.c: Likewise.
6845         * wcsmbs/wcrtomb.c: Likewise.
6846         * wcsmbs/wcsnrtombs.c: Likewise.
6847         * wcsmbs/wcsrtombs.c: Likewise.
6848         * wcsmbs/wctob.c: Likewise.
6849
6850         * localedata/Makefile: Set -Wno-format for some files since gcc does
6851         not know all the format specifiers.
6852
6853 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6854
6855         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6856         unneeded code.
6857         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6858
6859 2000-06-18  Andreas Jaeger  <aj@suse.de>
6860
6861         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6862         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6863
6864 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6865
6866         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6867         LINUX_LINK_MAX.
6868         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6869
6870         * locale/programs/ld-ctype.c (ctype_output): Really write out
6871         mboutdigits information.
6872         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6873         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6874         * localedata/tests/trans.def: Add outdigit information.
6875
6876         * localedata/tst-mbswcs3.c: Remove comment.
6877
6878         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6879         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6880         * libio/tst_wprintf.c (main): Add test for I flag.
6881
6882         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6883         * locale/langinfo.h: Add entries for translit_ignore information.
6884         * locale/categories.def: Add entries for new LC_CTYPE elements.
6885         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6886         pointer instead of "" where possible.
6887         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6888         * intl/Depend: Add localedata.
6889         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6890         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6891
6892 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6893
6894         * locale/langinfo.h: Add entries for default_missing information.
6895         * locale/C-ctype.c: Add initializers for new fields.
6896         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6897         information.
6898         * locale/categories.h: Add entries for all LC_CTYPE values.
6899         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6900         information.
6901
6902         * localedata/tst-trans.c: Write out an error message if class is
6903         not found.
6904
6905         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6906         * iconv/gconv_open.c: Remove error handling specification from `from'
6907         character set name.
6908         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6909         new parameter to always enable transliteration.
6910         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6911         change.
6912         (struct locale_data): Add new members use_translit and options.
6913         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6914         character set name contained modifier TRANSLIT.
6915         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6916         and options fields.
6917         (_nl_unload_locale): Free options string if necessary.
6918         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6919         the locale names suggested this.
6920         * locale/C-address.c: Add two new initialilzers to adjust data
6921         structure for new format.
6922         * locale/C-collate.c: Likewise.
6923         * locale/C-ctype.c: Likewise.
6924         * locale/C-identification.c: Likewise.
6925         * locale/C-measurement.c: Likewise.
6926         * locale/C-messages.c: Likewise.
6927         * locale/C-monetary.c: Likewise.
6928         * locale/C-name.c: Likewise.
6929         * locale/C-numeric.c: Likewise.
6930         * locale/C-paper.c: Likewise.
6931         * locale/C-telephone.c: Likewise.
6932         * locale/C-time.c: Likewise.
6933
6934         * locale/setlocale.c: Add some more __builtin_expect.
6935
6936 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6937
6938         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6939         unsigned char **.
6940         (__gconv_init_fct): Remove two parameters.
6941         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6942         gconv_transliterate.  Remove two parameters.
6943         Change prototypes of builtin functions according to __gconv_fct change.
6944         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6945         != NULL only during error handling.  Stop in this case after the
6946         conversion.
6947         * iconv/gconv_trans.c: Replace with real implementation for
6948         __gconv_transliterate.
6949         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6950         * iconv/gconv.c: Change calls to downstream functions once again.
6951         Use NULL for the fifth parameter instead of pointer to output buffer.
6952         * libio/iofwide.c: Likewise.
6953         * wcsmbs/btowc.c: Likewise.
6954         * wcsmbs/mbrtowc.c: Likewise.
6955         * wcsmbs/mbsnrtowcs.c: Likewise.
6956         * wcsmbs/mbsrtowcs.c: Likewise.
6957         * wcsmbs/wcrtomb.c: Likewise.
6958         * wcsmbs/wcsnrtombs.c: Likewise.
6959         * wcsmbs/wcsrtombs.c: Likewise.
6960         * wcsmbs/wctob.c: Likewise.
6961         * iconv/gconv_simple.c: Remove two parameters from error handling
6962         function call.
6963         * iconvdata/8bit-gap.c: Likewise.
6964         * iconvdata/8bit-generic.c: Likewise.
6965         * iconvdata/ansi_x3.110.c: Likewise.
6966         * iconvdata/big5.c: Likewise.
6967         * iconvdata/big5hkscs.c: Likewise.
6968         * iconvdata/euc-cn.c: Likewise.
6969         * iconvdata/euc-jp.c: Likewise.
6970         * iconvdata/euc-kr.c: Likewise.
6971         * iconvdata/euc-tw.c: Likewise.
6972         * iconvdata/gbgbk.c: Likewise.
6973         * iconvdata/gbk.c: Likewise.
6974         * iconvdata/iso-2022-cn.c: Likewise.
6975         * iconvdata/iso-2022-jp.c: Likewise.
6976         * iconvdata/iso-2022-kr.c: Likewise.
6977         * iconvdata/iso646.c: Likewise.
6978         * iconvdata/iso8859-1.c: Likewise.
6979         * iconvdata/iso_6937-2.c: Likewise.
6980         * iconvdata/iso_6937.c: Likewise.
6981         * iconvdata/johab.c: Likewise.
6982         * iconvdata/sjis.c: Likewise.
6983         * iconvdata/t.61.c: Likewise.
6984         * iconvdata/uhc.c: Likewise.
6985         * iconvdata/unicode.c: Likewise.
6986         * iconvdata/utf-16.c: Likewise.
6987
6988 2000-06-15  Greg McGary  <greg@mcgary.org>
6989
6990         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6991         of callnum assignment.  Tolerate callnum expressions containing
6992         parens.
6993
6994 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6995
6996         * login/Makefile (utmpd): Remove rule to build utmpd.
6997
6998         * csu/Versions: Move libgcc frame handling functions from here...
6999         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
7000         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
7001         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
7002         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
7003         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
7004         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
7005         New file.
7006         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
7007
7008         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
7009
7010         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
7011
7012 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7013
7014         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
7015         compatibility.
7016         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
7017         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
7018         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
7019         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
7020
7021 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
7022
7023         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
7024         defined, terminate quotes and read them after the comment char.
7025         * configure.in (HAVE_SECTION_QUOTES): Test whether
7026         __attribute__((section ("x"))) puts quotes around x or not.
7027         * config.h.in (HAVE_SECTION_QUOTES): Add.
7028         * configure: Rebuilt.
7029
7030 2000-06-14  Andreas Jaeger  <aj@suse.de>
7031
7032         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
7033         depending on the configure option --sysconfdir.
7034         Closes PR libc/1762.
7035         Patch by Andreas Schwab <schwab@suse.de>.
7036
7037         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
7038         entry point.
7039         Reported by Jim Pick <jim@jimpick.com>.
7040
7041 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
7042
7043         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
7044         crashing the application.  Emit some simple error message.
7045         Reported by mju@panasas.com [PR libc/1769].
7046
7047 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7048
7049         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
7050
7051         * crypt/Makefile (distribute): Add md5.h.
7052
7053         * Makefile (distribute): Add include/shlib-compat.h.
7054
7055         * Make-dist: Search for tests also in sysdeps hierachy.
7056
7057         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
7058         ufc.c, speeds.c, README.ufc-crypt, and Banner.
7059
7060         * sysdeps/sparc/Subdirs: New file.
7061
7062         * locale/Makefile (distribute): Add weightwc.h and
7063         programs/localedef.h.
7064
7065         * time/Makefile (distribute): Add datemsk.
7066
7067         * sysdeps/ia64/Dist: Add softpipe.h.
7068
7069         * sysdeps/unix/sysv/aix/Dist: New file.
7070
7071         * posix/setpgrp.c: Moved to...
7072         * sysdeps/generic/setpgrp.c: ...here.  New file.
7073         * io/mknod.c: Moved to...
7074         * sysdeps/generic/mknod.c: ...here.  New file.
7075
7076         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
7077
7078         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
7079
7080         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
7081
7082         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
7083         gprsave0.S, gprrest1.S, and gprrest0.S.
7084
7085         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
7086
7087         * posix/Makefile (routines): Add spawnattr_getsigmask,
7088         spawnattr_getschedpolicy, spawnattr_getschedparam,
7089         spawnattr_setsigmask, spawnattr_setschedpolicy, and
7090         spawnattr_setschedparam.
7091         * posix/Versions: Add posix_spawnattr_getschedpolicy,
7092         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
7093         posix_spawnattr_setschedparam.
7094
7095         * posix/spawnattr_setschedparam.c: Fix typo.
7096
7097         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
7098         Correct typo.
7099
7100         * login/programs/utmpd.c: Removed.
7101         * login/programs/utmpd.h: Removed.
7102         * login/programs/utmpd-private.h: Removed.
7103
7104         * Makefile (distribute): Add include/db_185.h and include/db.h.
7105
7106         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
7107         iso-ir-165.h.
7108
7109         * elf/Makefile (distribute): Add missing files.
7110
7111         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
7112         * elf/eval.c: Moved to...
7113         * dlfcn/eval.c: ...here.  New file.
7114
7115         * Makefile (distribute): Also distribute ChangeLog.1?.
7116
7117         * Make-dist (+tsrcs): Remove .args handling here as well.
7118
7119         * rt/Makefile (tests): Add tst-timer.
7120         * sysdeps/generic/tst-timer.c: New file.
7121
7122         * Makerules (sources): Don't add BP sources here.
7123
7124         * login/Makefile (distribute): Remove xtmp.h.
7125
7126         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
7127         is true.  Reported by Bruno Haible <haible@ilog.fr>.
7128
7129 2000-06-13  Andreas Jaeger  <aj@suse.de>
7130
7131         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
7132         Patch by Ralf Baechle <ralf@gnu.org>.
7133
7134 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
7135
7136         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
7137         for mincore syscall.
7138
7139         * misc/sys/cdefs.h: Define __bounded and __unbounded if
7140         __BOUNDED_POINTERS__ is not defined.
7141
7142 2000-06-07  Greg McGary  <greg@mcgary.org>
7143
7144         * sysdeps/generic/bp-sym.h: New file.
7145         * sysdeps/generic/bp-start.h: New file.
7146         * sysdeps/i386/elf/start.S: Designate BP symbols.
7147         * sysdeps/generic/libc-start.c: Wrap bounds around
7148         argv & envp and each of their string members.
7149
7150 2000-06-07  Greg McGary  <greg@mcgary.org>
7151
7152         * sysdeps/unix/make-syscalls.sh: Add comments to
7153         output that aid debugging & comprehension.
7154         Map simple syscall signatures to number of args.
7155         Generate BP syscall thunk definitions.
7156         * sysdeps/generic/bp-thunks.h: New file.
7157         * sysdeps/unix/syscalls.list: Replace arg-count with
7158         simple return+arg signature.
7159         * sysdeps/unix/common/syscalls.list: Likewise.
7160         * sysdeps/unix/inet/syscalls.list: Likewise.
7161         * sysdeps/unix/mman/syscalls.list: Likewise.
7162         * sysdeps/unix/sysv/syscalls.list: Likewise.
7163         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
7164         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
7165
7166 2000-06-07  Greg McGary  <greg@mcgary.org>
7167
7168         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
7169         for all files *.[cS].
7170         (CFLAGS-.ob): Don't optimize sibling calls.
7171         (bppfx): New variable.
7172         * Makerules (elide-bp-thunks): New variable.
7173         (elide-routines.*): Elide BP-* files for all but *.ob.
7174         (sources): Include bp-thunks.
7175
7176 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7177
7178         * iconv/gconv_simple.c: Remove unnecessary prototype.
7179
7180         * iconv/gconv_trans.c: Pretty print.
7181
7182         * elf/elf.h (R_SH_NUM): Got accidently dropped.
7183
7184         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
7185         minimal kernel versions.  Add information about IA-64 kernel.
7186
7187         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
7188         specific minimal supported kernel versions to be specified.
7189
7190         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
7191         step data structure.
7192         * wcsmbs/btowc.c: Likewise.
7193         * wcsmbs/mbrtowc.c: Likewise.
7194         * wcsmbs/mbsnrtowcs.c: Likewise.
7195         * wcsmbs/mbsrtowcs.c: Likewise.
7196         * wcsmbs/wcrtomb.c: Likewise.
7197         * wcsmbs/wcsnrtombs.c: Likewise.
7198         * wcsmbs/wcsrtombs.c: Likewise.
7199         * wcsmbs/wctob.c: Likewise.
7200
7201         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
7202         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
7203
7204         * shlib-versions: Earliest backward compatible version for SH is 2.2.
7205
7206         * misc/sys/cdefs.h: Remove one more __P.
7207
7208         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
7209         Reported by HJ Lu.
7210
7211         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
7212         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
7213         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
7214
7215 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7216             Yutaka Niibe  <gniibe@chroot.org>
7217
7218         * configure.in: Add machine sh3, sh4.
7219         * elf/elf.h: Add SH specific declarations of relocations.
7220         * shlib-versions: Add sh*-*-linux* cases.
7221
7222 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7223
7224         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
7225         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
7226         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
7227         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
7228         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
7229         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
7230
7231         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
7232         instead of KERNEL_MATH_EMULATION.
7233         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
7234         KERNEL_MATH_EMULATION.
7235
7236         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
7237         * sysdeps/sh/sh3/dl-machine.h: Moved to...
7238         * sysdeps/sh/dl-machine.h: ...here.  New file.
7239         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
7240         and include generic SH version.
7241         * sysdeps/sh/sh3/bits/endian.h: Move to...
7242         * sysdeps/sh/bits/endian.h: ...here.  New file.
7243         * sysdeps/sh/sh4/bits/endian.h: Removed.
7244         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
7245         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
7246         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
7247
7248         * include/libc-symbols.h (link_warning): Work around a change in
7249         GAS which warns about changing section attributes.
7250         Proposed by Nick Clifton <nickc@redhat.com>.
7251
7252 2000-06-12  H.J. Lu  <hjl@gnu.org>
7253
7254         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
7255
7256 2000-06-11  H.J. Lu  <hjl@gnu.org>
7257
7258         * sysdeps/i386/fpu/Versions: New file.
7259
7260 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7261
7262         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
7263         parameters.
7264         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
7265         exists.
7266
7267 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
7268
7269         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
7270         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
7271         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
7272
7273         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
7274         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
7275         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
7276
7277 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
7278             Yutaka Niibe  <gniibe@chroot.org>
7279
7280         * sysdeps/sh/Dist: New file.
7281         * sysdeps/sh/Implies: New file.
7282         * sysdeps/sh/elf/initfini.c: New file.
7283         * sysdeps/sh/gmp-mparam.h: New file.
7284         * sysdeps/sh/init-first.c: New file.
7285         * sysdeps/sh/machine-gmon.h: New file.
7286         * sysdeps/sh/memcpy.S: New file.
7287         * sysdeps/sh/memprof.h: New file.
7288         * sysdeps/sh/memset.S: New file.
7289         * sysdeps/sh/sh3/__longjmp.S: New file.
7290         * sysdeps/sh/sh3/bits/endian.h: New file.
7291         * sysdeps/sh/sh3/bits/huge_val.h: New file.
7292         * sysdeps/sh/sh3/bits/setjmp.h: New file.
7293         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
7294         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
7295         * sysdeps/sh/sh3/dl-machine.h: New file.
7296         * sysdeps/sh/sh3/setjmp.S: New file.
7297         * sysdeps/sh/sh4/__longjmp.S: New file.
7298         * sysdeps/sh/sh4/bits/endian.h: New file.
7299         * sysdeps/sh/sh4/bits/huge_val.h: New file.
7300         * sysdeps/sh/sh4/bits/setjmp.h: New file.
7301         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
7302         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
7303         * sysdeps/sh/sh4/dl-machine.h: New file.
7304         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
7305         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
7306         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
7307         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
7308         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
7309         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
7310         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
7311         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
7312         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
7313         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
7314         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
7315         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
7316         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
7317         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
7318         * sysdeps/sh/sh4/setjmp.S: New file.
7319         * sysdeps/sh/elf/start.S: New file.
7320         * sysdeps/sh/sys/ucontext.h: New file.
7321         * sysdeps/sh/strlen.S: New file.
7322         * sysdeps/sh/sysdep.h: New file.
7323         * sysdeps/unix/sh/sysdep.S: New file.
7324         * sysdeps/unix/sh/sysdep.h: New file.
7325         * sysdeps/unix/sysv/linux/sh/Dist: New file.
7326         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
7327         * sysdeps/unix/sysv/linux/sh/Versions: New file.
7328         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
7329         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
7330         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
7331         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
7332         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
7333         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
7334         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
7335         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
7336         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
7337         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
7338         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
7339         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
7340         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
7341         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
7342         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
7343         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
7344         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
7345         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
7346         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
7347         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
7348         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
7349         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
7350         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
7351         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
7352         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
7353         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
7354         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
7355         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
7356         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
7357         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
7358         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
7359         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
7360         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
7361         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
7362         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
7363         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
7364         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
7365         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
7366         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
7367         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
7368         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7369         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
7370         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
7371         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
7372         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
7373         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
7374         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
7375
7376 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
7377
7378         * Rules (%.out): Define GCONV_PATH in the environment.
7379         * assert/Depend: New file.
7380         * iconvdata/Depend: New file.
7381         * intl/Depend: New file.
7382         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
7383         * intl/tst-gettext.sh: Likewise.
7384         * iconv/Makefile (routines): Add gconv_trans.
7385         * iconv/gconv_trans.c: New file.
7386         * iconv/gconv.h (struct __gconv_trans_data): New type.
7387         (__gconv_fct): New parameter with starting position in output buffer.
7388         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
7389         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
7390         (struct __gconv_step): Add new member __trans.
7391         * iconv/gconv_int.h: Pretty print prototypes.
7392         (gconv_transliterate): New prototype.
7393         (__BUILTIN_TRANS): Update for new conversion function interface.
7394         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
7395         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
7396         in names, find appropriate function, and install in the conversion
7397         steps it can be used.
7398         * iconv/skeleton.c: Add additional parameter for beginning of output
7399         buffer.  Change calls of downstream functions.
7400         * iconv/loop.c: Change loop function interface completely.  Pass in
7401         step and step_data structure.  Remove optimization for BODY with
7402         NEED_LENGTH_TEST == 0.
7403         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
7404         appropriate error handling code to use transliteration steps.  Remove
7405         optimization for BODY with NEED_LENGTH_TEST == 0.
7406         * iconvdata/8bit-gap.c: Likewise.
7407         * iconvdata/8bit-generic.c: Likewise.
7408         * iconvdata/ansi_x3.110.c: Likewise.
7409         * iconvdata/big5.c: Likewise.
7410         * iconvdata/big5hkscs.c: Likewise.
7411         * iconvdata/euc-cn.c: Likewise.
7412         * iconvdata/euc-jp.c: Likewise.
7413         * iconvdata/euc-kr.c: Likewise.
7414         * iconvdata/euc-tw.c: Likewise.
7415         * iconvdata/gbgbk.c: Likewise.
7416         * iconvdata/gbk.c: Likewise.
7417         * iconvdata/iso-2022-cn.c: Likewise.
7418         * iconvdata/iso-2022-jp.c: Likewise.
7419         * iconvdata/iso-2022-kr.c: Likewise.
7420         * iconvdata/iso646.c: Likewise.
7421         * iconvdata/iso8859-1.c: Likewise.
7422         * iconvdata/iso_6937-2.c: Likewise.
7423         * iconvdata/iso_6937.c: Likewise.
7424         * iconvdata/johab.c: Likewise.
7425         * iconvdata/sjis.c: Likewise.
7426         * iconvdata/t.61.c: Likewise.
7427         * iconvdata/uhc.c: Likewise.
7428         * iconvdata/unicode.c: Likewise.
7429         * iconvdata/utf-16.c: Likewise.
7430         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
7431         DL_CALL_FCT.
7432         * wcsmbs/btowc.c: Likewise.
7433         * wcsmbs/mbrtowc.c: Likewise.
7434         * wcsmbs/mbsnrtowcs.c: Likewise.
7435         * wcsmbs/mbsrtowcs.c: Likewise.
7436         * wcsmbs/wcrtomb.c: Likewise.
7437         * wcsmbs/wcsnrtombs.c: Likewise.
7438         * wcsmbs/wcsrtombs.c: Likewise.
7439         * wcsmbs/wctob.c: Likewise.
7440
7441 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7442
7443         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
7444         other header files.  Mention about 128-byte cache line sizes.
7445         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
7446         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
7447         for current calling sequence.
7448         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
7449
7450         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
7451         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7452
7453         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
7454         and setrlimit syscalls for backwards compatibility.
7455
7456 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7457
7458         * iconv/skeleton.c:  Rename converted written to correcter name
7459         irreversible.
7460         * iconv/gconv.c: Rename converted variable to correcter name
7461         irreversible.
7462         * iconv/gconv_int.h: Likewise.
7463         * iconv/gconv_simple.c: Likewise.
7464         * iconv/iconv.c: Likewise.
7465         * iconv/loop.c: Likewise.
7466         * iconvdata/8bit-gap.c: Likewise.
7467         * iconvdata/8bit-generic.c: Likewise.
7468         * iconvdata/ansi_x3.110.c: Likewise.
7469         * iconvdata/big5.c: Likewise.
7470         * iconvdata/big5hkscs.c: Likewise.
7471         * iconvdata/euc-cn.c: Likewise.
7472         * iconvdata/euc-jp.c: Likewise.
7473         * iconvdata/euc-kr.c: Likewise.
7474         * iconvdata/gbgbk.c: Likewise.
7475         * iconvdata/gbk.c: Likewise.
7476         * iconvdata/iso-2022-cn.c: Likewise.
7477         * iconvdata/iso-2022-jp.c: Likewise.
7478         * iconvdata/iso-2022-kr.c: Likewise.
7479         * iconvdata/iso646.c: Likewise.
7480         * iconvdata/iso8859-1.c: Likewise.
7481         * iconvdata/iso_6937-2.c: Likewise.
7482         * iconvdata/iso_6937.c: Likewise.
7483         * iconvdata/johab.c: Likewise.
7484         * iconvdata/sjis.c: Likewise.
7485         * iconvdata/t.61.c: Likewise.
7486         * iconvdata/uhc.c: Likewise.
7487         * iconvdata/unicode.c: Likewise.
7488         * iconvdata/utf-16.c: Likewise.
7489
7490         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
7491         __cmsg_data field with __extension__.
7492
7493 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
7494
7495         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
7496
7497 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
7498
7499         * iconv/gconv_simple.c: Fix various small bugs in several
7500         functions.
7501
7502         * iconv/loop.c: Fix comment.
7503
7504 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
7505
7506         * elf/link.h: Remove libc internal declarations.
7507         * include/link.h: Move them here.
7508
7509 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7510
7511         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
7512         Patch by Dan Pop <Dan.Pop@cern.ch>.
7513
7514         Rewrite error message handling.
7515         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
7516         _dl_catch_error.
7517         * elf/dl-error (struct catch): Add objname member.
7518         (_dl_signal_error): Take new parameter with object name.  When
7519         passing message on simply store object name and duplicate error
7520         message.
7521         (_dl_catch_error): Take new parameter.  Store object name in the
7522         place pointed to.
7523         * include/dlfcn.h: Adjust _dl_catch_error prototype.
7524         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
7525         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
7526         (dlerror): Add objname to asprintf() parameters.
7527         (_dl_error_run): Pass new parameter to _dl_catch_error.
7528         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
7529         * elf/dl-open.c (_dl_open): Likewise.
7530         * elf/rtld.c (dl_main): Likewise.
7531         * elf/dl-close.c: Mark error messages with N_().
7532         * elf/dl-deps.c: Likewise.
7533         * elf/dl-error.c: Likewise.
7534         * elf/dl-load.c: Likewise.
7535         * elf/dl-open.c: Likewise.
7536         * elf/dl-reloc.c: Likewise.
7537         * elf/dl-support.c: Likewise.
7538         * elf/dl-sym.c: Likewise.
7539         * elf/dl-version.c: Likewise.
7540         * elf/dl-lookup.c: Add comments about problems with error message
7541         translations.
7542         * elf/dl-reloc.c: Likewise.
7543         * elf/dl-version.c: Likewise.
7544
7545 2000-06-09  H.J. Lu  <hjl@gnu.org>
7546
7547         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
7548         after freeing it.
7549
7550         * dlfcn/Makefile (distribute): Add failtestmod.c.
7551         (tests): Add failtest.
7552         Add rules to build and run failtest.
7553         * dlfcn/failtest.c: New file.
7554         * dlfcn/failtestmod.c: New file.
7555
7556 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
7557
7558         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
7559         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
7560         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
7561         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
7562         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
7563
7564 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7565
7566         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
7567         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
7568
7569 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7570             Ulrich Drepper  <drepper@redhat.com>
7571
7572         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
7573         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
7574         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
7575         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
7576         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
7577         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
7578
7579 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
7580
7581         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
7582         to find correct mount point despite wrong information from the
7583         kernel.
7584
7585 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
7586
7587         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
7588         the address of a symbol so function pointers are handled properly.
7589
7590 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7591
7592         * sysdeps/i386/Dist: Add bp-asm.h.
7593
7594         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
7595         defaultdir variable instead of "/var/shm" everywhere.
7596         (defaultdir): Change to /dev/shm/.
7597
7598 2000-06-08  Greg McGary  <greg@mcgary.org>
7599
7600         * sysdeps/i386/bp-asm.h: New file.
7601         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
7602         offsets.  Add ENTER/LEAVE macros for optionally maintaining
7603         frame-pointer chain when debugging.
7604         * sysdeps/i386/add_n.S: Likewise.
7605         * sysdeps/i386/addmul_1.S: Likewise.
7606         * sysdeps/i386/lshift.S: Likewise.
7607         * sysdeps/i386/memchr.S: Likewise.
7608         * sysdeps/i386/memcmp.S: Likewise.
7609         * sysdeps/i386/mul_1.S: Likewise.
7610         * sysdeps/i386/rawmemchr.S: Likewise.
7611         * sysdeps/i386/rshift.S: Likewise.
7612         * sysdeps/i386/stpcpy.S: Likewise.
7613         * sysdeps/i386/stpncpy.S: Likewise.
7614         * sysdeps/i386/strchr.S: Likewise.
7615         * sysdeps/i386/strchrnul.S: Likewise.
7616         * sysdeps/i386/strcspn.S: Likewise.
7617         * sysdeps/i386/strpbrk.S: Likewise.
7618         * sysdeps/i386/strrchr.S: Likewise.
7619         * sysdeps/i386/strspn.S: Likewise.
7620         * sysdeps/i386/strtok.S: Likewise.
7621         * sysdeps/i386/sub_n.S: Likewise.
7622         * sysdeps/i386/submul_1.S: Likewise.
7623         * sysdeps/i386/elf/setjmp.S: Likewise.
7624         * sysdeps/i386/i486/strcat.S: Likewise.
7625         * sysdeps/i386/i486/strlen.S: Likewise.
7626         * sysdeps/i386/i586/add_n.S: Likewise.
7627         * sysdeps/i386/i586/lshift.S: Likewise.
7628         * sysdeps/i386/i586/memcpy.S: Likewise.
7629         * sysdeps/i386/i586/memset.S: Likewise.
7630         * sysdeps/i386/i586/rshift.S: Likewise.
7631         * sysdeps/i386/i586/strchr.S: Likewise.
7632         * sysdeps/i386/i586/strcpy.S: Likewise.
7633         * sysdeps/i386/i586/strlen.S: Likewise.
7634         * sysdeps/i386/i586/sub_n.S: Likewise.
7635         * sysdeps/i386/i686/add_n.S: Likewise.
7636         * sysdeps/i386/i686/memcpy.S: Likewise.
7637         * sysdeps/i386/i686/mempcpy.S: Likewise.
7638         * sysdeps/i386/i686/memset.S: Likewise.
7639         * sysdeps/i386/i686/strcmp.S: Likewise.
7640
7641 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
7642
7643         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
7644
7645         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
7646         256 and don't use OPEN_MAX.
7647
7648         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
7649         use it instead of LINK_MAX.
7650         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
7651
7652 2000-06-08  Andreas Jaeger  <aj@suse.de>
7653
7654         * libio/genops.c (_IO_list_lock): Only compile body if we're
7655         thread safe.
7656         (_IO_list_unlock): Likewise.
7657         (_IO_list_resetlock): Likewise.
7658
7659 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7660
7661         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
7662         unless user defined it.
7663
7664         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
7665         if not defined by the user.
7666
7667         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
7668         * libio/iofwrite.c (_IO_fwrite): Likewise.
7669
7670         * time/time.h: Add missing __THROW for clock_getcpuclockid
7671         prototype.
7672
7673         * elf/Makefile (distribute): Add dl-dtprocnum.h.
7674         * include/elf.h: Include also <dl-dtprocnum.h>.
7675         * elf/dl-deps.c: Likewise.
7676         * elf/dl-lookup.c: Likewise.
7677         * elf/dl-runtime.c: Likewise.
7678         * elf/dl-version.c: Likewise.
7679         * elf/do-rel.h: Likewise.
7680         * elf/dynamic-link.h: Likewise.
7681         * elf/link.h: Likewise.
7682         * elf/rtld.c: Likewise.
7683         * sysdeps/generic/dl-dtprocnum.h: New file.
7684         * sysdeps/ia64/dl-dtprocnum.h: New file.
7685         * sysdeps/mips/dl-dtprocnum.h: New file.
7686         * sysdeps/sparc/dl-dtprocnum.h: New file.
7687
7688         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
7689
7690         * elf/do-lookup.h: Add some __builtin_expect.
7691
7692         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7693
7694         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7695         (_dl_dynamic_weak): New variable.
7696         * elf/dl-support.c: Likewise.
7697         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7698         * elf/do-lookup.h: If we find a weak definition treat it like a
7699         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7700         case treat it like before.
7701
7702         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7703         is in main program.
7704         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7705
7706         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7707         using l_map_start and l_map_end.
7708
7709         * elf/dl-version.c: Add __builtin_expect in many places.
7710
7711         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7712         Update.
7713
7714 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7715
7716         Lock for stdio stream list becomes global, for use in LinuxThreads.
7717
7718         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7719         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7720         _IO_list_resetlock): New interface for iterating global list of
7721         streams without accessing the _IO_list_all global variable,
7722         and for manipulating the lock which protects this list.
7723         * libio/libioP.h: Likewise.
7724         * libio/Version: Add entries for the new functions.
7725
7726         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7727         pointer to _IO_FILE.
7728
7729 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7730
7731         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7732         BIT() must actually be BITw().
7733
7734         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7735
7736         * locale/programs/charmap.c: Allow string arguments for
7737         code_set_name and repertoiremap.
7738
7739 2000-06-07  Andreas Jaeger  <aj@suse.de>
7740
7741         * elf/Makefile: Build ldconfig only when building shared libraries.
7742
7743 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7744
7745         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7746         __USE_ISOC99.
7747         (fdimf, __fdim, fdim): Likewise.
7748
7749 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7750
7751         * locale/findlocale.c: Add __builtin_expect in many places.
7752         * locale/loadlocale.c: Likewise.
7753
7754 2000-06-06  Greg McGary  <greg@mcgary.org>
7755
7756         * sysdeps/mips/elf/start.S: Trim redundant code.
7757
7758         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7759         Use C comments throughout.  Line up operands column with tabs.
7760         * sysdeps/powerpc/strchr.S: Likewise.
7761         * sysdeps/powerpc/strcmp.S: Likewise.
7762         * sysdeps/powerpc/strcpy.S: Likewise.
7763         * sysdeps/powerpc/strlen.S: Likewise.
7764
7765         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7766         Get low part of &__curbrk with @l.
7767
7768 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7769
7770         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7771         * iconvdata/unicode.c: Likewise.
7772         * iconvdata/uhc.c: Likewise.
7773         * iconvdata/t.61.c: Likewise.
7774         * iconvdata/sjis.c: Likewise.
7775         * iconvdata/johab.c: Likewise.
7776         * iconvdata/iso_6937.c: Likewise.
7777         * iconvdata/iso_6937-2.c: Likewise.
7778         * iconvdata/iso8859-1.c: Likewise.
7779         * iconvdata/iso646.c: Likewise.
7780         * iconvdata/iso-2022-kr.c: Likewise.
7781         * iconvdata/iso-2022-jp.c: Likewise.
7782         * iconvdata/iso-2022-cn.c: Likewise.
7783         * iconvdata/gbgbk.c: Likewise.
7784         * iconvdata/gbk.c: Likewise.
7785         * iconvdata/euc-kr.c: Likewise.
7786         * iconvdata/euc-jp.c: Likewise.
7787         * iconvdata/euc-cn.c: Likewise.
7788
7789 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7790
7791         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7792         * iconvdata/big5.c: Likewise.
7793         * iconvdata/ansi_x3.110.c: Likewise.
7794         * iconvdata/8bit-generic.c: Likewise.
7795         * iconvdata/8bit-gap.c: Likewise.
7796         * iconv/loop.c: Likewise.
7797         * iconv/gconv_db.c: Likewise.
7798         * iconv/gconv_dl.c: Likewise.
7799         * iconv/gconv_simple.c: Likewise.
7800         * iconv/skeleton.c: Likewise.
7801
7802         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7803         (struct __gconv_step_data): Rename __is_last to __flags.
7804         * iconv/gconv_close.c: Change all uses of __is_last.
7805         * iconv/skeleton.c: Likewise.
7806         * iconvdata/iso-2022-cn.c: Likewise.
7807         * iconvdata/iso-2022-jp.c: Likewise.
7808         * iconvdata/iso-2022-kr.c: Likewise.
7809         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7810         Recognize IGNORE error handling, set flag, and remove from name.
7811         * iconv/loop.c (ignore_errors_p): Define.
7812         Add flags parameter to both functions.
7813         * iconv/skeleton.c: Pass flags to all conversion functions.
7814         * iconv/gconv_simple.c: Add flags parameter to all functions.
7815         Don't return error for invald error if ignore flag is set.
7816         (ucs4_internal_loop_single): Add missing pointer increment.
7817         (internal_ucs4le_loop_single): Likewise.
7818         * iconv/iconv_prog.c: Implement handling of -c parameter.
7819         * iconvdata/8bit-gap.c: Don't return error for invald error if
7820         ignore flag is set.
7821         * iconvdata/8bit-generic.c: Likewise.
7822         * iconvdata/ansi_x3.110.c: Likewise.
7823         * iconvdata/big5.c: Likewise.
7824         * iconvdata/big5hkscs.c: Likewise.
7825         * iconvdata/euc-cn.c: Likewise.
7826         * iconvdata/euc-jp.c: Likewise.
7827         * iconvdata/euc-kr.c: Likewise.
7828         * iconvdata/gbgbk.c: Likewise.
7829         * iconvdata/gbk.c: Likewise.
7830         * iconvdata/iso-2022-cn.c: Likewise.
7831         * iconvdata/iso-2022-jp.c: Likewise.
7832         * iconvdata/iso-2022-kr.c: Likewise.
7833         * iconvdata/iso646.c: Likewise.
7834         * iconvdata/iso8859-1.c: Likewise.
7835         * iconvdata/iso_6937-2.c: Likewise.
7836         * iconvdata/iso_6937.c: Likewise.
7837         * iconvdata/johab.c: Likewise.
7838         * iconvdata/sjis.c: Likewise.
7839         * iconvdata/t.61.c: Likewise.
7840         * iconvdata/uhc.c: Likewise.
7841         * iconvdata/unicode.c: Likewise.
7842         * iconvdata/utf-16.c: Likewise.
7843         * libio/fileops.c: Likewise.
7844         * libio/iofwide.c: Likewise.
7845         * wcsmbs/btowc.c: Likewise.
7846         * wcsmbs/mbrtowc.c: Likewise.
7847         * wcsmbs/mbsnrtowcs.c: Likewise.
7848         * wcsmbs/mbsrtowcs.c: Likewise.
7849         * wcsmbs/wcrtomb.c: Likewise.
7850         * wcsmbs/wcsnrtombs.c: Likewise.
7851         * wcsmbs/wcsrtombs.c: Likewise.
7852         * wcsmbs/wctob.c: Likewise.
7853
7854         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7855         an error.
7856
7857 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7858
7859         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7860         counter for the object we are releasing, just decrement it.
7861         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7862
7863 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7864
7865         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7866         if -ffast-math.
7867
7868 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7869
7870         * iconvdata/big5hkscs.c: New file.
7871         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7872
7873         * iconvdata/gconv-modules: Add entry for new module.
7874         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7875         (distribute): Add big5hkscs.c.
7876
7877 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7878
7879         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7880         inlines to match prototypes in mathcalls.h.
7881         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7882         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7883         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7884         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7885
7886 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7887
7888         * elf/elf.h (SHT_SUNW_move): Define.
7889
7890         * elf/elf.h: Add more Solaris compatiblity definitions.
7891
7892 2000-06-03  Andreas Jaeger  <aj@suse.de>
7893
7894         * sysdeps/powerpc/dl-start.S: Close open comment.
7895
7896 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7897
7898         * inet/Versions: Fix typo in rresvport_af export.
7899
7900 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7901
7902         * math/tgmath.h: Pretty print.
7903
7904 2000-06-02  Andreas Jaeger  <aj@suse.de>
7905
7906         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7907         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7908
7909 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7910
7911         * elf/rtld.c (process_envvars): Test for = after variable name.
7912
7913 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7914
7915         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7916         have extra call to __gmon_start__, use the pointer we already have.
7917
7918         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7919         shifting.
7920
7921         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7922         binutils.  gas now emits a jump through the PLT instead of a
7923         relative jump if the jump target is an exported symbol.
7924
7925 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7926
7927         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7928
7929 2000-05-31  Andreas Jaeger  <aj@suse.de>
7930
7931         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7932         gregset_t.
7933
7934         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7935         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7936
7937         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7938         syscall.
7939         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7940
7941 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7942
7943         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7944
7945         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7946         * locale/localeconv.c: Make function versioned (with same definition).
7947
7948         * elf/Makefile (modules-names): Strip before using it.
7949
7950 2000-05-30  Andreas Jaeger  <aj@suse.de>
7951
7952         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7953         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7954         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7955         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7956         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7957         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7958
7959 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7960
7961         * Makefile: Add GNU make magic.
7962
7963         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7964         Removed.
7965         * inet/rcmd.c: Remove __P.  Remove unused variables.
7966         (iruserfopen): Make first parameter const.
7967         (ruserok_sa): Return result of ruserok2_sa.
7968         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7969         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7970         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7971         (ruserpass): Check results of memory allocation.
7972         * include/netdb.h: Add prototype for ruserpass.
7973
7974 2000-05-29  Andreas Jaeger  <aj@suse.de>
7975
7976         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7977         for all platforms.
7978
7979 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7980
7981         * inet/rcmd.c (rresvport_af): Use correct port number.
7982
7983 2000-05-26  Andreas Schwab  <schwab@suse.de>
7984
7985         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7986         entries in all-sonames.
7987         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7988         preserving the old name if different for compatibility.
7989
7990 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * posix/Makefile (tests): Add tst-spawn.
7993         (tst-spawn-ARGS): New variable.
7994         * posix/tst-spawn.c: New file.
7995
7996         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7997         * posix/spawn_faction_adddup2.c: Likewise.
7998         * posix/spawn_faction_addopen.c: Likewise.
7999         * posix/spawni.c: Correctly test for success of dup2 calls.
8000
8001         * posix/tst-preadwrite.c: Check success of malloc call.
8002
8003 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8004
8005         * posix/Makefile (tests): Add tst-exec.
8006         (tst-exec-ARGS): New variable.
8007         * posix/tst-exec.c: New file.
8008
8009         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
8010
8011 2000-05-04  Andreas Jaeger  <aj@suse.de>
8012
8013         * string/string.h: Remove __strdup prototype, it's not needed in
8014         this file anymore.
8015
8016 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8017
8018         * posix/Makefile (tests): Add tst-fork.
8019         * posix/tst-fork.c: New file.
8020
8021         * resolv/inet_pton.c: Loose __P.
8022
8023 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8024
8025         * libio/libioP.h (_IO_CHECK_WIDE): Define.
8026         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
8027         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
8028         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
8029         _IO_CHECK_WIDE fails.
8030
8031 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
8032
8033         * po/da.po: New file.
8034
8035         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
8036         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
8037
8038         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
8039         (Other iconv Implementations): Fix typo.
8040         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
8041
8042 2000-05-27  Andreas Jaeger  <aj@suse.de>
8043
8044         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
8045         normal version now.
8046         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
8047         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
8048         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
8049         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
8050         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
8051         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
8052
8053         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
8054         endianness to decide how to pass arguments.
8055         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
8056
8057         * elf/vismain.c: Use test-skeleton interface.
8058         (TEST_FUNCTION): New macro.
8059         (do_test): Renamed from main.
8060
8061 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
8062
8063         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
8064         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
8065
8066         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
8067         handling of AI_V4MAPPED flag.
8068
8069         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
8070         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
8071         perform lookup for T_A type and tell getanswer_r to convert the
8072         result with new argument.
8073         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
8074         Don't convert addresses from IPv4 to IPv6 here.
8075         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
8076         IPv6 is wanted.  Allow qtype and type from reply to disagree if
8077         IPv4 mapping has to be done.  Perform mappings if required by the
8078         caller and not if RES_USE_INET6 bit in _res.options is set.
8079         Add several __builtin_expect.
8080
8081 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
8082
8083         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
8084
8085         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
8086         NULL.
8087
8088         * posix/tst-preadwrite.c: Allow parallel execution of
8089         tst-preadwrite and tst-preadwrite64.
8090
8091         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
8092         * posix/tst-truncate.c: New file.
8093         * posix/tst-truncate64.c: New file.
8094
8095         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
8096         was switched.
8097
8098         * posix/Makefile (tests): Add tst-preadwrite64.
8099         * posix/tst-preadwrite.c: Alloc file being used also for testing
8100         pread64 and pwrite64.
8101         * posix/tst-preadwrite64.c: New file.
8102
8103 2000-05-26  Andreas Jaeger  <aj@suse.de>
8104
8105         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
8106         of arguments dependend on endianness.
8107         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
8108
8109         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
8110         normal version now.
8111         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
8112         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
8113         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
8114         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
8115
8116         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
8117         endianness to check how to pass argument.
8118         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
8119
8120         * elf/ldconfig.h: Update parameter list for process_elf_file.
8121
8122         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
8123         Add parameter file_length and pass it ot process_elf*file.
8124
8125         * sysdeps/generic/readelflib.c (check_ptr): New.
8126         (process_elf_file): Use check_ptr to check all accesses to the
8127         mmapped file. Add parameter file_length.
8128
8129         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
8130         library names.
8131
8132         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
8133         Closes PR libc/1573, reported by Bradley White
8134         <bww@laurelnetworks.com>.
8135
8136 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
8137
8138         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
8139         __FAST_MATH__ is defined.
8140
8141 2000-05-22  Andreas Jaeger  <aj@suse.de>
8142
8143         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
8144         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
8145
8146         * manual/math.texi (FP Function Optimizations): Document gcc
8147         -ffast-math behaviour with mathinlines.
8148
8149         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
8150         functions unless -ffast-math is given to gcc.
8151
8152 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
8153
8154         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
8155         __sincosl): Guard with __USE_GNU.
8156
8157 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
8158
8159         * csu/Makefile (routines): Add check_fds.
8160         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
8161         binaries.  Add various __builtin_expect.
8162         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
8163         * sysdeps/generic/check_fds.c: ...here.  New file.
8164
8165         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
8166         binaries if file /etc/suid-debug is available.
8167
8168         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
8169         and wcseqorder members.
8170         (struct locale_collate_t): Likewise.
8171         (collate_finish): Assign collation sequence value to each character.
8172         Create tables for output.
8173         (collate_output): Write out tables with collation sequence information.
8174         * locale/C-collate.c: Provide C locale data for collation sequence
8175         table.
8176         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
8177         _NL_COLLATE_COLLSEQWC.
8178         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
8179         _NL_COLLATE_COLLSEQWC.
8180         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
8181         include fnmatch_loop.c.
8182         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
8183         character is matched by range expression.  Use collation sequence
8184         table.  Outside glibc fall back on simple character value comparison.
8185
8186 2000-05-24  Andreas Jaeger  <aj@suse.de>
8187
8188         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
8189         words.
8190
8191         * intl/Makefile: Run gettext-test only if msgfmt is available.
8192
8193         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
8194         Define it for newer kernels.
8195
8196 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
8197
8198         * elf/dl-sym.c: Minor cleanups.
8199
8200         * configure.in: Add test for .protected.
8201         * config.make.in: Add have-protected variable.
8202         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
8203         (tests-vis-yes): Add vismain.
8204         (modules-names): Add $(modules-vis-$(have-protected)).
8205         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
8206         Add rules to generate and run vismain.
8207         * elf/vismain.c: New file.
8208         * elf/vismod1.c: New file.
8209         * elf/vismod2.c: New file.
8210         * elf/vismod3.c: New file.
8211
8212 2000-05-23  Andreas Jaeger  <aj@suse.de>
8213
8214         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
8215
8216         * manual/search.texi (Array Sort Function): Document that qsort is
8217         not necessarily in-place.
8218
8219         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8220         Closes PR libc/1731.
8221
8222         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
8223         * dirent/scandir64.c: Likewise.
8224         * pwd/getpw.c: Likewise.
8225         * stdlib/bsearch.c (bsearch): Likewise.
8226         * stdlib/tst-strtoll.c: Likewise.
8227         * localedata/collate-test.c: Likewise.
8228         * localedata/xfrm-test.c: Likewise.
8229         * posix/bsd-getpgrp.c: Likewise.
8230         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
8231         * sysdeps/generic/bits/siginfo.h: Likewise.
8232         * sysdeps/generic/bits/sockaddr.h: Likewise.
8233         * sysdeps/generic/sys/swap.h: Likewise.
8234         * sysdeps/generic/sys/sysinfo.h: Likewise.
8235         * sysdeps/generic/vfork.c: Likewise.
8236         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
8237         * sysdeps/mach/hurd/fdopen.c: Likewise.
8238         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
8239         * sysdeps/unix/sysv/linux/poll.c: Likewise.
8240         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8241         * sysdeps/unix/sysv/linux/writev.c: Likewise.
8242         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8243         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
8244         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
8245
8246         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
8247         * shadow/lckpwdf.c: Likewise.
8248         * stdlib/tst-strtol.c: Likewise.
8249         * sysdeps/generic/tcsetattr.c: Likewise.
8250         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8251         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8252
8253 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
8254
8255         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
8256         free it and set to (void *) -1.
8257
8258 2000-05-22  Jakub Jelinek <jakub@redhat.com>
8259
8260         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
8261         not the second character in the range.
8262         * stdio-common/tstscanf.c (main): Add testcase for the above.
8263         Reported by jik@kamens.brookline.ma.us.
8264
8265 2000-05-21  H.J. Lu  <hjl@gnu.org>
8266
8267         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
8268         with noexec and noplt parameter.
8269         (do_lookup): Likewise.
8270
8271         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
8272         do_lookup.  Support STV_PROTECTED.
8273         (_dl_lookup_symbol_skip): Likewise.
8274         (_dl_lookup_versioned_symbol): Likewise.
8275         (_dl_lookup_versioned_symbol_skip): Likewise.
8276
8277         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
8278
8279         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
8280
8281 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8282
8283         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
8284         * sysdeps/i386/bits/huge_val.h: Likewise.
8285         * sysdeps/ieee754/bits/huge_val.h: Likewise.
8286         * sysdeps/m68k/bits/huge_val.h: Likewise.
8287         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
8288         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
8289
8290 2000-05-22  Andreas Jaeger  <aj@suse.de>
8291
8292         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
8293         change in iconv.h.
8294
8295 2000-05-19  Andreas Jaeger  <aj@suse.de>
8296
8297         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
8298         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
8299         breaks compilation without linuxthreads.
8300
8301 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8302
8303         * sysdeps/ia64/memccpy.S: New file.
8304         * sysdeps/ia64/memchr.S: New file.
8305         * sysdeps/ia64/memcmp.S: New file.
8306         * sysdeps/ia64/memcpy.S: New file.
8307         * sysdeps/ia64/memmove.S: New file.
8308         * sysdeps/ia64/memset.S: New file.
8309         * sysdeps/ia64/strcat.S: New file.
8310         * sysdeps/ia64/strchr.S: New file.
8311         * sysdeps/ia64/strcmp.S: New file.
8312         * sysdeps/ia64/strcpy.S: New file.
8313         * sysdeps/ia64/strlen.S: New file.
8314         * sysdeps/ia64/strncmp.S: New file.
8315         * sysdeps/ia64/strncpy.S: New file.
8316         * sysdeps/ia64/softpipe.h: New file.
8317         Patches by Dan Pop <Dan.Pop@cern.ch>.
8318
8319         * manual/memory.texi: Document memory handling functions (mlock,
8320         munlock, mlockall, munlockall, brk, and sbrk)
8321         * manual/time.texi: Document timespec and friends.
8322         * manual/conf.texi: Fix references.
8323         * manual/ctype.texi: Likewise.
8324         * manual/errno.texi: Likewise.
8325         * manual/intro.texi: Likewise.
8326         * manual/locale.texi: Likewise.
8327         * manual/sysinfo.texi: Likewise.
8328         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8329
8330 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
8331
8332         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
8333         * sysdeps/ia64/dl-lookupcfg.h: ...here.
8334
8335 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
8336
8337         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
8338         dxfer_direction.
8339
8340 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
8341
8342         * locale/locale.h (struct lconv): Add new elements from ISO C99.
8343         * locale/localeconv.c: Initialize new elements from ISO C99.
8344         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
8345         new standard elements.
8346         * locale/categories.def: Adjust accordingly.
8347
8348         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
8349         * iconv/iconv.c: Likewise.
8350         * conform/data/iconv.h-data: Likewise.
8351         * iconv/iconv_prog.c (process_block): Remove const from second
8352         parameter.
8353         (main): Remove const from addr definition.
8354         * manual/charset.texi (Generic Conversion Interface): Remove from
8355         inbuf parameter of iconv.
8356
8357         * intl/dcigettext.c: Fix typo in comment.
8358
8359 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
8360
8361         * resolv/res_libc.c (_res): Initialize _sock to -1.
8362
8363 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
8364
8365         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
8366         (fopencookie@@GLIBC_2.2): New.
8367         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
8368         (fopencookie@GLIBC_2.0): New.
8369         * libio/Versions: Add fopencookie to GLIBC_2.2.
8370
8371 2000-05-18  Andreas Jaeger  <aj@suse.de>
8372
8373         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
8374         Closes PR libc/1731.
8375
8376         * manual/arith.texi (Parsing of Integers): Fix typo.
8377         Closes PR libc/1744, reported by blp@gnu.org.
8378
8379 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8380
8381         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
8382         __extension__ to hexadecimal floating constant notation.
8383         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8384         Likewise.
8385         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
8386         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
8387         Likewise.
8388         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8389         HUGE_VALL): Likewise.
8390         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
8391         HUGE_VALL): Likewise.
8392         (HUGE_VALL): Set to HUGE_VAL on sparc32.
8393
8394 2000-05-17  Andreas Jaeger  <aj@suse.de>
8395
8396         * string/envz.h: Add pure attributes if possible.
8397
8398         * string/argz.h: argz_count is a pure function.
8399
8400         * string/strings.h: Add pure and const attributes if possible.
8401
8402         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
8403         possibly searching through the whole memory.
8404         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
8405
8406 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
8407
8408         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
8409         not yet defined.
8410         (_dl_cache_check_flags): Likewise.
8411         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
8412         dl-cache.h.
8413
8414 2000-05-17  Andreas Jaeger  <aj@suse.de>
8415
8416         * manual/creature.texi (Feature Test Macros): Remove paragraph
8417         since the description is wrong.
8418         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
8419
8420         * scripts/config.sub: New version.
8421         * scripts/config.guess: Likewise.
8422         * manual/texinfo.tex: Likewise.
8423
8424         * time/test_time.args: Removed.
8425         * time/Makefile (test_time-ARGS): Added contents here instead.
8426
8427         * posix/tstgetopt.args: Removed.
8428         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
8429
8430         * Rules: Allow arguments for test files to be specified in
8431         Makefile with testname-ARGS; remove rules with .args in it.
8432
8433         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
8434         remove old bogus rule for opendir-tst1.args.
8435
8436         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
8437
8438         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
8439         into objdir.  This allows a readonly sourcetree.
8440         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
8441
8442 2000-05-16  Andreas Jaeger  <aj@suse.de>,
8443             David Huggins-Daines <dhd@linuxcare.com>
8444
8445         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
8446         cache_data in case of only new cache format correctly.
8447
8448         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
8449         cache_file_new.
8450
8451         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
8452         struct cache_file_new.
8453
8454         * elf/cache.c (save_cache): Fix str_offset if only new cache is
8455         present.
8456
8457         * elf/cache.c (save_cache): Align struct new_file_cache.
8458         (print_cache): Likewise.
8459
8460 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
8461
8462         * elf/soinit.c (__libc_global_ctors): Move
8463         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
8464         * resolv/resolv.h (__res_state): Added __attribute__((const)).
8465         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
8466         variable, don't define it to __res_state call.
8467
8468 2000-05-13  Andreas Jaeger  <aj@suse.de>
8469
8470         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
8471         Linux 2.3.99pre7.
8472         (AF_PPPOX): Likewise.
8473         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
8474         (AF_PPPOX): Likewise.
8475
8476 2000-05-12  Andreas Jaeger  <aj@suse.de>
8477
8478         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
8479         Reported by tmoestl@gmx.net, closes PR libc/1732.
8480
8481 2000-05-11  Jan Hubicka  <jh@suse.cz>
8482
8483         * misc/sys/cdefs.h: Add support for pure attribute.
8484
8485         * include/string.h: Add __attribute_pure__ to various functions.
8486         * string/string.h: Likewise.
8487
8488 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8489
8490         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
8491         argument.
8492         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
8493         R_SPARC_UA64.
8494         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
8495
8496 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
8497
8498         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
8499         at proper place.  Compute the high nibble correctly.
8500
8501 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
8502
8503         * elf/ldconfig.c: Include elf.h.
8504
8505         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
8506         (_dl_vsym): Likewise.
8507         Reported by Owen Taylor <otaylor@redhat.com>.
8508
8509         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
8510         always.
8511
8512 2000-05-08  Andreas Jaeger  <aj@suse.de>
8513
8514         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
8515
8516         * intl/bindtextdom.c (set_binding_values): Add prototype.
8517
8518 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8519
8520         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
8521         call to elf_machine_fixup_plt.
8522         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
8523         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
8524
8525 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8526
8527         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
8528         they are not dlclose'd from underneath us.
8529
8530 2000-05-08  Andreas Schwab  <schwab@suse.de>
8531
8532         * posix/execle.c: Fix size parameter of memcpy.
8533
8534 2000-05-08  Andreas Schwab  <schwab@suse.de>
8535
8536         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
8537         getpagesize syscall if available.
8538
8539 2000-05-08  Andreas Jaeger  <aj@suse.de>
8540
8541         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
8542         set errno.
8543
8544 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
8545
8546         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
8547         sizeof(struct link_map *) chunks, not in bytes.
8548
8549 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8550
8551         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
8552         only needed for locale.
8553         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
8554         It's only needed for catgets.
8555         Patches by Greg McGary <gkm@eng.ascend.com>.
8556
8557 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
8558
8559         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
8560         Remove duplicate <errno.h> include.  Remove inclusion of
8561         <libintl.h> and "nsswitch.h".
8562         (set_cloexec_flag): New function, broken out of dbopen.
8563         (dbopen): Changed return type to `enum
8564         nss_status'.  Mostly rewritten to make sure that we do not report
8565         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
8566         (internal_setent): Change return type to nss_status.
8567         Document, and make sure that the function
8568         behaves accordingly.  Make dynamically loading the database
8569         library really thread-safe and return NSS_STATUS_UNAVAIL if it
8570         failed.
8571         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
8572         unecessary casts.
8573         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
8574         documentation.
8575         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
8576         c_get function member.
8577         * nss/nss_db/nss_db.h: Add and tweak some comments.
8578         (DBT): Move typedef before NSS_DBC typedef.
8579         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
8580
8581 2000-05-07  H.J. Lu  <hjl@gnu.org>
8582
8583         * csu/initfini.c: Moved to ....
8584         * sysdeps/generic/initfini.c: ...here.
8585
8586         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
8587
8588 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
8589
8590         * manual/resource.texi: Document POSIX scheduling functions.
8591         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8592
8593         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
8594         reading anything.  Reported by Andries.Brouwer@cwi.nl.
8595
8596         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
8597         for x since promotion in comparison might leads to unexpected
8598         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
8599
8600         * iconv/Makefile (tests): Add tst-iconv1.
8601         * iconv/tst-iconv1.c: New file.
8602         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
8603         empty input buffer over full output buffer.
8604         (ucs4_internal_loop): Likewise.
8605         (ucs4_internal_loop_unaligned): Likewise.
8606         (internal_ucs4le_loop): Likewise.
8607         (internal_ucs4le_loop_unaligned): Likewise.
8608         (ucs4le_internal_loop): Likewise.
8609         (ucs4le_internal_loop_unaligned): Likewise.
8610         Reported by yaoz@nih.gov.
8611
8612 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8613
8614         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
8615         returned != __GCONV_OK, there is nothing to clean up.
8616
8617 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
8618
8619         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
8620         OUTPUT_CHARSET environment variables.
8621
8622 2000-05-06  Andreas Jaeger  <aj@suse.de>
8623
8624         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
8625         (struct cache_file_new): New.
8626         (struct file_entry): New (moved from cache.c).
8627         (struct cache_file): New (moved from cache.c).
8628
8629         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
8630         from _dl_load_cache_lookup.
8631         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
8632         the different cache formats.
8633         New variable cache_new for new format.
8634
8635         * elf/ldconfig.h: Change according to changes in cache.c and
8636         ldconfig.c; remove cache_libcmp; add opt_format.
8637
8638         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
8639         stuff that's defined in those headers.
8640         Add hwcap to struct lib_entry.
8641         (opt_format): New variable to select cache format.
8642         (options): Add format parameter.
8643         (is_hwcap): New function.
8644         (path_hwcap): New function.
8645         (parse_opt): Handle new format parameter.
8646         (search_dir): Handle hwcap, search also subdirectories with hwcap.
8647
8648         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
8649         ldconfig is part of glibc.
8650         Include dl-cache.h and remove stuff that's defined there.
8651         (struct cache_entry): Add new member hwcap.
8652         (print_entry): Print hwcap, cleanup a bit.
8653         (print_cache): Print new and old formats.
8654         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
8655         (save_cache): Save new and old formats.
8656         (add_to_cache): Handle hwcap.
8657
8658         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
8659         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
8660         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
8661         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
8662         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
8663         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
8664
8665 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8666
8667         * intl/dcigettext.c (alignof): New macro.
8668         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
8669         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
8670         freemem_size to 0.
8671
8672 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
8673
8674         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
8675         return value.
8676
8677 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8678
8679         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
8680         (mempcpy): Correct typo is parameter list.
8681
8682 2000-05-06  Andreas Jaeger  <aj@suse.de>
8683
8684         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
8685         functions unless -ffast-math is given to gcc.
8686
8687 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
8688
8689         * po/ko.po: Update from translation team.
8690
8691 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8692
8693         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8694         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8695         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8696         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8697         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8698         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8699
8700         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8701         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8702         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8703
8704         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8705         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8706         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8707         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8708
8709         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8710         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8711
8712 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8713
8714         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8715         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8716
8717         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8718         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8719
8720         * sysdeps/ia64/Implies: New file.
8721         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8722         * sysdeps/ia64/Makefile: New file.
8723         * sysdeps/ia64/gmp-mparam.h: New file,
8724
8725         * sysdeps/ia64/elf/start.S: New file.
8726
8727         * sysdeps/ia64/bits/fenv.h: New file.
8728
8729 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8730
8731         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8732
8733 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8734
8735         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8736         ia64 has 64 bit .hash entries just as the Alpha.
8737
8738 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8739
8740         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8741
8742 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8743
8744         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8745         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8746         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8747         * sysdeps/ia64/fpu/fegetenv.c: New file.
8748         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8749         * sysdeps/ia64/fpu/fegetround.c: New file.
8750         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8751         * sysdeps/ia64/fpu/fesetenv.c: New file.
8752         * sysdeps/ia64/fpu/fesetround.c: New file.
8753         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8754         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8755         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8756         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8757         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8758
8759 2000-05-05  Andreas Jaeger  <aj@suse.de>
8760
8761         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8762
8763         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8764         (_dl_string_hwcap): New, does nothing.
8765
8766         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8767         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8768         (_dl_string_hwcap): New function, converts from string to hwcap
8769         encoding.
8770         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8771         (_DL_HWCAP_COUNT): New.
8772         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8773         (_dl_string_hwcap): New function, converts from string to hwcap
8774         encoding.
8775         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8776         (_DL_HWCAP_COUNT): New.
8777         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8778         (_dl_string_hwcap): New function, converts from string to hwcap
8779         encoding.
8780
8781 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8782
8783         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8784         * sysdeps/ia64/Dist: New file.
8785
8786         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8787         parameter to mprotect and for variable assignments.
8788
8789 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8790
8791         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8792         validity of map before dereferencing it.
8793
8794         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8795
8796 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8797
8798         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8799         lookup to the arguments to elf_machine_fixup_plt().
8800
8801         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8802         of the symbol being resolved to input argument list and make the
8803         function return the pointer to the reloc.
8804
8805         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8806         return valuie to lookup_t and return the value.
8807         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8808         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8809         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8810         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8811         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8812         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8813
8814         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8815         Make it an inline function returning value after calling
8816         __elf_machine_fixup_plt().
8817
8818         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8819         symbol address.
8820
8821         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8822         obtain the symbol address.
8823
8824         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8825         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8826
8827         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8828         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8829         inline on non ia64.
8830
8831 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8832
8833         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8834         symbol address of an object.
8835
8836         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8837         the symbol address of an object.
8838
8839         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8840         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8841         (_dl_lookup_symbol_skip): Likewise.
8842         (_dl_lookup_versioned_symbol): Likewise.
8843         (_dl_lookup_versioned_symbol_skip): Likewise.
8844
8845 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8846
8847         * elf/rtld.c (_dl_start): Get the function pointer return address
8848         via _dl_start_address for architectures that need a function
8849         pointer descriptor rather than just a pointer (ia64).
8850
8851         * sysdeps/generic/dl-lookupcfg.h: New file.
8852         * sysdeps/ia64/dl-lookupcfg.h: New file.
8853         * sysdeps/ia64/dl-machine.h: New file.
8854         * sysdeps/ia64/dl-symaddr.c: New file.
8855         * sysdeps/ia64/dl-fptr.c: New file.
8856
8857         * elf/elf.h: Add IA-64 specific definitions.
8858
8859 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8860
8861         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8862         end of enum.
8863
8864 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8865
8866         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8867         happy.
8868
8869 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8870
8871         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8872         symbol.  Call _dl_init rather than the old way.
8873
8874 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8875
8876         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8877         test for pointer in range of DSO address space.
8878
8879 2000-05-04  Andreas Jaeger  <aj@suse.de>
8880
8881         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8882
8883 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8884
8885         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8886         calls of _nl_make_l10nflist.
8887
8888         * libio/stdio.h: Make fseeko and ftello prototypes available is
8889         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8890
8891         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8892         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8893
8894 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8895
8896         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8897         before calling tfind.
8898
8899 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8900
8901         * resolv/resolv.h (res_querydomain): Remove redefinition to
8902         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8903
8904 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8905
8906         * po/gl.po: Update from translation team.
8907
8908         * manual/intro.texi (Program Basics): Change section title.
8909         * manual/process.texi: Fix reference.
8910         (Executing a File): Add reference exec in other section.
8911         * manual/signal.texi: Fix reference.
8912         * manual/startup.texi: Document syscall function.
8913         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8914
8915 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8916
8917         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8918         * intl/bindtextdom.c (set_binding_values): New function.
8919         (bindtextdomain): Call it.
8920         (bind_textdomain_codeset): New function.
8921         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8922         (free_mem): Free each binding's codeset.
8923         * intl/gettextP.h (struct binding): Add codeset field.
8924         (_nl_find_domain): Add domainbinding argument.
8925         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8926         Pass it to _nl_make_l10nflist.
8927         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8928         (_nl_make_l10nflist): Add domainbinding argument.
8929         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8930         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8931         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8932         locale_charset().
8933         * manual/message.texi: New node "Charset conversion in gettext".
8934
8935 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8936
8937         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8938         appropriate.  Handle possible __read error.
8939
8940 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8941
8942         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8943         compiler builtin.
8944         * intl/loadinfo.h (__builtin_expect): Likewise.
8945         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8946         __builtin_expect where appropriate.
8947         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8948         * intl/localealias.c (extend_alias_table): Return an error indicator.
8949         (read_alias_file): Bail out if extend_alias_table fails.
8950
8951 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8952
8953         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8954         * intl/localealias.c: Likewise.
8955
8956 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8957
8958         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8959         Initialize domain->plural and domain->nplurals even if there is no
8960         nullentry.
8961
8962 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8963
8964         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8965         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8966         In case of failure, goto converted.
8967
8968 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8969
8970         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8971         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8972         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8973         __gconv_open.
8974
8975 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8976
8977         * intl/dcigettext.c (transcmp): Compare the domains as well.
8978         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8979         not before.
8980         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8981         <errno.h>.
8982
8983 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8984
8985         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8986         Reported by Bruno Haible.
8987
8988 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8989
8990         * manual/arith.texi: Remove @w from @itemize.
8991
8992 2000-05-02  Andreas Jaeger  <aj@suse.de>
8993
8994         * conform/data/tar.h-data: Add some checks for specific values.
8995
8996         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8997         and RAND_MAX.
8998
8999         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
9000         FOPEN_MAX.
9001
9002         * conform/data/netinet/in.h-data: Add exact checks for the values
9003         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
9004
9005         * conform/data/float.h-data: Add some minimal values.
9006
9007         * conform/conformtest.pl: Test for macros with string constants,
9008         check for minimum and maximum values.
9009         Add limits.h to headers.
9010
9011         * conform/data/cpio.h-data: Test for value of MAGIC.
9012
9013         * conform/data/limits.h-data: New file.
9014
9015 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
9016
9017         * math/Makefile (headers): Add bits/fenvinline.h.
9018
9019 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
9020
9021         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
9022         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
9023
9024         * posix/Versions: Change posix_spawnattr_getdefault and
9025         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
9026         and posix_spawnattr_setsigdefault respectively.
9027         * posix/spawn.h: Likewise.
9028         * posix/spawnattr_getdefault.h: Likewise.
9029         * posix/spawnattr_setdefault.h: Likewise.
9030         * conform/data/spawn.h-data: Likewise.
9031
9032 2000-05-01  Andreas Jaeger  <aj@suse.de>
9033
9034         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
9035
9036 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9037
9038         * manual/sysinfo.texi: Document getdomainname, setdomainname
9039         and sysctl.
9040         * manual/string.texi: Fix typo.
9041         * manual/terminal.texi: Document gtty and stty.
9042         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9043
9044 2000-04-30  Andreas Jaeger  <aj@suse.de>
9045
9046         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
9047         accordance with Austin Draft.
9048
9049 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
9050
9051         * catgets/gencat.c (read_input_file): Use isblank and not isspace
9052         to recognize second character in comment line.
9053
9054         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
9055         ENOBUFS if we are out of memory.
9056
9057         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
9058         available if __USE_XOPEN2K.
9059         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9060         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9061         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9062         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9063         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9064         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9065         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
9066         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9067
9068 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9069
9070         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
9071         Recognize option -s, -c, and -l.
9072
9073 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
9074
9075         * nscd/nscd.c: Start new session for nscd, drop privilegs
9076         to configured user if requested and no -S parameter are used.
9077         * nscd/nscd.conf: Add new option "server-user".
9078         * nscd/nscd_conf.c: Add support for new "server-user" option.
9079         * nscd/nscd.h: Add declaration for server_user variable.
9080         Based on patch by Chris Wing <wingc@engin.umich.edu>
9081
9082 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9083
9084         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
9085         that changing the __restore and __restore_rt signal return code
9086         will break GDB.
9087
9088 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9089
9090         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
9091         <sys/user.h>.
9092
9093 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
9094
9095         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
9096
9097 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
9098
9099         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
9100         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
9101         arpa/inet.h.
9102         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
9103         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
9104         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
9105         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
9106         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
9107         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
9108         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
9109         posix_fallocate, and posix_madvise.
9110         * conform/data/netdb.h-data: New file.
9111         * conform/data/pthread.h-data: Add pthread_barrier_t,
9112         pthread_barrierattr_t, pthread_barrier_destroy,
9113         pthread_barrier_init, pthread_barrier_wait,
9114         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
9115         pthread_barrierattr_init, pthread_barrierattr_setpshared,
9116         pthread_condattr_getclock, pthread_condattr_setclock,
9117         pthread_getcpuclockid, pthread_mutex_timedlock,
9118         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9119         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
9120         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
9121         * conform/data/sched.h-data: Add sched_ss_low_priority,
9122         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
9123         SCHED_SPORADIC.
9124         * conform/data/semaphore.h-data: Add sem_timedwait.
9125         * conform/data/signal.h-data: Add SIGIO.
9126         * conform/data/spawn.h-data: New file.
9127         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
9128         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
9129         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
9130         Fix typo in gmtime_r definition.
9131         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
9132         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
9133         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
9134         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
9135         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
9136         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
9137         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
9138         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
9139         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
9140         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
9141         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
9142         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
9143         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
9144         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
9145         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
9146         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
9147         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
9148         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
9149         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
9150         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
9151         typo in off_t definition.
9152         * conform/data/net/if.h-data: New file.
9153         * conform/data/netinet/in.h-data: New file.
9154         * conform/data/netinet/tcp.h-data: New file.
9155         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
9156         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
9157         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
9158         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
9159         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
9160         and posix_typed_mem_open.
9161         * conform/data/sys/socket.h-data: New file.
9162         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
9163         * conform/data/sys/types.h-data: Add pthread_barrier_t,
9164         pthread_barrierattr_t, and pthread_spinlock_t.
9165         * conform/data/sys/un.h-data: New file.
9166         * conform/data/sys/utsname.h-data: New file.
9167
9168         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
9169         parameter.
9170         * inet/gethstbyad.c (gethostbyname): Likewise.
9171         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
9172         * inet/getipnodebyad.c (getipnodebyad): Likewise.
9173         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
9174         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
9175         Likewise.
9176         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
9177         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
9178         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
9179         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
9180         * resolv/gethnamaddr.c (gethostbyname): Likewise.
9181         * resolv/netdb.h (struct hostent): Fix type of h_length member.
9182         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
9183         and second parameter.
9184
9185         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
9186         == NULL.
9187
9188 2000-04-29  Andreas Jaeger  <aj@suse.de>
9189
9190         * conform/data/arpa/inet.h-data: New file.
9191
9192 2000-04-28  Geoff Clare <gwc@unisoft.com>
9193
9194         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
9195         path passed to ftw() or nftw() is an empty string.
9196         Closes PR libc/1710.
9197
9198 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9199
9200         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
9201         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
9202         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
9203         * localedata/tst-mbswcs4.c: New file.
9204         * localedata/tst-mbswcs5.c: New file.
9205
9206         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
9207         == NULL.  Little optimization.
9208
9209         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
9210         DT_PREINIT_ARRAYSZ).
9211         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
9212
9213         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
9214         overflows in conversion from ASCII.
9215
9216 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9217
9218         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
9219         * Makerules (full_config_sysdirs): Likewise.
9220         * MakeTAGS (full_config_sysdirs): Likewise.
9221
9222 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9223
9224         * .cvsignore: Remove linuxthreads.
9225         * po/.cvsignore: Remove *.pot.
9226         * posix/glob/.cvsignore: Removed.
9227         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
9228
9229 2000-04-25  Andreas Jaeger  <aj@suse.de>
9230
9231         * conform/Makefile (distribute): Also distribute contents of
9232         subdirectories.
9233
9234         * Makerules (no_deps): Remove abi-versions.h.
9235
9236         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
9237
9238 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * sysdeps/sparc/sparc64/elf/Dist: Remove.
9241         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
9242         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
9243         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
9244         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
9245         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
9246         objects.
9247
9248 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
9249
9250         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
9251
9252 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9253
9254         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
9255         * intl/l10nflist.c: Likewise.
9256
9257 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9258
9259         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
9260         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
9261         * intl/textdomain.c [!_LIBC]: Likewise.
9262         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
9263         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
9264         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
9265         syntax error.
9266
9267 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
9268
9269         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
9270         character set conversion also in the case the translation was found
9271         after a hash collision or through binary search.  Store the maximum
9272         index together with the converted message.  Use iconv() when available.
9273         In case of out of memory during conversion, return the unconverted
9274         translated string, not NULL.
9275
9276 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
9277
9278         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
9279         to avoid name clashes with the ia32 linker.
9280
9281 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
9282
9283         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
9284         handling.
9285
9286 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9287
9288         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
9289         strtoumax, strfry, and memfrob.
9290         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
9291         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9292
9293         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
9294         if this function is available.
9295
9296         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
9297         all values.
9298
9299 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
9300
9301         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
9302
9303 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
9304
9305         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
9306         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
9307         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
9308         * localedata/tst-mbswcs3.c: New file.
9309
9310 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
9311
9312         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
9313         characters.  Don't handle incomplete characters as errors.
9314         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
9315         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
9316         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
9317         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
9318         * localedata/tst-mbswcs2.c: New file.
9319
9320         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
9321         stored character in state in UNPACK_BYTES macro.
9322         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
9323         test for available characters, handle result of BODY code correctly.
9324         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
9325         (distribute): Add tst-mbswcs.sh.
9326         Add rule to run tst-mbswcs.sh.
9327         * localedata/tst-mbswcs.sh: New file.
9328         * localedata/tst-mbswcs1.c: New file.
9329
9330 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
9331
9332         * nis/nis_callback.c (__nis_create_callback): Do failed memory
9333         allocation fixups centrally, fix __builtin_expect call, return NULL
9334         on failure, not NIS_NOMEMORY.
9335
9336 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
9337
9338         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
9339
9340         * intl/loadinfo.h (internal_function): Define if not already defined.
9341
9342 2000-04-27  Andreas Jaeger  <aj@suse.de>
9343
9344         * intl/libintl.h: Fix typo, reported by Bruno Haible
9345         <haible@clisp.cons.org>.
9346
9347 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
9348
9349         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
9350         setting the state to GMON_PROF_BUSY.
9351
9352 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
9353
9354         * elf/dl-profile.c (_dl_start_profile): define all variables which
9355         do not have to be global as local variables.
9356
9357         * nis/nis_callback.c (__nis_create_callback): Partially undo last
9358         patch.  Keep needed tests for failed memory allocation.
9359
9360         * elf/dl-reloc.c (_dl_relocate_object): Add one more
9361         __builtin_expect saying that we don't normally expect to profile.
9362
9363         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
9364         __builtin_expect where desirable.
9365
9366 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9367
9368         * manual/Makefile (chapters): Add syslog.
9369         * manual/syslog.texi: New file.
9370         * manual/math.texi: Fix references.
9371         * manual/terminal.texi: Likewise.
9372         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9373
9374 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
9375
9376         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
9377         stdlib.h was not included or __USE_XOPEN not defined.
9378
9379 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
9380
9381         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
9382         Patch by Zack Weinberg <zack@wolery.cumb.org>.
9383
9384 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
9385
9386         * manual/examples/subopt.c (mount_opts): Add missing terminating
9387         entry.
9388         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
9389
9390         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
9391         * libio/ftello.c: Likewise.
9392         * libio/ftello64.c: Likewise.
9393         * libio/ioftell.c: Likewise.
9394         * sysdeps/generic/memrchr.c: Likewise.
9395         * sysdeps/posix/libc_fatal.c: Likewise.
9396         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9397         * misc/fstab.c: Include <string.h> for strcmp prototype.
9398         * sysdeps/generic/ldsodefs.h: Likewise.
9399         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9400         Patch by Kurt Roeckx <Q@ping.be>.
9401
9402         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
9403         Remove db-open.  Change all uses.
9404         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
9405
9406 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9407
9408         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
9409         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
9410         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
9411         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
9412         with .set noat/at to shut up warnings.
9413         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
9414         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
9415         compilation if __NR_pciconfig_iobase is not defined.
9416         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
9417         Add alias.
9418
9419 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9420
9421         * manual/sysinfo.texi: Fix typo.
9422         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
9423         Replace "high precision time" with "high accuracy clock".
9424         Fix language.
9425         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
9426
9427         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
9428         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
9429         instead of malloc.
9430         * nis/nis_subr.c: Use __builtin_expect.
9431         * nis/ypclnt.c: Likewise.
9432         * nis/nis_getservlist.c: Likewise.
9433         * nis/nis_creategroup.c: Likewise.
9434
9435         * nis/nis_callback.c (__nis_create_callback): Check result of
9436         memory allocation.  Fix memory leaks.  Use __builtin_expect.
9437         (__nis_destroy_callback): Fix memory leaks.
9438
9439 2000-04-21  Andreas Jaeger  <aj@suse.de>
9440
9441         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
9442         * sysdeps/mips/mips64/add_n.S: Likewise.
9443         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
9444         * sysdeps/mips/mips64/lshift.S: Likewise.
9445         * sysdeps/mips/mips64/mul_1.S: Likewise.
9446         * sysdeps/mips/mips64/rshift.S: Likewise.
9447         * sysdeps/mips/mips64/setjmp.S: Likewise.
9448         * sysdeps/mips/mips64/sub_n.S: Likewise.
9449         * sysdeps/mips/mips64/submul_1.S: Likewise
9450         * sysdeps/unix/mips/sysdep.S: Likewise.
9451
9452         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
9453         and update comment.  The strtab from _dl_relocate_object can be
9454         used.
9455
9456 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
9457
9458         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
9459         * iconv/iconv_close.c (iconv_close): Likewise.
9460         * iconv/iconv_open.c (iconv_open): Likewise.
9461
9462         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
9463         __builtin_expect where useful.
9464
9465         * grp/initgroups.c (initgroups): Test for result of memory
9466         allocation and punt if it fails.
9467
9468         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
9469         * grp/fgetgrent.c (fgetfrent): Likewise.
9470         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
9471
9472 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
9473
9474         * libio/vasprintf.c: Include string.h to get memcpy prototype.
9475
9476 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9477
9478         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
9479         don't search for NUL byte to decrement counter.
9480         Reported by Ulrich.Brink@sap.com.
9481
9482         * iconv/gconv_simple.c: Define separate functions to convert from
9483         UCS4/UCS4-LE to the internal encoding.
9484         * iconv/gconv_builtin.h: Use separate functions to convert from
9485         UCS4/UCS4-LE to the internal encoding.
9486         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
9487         __gconv_transform_ucs4le_internal.
9488
9489         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
9490         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
9491
9492         * iconv/skeleton.c: Add some more __builtin_expect.
9493         * iconv/loop.c: Likewise.
9494
9495 2000-03-08  H.J. Lu  <hjl@gnu.org>
9496
9497         * posix/regex.c (regex_compile): Correctly handle "\{" when
9498         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
9499
9500 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
9501
9502         * manual/stdio.texi: Give advise about handling error when using
9503         stream functions.
9504         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
9505
9506 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
9507
9508         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
9509         field to nelems * sizeof (uint32_t).
9510         * locale/programs/ld-address.c (address_output): Align word fields
9511         properly.
9512         * locale/programs/ld-monetary.c (monetary_output): Likewise.
9513         Don't restart idx pointers to idx end at the duo_int_curr_symbol
9514         field.
9515         Avoid giving arbitrary garbage in the crncystr field.
9516         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
9517         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
9518         fields.
9519         * locale/programs/ld-numeric.c (numeric_output): Likewise.
9520         Don't restart idx pointers to idx end at the decimal_point_wc field.
9521         * locale/programs/ld-time.c (time_output): week_1stday should be
9522         word, not byte.  Align it properly.
9523
9524 2000-04-19  H.J. Lu  <hjl@gnu.org>
9525
9526         * csu/gmon-start.c (_start): Declared as "extern void".
9527         (etext): Likewise.
9528
9529 2000-04-18  Andreas Jaeger  <aj@suse.de>
9530
9531         * manual/install.texi (Running make install): Don't mention utmpd
9532         anymore.
9533
9534 2000-04-18  Andreas Jaeger  <aj@suse.de>
9535
9536         * linuxthreads/Versions: Use ld instead of ld.so.
9537
9538         * elf/Makefile (ld-map): Use ld.map.
9539
9540         * Versions.def: Use ld instead of ld.so.
9541         * elf/Versions: Likewise.
9542         * sysdeps/mach/hurd/Versions: Likewise.
9543
9544 2000-04-20  Andreas Jaeger  <aj@suse.de>
9545
9546         * elf/rtld.c (print_statistics): Move ifndef further up.
9547         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
9548         (dl_main): Likewise.
9549
9550 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9551
9552         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
9553         * gmon/Versions: Move moncontrol to GLIBC_2.2.
9554
9555         * po/cs.po: Update from translation team.
9556
9557         * sysdeps/generic/updwtmp.c: Remove daemon support.
9558
9559         * login/Makefile (routines): Remove utmp_daemon.
9560
9561         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
9562         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
9563         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
9564         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
9565
9566         * elf/rtld.c: Display statitics option also if hp timing is not
9567         available.
9568
9569         * login/programs/connection.c: Removed.
9570         * login/programs/database.c Removed.
9571         * login/programs/error.c: Removed.
9572         * login/programs/request.c: Removed.
9573         * login/programs/xtmp.c: Removed.
9574         * login/programs/xtmp.h: Removed.
9575         * login/Makefile: Remove rules for utmpd.
9576         * login/README.utmpd: Removed.
9577         * login/utmp_daemon.c: Removed.
9578         * login/getutent_r.c: Remove references to daemon functions.
9579         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
9580         declaration.
9581
9582 2000-04-18  Andreas Jaeger  <aj@suse.de>
9583
9584         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9585         2.2 for libnsl, libresolv, librt, libnss_*.
9586
9587         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
9588
9589         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
9590
9591 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9592
9593         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
9594         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
9595         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
9596         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
9597         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
9598         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
9599         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
9600         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
9601         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
9602         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
9603         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
9604         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
9605         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
9606         it here.
9607         * sysdeps/unix/sysv/aix/msync.c: New file.
9608         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
9609         * sysdeps/unix/sysv/aix/net/if.h: New file.
9610         * sysdeps/unix/sysv/aix/pipe.c: New file.
9611         * sysdeps/unix/sysv/aix/poll.c: New file.
9612         * sysdeps/unix/sysv/aix/rename.c: New file.
9613         * sysdeps/unix/sysv/aix/rmdir.c: New file.
9614         * sysdeps/unix/sysv/aix/select.c: New file.
9615         * sysdeps/unix/sysv/aix/semctl.c: New file.
9616         * sysdeps/unix/sysv/aix/semget.c: New file.
9617         * sysdeps/unix/sysv/aix/semop.c: New file.
9618         * sysdeps/unix/sysv/aix/sendto.c: New file.
9619         * sysdeps/unix/sysv/aix/setgroups.c: New file.
9620         * sysdeps/unix/sysv/aix/setpgid.c: New file.
9621         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
9622         * sysdeps/unix/sysv/aix/setpriority.c: New file.
9623         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
9624         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
9625         * sysdeps/unix/sysv/aix/setsid.c: New file.
9626         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
9627         * sysdeps/unix/sysv/aix/shmat.c: New file.
9628         * sysdeps/unix/sysv/aix/shmctl.c: New file.
9629         * sysdeps/unix/sysv/aix/shmdt.c: New file.
9630         * sysdeps/unix/sysv/aix/shmget.c: New file.
9631         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
9632         * sysdeps/unix/sysv/aix/sigstack.c: New file.
9633         * sysdeps/unix/sysv/aix/socket.c: New file.
9634         * sysdeps/unix/sysv/aix/socketpair.c: New file.
9635         * sysdeps/unix/sysv/aix/speed.c: New file.
9636         * sysdeps/unix/sysv/aix/symlink.c: New file.
9637         * sysdeps/unix/sysv/aix/sync.c: New file.
9638         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
9639         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
9640         * sysdeps/unix/sysv/aix/times.c: New file.
9641         * sysdeps/unix/sysv/aix/ulimit.c: New file.
9642         * sysdeps/unix/sysv/aix/umask.c: New file.
9643         * sysdeps/unix/sysv/aix/unlink.c: New file.
9644         * sysdeps/unix/sysv/aix/ustat.c: New file.
9645         * sysdeps/unix/sysv/aix/utimes.c: New file.
9646
9647 2000-04-18  Andreas Jaeger  <aj@suse.de>
9648
9649         * manual/startup.texi (Environment Access): Fix putenv prototype
9650         according to recent changes.
9651         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
9652         PR libc/1692.
9653
9654         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
9655         needed.
9656
9657 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
9658
9659         * posix/Makefile (tests): Add tst-getaddrinfo.
9660         * posix/tst-getaddrinfo.c: New file.
9661
9662 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9663
9664         * manual/sysinfo.texi: Document that umount2 is not widely available.
9665
9666         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
9667         signal timing is not really implemented.
9668
9669 2000-04-17  Andreas Jaeger  <aj@suse.de>
9670
9671         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
9672
9673 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9674
9675         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
9676         and inst_libdir.
9677
9678 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9679
9680         * manual/intro.texi: Change reference from System Information to
9681         System Management.
9682         * manual/users.texi: Likewise.
9683         * manual/conf.texi: Likewise.
9684         * manual/sysinfo.texi: Document mount, umount, and umount2.
9685         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9686
9687 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
9688
9689         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
9690         Create wnumstr as well as numstr to support wide character output
9691         correctly.
9692
9693 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9694
9695         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9696         modification and move it...
9697         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9698         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9699         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9700         switch to $(LD) on sparc-linux.
9701
9702 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9703
9704         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9705         and setresuid from sysdep_routines.
9706
9707 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9708
9709         * manual/Makefile (chapters): Add resource.
9710
9711         * manual/time.texi: Move section on resources to...
9712         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9713         and vtimes.
9714         * manual/setjmp.texi: Adjust back reference.
9715         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9716
9717         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9718         definition.
9719         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9720         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9721         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9722         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9723         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9724         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9725         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9726         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9727         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9728         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9729         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9730         * sysdeps/unix/sysv/aix/Implies: New file.
9731         * sysdeps/unix/sysv/aix/Versions: New file.
9732         * sysdeps/unix/sysv/aix/bind.c: New file.
9733         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9734         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9735         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9736         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9737         * sysdeps/unix/sysv/aix/chdir.c: New file.
9738         * sysdeps/unix/sysv/aix/chmod.c: New file.
9739         * sysdeps/unix/sysv/aix/chroot.c: New file.
9740         * sysdeps/unix/sysv/aix/creat.c: New file.
9741         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9742         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9743         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9744         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9745         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9746         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9747         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9748         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9749         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9750         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9751         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9752         * sysdeps/unix/sysv/aix/link.c: New file.
9753         * sysdeps/unix/sysv/aix/madvise.c: New file.
9754         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9755         * sysdeps/unix/sysv/aix/mknod.c: New file.
9756         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9757         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9758         * sysdeps/unix/sysv/aix/msgget.c: New file.
9759         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9760
9761 2000-04-17  Andreas Jaeger  <aj@suse.de>
9762
9763         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9764         as suggested by Ulrich Drepper.
9765         (__dl_runtime_resolve): Remove unused variable, initialize sym
9766         directly.
9767         (RTLD_START): Document OFFSET_GP_GOT.
9768         (OFFSET_GP_GOT): New magic value.
9769         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9770         (elf_machine_got_rel): Only declare strtab if needed.
9771         (elf_machine_relplt): Removed, it's not needed.
9772         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9773
9774         * sysdeps/mips/add_n.S: Add newline at EOF.
9775         * sysdeps/mips/rshift.S: Likewise.
9776         * sysdeps/mips/mul_1.S: Likewise.
9777         * sysdeps/mips/lshift.S: Likewise.
9778         * sysdeps/mips/addmul_1.S: Likewise.
9779
9780 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9781
9782         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9783
9784         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9785         * elf/dl-lookup.c: Likewise.
9786         * elf/dl-init.c (_dl_init): Likewise.
9787         * elf/dl-fini.c (_dl_fini): Likewise.
9788         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9789         * elf/dl-close.c (_dl_close): Likewise.
9790         * elf/rtld.c (_dl_start_final): Likewise.
9791
9792         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9793
9794 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9795
9796         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9797         only fall back on using Linux.
9798
9799         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9800         Before testing versions check that we actually loaded the object
9801         and whether we are in trace mode.  If not loaded during tracing don't
9802         test versions in this object.
9803         (_dl_check_all_versions): Take new parameter and pass to
9804         _dl_check_map_versions.
9805         * sysdeps/generic/ldsodefs.h: Update prototypes for
9806         _dl_check_all_versions and _dl_check_map_versions.
9807         * elf/rtld.c (struct version_check_args): Add dotrace.
9808         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9809         (dl_main): Pass info about trace mode to version_check_doit.
9810         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9811         _dl_check_all_versions.
9812
9813         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9814         and getutmpx.
9815         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9816
9817         * manual/argp.texi: Document index parameter of argp_parse.
9818         Fix typo.
9819         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9820
9821 2000-04-14  Andreas Jaeger  <aj@suse.de>
9822
9823         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9824         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9825
9826         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9827
9828 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9829
9830         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9831         compat_symbol call for old adjtime.
9832
9833         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9834         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9835
9836         * posix/Makefile (headers): Add spawn.h.
9837         (distribute): Add spawn_int.h.
9838         (routines): Add spawn_faction_init, spawn_faction_destroy,
9839         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9840         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9841         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9842         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9843         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9844         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9845         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9846         posix_spawnattr_init, posix_spawnattr_destroy,
9847         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9848         posix_spawnattr_getflags, posix_spawnattr_setflags,
9849         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9850         and posix_spawnp.
9851         * posix/spawn.c: New file.
9852         * posix/spawn.h: New file.
9853         * posix/spawn_faction_addclose.c: New file.
9854         * posix/spawn_faction_adddup2.c: New file.
9855         * posix/spawn_faction_addopen.c: New file.
9856         * posix/spawn_faction_destroy.c: New file.
9857         * posix/spawn_faction_init.c: New file.
9858         * posix/spawn_int.h: New file.
9859         * posix/spawnattr_destroy.c: New file.
9860         * posix/spawnattr_getdefault.c: New file.
9861         * posix/spawnattr_getflags.c: New file.
9862         * posix/spawnattr_getpgroup.c: New file.
9863         * posix/spawnattr_getschedparam.c: New file.
9864         * posix/spawnattr_getschedpolicy.c: New file.
9865         * posix/spawnattr_getsigmask.c: New file.
9866         * posix/spawnattr_init.c: New file.
9867         * posix/spawnattr_setdefault.c: New file.
9868         * posix/spawnattr_setflags.c: New file.
9869         * posix/spawnattr_setpgroup.c: New file.
9870         * posix/spawnattr_setschedparam.c: New file.
9871         * posix/spawnattr_setschedpolicy.c: New file.
9872         * posix/spawnattr_setsigmask.c: New file.
9873         * posix/spawni.c: New file.
9874         * posix/spawnp.c: New file.
9875
9876         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9877         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9878
9879 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9880
9881         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9882         * malloc/malloc.c: Implement posix_memalign for glibc.
9883         * include/stdlib.h: Add prototype for __posix_memalign.
9884         * stdlib/stdlib.h: Add prototype for posix_memalign.
9885
9886 2000-04-14  Andreas Jaeger  <aj@suse.de>
9887
9888         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9889         symidx correctly.
9890         (elf_machine_got_rel): Cast sym correctly.
9891
9892         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9893         * sysdeps/mips/addmul_1.S: Likewise.
9894         * sysdeps/mips/lshift.S: Likewise.
9895         * sysdeps/mips/mul_1.S: Likewise.
9896         * sysdeps/mips/rshift.S: Likewise.
9897         * sysdeps/mips/sub_n.S: Likewise.
9898         * sysdeps/mips/submul_1.S: Likewise.
9899
9900         * stdlib/stdlib.h: Fix typo in comment.
9901
9902         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9903         2.2 for libdl, ld and libm.
9904
9905         * sysdeps/generic/madvise.c: Fix typos.
9906
9907         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9908
9909         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9910
9911         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9912         warnings.
9913
9914 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9915
9916         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9917         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9918         Make old name weak alias.
9919         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9920         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9921         Make old name weak alias.
9922         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9923
9924         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9925         posix_fallocate, and posix_fallocate64.
9926         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9927         posix_fallocate, and posix_fallocate64.
9928         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9929         posix_fallocate, and posix_fallocate64.
9930         * sysdeps/generic/fadvise.c: New file.
9931         * sysdeps/generic/fadvise64.c: New file.
9932         * sysdeps/generic/fallocate.c: New file.
9933         * sysdeps/generic/fallocate64.c: New file.
9934         * sysdeps/posix/fallocate.c: New file.
9935         * sysdeps/posix/fallocate64.c: New file.
9936         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9937         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9938         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9939         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9940         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9941         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9943         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9944         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9945
9946         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9947         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9948
9949 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9950
9951         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9952         * misc/sys/mman.h (posix_madvise): Add prototype.
9953         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9954         old name and posix_madvise weak aliases.
9955         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9956         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9957         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9958         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9959         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9960         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9961         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9962
9963 2000-04-13  Andreas Jaeger  <aj@suse.de>
9964
9965         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9966         versioning.
9967         (elf_machine_got_rel): Only add runtime display if needed.
9968         (elf_machine_got_rel): Handle symbol versioning.
9969
9970 2000-04-13  Andreas Jaeger  <aj@suse.de>
9971
9972         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9973
9974         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9975         default.
9976
9977         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9978         with some applications.
9979         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9980
9981         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9982         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9983         * sysdeps/mips/setjmp.S: Likewise.
9984
9985         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9986
9987 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9988
9989         * posix/globtest.sh: Work around inconsistency with expanding ~/
9990         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9991
9992 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * posix/getconf.c: Add support for many more POSIX options.
9995         * sysdeps/posix/sysconf.c: Likewise.
9996         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9997         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9998         _POSIX_SHELL.
9999         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
10000         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
10001         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
10002         CLOCK_THREAD_CPUTIME_ID.
10003         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
10004         CLOCK_PROCESS_CPUTIME_ID.
10005         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
10006         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
10007         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
10008         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
10009
10010         * malloc/Makefile (tests): Add tst-calloc.
10011         * malloc/tst-calloc.c: New file.
10012
10013         * sysdeps/arm/libm-test-ulps: New file.
10014
10015         * malloc/malloc.c: Undo all of today's changes.
10016
10017         * locale/programs/locale.c (show_info): Don't try to look into
10018         data for LC_ALL (there is none).
10019
10020         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
10021         avoid writing over boundary.
10022         Patch by Greg McGary <gkm@eng.ascend.com>.
10023
10024         * sysdeps/arm/memprof.h: New file.
10025
10026 2000-04-12  Andreas Jaeger  <aj@suse.de>
10027
10028         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
10029
10030         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
10031         for memmem declaration.
10032
10033 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
10034
10035         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
10036         to -1.
10037         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
10038
10039         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
10040         mode is invalid.
10041         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
10042         Patch by Bart Veer <bartv@redhat.com>.
10043
10044         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
10045         function interface.
10046
10047 2000-04-11  Andreas Jaeger  <aj@suse.de>
10048
10049         * sysdeps/mips/dl-machine.h: Update some comments.
10050         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
10051
10052 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10053
10054         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
10055         _POSIX_SHARED_MEMORY_OBJECTS.
10056
10057         * rt/Makefile (tests): Add tst-shm.
10058         Add rules to generate tst-shm.
10059         * rt/tst-shm.c: New file.
10060
10061         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
10062         for descriptor.
10063
10064         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
10065         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
10066         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
10067         * sysdeps/generic/shm_open.c: New file.
10068         * sysdeps/generic/shm_unlink.c: New file.
10069         * sysdeps/unix/sysv/linux/shm_open.c: New file.
10070         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
10071         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
10072          __endmntent, __getmntent_r, __setmntent, and __statfs.
10073
10074         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
10075         fragmentation by allocating new memory at the end instead of
10076         reallocating.
10077
10078         * posix/globtest.sh: Fix last change.
10079
10080 2000-04-10  Philip Blundell  <philb@gnu.org>
10081
10082         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
10083         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
10084         IPV6_DROP_MEMBERSHIP.
10085         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
10086         Likewise.
10087
10088 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10089
10090         * elf/readlib (process_file): Close streams in case of an error.
10091
10092 2000-04-09  Andreas Jaeger  <aj@suse.de>
10093
10094         * elf/readlib.c (process_file): Check if file is big enough to
10095         contain aout and ELF headers.
10096         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
10097
10098 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
10099
10100         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
10101
10102 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
10103
10104         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
10105         stream unbuffered.
10106         * rt/Makefile (tests): Add tst-clock.
10107         Add rules to build tst-clock.
10108         * rt/tst-clock.c: New file.
10109         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
10110         about initialization of nsec.
10111         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
10112         about initialization of freq.  Set retval to zero if successful.
10113         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
10114
10115 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10116
10117         * Versions.def (librt): Add GLIBC_2.2.
10118         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
10119         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
10120         timer_getoverr, timer_gettime, and timer_settime.
10121         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
10122         clock_settime, timer_create, timer_delete, timer_getoverrun,
10123         timer_gettime, and timer_settime.
10124         * sysdeps/generic/clock_getcpuclockid.c: New file.
10125         * sysdeps/generic/get_clockfreq.c: New file.
10126         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
10127         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
10128         * sysdeps/mach/hurd/i386/bits/time.h: New file.
10129         * sysdeps/unix/i386/i586/clock_getres.c: New file.
10130         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
10131         * sysdeps/unix/i386/i686/Implies: New file.
10132         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
10133         * time/Makefile (routines): Move clock_getres, clock_gettime,
10134         clock_settime, timer_create, timer_delete, timer_getoverr,
10135         timer_gettime, and timer_settime to rt/Makefile.
10136         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
10137         clock_settime, timer_create, timer_delete, timer_getoverrun,
10138         timer_gettime, and timer_settime.
10139         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
10140
10141         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
10142         and not const as attribute name.
10143
10144 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
10145
10146         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
10147
10148 2000-04-10  Andreas Schwab  <schwab@suse.de>
10149
10150         * posix/globtest.sh: Skip tests that depend on unreadable
10151         directories if run as root.
10152
10153 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
10154
10155         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
10156         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
10157
10158 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10159
10160         * sysdeps/unix/clock_gettime.c: New file.
10161         * sysdeps/unix/clock_settime.c: New file.
10162         * sysdeps/posix/clock_getres.c: New file.
10163
10164         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
10165
10166         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
10167         lseek call be passing in a buffer which never allow a successful
10168         first getdents syscall if not at leas the initial entry can be
10169         stored in the user buffer.
10170
10171         * localedata/Makefile: Add rules to clean up directories created by
10172         new strfmon tests.
10173
10174 2000-04-09  Geoff Clare  <gwc@unisoft.com>
10175
10176         * localedata/tst-fmon.data: Added new tests for strfmon()
10177         using test locales with all combinations of cs_precedes,
10178         sign_posn and sep_by_space.
10179         * localedata/tst-fmon.sh: Updated to support the new tests.
10180         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
10181         the localedef source for the new strfmon() test locale.
10182         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
10183         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
10184         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
10185         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
10186         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
10187         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
10188         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
10189         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
10190         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
10191         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
10192         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
10193         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
10194         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
10195         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
10196
10197         * stdlib/strfmon.c: Correct problems with missing or extra
10198         spaces for unusual combinations of sign_posn and sep_by_space.
10199         Improved left-precision alignment code.
10200
10201 2000-04-07  Andreas Jaeger  <aj@suse.de>
10202
10203         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
10204
10205 2000-04-10  Andreas Jaeger  <aj@suse.de>
10206
10207         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
10208
10209 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
10210
10211         Implement handling of restartable conversion functions according to
10212         ISO C.
10213         * iconv/gconv.h (__gconv_fct): Add additional parameter.
10214         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
10215         * iconv/gconv.c: Pass additional parameter to conversion function.
10216         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
10217         (internal_ucs4le_loop_single): New function.
10218         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
10219         (__gconv_transform_internal_ascii): Likewise.
10220         (__gconv_transform_internal_utf8): Likewise.
10221         (__gconv_transform_utf8_internal): Likewise.
10222         (__gconv_transform_ucs2_internal): Likewise.
10223         (__gconv_transform_internal_ucs2): Likewise.
10224         (__gconv_transform_ucs2reverse_internal): Likewise.
10225         (__gconv_transform_internal_ucs2reverse): Likewise.
10226         (internal_ucs4le_loop_unaligned): Before return
10227         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
10228         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
10229         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
10230         * iconv/loop.c: Fit in definition of function to convert one character
10231         for processing of left-over bytes from the state object.
10232         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
10233         inend to match names in loop functions.
10234         (RESET_INPUT_BUFFER): Change apprpriately.
10235         (gconv): If needed, call function to process bytes from the state
10236         object.  Similar at the end: store left over bytes if input is
10237         incomplete.
10238         Take extra argument and add new argument to all calls of the
10239         conversion function.
10240         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
10241         information in the state object to not conflict with length count.
10242         * iconvdata/iso-2022-jp.c: Likewise.
10243         * iconvdata/iso-2022-kr.c: Likewise.
10244         * iconvdata/unicode.c: Adjust for change change in parameters of
10245         skeleton function.
10246         * iconvdata/utf-16.c: Likewise.
10247         * libio/iofwide.c: Add new parameter to all calls of conversion
10248         function.
10249         * wcsmbs/btowc.c: Likewise.
10250         * wcsmbs/mbrtowc.c: Likewise.
10251         * wcsmbs/mbsnrtowcs.c: Likewise.
10252         * wcsmbs/mbsrtowcs.c: Likewise.
10253         * wcsmbs/wcrtomb.c: Likewise.
10254         * wcsmbs/wcsnrtombs.c: Likewise.
10255         * wcsmbs/wcsrtombs.c: Likewise.
10256         * wcsmbs/wctob.c: Likewise.
10257
10258         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
10259         MAX_NEEDED_INPUT.
10260
10261 2000-04-07  Andreas Jaeger  <aj@suse.de>
10262
10263         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
10264         newer kernels.
10265
10266 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
10267
10268         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
10269         element a union to allow byte access.
10270         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
10271         mbstate_t.
10272         * iconvdata/iso-2022-jp.c: Likewise.
10273         * iconvdata/iso-2022-kr.c: Likewise.
10274         * wcsmbs/mbsinit.c: Likewise.
10275         * stdlib/mblen.c: Likewise.
10276         * stdio-common/printf-parse.h: Likewise.
10277
10278 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10279
10280         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
10281         kernel does not allow relative seeks on descriptors associated
10282         with directories.  Go back to get the position in the directory
10283         every time we enter the function.  Return -1 and set errno if one
10284         entry could be read from the kernel but does not fit into the
10285         buffer passed in by the user.
10286
10287         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
10288         Support ..(2).. ellipsis.
10289         (parse_charmap): Recognize ..(2).. etc and pass step down.
10290         Correctly generate names for UCS4 characters.
10291
10292         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
10293         (ctype_finish): We know the wide character value for <SP>,
10294         don't search.
10295         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
10296         (charclass_ucs4_ellipsis): Likewise.
10297         (read_translit_ignore_entry): Store ellipsis step.
10298         (ctype_read): Recognize ..(2).. etc and pass step down.
10299
10300         * locale/programs/linereader.c (lr_token): When seeing comment
10301         character ignore only rest of line in sources but stop at escaped
10302         newline.
10303         Recognize ..(2).. and ....(2).....
10304
10305         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
10306         and tok_ellipsis4_2.
10307
10308 2000-04-06  Andreas Jaeger  <aj@suse.de>
10309
10310         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
10311         removed, remove it here also.
10312         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
10313         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
10314         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
10315         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
10316
10317 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
10318
10319         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
10320         include bits/sigcontext.h.
10321         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10322
10323 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
10324
10325         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
10326         collation symbol definition.  Value in quivalence definition must
10327         be defined, don't check that it is not.
10328
10329         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
10330         values as character names.
10331
10332         * locale/programs/ld-ctype.c (get_character): Handle missing
10333         repertoire map correctly.
10334
10335 2000-04-05  Cristian Gafton  <gafton@redhat.com>
10336
10337         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
10338         because it is used in generic code.
10339         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
10340         * wcsmbs/wcwidth.h: Declare __ctype32_b.
10341         * intl/gettext.c: Include <locale.h>.
10342         * intl/ngettext.c: Likewise.
10343
10344 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
10345
10346         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
10347         socklen_t type for size.
10348         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
10349         init function interface.
10350         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10351         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
10352         sys/ucontext.h.
10353         (__jmp_buf): Declare the whole type structure here, don't use
10354         ucontext.
10355
10356 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
10357
10358         * iconv/skeleton.c (put16u): Fix typo.
10359         Reported by Bruno Haible <haible@ilog.fr>.
10360
10361         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
10362         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
10363         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
10364         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
10365         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
10366         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
10367
10368         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
10369         * Makefile (distribute): Add abi-versions.awk and
10370         firstversions.awk.
10371         Patches by Torsten Duwe <duwe@caldera.de>.
10372
10373 2000-04-05  Andreas Schwab  <schwab@suse.de>
10374
10375         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
10376
10377 2000-04-05  Andreas Schwab  <schwab@suse.de>
10378
10379         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
10380         entry point, used on Hurd.
10381
10382 2000-04-04  Andreas Jaeger  <aj@suse.de>
10383
10384         * intl/Makefile: Only run the gettext test with shared libraries.
10385
10386 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10387
10388         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10389         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10390
10391 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
10392
10393         * Makeconfig: Undo last change.
10394         * configure.in: If --disable-shared was given, don't set VERSIONING,
10395         don't define DO_VERSIONING, and don't give scare warning for no
10396         versioning.
10397         * configure: Regenerated.
10398
10399 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
10400
10401         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
10402
10403 2000-04-04  Andreas Jaeger  <aj@suse.de>
10404
10405         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
10406
10407 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
10408
10409         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
10410         STV_HIDDEN and STV_INTERNAL during lookup.
10411         (profile_fixup): Likewise.
10412         * elf/dl-reloc.c (RESOLVE): Likewise.
10413
10414         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
10415         unaligned so that it compiles for system which need unaligned
10416         access handling.
10417
10418 2000-04-04  Andreas Schwab  <schwab@suse.de>
10419
10420         * elf/cache.c (print_entry): Only look at the type field when
10421         printing the type.
10422
10423 2000-04-04  Andreas Schwab  <schwab@suse.de>
10424
10425         * iconvdata/big5.c (BODY): Fix typo.
10426
10427 2000-04-04  Andreas Schwab  <schwab@suse.de>
10428
10429         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
10430         function interface.  Remove unused _dl_start_user entry point.
10431
10432 2000-04-03  Andreas Jaeger  <aj@suse.de>
10433
10434         * include/arpa/inet.h (__inet_aton): Add protoype.
10435
10436 2000-04-01  Andreas Jaeger  <aj@suse.de>
10437
10438         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
10439
10440         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
10441         * sysdeps/mach/mips/thread_state.h: Likewise.
10442
10443         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
10444         * sysdeps/generic/fegetenv.c: Likewise.
10445         * sysdeps/generic/fesetenv.c: Likewise.
10446         * sysdeps/generic/feupdateenv.c: Likewise.
10447         * sysdeps/generic/fraiseexcpt.c: Likewise.
10448         * sysdeps/generic/fsetexcptflg.c: Likewise.
10449         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
10450         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10451         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10452         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10453
10454 2000-04-02  H.J. Lu  <hjl@gnu.org>
10455
10456         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
10457
10458 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10459
10460         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
10461         (add_name_to_object): Add cast in malloc call.
10462         (fillin_rpath): Optimize loop to initialize ->status a bit.
10463
10464         * sysdeps/i386/dl-machine.h: Undo last change.
10465         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
10466         Restore %edx register after call here.
10467
10468         * sysdeps/arm/atomicity.h: New file.
10469         Contributed by Jesper Skov <jskov@redhat.com>.
10470
10471 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
10472
10473         * Makeconfig (preprocess-versions): Undo last change.
10474         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
10475
10476         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
10477         here, before we might move the stack.
10478         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
10479         (init1): And not here.
10480
10481         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
10482         change, to restore argc value in call-clobbered register after
10483         RTLD_START_SPECIAL_INIT, which will contain a call.
10484
10485         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
10486         allocating and initializing L->l_initfini.
10487
10488         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
10489
10490 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10491
10492         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
10493         RUNPATH, RPATH, and LD_LIBRARY_PATH.
10494         (open_path): Change type of fourth parameter.  Make pointer to array
10495         of pointers.  Create variable dirs with original type.
10496         Track whether any directory for the object exists and if not,
10497         change *DIRSP to (void*) -1 to signal there is no such search path.
10498         (_dl_map_object): Change all calls of open_path.
10499         Rewrite decompose_rpath calls.
10500
10501 2000-03-31  Andreas Schwab  <schwab@suse.de>
10502
10503         * string/strfry.c: Declare STATE as array of char instead of int
10504         and do not initialize it (done by initstate_r).  Pass correct
10505         size.
10506
10507 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
10508
10509         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
10510
10511         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
10512         instruction out of the code.
10513
10514 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10515
10516         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
10517         element at this position.
10518
10519         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
10520         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
10521         l_reldeps elements.
10522         * elf/dl-lookup.c (add_dependency): New function.
10523         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
10524         dynamically loaded object.
10525         (_dl_lookup_symbol_skip): Likewise.
10526         (_dl_lookup_versioned_symbol): Likewise.
10527         (_dl_lookup_versioned_symbol_skip): Likewise.
10528         * elf/dl-open.c: Don't define _dl_load_lock here...
10529         * elf/rtld.c: ...but here...
10530         * elf/dl-support.c: ...and here.
10531         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
10532         through relocation.
10533         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
10534         relocations.
10535         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
10536         anymore.
10537         * dlfcn/glrefmain.c: Add one more debug message.
10538
10539         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
10540         command line.
10541         * Makerules (sysd-versions): Use ( ) instead of { }.
10542
10543         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
10544         optimize for the non-debugging case.
10545         * elf/dl-lookup.c: Likewise.
10546         * sysdeps/generic/libc-start.c: Likewise.
10547
10548 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
10549
10550         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
10551         (init1): Don't initialize __environ here, since init already does it.
10552         (first_init): New function, broken out of _init.
10553         (_hurd_stack_setup): Use it.
10554         [SHARED] (_dl_init_first): New function, renamed from old _init.
10555         (init1) [SHARED]: Don't call posixland_init here.
10556         (posixland_init): Take ENVP arg, so signature is usual for initializer.
10557         [SHARED] (_init): Define as alias for posixland_init.
10558         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
10559         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
10560         RTLD_START_SPECIAL_INIT before calling initializers.
10561         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
10562         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
10563         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
10564         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
10565
10566         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
10567         since we define the function with the name `tmpfile'.
10568
10569         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
10570         * hurd/Versions: Likewise.
10571
10572 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
10573
10574         * elf/dl-runtime.c (fixup): Fix typo in comment.
10575
10576         * resolv/netdb.h (getnameinfo): All length parameters are of type
10577         socklen_t.
10578         * inet/getnameinfo.c: Likewise.
10579
10580 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
10581
10582         * posix/unistd.h (socklen_t): Define if it has not yet happened.
10583         (gethostname): Change type of second parameter to socklen_t.
10584         * include/unistd.h (__gethostname): Change type of second
10585         parameter to socklen_t.
10586         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
10587         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
10588         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
10589         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
10590         Likewise.
10591         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
10592         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
10593         Allow definition elsewhere.
10594         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
10595         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
10596         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
10597         * sysdeps/generic/bits/types.h: Define __socklen_t.
10598         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
10599         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
10600         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
10601         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
10602         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
10603         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
10604         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
10605
10606         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
10607         (inet_lnaof): Likewise.
10608         (inet_netof): Likewise.
10609         (inet_network): Likewise.
10610         (inet_aton): Likewise.
10611         (inet_makeaddr): Change parameter types to in_addr_t.
10612         (inet_neta): Likewise.
10613         (inet_ntop): Change type of last parameter to socklen_t.
10614         (inet_aton): Only make available if __USE_MISC.
10615         (inet_neta): Likewise.
10616         (inet_net_ntop): Likewise.
10617         (inet_net_pton): Likewise.
10618         (inet_nsap_ntoa): Likewise.
10619
10620         * inet/in.h: Define in_port_t type.
10621         Define in_addr_t type.
10622         (struct in_addr): Use in_addr_t in definition.
10623         (IN_CLASSA): Use cast to in_addr_t.
10624         (IN_CLASSB): Likewise.
10625         (IN_CLASSC): Likewise.
10626         (IN_CLASSD): Likewise.
10627         (IN_EXPERIMENTAL): Likewise.
10628         (IN_BADCLASS): Likewise.
10629         (INADDR_ANY): Likewise.
10630         (INADDR_BROADCAST): Likewise.
10631         (INADDR_NONE): Likewise.
10632         (INADDR_LOOPBACK): Likewise.
10633         (INADDR_UNSPEC_GROUP): Likewise.
10634         (INADDR_ALLHOSTS_GROUP): Likewise.
10635         (INADDR_ALLRTRS_GROUP): Likewise.
10636         (INADDR_MAX_LOCAL_GROUP): Likewise.
10637         (struct sockaddr_in): Use in_port_t for sin_port element.
10638         (struct sockaddr_in6): Use in_port_t for sin6_port element.
10639         Use uint8_t instead of u_int8_t.
10640
10641         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
10642         Call __inet_aton instead of inet_aton.
10643         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
10644
10645         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
10646         (innetgr): Likewise.
10647         (struct addrinfo): Use socklen_t for ai_addrlen element.
10648
10649         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
10650         IPV6_RECVERR): New defines.
10651
10652         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
10653         * inet/getnetbyad.c: Likewise.
10654         * inet/getnetbyad_r.c: Likewise.
10655         * nis/nss_nis/nis-network.c: Likewise.
10656         * nis/nssplus_nis/nisplus-network.c: Likewise.
10657         * nss/nss_files/files-network.c: Likewise.
10658         * resolv/netdb.h: Define uint32_t if not already happened.
10659         Include bits/netdb.h.  Remove definition of struct netent.
10660         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
10661         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
10662         * sysdeps/generic/bits/netdb.h: New file.
10663         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
10664
10665         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
10666         (tests): Add glrefmain.
10667         Add rules to build modules and run tests.  Ignore result of glrefmain
10668         for now since it fails.
10669         * dlfcn/glrefmain.c: New file.
10670         * dlfcn/glreflib1.c: New file.
10671         * dlfcn/glreflib2.c: New file.
10672
10673         * test-skeleton.c: Include <string.h> for strsignal prototype.
10674
10675         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
10676         to be missing.
10677
10678         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
10679         former init-first.h.  Initialize __libc_multiple_libcs.
10680
10681 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10682
10683         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
10684         #if expression for use of unaligned function to the one used in
10685         the definition of these functions.
10686         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
10687         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
10688         (internal_ucs4le_loop_unaligned): New function.
10689
10690         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
10691         (tests): Add order.
10692         (module-names): Add dep1, dep2, dep3, and dep4.
10693         Add dependencies for dep* modules and order.
10694         Define rule for order.out which checks the result.
10695         * elf/dep1.c: New file.
10696         * elf/dep2.c: New file.
10697         * elf/dep3.c: New file.
10698         * elf/dep4.c: New file.
10699         * elf/order.c: New file.
10700
10701         * elf/dl-init.c: Fix typo in comment.
10702
10703 2000-03-31  Andreas Jaeger  <aj@suse.de>
10704
10705         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10706         init function interface.
10707         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10708
10709 2000-03-31  Andreas Jaeger  <aj@suse.de>
10710
10711         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10712         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10713         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10714         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10715         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10716
10717         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10718         anymore, update comment.
10719
10720         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10721
10722         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10723         SHLIB_COMPAT - the struct is always needed.
10724
10725 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10726
10727         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10728         * elf/dl-support.c: Define _dl_starting_up.
10729
10730 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10731
10732         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10733         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10734
10735         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10736
10737         * elf/Makefile (dl-routines): Remove preinit.
10738         * elf/Versions: Remove _dl_preinit.
10739         * elf/dl-preinit.c: Removed.  Move content into...
10740         * elf/dl-init.c: ...here.
10741         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10742
10743         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10744         elements.
10745
10746 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10747
10748         * stdlib/strfmon.c: Corrected problems with the code that
10749         sets default values for [np]_sep_by_space and
10750         [np]_sign_posn; also the new positive/negative alignment
10751         code from the previous patch was not quite right for
10752         [np]_sign_posn = 0.
10753
10754         * localedata/tst-fmon.data: Changes corresponding to the
10755         two sets of fixes made to stdlib/strfmon.c.
10756
10757 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10758
10759         * malloc/malloc.c: Declare bit flags UL so that they will not
10760         default to int size when being inverted.
10761
10762 2000-03-29  Andreas Jaeger  <aj@suse.de>
10763
10764         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10765         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10766
10767 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10768             Ralf Baechle <ralf@uni-koblenz.de>
10769
10770         * Makeconfig: Introduce new variable SHARED to mark code used in
10771         the shared library.
10772         * elf/dl-close.c: Use it instead of PIC.
10773         * elf/dl-load.c: Likewise.
10774         * elf/dl-open.c: Likewise.
10775         * hurd/geteuids.c: Likewise.
10776         * include/libc-symbols.h: Likewise.
10777         * include/shlib-compat.h: Likewise.
10778         * libio/freopen.c: Likewise.
10779         * linuxthreads/cancel.c: Likewise.
10780         * linuxthreads/pthread.c: Likewise.
10781         * linuxthreads/wrapsyscall.c: Likewise.
10782         * nss/nsswitch.c: Likewise.
10783         * stdio-common/vfprintf.c: Likewise.
10784         * sysdeps/arm/init-first.c: Likewise.
10785         * sysdeps/i386/init-first.c: Likewise
10786         * sysdeps/generic/init-first.c: Likewise.
10787         * sysdeps/generic/libc-start.c: Likewise.
10788         * sysdeps/mips/init-first.c: Likewise.
10789         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10790         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10791         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10792         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10793         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10794
10795         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10796
10797 2000-03-29  Andreas Jaeger  <aj@suse.de>
10798
10799         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10800         Use D_PTR to access relocated entries in l_info.
10801         (elf_machine_rela): Likewise.
10802
10803         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10804         Likewise.
10805         (elf_machine_rela): Likewise.
10806
10807         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10808         Likewise.
10809         (__elf_machine_fixup_plt): Likewise.
10810         (__process_machine_rela): Likewise.
10811
10812         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10813         (elf_machine_rela): Likewise.
10814
10815         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10816         (elf_machine_rel): Likewise.
10817
10818         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10819         (elf_machine_fixup_plt): Likewise.
10820         (elf_machine_rela): Likewise.
10821
10822 2000-03-29  Andreas Jaeger  <aj@suse.de>
10823
10824         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10825         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10826         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10827         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10828         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10829         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10830         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10831         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10832         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10833         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10834         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10835         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10836         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10837         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10838         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10839
10840         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10841         macros, remove K&R prototypes.
10842
10843 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10844
10845         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10846         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10847         (PR libc/1677).
10848
10849 2000-03-30  Andreas Jaeger  <aj@suse.de>
10850
10851         * misc/sys/cdefs.h: Remove K&R support.
10852
10853 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10854
10855         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10856         more cases.
10857         * iconv/loop.c: Likewise.
10858
10859 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10860
10861         * iconv/loop.c (put16): Remove __const. Fix access index.
10862         (put32): Remove __const. Use uint32_t instead of uint16_t.
10863         * iconv/skeleton.c: Likewise.
10864
10865 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10866
10867         * mach/Versions (libc: GLIBC_2.0)
10868         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10869         __vm_allocate on this.
10870         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10871         mutex- and spinlock-related symbols on this.
10872         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10873         New version set.  Lock-related symbols go here instead in this case.
10874         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10875         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10876         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10877         * hurd/Versions
10878         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10879         Put them here instead.
10880         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10881         New version set.  Those cthreads symbols go here instead in this case.
10882         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10883
10884 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10885
10886         * elf/dl-init.c (_dl_init): We don't need to call constructors
10887         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10888
10889         Implement dynamic determination of constructor/destructor order in
10890         the dynamic linker.
10891         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10892         (GLIBC_2.2): Add _dl_init.
10893         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10894         r_duplist is not anymore allocated separately.  l_initfini is and
10895         therefore free it if necessary.
10896         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10897         malloc block.  Otherwise allocate l_initfini list only.
10898         Put dependencies for the object in l_initfini list.
10899         Sort dependencies for the object to be loaded topologically.
10900         * elf/dl-fini.c: Before running the destructors sort the topologically.
10901         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10902         call constructors instead of iterating over the pointers.  Get list of
10903         objects for which to run constructors from l_initfini element. Accept
10904         argc, argv, and env as parameters and pass them to the constructors.
10905         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10906         with size of dynamic section.
10907         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10908         _dl_init_next and calling constructors ourself.
10909         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10910         Take argc, argv, and env as parameters and pass them to the
10911         constructors.  Rewrite to call all constructors and not iterate over
10912         the pointers.
10913         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10914         precompute l_initcount and l_preinitcount.
10915         * elf/link.h (struct link_map): Add l_ldnum member.
10916         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10917         l_initcount, and l_preinitcount.  Add l_initfini.
10918         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10919         one for _dl_init.
10920         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10921         function interface.
10922         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10923         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10924         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10925         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10926         conventions now match.
10927
10928         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10929         effect for shared objects.  Don't emit message and call only for
10930         static library.
10931
10932 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10933
10934         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10935         CSA_Z243.4-1985-1..UCS2.
10936         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10937         ISO-8859-10..UCS2.
10938
10939 2000-03-29  Andreas Jaeger  <aj@suse.de>
10940
10941         * include/unistd.h: Remove duplicate entry for __rmdir.
10942         Remove declaration of __mkdir since __mkdir is declared in
10943         sys/stat.h.
10944
10945         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10946         by Michael Deutschmann <michael@talamasca.ocis.net>.
10947
10948         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10949         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10950         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10951         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10952         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10953
10954 2000-03-28  Andreas Jaeger  <aj@suse.de>
10955
10956         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10957         declaration, the prototype is defined via bits/mathcalls.h.
10958         (__sincosf): Likewise.
10959         (__sincosl): Likewise.
10960         (ldexp): Likewise.
10961         (ldexpf): Likewise.
10962         (ldexpl): Likewise.
10963         (__finite): Likewise.
10964         (__inline_mathcodeNP): New macro without prototype
10965         declarations.
10966         (__inline_mathcodeNP2): Likewise.
10967         (__inline_mathcodeNP3): Likewise.
10968         (__inline_mathcodeNP_): Likewise.
10969         (__inline_mathcodeNP2_): Likewise.
10970         (__inline_mathcodeNP3_): Likewise.
10971         (__inline_mathopNP): Likewise.
10972         (__inline_mathop_declNP): Likewise.
10973         (__inline_mathop_declNP_): Likewise.
10974         (__inline_mathcode_): Use __inline_mathcodeNP_.
10975         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10976         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10977         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10978         (__expm1l): Don't define prototype, the prototype is defined via
10979         bits/mathcalls.h.
10980         (exp): Likewise.
10981         (__expl): Likewise.
10982         (tan): Likewise.
10983         (atan2): Likewise.
10984         (__atan2l): Likewise.
10985         (fmod): Likewise.
10986         (pow): Likewise.
10987         (fabsf): Likewise.
10988         (fabsl): Likewise.
10989         (__fabsl): Likewise.
10990         (asin): Likewise.
10991         (acos): Likewise.
10992         (sinh): Likewise.
10993         (cosh): Likewise.
10994         (tanh): Likewise.
10995         (floor): Likewise.
10996         (ceil): Likewise.
10997         (expm1): Likewise.
10998         (log1p): Likewise.
10999         (asinh): Likewise.
11000         (acosh): Likewise.
11001         (atanh): Likewise.
11002         (hypot): Likewise.
11003         (logb): Likewise.
11004         (fma): Likewise.
11005         (drem): Likewise.
11006         (sqrt): Likewise.
11007         (__sqrtl): Likewise.
11008         (sin): Likewise.
11009         (cos): Likewise.
11010         (atan): Likewise.
11011         (log): Likewise.
11012         (log10): Likewise.
11013         (asinh): Likewise.
11014         (log2): Likewise.
11015         (rint): Likewise.
11016
11017 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
11018
11019         * Makerules: If make variable md5 is defined to yes after
11020         generating dependencies generate MD5 sum for the object.
11021
11022         * iconv/gconv_builtin.h: Fix length in transformation definition
11023         for UNICODEBIG.
11024
11025         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
11026
11027         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
11028         allow as well reading from/writing to unaligned addresses on machines
11029         which don't support this in hardware.  Use FCTNAME macro to define
11030         function name.  Include the file a second time for platforms which
11031         need special unaligned handling.
11032         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
11033         to access potentially unaligned addresses.  These macros are intended
11034         to be used only outside the loops.
11035         (unaligned): New definition.  In case the machine can handle unaligned
11036         access define as zero.  Otherwise as a variable which is initialized
11037         as nonzero in case the buffer passed in at runtime is unaligned with
11038         respect to the character set encoding involved.
11039         Call aligned or unaligned looop functions according to unaligned
11040         variable.
11041         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
11042         of direct casting pointer to potentially handle unaligned memory
11043         accesses.
11044         * iconvdata/8bit-generic.c: Likewise.
11045         * iconvdata/ansi_x3.110.c: Likewise.
11046         * iconvdata/big5.c: Likewise.
11047         * iconvdata/euc-cn.c: Likewise.
11048         * iconvdata/euc-jp.c: Likewise.
11049         * iconvdata/euc-kr.c: Likewise.
11050         * iconvdata/euc-tw.c: Likewise.
11051         * iconvdata/gbk.c: Likewise.
11052         * iconvdata/iso-2022-cn.c: Likewise.
11053         * iconvdata/iso-2022-jp.c: Likewise.
11054         * iconvdata/iso-2022-kr.c: Likewise.
11055         * iconvdata/iso646.c: Likewise.
11056         * iconvdata/iso_6937-2.c: Likewise.
11057         * iconvdata/iso_6937.c: Likewise.
11058         * iconvdata/johab.c: Likewise.
11059         * iconvdata/sjis.c: Likewise.
11060         * iconvdata/t.61.c: Likewise.
11061         * iconvdata/uhc.c: Likewise.
11062         * iconvdata/unicode.c: Likewise.
11063         * iconvdata/utf-16.c: Likewise.
11064
11065         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
11066         prototypes.
11067
11068         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
11069         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
11070         public.
11071         * malloc/mcheck.h (mcheck_check_all): Declare.
11072
11073         * stdio-common/Makefile (tests): Add tst-obprintf.
11074
11075 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
11076
11077         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
11078         Declare pthread_sigmask.
11079
11080         * csu/version.c: Add 2000 to copyright years.
11081         Remove Emacs local variables section.
11082
11083 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11084
11085         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
11086         __gconv_transform_internal_ucs2little): Remove declarations.
11087         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
11088         __gconv_transform_internal_ucs2): Never need to bswap_16.
11089         (__gconv_transform_ucs2reverse_internal,
11090         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
11091
11092 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11093
11094         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
11095         obsoleting version not being defined at all, in which case the
11096         result is always true.
11097
11098         * Makeconfig (preprocess-versions): New canned sequence for running
11099         cpp on shlib-versions and the like.
11100         (soversions.i): Use it.
11101         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
11102         Versions.def and Versions files.
11103
11104 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11105
11106         * stdio-common/tst-obprintf.c (main): Add another check to see
11107         obstack_printf handling all possible beginnings of the block
11108         inside an obstack chunk.
11109
11110         * locale/programs/localedef.c: Use __malloc_initialize_hook to
11111         install mcheck handler.
11112
11113         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
11114         handling problem.
11115
11116 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
11117
11118         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
11119
11120         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
11121         on [HAVE_ELF && DO_VERSIONING].
11122
11123 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
11124
11125         * stdio-common/tst-obprintf.c: New file.
11126
11127 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11128
11129         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
11130         _IO_OVERFLOW directly instead through __overflow.
11131
11132         * locale/programs/localedef.c (construct_output_path): If path
11133         contains a / compute the end of the directory name correctly.
11134
11135         * include/features.h: Undef and document __USE_XOPEN2K.
11136
11137         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
11138         whenever a function is called.  Initiated by calling mcheck_pedantic
11139         instead of mcheck.
11140         * malloc/mcheck.h: Declare mcheck_pedantic.
11141         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
11142         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
11143         for now.
11144
11145 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11146
11147         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
11148         * dlfcn/dlopenold.c: Likewise.
11149         * nss/getXXbyYY_r.c: Likewise.
11150         * nss/getXXent_r.c: Likewise.
11151         * hurd/hurdinit.c: Likewise.
11152         * hurd/compat-20.c: Likewise.
11153         * libio/oldiofopen.c: Likewise.
11154         * libio/oldiofclose.c: Likewise.
11155         * libio/oldiofdopen.c: Likewise.
11156         * libio/oldfileops.c: Likewise.
11157         * libio/oldstdfiles.c: Likewise.
11158         * libio/oldiofsetpos.c: Likewise.
11159         * libio/oldiofgetpos.c: Likewise.
11160         * libio/oldiofgetpos64.c: Likewise.
11161         * libio/oldiofsetpos64.c: Likewise.
11162         * libio/oldiopopen.c: Likewise.
11163         * libio/oldpclose.c: Likewise.
11164         * libio/oldtmpfile.c: Likewise.
11165         * libio/freopen.c (freopen): Likewise.
11166         * libio/iofclose.c (_IO_new_fclose): Likewise.
11167
11168         * sysdeps/mach/sys/reboot.h: Include <features.h>.
11169         (reboot): Declare it.
11170
11171         * libio/Makefile (headers): Add bits/stdio-lock.h here.
11172
11173         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
11174
11175         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
11176
11177         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
11178         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
11179         We need this for the sbrk decl, which can be included without Unix98.
11180
11181 2000-03-20  Richard Henderson  <rth@cygnus.com>
11182
11183         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
11184         argument to yperr2nss is an int, not size_t.
11185         * posix/regex.c (print_partial_compiled_pattern): Cast all
11186         ptrdiff_t to long for printing.
11187         (print_compiled_pattern): Use Z for printing size_t.
11188         * posix/testfnm.c (tests): Avoid trigraphs.
11189         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
11190         Use a C comment, not an assembly comment.
11191
11192         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
11193         of __ASSUME_32BITUIDS.
11194
11195 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11196
11197         * libio/iofopncook.c: Remove K&R prototypes.
11198
11199 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
11200
11201         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
11202         an initial value of 1024 instead of RLIM_INFINITY.
11203
11204         * Versions.def (libmachuser, libhurduser): Remove these sections,
11205         since these libraries do not presently use symbol versions.
11206
11207         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
11208         is RLIM_INFINITY, return -1 instead.
11209
11210 2000-03-24  Andreas Jaeger  <aj@suse.de>
11211
11212         * Makefile (postclean): Added soversions.i.
11213
11214 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11215
11216         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
11217         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
11218         and _FPU_IEEE.  Change _FPU_RESERVED.
11219
11220 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
11221
11222         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
11223
11224 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11225
11226         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
11227         (gaih_inet): Remove unused duplicate variable.
11228
11229         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
11230         Don't use __libc_sa_len, which only exists for Linux.  Just handle
11231         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
11232         only flavors supported by this function anyway.
11233
11234 2000-03-24  Geoff Clare  <gwc@unisoft.com>
11235
11236         * stdlib/strfmon.c: Corrected problems with missing signs and
11237         missing or extra spaces; allow for sign strings longer than
11238         one character; add padding to ensure positive and negative
11239         formats are aligned when a left precision is used.
11240
11241 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
11242
11243         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
11244         Patch by John Mizel <John.Mizel@msdw.com>.
11245
11246 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
11247
11248         * manual/install.texi: Remove references to crypt add-on.
11249
11250 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
11251
11252         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
11253         section while taking the _hurd_rlimit_lock.
11254         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
11255
11256 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
11257
11258         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
11259         using $(LN_S).
11260
11261         * sysdeps/mach/hurd/if_index.c: New file.
11262
11263         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
11264         * sysdeps/gnu/net/if.h: here.
11265         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
11266         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
11267         * sysdeps/generic/net/if.h: New file.  Declares just the standard
11268         functions and `struct if_nameindex' type.
11269         * socket/Makefile (headers): Add net/if.h here.
11270         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
11271         * sysdeps/mach/hurd/Dist: Remove it here.
11272         * sysdeps/unix/sysv/linux/Dist: And here.
11273         * sysdeps/generic/if_index.c: Include <net/if.h>.
11274
11275 2000-03-24  Andreas Jaeger  <aj@suse.de>
11276
11277         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
11278         access relocated entries in l_info.
11279         (elf_machine_got_rel): Likewise.
11280         (elf_machine_runtime_setup): Likewise.
11281         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
11282         (elf_machine_runtime_setup): Likewise.
11283         (__dl_runtime_resolve): Likewise.
11284
11285 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
11286
11287         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
11288         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
11289         according to RFC 2553.
11290         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
11291         * inet/getnameinfo.c: Likewise.
11292         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11293
11294 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
11295
11296         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
11297         Remove no-op pointer increment.
11298
11299 2000-03-23  Andreas Jaeger  <aj@suse.de>
11300
11301         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
11302         follow change for libio.h from 2000-03-10.
11303
11304 2000-03-23  Andreas Jaeger  <aj@suse.de>
11305
11306         * elf/dl-addr.c: Adjust include paths for ldsodefs location
11307         change.
11308         * elf/dl-debug.c: Likewise.
11309         * elf/dl-deps.c: Likewise.
11310         * elf/dl-error.c: Likewise.
11311         * elf/dl-fini.c: Likewise.
11312         * elf/dl-init.c: Likewise.
11313         * elf/dl-load.c: Likewise.
11314         * elf/dl-lookup.c: Likewise.
11315         * elf/dl-minimal.c: Likewise.
11316         * elf/dl-object.c: Likewise.
11317         * elf/dl-open.c: Likewise.
11318         * elf/dl-preinit.c: Likewise.
11319         * elf/dl-profile.c: Likewise.
11320         * elf/dl-profstub.c: Likewise.
11321         * elf/dl-reloc.c: Likewise.
11322         * elf/dl-runtime.c: Likewise.
11323         * elf/dl-support.c: Likewise.
11324         * elf/dl-symbol.c: Likewise.
11325         * elf/dl-version.c: Likewise.
11326         * elf/rtld.c: Likewise.
11327         * elf/sprof.c: Likewise.
11328         * sysdeps/generic/dl-cache.c: Likewise.
11329         * sysdeps/generic/dl-origin.c: Likewise.
11330         * sysdeps/generic/dl-sysdep.c: Likewise.
11331         * sysdeps/generic/elf/backtracesyms.c: Likewise.
11332         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11333         * sysdeps/generic/libc-start.c: Likewise.
11334         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
11335         * sysdeps/powerpc/dl-machine.c: Likewise.
11336         * sysdeps/powerpc/elf/libc-start.c: Likewise.
11337         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11338         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11339         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
11340
11341         * elf/ldsodefs.h: Move file to ...
11342         * sysdeps/generic/ldsodefs.h: ... here.
11343
11344         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
11345
11346         * sysdeps/mips/elf/ldsodefs.h: New file.
11347
11348         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
11349         entries in l_info.
11350         (_dl_check_map_versions): Likewise.
11351         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
11352         * elf/dl-load.c (_dl_init_paths): Likewise.
11353         (_dl_map_object): Likewise.
11354         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
11355         (elf_get_dynamic_info): Likewise.
11356         * elf/do-lookup.h (FCT): Likewise.
11357         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
11358         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
11359         * elf/dl-addr.c (_dl_addr): Likewise.
11360         * elf/dl-runtime.c (profile_fixup): Likewise.
11361         (fixup): Likewise.
11362         * elf/dl-init.c (_dl_init_next): Likewise.
11363         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
11364         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
11365         (DISTINGUISH_LIB_VERSIONS): Likewise.
11366         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
11367         (elf_machine_rel): Likewise.
11368
11369         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
11370         for writable dynamic section.
11371
11372 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
11373
11374         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
11375         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
11376
11377 2000-03-22  Andreas Jaeger  <aj@suse.de>
11378
11379         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
11380         from latest Linux kernel.
11381
11382 2000-03-21  Andreas Jaeger  <aj@suse.de>
11383
11384         * Versions.def: Add version 2.1.4.
11385
11386 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11387
11388         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
11389         * libio/oldiofopen.c: Likewise.
11390         * libio/oldiofclose.c: Likewise.
11391         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11392
11393 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
11394
11395         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
11396         indicating the first version set to obsolete the conditionalized code.
11397         (compat_symbol): New macro.
11398         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
11399         rhs be the ABI_* macro for the subsuming version.  Assign increasing
11400         integer values to the ABI_* macros for supported versions.
11401         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
11402         compat_symbol macro.
11403
11404 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11405
11406         * nscd/connections.c (nscd_run): Pretty print.
11407         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
11408
11409         * manual/charset.texi: Fix typos.  Rephrase.
11410         * manual/process.texi: Likewise.
11411         * manual/signal.texi: Likewise.
11412         Patches by Mike Coleman <mkc@kc.net>.
11413
11414         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
11415         versions.
11416         * libio/iofdopen.c: Likewise.
11417         * libio/iofgetpos.c: Likewise.
11418         * libio/iofgetpos64.c: Likewise.
11419         * libio/iofopen.c: Likewise.
11420         * libio/iofsetpos.c: Likewise.
11421         * libio/iofsetpos64.c: Likewise.
11422         * libio/iopopen.c: Likewise.
11423         * libio/oldiofopen.c: Likewise.
11424         * libio/pclose.c: Likewise.
11425         * sysdeps/gnu/siglist.c: Likewise.
11426         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
11427
11428         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
11429         chance to expand VERSION_##lib##_##version.
11430
11431         * libio/fileops.c: Use new macros from shlib-compat.h to define
11432         versions.
11433         * libio/iofclose.c: Likewise.
11434         * libio/oldiofclose.c: Likewise.
11435         Patch by Roland McGrath <roland@frob.com>.
11436
11437 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
11438
11439         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
11440         Lay out struct sigcontext according to what really gets passed on
11441         the stack.
11442         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
11443         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
11444         (prgregset_t, prfpregset_t): Define to elf_* types.
11445         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
11446         Define to correct value.
11447         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
11448         sigcontext.
11449         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
11450
11451 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
11452
11453         * scripts/firstversions.awk: Allow multiple version sets in the
11454         "earliest version" specification, meaning that version sets in the
11455         gaps between listed versions should be folded into the earliest later
11456         version that is explicitly listed.
11457         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
11458         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
11459
11460 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
11461
11462         * iconv/gconv_builtin.c: Include <endian.h>.
11463         * iconv/gconv_builtin.h: Add UCS-BE aliases.
11464         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
11465         according to current platform.
11466         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
11467         __gconv_transform_internal_ucs2reverse, and
11468         __gconv_transform_internal_ucs4le.
11469         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
11470         __gconv_transform_ucs2reverse_internal and
11471         __gconv_transform_internal_ucs2reverse.
11472         * iconvdata/Makefile (modules): Add UNICODE.
11473         (distribute): Add unicode.c.
11474         * iconvdata/gconv-modules: Add definitions for UNICODE module.
11475         * iconvdata/unicode.c: New file.
11476
11477         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
11478         determine byte order of input and convert accordingly.
11479
11480         * iconvdata/utf-16.c (gconv_init): Fix typo.
11481
11482 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11483
11484         * iconvdata/gconv-modules: Fix typo.
11485
11486         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
11487         more messages.
11488
11489         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
11490
11491 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11492
11493         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
11494
11495 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11496
11497         * misc/Makefile (routines): Add mincore.
11498
11499 2000-03-20  Andreas Jaeger  <aj@suse.de>
11500
11501         * sysdeps/generic/mincore.c: New stub file.
11502
11503         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
11504         from latest Linux kernel.
11505
11506 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
11507
11508         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
11509         _SC_GETPW_R_SIZE_MAX.
11510
11511 2000-03-20  Richard Henderson  <rth@cygnus.com>
11512
11513         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
11514         in GLIBC_2.1.4.
11515
11516 2000-03-20  Richard Henderson  <rth@cygnus.com>
11517
11518         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
11519         of arithmetic instructions.
11520
11521         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
11522         with the fpcr.  Protect from INV exception.
11523         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
11524         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
11525         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
11526
11527         * sysdeps/alpha/fpu/s_copysign.c: New.
11528         * sysdeps/alpha/fpu/s_copysignf.c: New.
11529         * sysdeps/alpha/fpu/s_fabs.c: New.
11530         * sysdeps/alpha/fpu/s_fabsf.c: New.
11531         * sysdeps/alpha/fpu/s_rint.c: New.
11532         * sysdeps/alpha/fpu/s_rintf.c: New.
11533
11534         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
11535
11536         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
11537         Kill sethae.
11538         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
11539         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
11540         Use physical addresses not KSEG addresses.
11541         (io_system): Add PYXIS.
11542         (io): Remove hae.reg, sys, hae_shift.
11543         (stb_mb, stw_mb, stl_mb, __sethae): New.
11544         (inline_outb, inline_outw, inline_outl): Don't set hae.
11545         (inline_inb, inline_inw, inline_inl): Likewise.
11546         (dense_sethae): New null function.
11547         (struct cpuinfo_data): New.
11548         (process_cpuinfo): Use local and stack variables, not static.
11549         Move readlink check here from init_iosys.
11550         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
11551         (_iopl): Simplify.
11552         (_hae_shift): Calculate it here.
11553         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
11554         add pciconfig_iobase.
11555
11556 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
11557
11558         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
11559         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
11560
11561         * scripts/versions.awk: Fixed version renaming code to distinguish
11562         libraries properly.
11563
11564 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11565
11566         * include/stdlib.h: Add prototype for __cxa_atexit.
11567
11568         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
11569         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
11570
11571 2000-03-17  Cristian Gafton  <gafton@redhat.com>
11572
11573         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
11574         existing rtld-installed-name.
11575         ($(rtld-installed-name)): Request libc-$(version) be installed too.
11576         replace existing rtld-installed-name using $(symbolic-link-prog).
11577
11578 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11579
11580         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
11581         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
11582         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
11583         but not the former.
11584
11585 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
11586
11587         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
11588         glob64.  Since there is no glob64 in the LFS proposal applications
11589         can assume that glob handles LFS situations.  glob64 is only needed
11590         if alternative filesystem functions are used.
11591
11592 2000-03-19  Geoff Clare  <gwc@unisoft.com>
11593
11594         * sysdeps/generic/glob.c: Correct gl_pathc value returned
11595         when GLOB_DOOFFS is set; correct handling of patterns
11596         containing escaped wildcards (and no unescaped ones);
11597         GLOB_ERR flag was being ignored in some situations.
11598
11599         * posix/globtest.c, posix/globtest.sh: Updated to include
11600         tests for the problems fixed by the above changes to glob.c.
11601
11602         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
11603
11604 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
11605
11606         * Makeconfig (soversion.i): Use only first match for each lib.
11607
11608         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
11609
11610         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
11611         rather than $(sysd-dirs-done) to protect these rules.
11612
11613         * Makerules (version-renames.def): Target removed.
11614         (Versions.all): Depend on soversions.i directly and parse it.
11615
11616         * Makeconfig (soversions.i): New target, input-reading parts of
11617         soversions.mk generation moved here; result is a canonicalized
11618         list "LIB VERSION [SET]" for this configuration.
11619         (soversions.mk): Use that as input.  Don't emit map-firstversions.
11620         * Makerules (version-renames.def): New target, generated from
11621         soversions.i with contents that was in $(map-firstversions).
11622         (Versions.all): Don't depend on soversions.mk, depend on
11623         version-renames.def instead; just cat it into the input.
11624
11625         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
11626         for $(map-firstversions), which better handles it being empty.
11627
11628         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
11629         supported version for libc 0.2.90.libio to GLIBC_2.2.
11630
11631         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
11632         and use it to emit new variable `map-firstversions'.
11633         * scripts/firstversions.awk: New file.
11634         * Makerules (Versions.all): Use scripts/firstversions.awk and
11635         the $(map-firstversions) value to generate a modified versions list
11636         that includes renames in "A = B" syntax for each version set earlier
11637         than the "earliest symbol version" named in shlib-versions.
11638         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
11639         rename version set A to B in the output to the intermediate file.
11640         * scripts/abi-versions.awk: New file.
11641         * Makerules (abi-versions.h): New target, generated by that script.
11642         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
11643         * include/shlib-compat.h: New file, uses that generated header.
11644
11645 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
11646
11647         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
11648         after stripping # comments, and then run it through cpp.
11649         This allows things like "%ifdef FOO" based on config.h settings.
11650         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
11651
11652         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
11653         and other errors that indicate a pseudo-receive happened, grok through
11654         the message buffer for port rights that need references fixed up.
11655
11656 2000-03-16  Andreas Jaeger  <aj@suse.de>
11657
11658         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
11659
11660         * sysdeps/unix/sysv/linux/madvise.c: Remove.
11661
11662         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
11663         from latest Linux kernel.
11664         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
11665
11666         * misc/sys/mman.h: Add prototype for mincore.
11667
11668 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
11669
11670         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
11671         entry for GLIBC_2.0 version of setrlimit.
11672         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11673
11674 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11675
11676         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
11677         * nis/nss_compat/compat-initgroups.c: Likewise.
11678         * nis/nss_nis/nis-initgroups.c: Likewise.
11679         * nis/nss_nis/nis-netgrp.c: Likewise.
11680         * nis/nss_nis/nis-proto.c: Likewise.
11681         * nis/nss_nis/nis-rpc.c: Likewise.
11682         * nis/nss_nis/nis-service.c: Likewise.
11683         * nis/ypclnt.c: Likewise.
11684
11685 2000-03-16  Andreas Jaeger  <aj@suse.de>
11686
11687         * manual/Makefile: MAKEINFO is set to `:' from configure if it
11688         doesn't exist, correct checks.  Fixes PR libc/1649.
11689
11690 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
11691
11692         * nscd/hstcache.c: Restore correct UID.
11693         * nscd/pwdcache.c: Likewise.
11694         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11695
11696 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11697
11698         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11699         macros for register names, in line with 2000-03-14 linux change.
11700
11701         * sysdeps/mach/sched_yield.c: New file.
11702
11703 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11704
11705         * sysdeps/generic/lockfile.c: Include <stdio.h>
11706         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11707         case <libio.h> defined them.
11708         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11709         from __internal_*.
11710         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11711         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11712
11713         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11714         for more pleasing parse error.
11715
11716 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11717
11718         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11719         memory for eras.
11720         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11721
11722         * elf/Makefile: Add rules to compile and run constload1 test.
11723         * elf/constload1.c: New file.
11724         * elf/constload2.c: New file.
11725         * elf/constload3.c: New file.
11726
11727 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11728
11729         * sysdeps/posix/open64.c: Make __open64 weak alias.
11730         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11731         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11732         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11733         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11734         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11735         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11736         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11737         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11738         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11739         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11740
11741 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11742
11743         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11744         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11745
11746 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11747
11748         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11749         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11750
11751 2000-03-08  Andreas Jaeger  <aj@suse.de>
11752
11753         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11754
11755 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11756
11757         * timezone/africa: Update from tzdata2000d.
11758         * timezone/asia: Likewise.
11759         * timezone/australasia: Likewise.
11760         * timezone/europe: Likewise.
11761         * timezone/northamerica: Likewise.
11762         * timezone/southamerica: Likewise.
11763
11764         * po/fr.po: Update from translation team.
11765         * po/de.po: Likewise.
11766
11767         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11768         last parameter.  Move code to add map to global scope from here...
11769         * elf/dl-open.c (dl_open_worker): ...here.
11770         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11771         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11772
11773         * locale/programs/ld-collate.c (collate_read): Fix warning.
11774
11775         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11776         values and macros for register names.
11777
11778         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11779         returned by seek cookie function is -1.
11780
11781 2000-03-14  Andreas Jaeger  <aj@suse.de>
11782
11783         * locale/localeconv.c (localeconv): Fix typo.
11784         Reported by Andre Charbonneau <andrec@corel.com>.
11785
11786 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11787
11788         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11789         since modules depend on it counting the number of times the conversion
11790         function got called.
11791
11792         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11793
11794         * iconv/gconv.h: Pretty print.
11795
11796 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11797
11798         * posix/wordexp-test.c: Correct one of the tests added in the last
11799         change.  Really get the root passwd entry to check again ~root.
11800
11801 2000-03-10  Andreas Jaeger  <aj@suse.de>
11802
11803         * manual/filesys.texi (Working Directory): Fix last patch.
11804         Patch by Martin Buchholz  <martin@xemacs.org>.
11805
11806 2000-03-10  Andreas Jaeger  <aj@suse.de>
11807
11808         * manual/creature.texi (Feature Test Macros): Fix language.
11809
11810 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11811
11812         * mach/devstream.c (devstream_write, devstream_read): New functions.
11813         (input, output): Functions removed.
11814         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11815         using only the vanilla fopencookie interface.
11816
11817         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11818         as macro for __io_functions.
11819         (funcsio): Use cookie_io_functions_t type name.
11820         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11821
11822         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11823         fopencookie.
11824         (fopencookie): Use it.
11825         * libio/libio.h: Declare _IO_cookie_init.
11826         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11827         _IO_cookie_init.
11828
11829         * libio/libio.h (__io_seek_fn): Fix second argument type
11830         to be a pointer, in line with the manual and the old stdio.
11831         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11832
11833         * sysdeps/generic/bits/stdio-lock.h: New file.
11834         This is a stub with #error, but that's better than no file at all.
11835
11836 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11837
11838         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11839         * manual/message.texi (Using gettextized software): Doc Fixes.
11840         * manual/message.texi (Message Translation): Doc Fixes.
11841         * manual/filesys.texi (File Size): Doc Fixes.
11842         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11843         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11844         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11845         * manual/install.texi: Doc Fixes.
11846         * manual/search.texi (Hash Search Function): Doc Fixes.
11847         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11848         * FAQ.in: Doc Fixes.
11849         * config.h.in: Doc Fixes.
11850         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11851         Doc Fixes.  `allows to' is not correct English.
11852
11853         * elf/rtld.c: Doc fixes.
11854         * manual/creature.texi (Feature Test Macros): Doc fixes.
11855         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11856
11857         * manual/filesys.texi (Working Directory): Check for ERANGE to
11858         avoid infloop.
11859
11860 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11861
11862         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11863         conditions so as not to clobber the final '\0' when there is only one
11864         element in the vector.
11865
11866 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11867
11868         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11869         broken by 2000-02-27 change.
11870
11871         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11872
11873 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11874
11875         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11876         argument type, for 2000-02-22 change in signal/signal.h declaration.
11877
11878 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11879
11880         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11881         to getdirentries64 (no __), since the Linux implementation
11882         has no __ name, and there is no declaration for the __ name.
11883
11884         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11885
11886         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11887         sed regexp so as not to break directory names including /../ within.
11888
11889         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11890         The sysdeps/generic file is right for BSD.  This file was in fact the
11891         Hurd file, but the only difference was the WNOREAP flag that was never
11892         actually implemented or used anywhere.
11893
11894         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11895         since AC_PATH_PROG already does it for us.
11896         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11897         correctness and sh portability.  I replaced the broken check
11898         with a more sensible implementation of the apparently intended
11899         semantics, which might still be questionable.  Using expr causes
11900         a non-numeric value for `perl -V:apiversion` to be accepted,
11901         refusing to use only a perl that reports a number less than 5;
11902         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11903         * configure: Regenerated.
11904
11905 2000-03-08  Andreas Jaeger  <aj@suse.de>
11906
11907         * manual/crypt.texi: Fix paths.
11908
11909 2000-03-07  Andreas Jaeger  <aj@suse.de>
11910
11911         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11912         were swapped.
11913         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11914         libc/1636.
11915
11916 2000-03-06  Andreas Jaeger  <aj@suse.de>
11917
11918         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11919         in __sgn1l, otherwise g++ fails to parse this.
11920         Reported by Sean Chen <sean.chen@turbolinux.com>.
11921
11922 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11923
11924         * configure.in: Compute sizeof-long-double.
11925         * configure: Regenerated.
11926         * config.make.in: Make sizeof-long-double available to sub-makes.
11927
11928 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11929
11930         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11931         call.
11932
11933 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11934
11935         * Makeconfig (rpath-dirs): Add crypt.
11936         (all-subdirs): Remove md5crypt.
11937         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11938         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11939         * sysdeps/generic/crypt-entry.c: Delete.
11940         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11941         * sysdeps/generic/crypt.h: Delete.
11942         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11943         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11944         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11945         * sysdeps/generic/des_impl.c: Delete.
11946         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11947         * crypt/sysdeps: Delete.
11948         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11949         * md5-crypt/Versions: Move to crypt/.
11950         * md5-crypt/md5-crypt.c: Move to crypt/.
11951         * md5-crypt/md5.c: Move to crypt/.
11952         * md5-crypt/md5c-test.c: Move to crypt/.
11953         * md5-crypt/md5test.c: Move to crypt/.
11954         * md5-crypt: Delete.
11955         * crypt/Makefile: Adjust for new structure.
11956
11957 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11958
11959         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11960         define to 1 if not defined.
11961
11962 2000-03-03  Andreas Jaeger  <aj@suse.de>
11963
11964         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11965
11966 2000-03-03  Andreas Jaeger  <aj@suse.de>
11967
11968         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11969         cases.
11970         (xdr_int64_t): Correctly handle lower half.
11971         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11972
11973 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11974
11975         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11976         call.
11977
11978 2000-03-02  Andreas Jaeger  <aj@suse.de>
11979
11980         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11981         2.3.43.
11982
11983 2000-03-02  Andreas Jaeger  <aj@suse.de>
11984
11985         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11986
11987 2000-03-01  Andreas Jaeger  <aj@suse.de>
11988
11989         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11990         (tests): Added tst-getdate.
11991
11992         * time/tst-getdate.c: New file.
11993
11994         * time/datemsk: New file, needed for tst-getdate.
11995
11996 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11997
11998         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11999
12000 2000-02-17  H.J. Lu  <hjl@gnu.org>
12001
12002         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
12003
12004         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
12005         available.
12006         (svcudp_recv): Set up message with the new "xp_pad" field for
12007         IP_PKTINFO.
12008         (svcudp_reply): Support IP_PKTINFO if available.
12009
12010 2000-03-01  Andreas Jaeger  <aj@suse.de>
12011
12012         * time/getdate.c (check_mday): Fix check for february.
12013         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
12014         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
12015
12016 2000-03-02  Andreas Jaeger  <aj@suse.de>
12017
12018         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
12019         g++ fails to parse this.
12020         Reported by Sean Chen <sean.chen@turbolinux.com>.
12021
12022 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12023
12024         * io/creat.c: Moved to...
12025         * sysdeps/generic/creat.c: ...here.
12026         * io/creat64.c: Moved to...
12027         * sysdeps/generic/creat64.c: ...here.
12028         * io/lockf.c: Moved to...
12029         * sysdeps/generic/lockf.c: ...here.
12030
12031         * crypt/crypt.texi: Moved to...
12032         * manual/crypt.texi: ...here.
12033         * crypt/examples/genpass.c: Moved to...
12034         * manual/examples/genpass.c: ...here.
12035         * crypt/examples/mygenpass.c: Moved to...
12036         * manual/examples/mygenpass.c: ...here.
12037         * crypt/examples/testpass.c: Moved to...
12038         * manual/examples/testpass.c: ...here.
12039
12040         * manual/Makefile (chapters): Add crypt.
12041         * manual/conf.texi: Add usual header for not-last chapter.
12042         * manual/crypt.texi: Add special header for last chapter.
12043
12044 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12045
12046         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
12047         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
12048         complain if there is no crypt add-on.
12049         * crypt/configure: Removed.
12050
12051         * crypt/crypt.texi: Update documentation of US export restrictions
12052         to match the 14 Jan 2000 regulations.
12053
12054 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
12055
12056         * crypt: New subdirectory, merged in from the crypt add-on.
12057
12058 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
12059
12060         * include/unistd.h: Add __rmdir and __mkdir prototypes.
12061
12062
12063 See ChangeLog.10 for earlier changes.