Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-21  Martin Buchholz  <martin@xemacs.org>
2
3         * manual/terminal.texi (Allocation): Sample code correction.
4
5 2000-09-20  Andreas Jaeger  <aj@suse.de>
6
7         * iconvdata/Makefile (generated): Add tst-tables.out.
8
9         * intl/Makefile (generated): Add test output.
10
11 2000-09-19  Andreas Jaeger  <aj@suse.de>
12
13         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
14         Reported by Jens-Uwe Mager <jum@helios.de>.
15
16 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
17
18         * version.h (VERSION): Bump to 2.1.94.
19
20         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
21         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
22         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
23         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
24
25         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
26
27 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
28
29         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
30         range 0xD800..0xDFFF.
31         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
32         (BODY for FROM_LOOP): Likewise.
33         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
34         (internal_ucs2_loop): Likewise.
35         (ucs2reverse_internal_loop): Likewise.
36         (internal_ucs2reverse_loop): Likewise.
37
38 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
39
40         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
41         names.
42
43 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
44
45         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
46         * iconvdata/tst-table-to.c (main): Likewise.
47
48 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
49
50         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
51         __isoir165_tab.
52         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
53         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
54         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
55         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
56         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
57         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
58         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
59         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
60         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
61         encodings when needed.  When outputting an announcement, don't clear
62         most other announcements.
63
64 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
65
66         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
67         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
68
69 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
70
71         * intl/Versions: Add bind_textdomain_codeset.
72
73 2000-09-16  Ralf Baechle  <ralf@gnu.org>
74
75         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
76         as function.
77         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
78         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
79         it will even work when not loaded to the standard address.
80         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
81         before the dynamic linker itself is relocated.
82
83 2000-09-18  Andreas Jaeger  <aj@suse.de>
84
85         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
86         __ASSUME_32BITUIDS for MIPS.
87         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
88         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
89
90 2000-09-17  H.J. Lu  <hjl@gnu.org>
91
92         * catgets/Makefile ($(objpfx)de/libc.cat): Use
93         $(make-target-directory) instead of mkdir.
94
95 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
96
97         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
98         __ASSUME_32BITUIDS for __powerpc__.
99         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
100         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
101
102 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
103
104         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
105         patch.
106         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
107
108 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
109
110         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
111         first.
112         * sysdeps/m68k/Implies: Likewise.
113         * sysdeps/sparc/sparc64/Implies: Likewise.
114
115 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
116
117         * elf/readlib.c (process_file): Don't error for stale .so links either.
118
119 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
120
121         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
122         __builtin_expect.
123
124         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
125         Patch by Thorsten Kukuk <kukuk@suse.de>.
126
127         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
128         (test): Add default.
129         (modules-names): Add defaultmod1 and defaultmod2.
130         Add rules to build test objects.
131
132 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
133
134         * wctype/wctype.h: Always include <bits/types.h>.
135         Reported by Jim Meyering <meyering@ascend.com>.
136
137         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
138         * elf/dl-support.c: Likewise.
139
140         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
141         st_blocks member in stat and stat64 structs.
142         Patch by Bill Nottingham <notting@redhat.com>.
143
144         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
145         take longer.
146
147         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
148         __extension__ to _Complex_I definition since gcc warns if -pedantic.
149         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
150         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
151
152         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
153         necessary.  Move includes of POSIX and Unix limits files to the end.
154         * stdlib/Makefile (tests): Add tst-limits.
155         * stdlib/tst-limits.h: New file.
156
157 2000-09-15  Andreas Jaeger  <aj@suse.de>
158
159         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
160
161         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
162
163 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
164
165         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
166         clobber.
167         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
168         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
169
170 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
171
172         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
173         (tests): Add next.
174         (modules-names): Add nextmod1 and nextmod2.
175         Add rules to build and run next.
176         * elf/next.c: New file.
177         * elf/nextmod1.c: New file.
178         * elf/nextmod2.c: New file.
179
180 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
181
182         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
183
184 2000-09-15  Andreas Jaeger  <aj@suse.de>
185
186         * sysdeps/mips/fpu/fenv_libc.h: New file.
187         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
188         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
189         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
190
191         * sysdeps/mips/fpu/feenablxcpt.c: New file.
192         * sysdeps/mips/fpu/fegetexcept.c: New file.
193         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
194
195 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
196
197         * intl/Makefile: Avoid unnecessary test reruns.
198
199         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
200
201         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
202         to not use sysctl().  Too many architectures have problems with it.
203
204 2000-09-14  Andreas Jaeger  <aj@suse.de>
205
206         * scripts/config.sub: New version from subversions.gnu.org.
207
208         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
209         long.
210
211 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
212
213         * posix/regex.c (compile_range): Cast collseq index to unsigned char
214         to avoid accessing data before collseq.
215
216         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
217         pasting strings together.
218
219 2000-09-14  Greg McGary  <greg@mcgary.org>
220
221         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
222         copyright notice.
223         * sysdeps/generic/bp-semctl.h: Likewise.
224         * sysdeps/generic/bp-start.h: Likewise.
225         * sysdeps/generic/bp-sym.h: Likewise.
226         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
227         rename prototype.
228
229 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
230
231         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
232         don't fail.
233
234         * elf/elf.h: Add missing official relocations.
235
236         * libio/stdio.h: Define __FILE if __need___FILE is defined.
237         * stdio/stdio.h: Likewise.
238         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
239         * include/stdio.h: Handle __need___FILE like __need_FILE.
240         * include/wchar.h: Use __FILE instead of FILE.
241         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
242         * libio/fwscanf.c: Likewise.
243         * libio/getwc.c: Likewise.
244
245         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
246         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
247         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
248
249         * assert/assert.h: Update comment header about ISO C section.
250         * math/complex.h: Likewise.
251         * ctype/ctype.h: Likewise.
252         * include/errno.h: Likewise.
253         * include/limits.h: Likewise.
254         * locale/locale.h: Likewise.
255         * math/math.h: Likewise.
256         * setjmp/setjmp.h: Likewise.
257         * signal/signal.h: Likewise.
258         * stdio/stdio.h: Likewise.
259         * libio/stdio.h: Likewise.
260         * stdlib/stdlib.h: Likewise.
261         * string/string.h: Likewise.
262         * time/time.h: Likewise.
263         * wcsmbs/wchar.h: Likewise.
264         * wctype/wctype.h: Likewise.
265         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
266
267 2000-09-13  Andreas Jaeger  <aj@suse.de>
268
269         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
270         for no more entries.
271         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
272         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
273         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
274
275 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
276
277         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
278         constant since this is what clock_t is.
279         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
280         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
281         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
282         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
283
284         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
285         definitions are requested.
286
287 2000-09-13  Andreas Jaeger  <aj@suse.de>
288
289         * shlib-versions: libBrokenLocale needs minimal version for ia64,
290         sparc64 and sh to synch with libc.
291
292 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
293
294         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
295         (distribute): Add iso-2022-cn-ext.c.
296         Add definitions to compile the new module.
297         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
298         * iconvdata/iso-2022-cn-ext.c: New file.
299         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
300         ucs4_from_isoir165.  Increment input pointer if successful.
301
302         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
303
304         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
305
306 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
307
308         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
309         __syscall_getdents64 wrapper.
310
311         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
312
313 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
314
315         * iconvdata/gb18030.c: Many many changes.  Make consistent with
316         charmap and with itself.
317         * iconvdata/tst-tables.sh: Test GB18030.
318
319 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
320
321         * iconv/skeleton.c: Fix last patch, add missing parameter to
322         unaligned function call.
323
324 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
325
326         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
327         of decimal ellipsis.
328
329 2000-09-11  Bruno Haible <haible@clisp.cons.org>
330
331         * locale/programs/ld-collate.c (collate_read): Always initialize
332         error_section.next.
333
334 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
335
336         * locale/programs/ld-collate.c (collate_finish): Upper bound for
337         ruleidx is 128, not 256.
338
339 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
340
341         * locale/programs/ld-collate.c (collate_read): Correct check for
342         already inserted entries.
343
344 2000-09-10  Bruno Haible <haible@clisp.cons.org>
345
346         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
347         second try as well.
348
349 2000-09-10  Bruno Haible <haible@clisp.cons.org>
350
351         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
352         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
353
354 2000-09-10  Bruno Haible <haible@clisp.cons.org>
355
356         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
357         SAVE_RESET_STATE.
358
359 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
360
361         * iconvdata/utf-7.c: New file.
362         * iconvdata/gconv-modules (UTF-7): New module entries.
363         * iconvdata/Makefile (modules): Add UTF-7.
364         (distribute): Add utf-7.c.
365         * iconvdata/testdata/UTF-7: New file.
366         * iconvdata/testdata/UTF-7..UTF8: New file.
367         * iconvdata/TESTS (UTF-7): New entry.
368         * iconvdata/run-iconv-test.sh: Fix confusing output.
369
370 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
371
372         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
373
374 2000-09-10  David S. Miller  <davem@redhat.com>
375
376         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
377         frame pointer offset for non-fast path.
378
379 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
380
381         * locale/programs/3level.h (*_init): Initialize level1, level2,
382         and level3 as well.
383         (*_add): Remove a few unnecessary conditionals.
384
385 2000-09-05  Wolfram Gloger  <wg@malloc.de>
386
387         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
388         ensure usability of mutex as an `in use' flag.
389
390 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
391
392         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
393
394         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
395         ugly GMON_WEAK_START hack.
396         Patch by Philip Blundell <philb@gnu.org>.
397
398         * sysdeps/i386/i486/bits/string.h: Pretty printing.
399
400 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
401
402         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
403         and PPC_ICBI asm for broken compilers.
404         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
405
406 2000-09-09  Andreas Jaeger  <aj@suse.de>
407
408         * manual/message.texi (Advanced gettext functions): Fix typo.
409
410         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
411         strncpy prototype.
412
413 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
414
415         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
416         warnings.
417         * sysdeps/ia64/memccpy.S: Likewise.
418         Patches by Jim Wilson <wilson@redhat.com>.
419
420         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
421         before trying to read /proc.
422         Patch by Matt Wilson <msw@redhat.com>.
423         * include/sys/utsname.h: Declare __uname.
424         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
425         * sysdeps/mach/hurd/uname.c: Likewise.
426         * sysdeps/unix/syscalls.list: Likewise.
427
428         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
429         unloading a bit.
430
431 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
432
433         * posix/getopt.c (_getopt_internal): When long_only is set always
434         recognize conflicts just like before.
435
436 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
437
438         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
439
440 2000-09-08  Greg McGary  <greg@mcgary.org>
441
442         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
443         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
444         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
445
446 2000-09-08  Andreas Jaeger  <aj@suse.de>
447
448         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
449
450         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
451
452         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
453         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
454         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
455
456 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
457
458         * iconvdata/tst-tables.sh: Enable EUC-KR test.
459
460         * elf/dl-load.c (lose): Decrement _nl_loaded.
461         (_dl_map_object_from_fd): Don't try to dlopen executables.
462
463         * iconvdata/tst-tables.sh: Actually return with an error if
464         something goes wrong.
465         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
466         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
467
468         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
469
470         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
471         * iconvdata/tst-table-from.c: Include <string.h>.
472         (try): Correct cast in iconv call.
473
474         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
475         too.
476         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
477         (sysdep_routines): Remove dl-start.
478         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
479
480         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
481
482         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
483         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
484
485 2000-09-06  Andreas Schwab  <schwab@suse.de>
486
487         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
488
489 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
490
491         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
492
493         * scripts/config.sub: Strip out -unknown for Linux targets.
494         Patch by Scott Bambrough <scottb@netwinder.org>.
495
496         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
497         add one more test.
498
499 2000-09-07  Andreas Jaeger  <aj@suse.de>
500
501         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
502
503         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
504         syscalls.
505
506         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
507
508         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
509         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
510
511         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
512
513         * stdlib/tst-bsearch.c (main): Add more test cases.
514
515         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
516         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
517         Reported by GOTO Masanori <gotom@debian.or.jp>.
518
519 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
520
521         * posix/Makefile (tests): Add tst-dir.
522         (tst-dir-ARGS): New variable.
523         * posix/tst-dir.c: New file.
524
525 2000-09-07  Andreas Jaeger  <aj@suse.de>
526
527         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
528         (SYS_fcntl64): New.
529
530         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
531
532 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
533
534         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
535         use the hack with tryopen_o_directory to determine at runtime
536         whether it works.
537         * sysdeps/unix/sysv/linux/opendir.c: New file.
538         * sysdeps/unix/sysv/linux/kernel-features.h: Define
539         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
540
541         * catgets/Depend: New file.  Add intl.
542         * catgets/Makefile (tests): Add tst-catgets.
543         (generated): Remove de.msg.
544         (generated-dirs): Add de.
545         Add dependency if tst-catgets output on de/libc.cat.
546         * catgets/tst-catgets.c: New file.
547
548         * po/ja.po: New file.
549         * po/el.po: Update from translation team.
550
551         * wcsmbs/Depend: New file.
552         * wcsmbs/Makefile (tests): Add tst-btowc.
553         (tst-btowc-ENV): Define.
554         * wcsmbs/tst-btowc.c: New file.
555
556         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
557         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
558
559         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
560
561         * stdlib/Makefile (tests): Add tst-bsearch.
562         * stdlib/tst-bsearch.c: New file.
563
564         * posix/getopt.c (_getopt_internal): Don't recognize an option
565         name as ambiguous if it's a prefix for more than one name but the
566         other struct option values are identical.
567
568         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
569         Don't depend on visual inspection of the output file to recognize
570         errors.
571         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
572
573 2000-09-06  Andreas Jaeger  <aj@suse.de>
574
575         * sysdeps/alpha/soft-fp/Dist: New file.
576         * sysdeps/i386/soft-fp/Dist: New file.
577         * sysdeps/mips/mips64/soft-fp/Dist: New file.
578         * sysdeps/mips/soft-fp/Dist: New file.
579         * sysdeps/powerpc/soft-fp/Dist: New file.
580         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
581         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
582
583         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
584         Use sysdep_routines instead of routines to fix make dist failure.
585         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
586         out code).
587         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
588
589         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
590         sysdep_headers instead of headers for make dist.
591
592         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
593         Likewise.
594
595 2000-09-06  Andreas Schwab  <schwab@suse.de>
596
597         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
598
599 2000-09-06  Andreas Jaeger  <aj@suse.de>
600
601         * soft-fp/Makefile (distribute): Remove ChangeLog.
602
603         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
604         sysdep_routines instead of routines for make dist.
605
606 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
607
608         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
609         compatibility check for old stream and call _IO_wide in doubt.
610         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
611         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
612         needed tst for such an old structure and don't do anything.
613         * libio/freopen.c: Remove declaration of _IO_stdin_used.
614
615 2000-09-06  Andreas Jaeger  <aj@suse.de>
616
617         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
618         sysdep-dl-routines and sysdep_routines instead of rtld-routines
619         and dl-routines.
620
621         * soft-fp/ChangeLog: Merged with this file.
622
623 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
624
625         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
626
627         * soft-fp/Makefile (distribute): Add the math functions, too.
628
629         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
630
631 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
632
633         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
634         as a statement.
635
636         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
637         * soft-fp/sysdeps/powerpc/q_*: New files.
638
639 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
640
641         * stdio-common/vfprintf.c (process_string_arg): Handle precision
642         in wide char case correctly.  Don't allocate too long temporary
643         strings with alloca.
644
645         * stdio-common/Makefile (tests): Add tst-swprintf.
646         (tst-swprintf-ENV): New variable.
647         * stdio-common/tst-swprintf.c: New file.
648
649 2000-09-05  Andreas Jaeger  <aj@suse.de>
650
651         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
652         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
653         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
654
655 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
656
657         * configure.in: Strip out "unknown" from configuration names.
658
659 2000-09-05  Andreas Jaeger  <aj@suse.de>
660
661         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
662
663         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
664         * sysdeps/sparc/sparc32/Implies: Likewise.
665         * sysdeps/powerpc/Implies: Likewise.
666
667         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
668         * libio/oldiofgetpos64.c: Likewise.
669
670         * soft-fp/Makefile (distribute): Remove configure.
671
672         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
673
674         * soft-fp/configure: Remove.
675
676         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
677         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
678
679         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
680         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
681
682         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
683         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
684
685         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
686         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
687
688         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
689         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
690
691         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
692         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
693
694         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
695         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
696
697         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
698         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
699
700         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
701         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
702
703         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
704         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
705
706         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
707         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
708
709         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
710         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
711
712         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
713         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
714
715         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
716         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
717
718         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
719         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
720
721         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
722         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
723
724         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
725         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
726
727         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
728         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
729
730         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
731         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
732
733         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
734         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
735
736         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
737         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
738
739         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
740         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
741
742         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
743         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
744
745         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
746         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
747
748         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
749         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
750
751         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
752         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
753
754         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
755         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
756
757         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
758         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
759
760         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
761         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
762
763         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
764         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
765
766         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
767         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
768
769         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
770         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
771
772         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
773         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
774
775         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
776         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
777
778         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
779         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
780
781         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
782         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
783
784         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
785         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
786
787         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
788         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
789
790         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
791         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
792
793         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
794         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
795
796         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
797         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
798
799         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
800         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
801
802         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
803         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
804
805         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
806         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
807
808         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
809         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
810
811         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
812         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
813
814         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
815         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
816
817         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
818         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
819
820         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
821         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
822
823         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
824         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
825
826         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
827         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
828
829         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
830         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
831
832         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
833         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
834
835         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
836         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
837
838         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
839         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
840
841         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
842         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
843
844         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
845         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
846
847         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
848         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
849
850         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
851         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
852
853         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
854         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
855
856         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
857         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
858
859         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
860         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
861
862         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
863         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
864
865         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
866         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
867
868         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
869         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
870
871         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
872         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
873
874         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
875         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
876
877         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
878         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
879
880         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
881         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
882
883         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
884         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
885
886         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
887         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
888
889         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
890         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
891
892         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
893         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
894
895         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
896         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
897
898         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
899         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
900
901         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
902         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
903
904         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
905         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
906
907         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
908         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
909
910         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
911         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
912
913         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
914         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
915
916         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
917         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
918
919         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
920         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
921
922         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
923         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
924
925         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
926         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
927
928         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
929         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
930
931         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
932         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
933
934         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
935         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
936
937         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
938         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
939
940         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
941         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
942
943         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
944         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
945
946         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
947         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
948
949         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
950         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
951
952         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
953         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
954
955         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
956         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
957
958         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
959         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
960
961         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
962         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
963
964         * soft-fp/sysdeps/powerpc/Versions: Move from here...
965         * sysdeps/powerpc/soft-fp/Versions: ... to here.
966
967         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
968         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
969
970         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
971         change symbol version.
972         * libio/oldiofgetpos64.c: Likewise.
973         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
974
975         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
976         typo.
977         Reported by dyky@kondara.org, closes PR libc/1886.
978
979         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
980         libc/1880.
981
982 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
983
984         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
985         script when ^C is hit.
986
987         * locale/programs/localedef.c (construct_output_path): Correct
988         computation of endp after asprintf.
989         * locale/programs/locfile.c (write_locale_data): Don't add extra
990         slash in filename.
991
992 2000-09-05  Andreas Jaeger  <aj@suse.de>
993
994         * scripts/config.guess: New upstream version.
995         * scripts/config.sub: Likewise.
996         * manual/texinfo.tex: Likewise.
997
998 2000-09-04  Andreas Schwab  <schwab@suse.de>
999
1000         * elf/Makefile (all-dl-routines): New variable.
1001         (elide-routines.os): Use it instead of $(dl-routines).
1002         (all-rtld-routines): New variable.
1003         (extra-objs): Use it instead of $(rtld-routines).
1004         ($(objpfx)dl-allobjs.os): Likewise.
1005         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1006         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1007         and dl-routines.
1008
1009 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1010
1011         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1012         Set fname to NULL if the module wasn't found.
1013
1014 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1015
1016         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1017         true if trans->name already ends in ".so".
1018
1019 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1020
1021         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1022         void.
1023         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1024         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1025         (__gconv_release_shlib): Change return type to void.
1026         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1027         step->__counter here.
1028         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1029         if the reference is zero.
1030         (release_step): New function.
1031         (gen_steps): Always initialize the __counter to 1. Use release_step.
1032         Don't call the destructor on the step whose initializer failed.
1033         (increment_counter): Use release_step. Don't normally run destructors
1034         here.
1035         (__gconv_close_transform): Use release_step.
1036
1037 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1038
1039         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1040         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1041
1042 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1043
1044         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1045         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1046         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1047         to check for incomplete input.
1048         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1049         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1050         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1051         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1052         0x9f9d..0x9fa5.
1053         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1054         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1055         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1056         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1057         upto index 0x0052.
1058
1059 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1060
1061         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1062         solution.
1063
1064 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1065
1066         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1067         are invalid.
1068
1069 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1070
1071         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1072         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1073         U+007E.
1074
1075 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1076
1077         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1078
1079 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1080
1081         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1082
1083 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1084
1085         * iconvdata/tst-tables.sh: New file.
1086         * iconvdata/tst-table.sh: New file.
1087         * iconvdata/tst-table-from.c: New file.
1088         * iconvdata/tst-table-to.c: New file.
1089         * iconvdata/tst-table-charmap.sh: New file.
1090         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1091         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1092         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1093         ISIRI-3342.irreversible, SJIS.irreversible.
1094         (tests): Add dependency on tst-tables.out.
1095         (tst-tables.out, tst-tables-clean): New rules.
1096         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1097         * iconvdata/ISIRI-3342.irreversible: New file.
1098         * iconvdata/EUC-JP.irreversible: New file.
1099         * iconvdata/SJIS.irreversible: New file.
1100
1101 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1102
1103         * manual/locale.texi (General Numeric): Update description of
1104         representation of the grouping information in the locale data.
1105         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1106
1107 2000-09-04  Andreas Jaeger  <aj@suse.de>
1108
1109         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1110         * iconv/iconv_prog.c (options): Fix typo.
1111         Reported by dyky@kondara.org, closes PR libc/1885.
1112
1113 2000-09-04  Andreas Jaeger  <aj@suse.de>
1114
1115         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1116         Reported by Rob Levin <lilo@transvirtual.com>.
1117
1118 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1119
1120         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1121         to the typedefs of __timezone_ptr_t.
1122         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1123
1124 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1125
1126         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1127         the loop.
1128
1129 2000-09-01  H.J. Lu  <hjl@gnu.org>
1130
1131         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1132         to run a binary if it is in $(tests-static).
1133
1134         * Rules (binaries-static): Add $(tests-static).
1135
1136 2000-09-02  Andreas Jaeger  <aj@suse.de>
1137
1138         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1139
1140         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1141         patch.
1142
1143 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * iconvdata/big5hkscs.c: Regenerated from charmap.
1146         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1147         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1148
1149         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1150         statement.  General cleanup.
1151
1152 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1153
1154         * wctype/wcfuncs.c (iswblank): New function.
1155         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1156         * wctype/wcextra.c: Remove file.
1157         * wctype/wcextra_l.c: Remove file.
1158         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1159
1160 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1161
1162         * locale/programs/ld-collate.c (collate_output): Remove redundant
1163         assert call.
1164         * string/strcoll.c: Likewise.
1165         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1166         string/strcoll.c.
1167
1168 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1169
1170         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1171         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1172         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1173         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1174         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1175         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1176         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1177         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1178         _NL_CTYPE_GAP5/6 respectively.
1179
1180         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1181         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1182         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1183         Don't initialize __ctype_names and __ctype_width.
1184         * wctype/cname-lookup.h: Remove file.
1185         * wctype/Makefile (distribute): Remove cname-lookup.h.
1186         * wctype/wchar-lookup.h: Include stdint.h.
1187         * wctype/wctype.c (__wctype): Assume new locale format.
1188         * wctype/wctype_l.c (__wctype_l): Likewise.
1189         * wctype/iswctype.c: Don't include cname-lookup.h.
1190         (__iswctype): Assume new locale format.
1191         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1192         (__iswctype_l): Assume new locale format.
1193         * wctype/wctrans.c: Don't include ctype.h.
1194         (wctrans): Assume new locale format.
1195         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1196         * wctype/towctrans.c: Don't include cname-lookup.h.
1197         (__towctrans): Assume new locale format.
1198         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1199         (__towctrans_l): Assume new locale format.
1200         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1201         localeinfo.h instead.
1202         (__NO_WCTYPE): Remove unused macro.
1203         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1204         declarations.
1205         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1206         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1207         (towlower, towupper): Likewise.
1208         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1209         localeinfo.h instead.
1210         (__NO_WCTYPE): Remove unused macro.
1211         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1212         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1213         __iswxdigit_l): Assume new locale format.
1214         (__towlower_l, __towupper_l): Likewise.
1215         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1216         (__ctype32_b): Remove declaration.
1217         (internal_wcwidth): Assume new locale format.
1218         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1219         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1220         to map32_b, rename width_3level to width.
1221         (ctype_output): Always create new locale format. Don't emit
1222         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1223         (allocate_arrays): Always create new locale format.
1224
1225         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1226         * locale/weightwc.h (findidx): Assume new locale format.
1227         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1228         names.
1229         * string/strxfrm.c (wcsxfrm): Likewise.
1230         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1231         local variable collseq to 'const char *'.
1232         (SUFFIX): Don't use, don't undefine.
1233         * posix/fnmatch.c: Remove SUFFIX definition.
1234         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1235         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1236         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1237         (collate_finish): Always create new locale format. Remove local
1238         variables min_total, act_size.
1239         (collate_output): Always create new locale format. Remove local
1240         variables table_size, names, tablewc. Rename tablewc_3level to
1241         tablewc.
1242
1243 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1244
1245         * locale/programs/ld-collate.c (obstack_int32_grow,
1246         obstack_int32_grow_fast): New inline functions.
1247         (output_weightwc, collate_output): Use them where possible.
1248
1249 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1250
1251         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1252         patch (_mode -> _flags).
1253
1254         * libio/Makefile (headers): Add stdio_ext.h.
1255         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1256         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1257         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1258         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1259         __fsetlocking, and _flushlbf.
1260         * libio/__fbufsize.c: New file.
1261         * libio/__flbf.c: New file.
1262         * libio/__fpending.c: New file.
1263         * libio/__fpurge.c: New file.
1264         * libio/__freadable.c: New file.
1265         * libio/__freading.c: New file.
1266         * libio/__fsetlocking.c: New file.
1267         * libio/__fwritable.c: New file.
1268         * libio/__fwriting.c: New file.
1269         * libio/stdio_ext.h: New file.
1270         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1271         * libio/libio.h (_IO_USER_LOCK): Define.
1272         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1273         test _IO_USER_LOCK flag first.
1274
1275         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1276         malloc fails.
1277
1278 2000-09-01  Andreas Jaeger  <aj@suse.de>
1279
1280         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1281
1282         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1283
1284 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1285
1286         * math/Makefile (tests): Add tst-defintions.
1287         * math/tst-definitions.c: New file.
1288
1289         * stdlib/Makefile (headers): Add bits/wchar.h.
1290         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1291         * sysdeps/generic/bits/wchar.h: New file.
1292         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1293         file to define WCHAR_MIN and WCHAR_MAX.
1294         Change UINT*8_MAX and UIN*16_MAX value to type int.
1295         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1296         file to define WCHAR_MIN and WCHAR_MAX.
1297         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1298         int values.
1299         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1300         * sysdeps/generic/bits/mathdef.h: Likewise.
1301         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1302         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1303         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1304         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1305         * locale/locale.h (struct lconv): Add __ prefix to the new members
1306         if not C99.
1307         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1308         imaxdiv optimizations.
1309         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1310         * sysdeps/wordsize-64/ldiv.c: Likewise.
1311         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1312         const fenv_t*.
1313         * sysdeps/generic/bits/fenv.h: Likewise.
1314         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1315         * sysdeps/ia64/bits/fenv.h: Likewise.
1316         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1317         * sysdeps/mips/bits/fenv.h: Likewise.
1318         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1319         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1320         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1321
1322         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1323         * inet/ruserpass.c: Likewise.
1324         * catgets/open_catalog.c: Likewise.
1325         * intl/loadmsgcat.c: Likewise.
1326         * io/getdirname.c: Likewise.
1327         * locale/loadlocale.c: Likewise.
1328         * misc/getusershell.c: Likewise.
1329         * stdlib/canonicalize.c: Likewise.
1330         * sysdeps/posix/euidaccess.c: Likewise.
1331         * sysdeps/posix/isfdtype.c: Likewise.
1332         * sysdeps/posix/posix_fallocate.c: Likewise.
1333         * sysdeps/posix/tempname.c: Likewise.
1334         * sysdeps/unix/grantpt.c: Likewise.
1335         * sysdeps/unix/opendir.c: Likewise.
1336         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1337         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1338         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1339         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1340         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1341         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1342         * sysvipc/ftok.c: Likewise.
1343         * time/getdate.c: Likewise.
1344
1345         * time/getdate.c: Add extra access test.
1346
1347 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1348
1349         * version.h (VERSION): Bump to 2.1.93.
1350
1351         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1352         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1353
1354         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1355         Make this a new rule depending on tst-gettext.out and run mtrace.
1356         * intl/tst-gettext.c: Call mtrace.
1357         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1358
1359         * elf/dl-reloc.c: Add a few more __builtin_expect.
1360
1361         * configure.in: Remove --with-gettext option.
1362
1363         * intl/dcigettext.c (free_mem): Correct freeing of
1364         _nl_domain_bindings list.
1365
1366         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1367         allocated memory.
1368
1369         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1370
1371         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1372
1373         * stdio-common/itoa-digits.c: Move upper digits to...
1374         * stdio-common/itoa-udigits.c: ...here.  New file.
1375         * stdio-common/Makefile (routines): Add itoa-udigits.
1376
1377         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1378         relocate ld.so don't add supprt for relocations which should not
1379         appear in ld.so.
1380
1381         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1382         __secure_getenv.  Instead test __libc_enable_secure once.
1383
1384         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1385
1386 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1387
1388         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1389         whether the new record should be freed if it's a duplicate.
1390         (add_module): Adjust insert_module call.
1391         (__gconv_read_conf): Likewise.
1392         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1393         mtrace-tst-loading.
1394         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1395
1396         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1397         _dl_all_init_dirs.
1398         * include/link.h (struct r_search_path_struct): New.
1399         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1400         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1401         _dl_all_init_dirs.
1402         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1403         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1404         added at startup time.
1405         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1406         contains element to remember fact that we can free memory.
1407         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1408         (_dl_init_all_dirs): New variable.
1409         (fillin_rpath): Save one malloc call.
1410         (decompose_rpath): Change interface.  New first parameter points to
1411         r_search_path_struct.
1412         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1413         deletable.  Set _dl_init_all_paths value.
1414         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1415         parameter replaced with r_search_path_struct *.  Information about
1416         freeing now contained in r_search_path_struct.
1417         (_dl_map_object): Adjust for above changes.
1418
1419         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1420
1421         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1422         when adding new entries.
1423
1424         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1425         since the object being loaded can be unloaded.
1426
1427         * iconvdata/Makefile (tests): Add tst-loading.
1428         * iconvdata/tst-loading.c: New file.
1429
1430 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1431
1432         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1433         When comparing a char with an int, always cast the char to
1434         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1435         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1436
1437 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1438
1439         * time/strftime.c (my_strftime): Add compatibility code for use
1440         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1441
1442         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1443         return 0 for success but always < 0 on failure.
1444
1445         * nss/getXXbyYY_r.c: Define result to *result before including
1446         digits_dots.c.
1447
1448 2000-08-30  Andreas Jaeger  <aj@suse.de>
1449
1450         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1451
1452 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1453
1454         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1455         official file.
1456         * iconvdata/TESTS: Add BIG5HKSCS entry.
1457         * iconvdata/testdata/BIG5HKSCS: New file.
1458         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1459
1460         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1461         always true.
1462
1463         * libio/iogetline.c: Set mode before the loop in case n==0.
1464         * libio/iogetwline.c: Likewise.
1465
1466 2000-08-29  H.J. Lu  <hjl@gnu.org>
1467
1468         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1469         of fp->_mode < 0.
1470         (_IO_new_file_overflow): Likewise.
1471         * libio/genops.c (_IO_flush_all): Likewise.
1472         * libio/ioftell.c (_IO_ftell): Likewise.
1473
1474 2000-08-29  Akira Higuchi  <a@kondara.org>
1475
1476         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1477         and __end_fct fields of struct __gconv_step.
1478         * iconv/Makefile (tests): Add iconv-bug2.
1479         * iconv/iconv-bug2.c: New file.
1480
1481         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1482         instead of 'inptr - inend' to ksc5601_to_ucs4.
1483
1484         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1485
1486         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1487         character or shift sequence is found at the end of the input
1488         string, return__GCONV_INCOMPLETE_INPUT instead of
1489         __GCONV_EMPTY_INPUT.
1490         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1491         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1492
1493         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1494         __GCONV_ILLEGAL_INPUT for 8bit characters.
1495
1496 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1497
1498         * signal/signal.h (sigpause): Move __THROW before __asm__.
1499
1500         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1501         names don't match don't return.
1502         Patch by Olaf Kirch <okir@flash.lst.de>.
1503
1504 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1505
1506         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1507
1508 2000-08-27  H.J. Lu  <hjl@gnu.org>
1509
1510         * posix/Makefile (otherlibs): Add for building with static-nss
1511         for "make check".
1512
1513 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1514
1515         * libio/stdio.h: Add fmemopen prototype.
1516
1517 2000-08-25  Andreas Jaeger  <aj@suse.de>
1518
1519         * libio/Makefile (routines): Add fmemopen.
1520         (tests): Add test-fmemopen.
1521         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1522         * libio/test-fmemopen.c: New file.
1523         * libio/fmemopen.c: New file.
1524         Patches by Hanno Mueller <kontakt@hanno.de>.
1525
1526 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1527
1528         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1529         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1530
1531         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1532         to avoid crashing statically linked applications.
1533
1534 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1535
1536         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1537         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1538
1539         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1540         If the result is fits in the buffer, copy only as many bytes as needed.
1541
1542         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1543         buffer after copying numbuf into it.
1544         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1545
1546 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1547
1548         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1549         the result.  When string_len < len, don't clear the rest of the buffer.
1550
1551 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1552
1553         Support for new LC_COLLATE format.
1554         * locale/coll-lookup.h: New file.
1555         * locale/weightwc.h (findidx): When size == 0, call
1556         collidx_table_lookup.
1557         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1558         * wcsmbs/wcsxfrm.c: Likewise.
1559         * posix/fnmatch.c: Likewise.
1560         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1561         collseq_table_lookup.
1562         * locale/programs/3level.h: New file.
1563         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1564         by including "3level.h".
1565         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1566         collseq_table): New types, defined by including "3level.h".
1567         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1568         (encoding_mask, encoding_byte): Remove.
1569         (utf8_encode): Use simple shifts instead.
1570         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1571         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1572         (collate_output): New local variable tablewc_3level. When
1573         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1574         tablewc_3level instead of tablewc. Change format of TABLEWC and
1575         COLLSEQWC entries written to the file.
1576         * locale/C-collate.c (collseqwc): Change format.
1577         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1578         of COLLSEQWC.
1579         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1580
1581 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1582
1583         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1584         (locale_ctype_t): New charnames_idx field.
1585         (ctype_startup): Initialize charnames_idx field.
1586         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1587
1588 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1589
1590         * locale/C-ctype.c: Switch to new locale format.
1591         (_nl_C_LC_CTYPE_names): Remove array.
1592         (STRUCT_CTYPE_CLASS): New macro.
1593         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1594         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1595         New three-level tables.
1596         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1597         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1598         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1599         12 class tables and 2 map tables at the end.
1600         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1601         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1602         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1603         New declarations.
1604         (b): Remove trailing semicolon.
1605         (__ctype_names, __ctype_width): Don't initialize.
1606         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1607
1608 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1609
1610         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1611         is guaranteed to be allocated with the same malloc() and may be
1612         passed to free().
1613         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1614         been set to empty by an earlier open_path call, don't pass it again.
1615
1616 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1617
1618         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1619         we are not optimizing.
1620
1621         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1622         inclusion.
1623
1624         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1625         really match EOF.
1626         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1627
1628 2000-08-28  Andreas Jaeger  <aj@suse.de>
1629
1630         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1631
1632 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1633
1634         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1635         getpeername.  Use ISO C style function definition.
1636         (getpeername): Provide weak alias.
1637         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1638         setrlimit.  Use ISO C style function definition.
1639         (setrlimit): Provide weak alias.
1640
1641 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1642
1643         * shlib-versions: Add a rule for S/390 to the libm version list.
1644         * sysdeps/s390/Versions: New file.
1645         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1646         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1647         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1648         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1649         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1650         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1651         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1652         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1653         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1654         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1655         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1656         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1657         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1658         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1659         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1660         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1661         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1662         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1663
1664 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1665
1666         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1667         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1668
1669         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1670         * elf/dl-close.c (_dl_close): Print debug message if object is not
1671         unloaded.
1672         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1673         returning to caller.
1674
1675         * po/zh.po: Renamed to...
1676         * po/zh_TW.po: ...this.
1677
1678 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1679
1680         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1681
1682         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1683         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1684         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1685         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1686
1687 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1688
1689         * locale/programs/ld-collate.c (insert_weights): Also update
1690         backpointer of next element.
1691         (collate_read): Allow definition of new collation symbols in stage 2.
1692         Symbol after reorder-after can be UCS4 value.
1693         Allow reordering of collation symbols and elements.
1694         Do not only move reorder entry in new position.  Instead call
1695         insert_weight to do this and read the weights.
1696
1697         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1698
1699         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1700         to determine invalid locale name.
1701         * locale/findlocale.c (_nl_find_locale): Likewise.
1702
1703         * posix/annexc.c: Correct test for unavailable feature.
1704
1705         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1706         __inline.
1707
1708 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1709
1710         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1711         syscall.
1712
1713         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1714         (sysdep_routines): Add oldgetrlimit64.
1715
1716         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1717         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1718         (tests): Add unload, reldep, reldep2, and reldep3.
1719         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1720         and reldepmod4.
1721         Add rules to build and run unload, reldep, reldep2, and reldep3.
1722         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1723         Don't create relocation dependency if it is nonzero.
1724         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1725         can never happen here.
1726         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1727         Don't create relocation dependency if it is nonzero.
1728         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1729         stuff.  This can never happen here.
1730         * sysdeps/generic/ldsodefs.h: Change prototypes.
1731         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1732         _dl_lookup_up and _dl_lookup_versioned_symbol.
1733         (RESOLV): Likewise.
1734         * elf/dl-runtime.c (fixup): Likewise.
1735         (profile_fixup): Likewise.
1736         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1737         _dl_lookup_symbol.
1738         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1739         * elf/rtld.c (dl_main): Likewise.
1740         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1741         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1742         and pass down the caller map.
1743         (_dl_vsym): Likewise.
1744         * elf/reldep.c: New file.
1745         * elf/reldep2.c: New file.
1746         * elf/reldep3.c: New file.
1747         * elf/reldepmod1.c: New file.
1748         * elf/reldepmod2.c: New file.
1749         * elf/reldepmod3.c: New file.
1750         * elf/reldepmod4.c: New file.
1751         * elf/unload.c: New file.
1752         * elf/unloadmod.c: New file.
1753
1754         * elf/do-lookup.h: Remove unused undef_name parameter.
1755         * elf/dl-lookup.c: Adjust callers.
1756
1757 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1758
1759         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1760         irreversible in recursive call of conversion function to signal that
1761         no error handling is wanted.
1762         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1763         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1764         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1765         recursive error handling call, otherwise to &lirreversible.  Use it
1766         for calls to conversion functions.
1767         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1768         transliterating.
1769         (ucs4_internal_loop_unaligned): Likewise.
1770         (ucs4le_internal_loop): Likewise.
1771         (ucs4le_internal_loop_unaligned): Likewise.
1772
1773 2000-08-25  Greg McGary  <greg@mcgary.org>
1774
1775         * sysdeps/i386/memchr.S: Check high bound against chars
1776         actually scanned.
1777         * sysdeps/i386/memcmp.S: Likewise.
1778         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1779         account for pointers that lie one beyond end-of-buffer.
1780
1781 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1782
1783         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1784         * elf/nodelete.c (fini_ran): New global variable.
1785         (do_test): Before every dlclose call clear fini_ran and test
1786         afterwards that it is not set by the destructors.
1787         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1788         * elf/nodelmod2.c: Likewise.
1789         * elf/nodelmod4.c: Likewise.
1790
1791 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1792
1793         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1794         getrlimit to the list.
1795
1796 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1797
1798         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1799         long double format so use ldbl-96 instead of ldbl-128.
1800
1801 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1802
1803         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1804         even if bits 10 a 11 are non-zero.
1805         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1806
1807         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1808         included before building gnu/lib-names.h
1809         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1810
1811         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1812         marked DF_1_NODELETE.
1813
1814         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1815         since we call sigaction in the child.
1816
1817 2000-08-25  Andreas Jaeger  <aj@suse.de>
1818
1819         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1820         gconv-modules.
1821
1822 2000-08-25  Andreas Jaeger  <aj@suse.de>
1823
1824         * manual/arith.texi (Control Functions): Clarify possible
1825         arguments.  Closes PR libc/1856.
1826
1827 2000-08-24  H.J. Lu  <hjl@gnu.org>
1828
1829         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1830         * malloc/Makefile (tests): Likewise.
1831
1832 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1833
1834         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1835
1836 2000-08-24  Andreas Jaeger  <aj@suse.de>
1837
1838         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1839         only if LIBGD is available.
1840
1841 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1842
1843         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1844         problems with now restrict parameter types.
1845         (convaddr4to6): Likewise.
1846
1847 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1848
1849         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1850         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1851         * sysdeps/s390/fpu/fegetexcept.c: New file.
1852         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1853         FPC_VALID_MASK.
1854
1855 2000-08-24  Andreas Jaeger  <aj@suse.de>
1856
1857         * malloc/Makefile (extra-objs): Add memusagestat.o.
1858         (generated): Added memusage and memusagestat for make clean.
1859
1860         * libio/tst_putwc.c (do_test): Delete temporary file.
1861         Move inclusion of test-skeleton to front to have prototype for
1862         add_temp_file.
1863
1864         * posix/Makefile (generated): Add wordexp-tst.out.
1865
1866 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1867
1868         * resolv/res_hconf.c (free_mem): Remove not needed if.
1869
1870         * time/tzset.c (free_mem): New function.
1871         * string/strsignal.c (free_mem): New function.
1872         * inet/inet_ntoa.c (free_mem): New function.
1873         * sunrpc/clnt_perr.c (free_mem): New function.
1874
1875 2000-08-24  Andreas Jaeger  <aj@suse.de>
1876
1877         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1878         * sysdeps/unix/sysv/syscalls.list: Likewise.
1879
1880         * posix/unistd.h: Move internal prototypes from here ...
1881         * include/unistd.h: ... to here.
1882
1883         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1884
1885 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1886
1887         * grp/initgroups.c (initgroups): Deallocate groups array.
1888         Reported by jani.raiha@sonera.com [PR libc/1868].
1889
1890         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1891         * sysdeps/alpha/Dist: Likewise.
1892
1893 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1896         destructor).  Reported by Solar Designer <solar@false.com>.
1897
1898         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1899         avoid adding double slashes.
1900
1901 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1902
1903         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1904         out of the __REDIRECT macro.
1905
1906 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1907
1908         * stdio-common/vfscanf.c: Add %F format support.
1909
1910         * locale/programs/ld-ctype.c (ctype_output): Make sure
1911         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1912         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1913         (ctype_read): Enable returning of wide character strings for reading
1914         transliteration information.
1915
1916 2000-08-23  Andreas Jaeger  <aj@suse.de>
1917
1918         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1919         Use static __inline instead of _EXTERN_INLINE.
1920
1921         * misc/sys/select.h: Move prototypes of __select from here ...
1922         * include/sys/select.h: ... to here.
1923
1924         * socket/sys/socket.h: Move prototypes of __send and __connect
1925         from here....
1926         * include/sys/socket.h: ... to here.
1927
1928         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1929         lr_error.
1930
1931 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1932
1933         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1934         __setrlimit as strong name. Takes only 2 arguments.
1935
1936         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1937         takes only 2 arguments.
1938
1939 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1940
1941         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1942
1943         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1944
1945 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1946
1947         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1948         default_missing character being specified, pick the first
1949         representable.
1950
1951 2000-08-23  Andreas Jaeger  <aj@suse.de>
1952
1953         * include/wchar.h: Add some pure attributes.
1954
1955         * time/time.h: Add const attribute for dysize.
1956
1957         * include/stdlib.h: Add malloc attribute to __posix memalign.
1958
1959         * stdlib/stdlib.h: Add some pure and malloc attributes.
1960         * wcsmbs/wchar.h: Likewise.
1961
1962         * dirent/dirent.h: Add some pure attributes.
1963         * include/dirent.h: Likewise.
1964
1965 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1966
1967         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1968         on 64bit arches.
1969
1970 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1971
1972         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1973         missing buffer size checks.
1974
1975 2000-08-23  Andreas Jaeger  <aj@suse.de>
1976
1977         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1978         strong name.
1979         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1980
1981         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1982         otherwise __LINUX_KERNEL_VERSION might not be defined.
1983         (MIN): Define if not already defined.
1984
1985 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1986
1987         * stdio-common/vfprintf.c: Handle %F format.
1988         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1989         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1990
1991         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1992
1993         * po/zh.po: New file.
1994
1995         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1996         enough room in target buffer.
1997         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1998         * iconvdata/bug-iconv1.c: New file.
1999         * iconvdata/Makefile (tests): Add bug-iconv1.
2000
2001         * locale/iso-4217.def: Update entry for Nicaragua.
2002
2003 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2004
2005         * hurd/hurdsig.c: Rearrange headers a bit.
2006         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2007         when cthreads is being used.
2008
2009 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2010
2011         * elf/Makefile (distribute): Add dl-osinfo.h.
2012         * sysdeps/generic/dl-osinfo.h: New file.
2013         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2014         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2015         if defined.
2016         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2017         only for !SHARED case.  Get the code from dl-osinfo.h.
2018
2019         * stdlib/random_r.c: Cleanups.
2020         * stdlib/tst-random.c: New file.
2021         * stdlib/Makefile (tests): Add tst-random.
2022         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2023
2024 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2025
2026         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2027         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2028         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2029         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2030
2031 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2032
2033         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2034         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2035         (__syscall__sysctl): Add.
2036
2037 2000-08-21  Andreas Jaeger  <aj@suse.de>
2038
2039         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2040         libc/1864).
2041         * stdlib/tst-strtoll.c: Likewise.
2042
2043 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2044
2045         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2046         correctly.
2047         (__initstate_r): Set errno on error.
2048         (__random_r): Likewise.
2049         (__setstate_r): Correct offset when computing
2050         new rptr and fptr.  Test for arg_state being NULL.
2051         Reported by Michael Fischer <fischer@cs.yale.edu>.
2052
2053         * posix/regex.h: Add macro definitions to allow compiling outside
2054         glibc.
2055
2056         * sysdeps/i370/Implies: Removed.
2057         * sysdeps/mvs/Implies: Removed.
2058
2059         * catgets/catgets.c (catopen): Filter out env_var values with / if
2060         necessary.
2061
2062         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2063         locale name after all getenvs.
2064
2065         * configure.in: Allow sed versions like 3.02.8.
2066         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2067
2068 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2069
2070         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2071
2072 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2075         of gethostbyname2_r call.
2076
2077         * intl/locale.alias: Add aliases for Korean.
2078
2079 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2080
2081         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2082         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2083         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2084         * sysdeps/s390/fpu/fegetenv.c: New file.
2085         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2086         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2087         * sysdeps/s390/fpu/fenv_libc.h: New file.
2088         * sysdeps/s390/fpu/fesetenv.c: New file.
2089         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2090         * sysdeps/s390/fpu/feupdateenv.c: New file.
2091         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2092         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2093         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2094         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2095         * sysdeps/s390/fpu/ftestexcept.c: New file.
2096         * sysdeps/s390/fpu/libm-test-ulps: New file.
2097         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2098         * sysdeps/s390/initfini.c: New file.
2099         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2100         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2101         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2102         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2103         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2104         sys/procfs.h as proposed by Mark Kettenis.
2105         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2106
2107 2000-08-21  Andreas Jaeger  <aj@suse.de>
2108
2109         * include/poll.h: Include include/sys/poll.h to get __poll
2110         declaration.
2111
2112         * io/sys/poll.h: Move __poll declaration from here...
2113         * include/sys/poll.h: ...to here.
2114
2115         * include/sys/socket.h (__getpeername): Add declaration.
2116
2117         * include/wchar.h (__vswprintf): Add declaration.
2118
2119         * include/stdio.h (__flockfile): Add declaration.
2120         (__funlockfile): Likewise.
2121
2122 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2123
2124         * misc/sys/cdefs.h: Define __restrict_arr.
2125         * include/sys/time.h: Add restrict where required by AGd4.
2126         * inet/arpa/inet.h: Likewise.
2127         * io/sys/stat.h: Likewise.
2128         * io/sys/statvfs.h: Likewise.
2129         * misc/search.h: Likewise.
2130         * misc/sys/select.h: Likewise.
2131         * posix/glob.h: Likewise.
2132         * posix/regex.h: Likewise.
2133         * posix/spawn.h: Likewise.
2134         * posix/unistd.h: Likewise.
2135         * rt/aio.h: Likewise.
2136         * signal/signal.h: Likewise.
2137         * socket/sys/socket.h: Likewise.
2138         * stdlib/ucontext.h: Likewise.
2139         * streams/stropts.h: Likewise.
2140         * string/string.h: Likewise.
2141         * time/time.h: Likewise.
2142         * time/sys/time.h: Likewise.
2143
2144         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2145         and posix_spawnattr_setscheparam.
2146
2147         * libio/stdio.h: Make cuserid prototype again available for all
2148         XPG versions.
2149
2150         * argp/argp-help.c: Unify use of function aliases to make more compact
2151         PLT.
2152         * include/libintl.h: Likewise.
2153         * inet/rcmd.c: Likewise.
2154         * intl/dcigettext.c: Likewise.
2155         * libio/iofputws.c: Likewise.
2156         * libio/iofputws_u.c: Likewise.
2157         * libio/iogetwline.c: Likewise.
2158         * libio/swprintf.c: Likewise.
2159         * malloc/malloc.c: Likewise.
2160         * nss/digits_dots.c: Likewise.
2161         * posix/fnmatch.c: Likewise.
2162         * posix/spawn_faction_addclose.c: Likewise.
2163         * posix/spawn_faction_adddup2.c: Likewise.
2164         * posix/spawn_faction_addopen.c: Likewise.
2165         * posix/spawni.c: Likewise.
2166         * posix/wordexp.c: Likewise.
2167         * posix/spawni.c: Likewise.
2168         * resolv/res_hconf.c: Likewise.
2169         * resolv/res_init.c: Likewise.
2170         * shadow/lckpwdf.c: Likewise.
2171         * signal/sighold.c: Likewise.
2172         * signal/sigrelse.c: Likewise.
2173         * stdio-common/printf-parse.h: Likewise.
2174         * stdio-common/printf-prs.c: Likewise.
2175         * stdio-common/printf_fp.c: Likewise.
2176         * stdio-common/vfprintf.c: Likewise.
2177         * stdio-common/vfscanf.c: Likewise.
2178         * stdlib/rpmatch.c: Likewise.
2179         * sunrpc/create_xid.c: Likewise.
2180         * sunrpc/key_call.c: Likewise.
2181         * sysdeps/generic/setrlimit64.c: Likewise.
2182         * sysdeps/generic/utmp_file.c: Likewise.
2183         * sysdeps/generic/vlimit.c: Likewise.
2184         * sysdeps/posix/posix_fallocate.c: Likewise.
2185         * sysdeps/posix/posix_fallocate64.c: Likewise.
2186         * sysdeps/posix/sigpause.c: Likewise.
2187         * sysdeps/posix/sigset.c: Likewise.
2188         * sysdeps/unix/grantpt.c: Likewise.
2189         * sysdeps/unix/bsd/ualarm.c: Likewise.
2190         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2191         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2192         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2193         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2194         * time/strftime.c: Likewise.
2195         * wcsmbs/wcscoll.c: Likewise.
2196         * wcsmbs/wcsxfrm.c: Likewise.
2197
2198         * time/tst-getdate.c (main): Make error messages more human readable.
2199
2200         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2201         postinc/predec instruction.
2202         (_FPU_SETCW): Likewise.
2203         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2204
2205 2000-08-20  Andreas Jaeger  <aj@suse.de>
2206
2207         * time/tst-getdate.c (main): Increase error in case of wrong
2208         conversion.
2209         Fix typo in test case.
2210
2211 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2212
2213         * ctype/ctype.h (isblank): Make available if ISO C99.
2214         * wctype/wctype.h (iswblank): Make available if ISO C99.
2215         * math/math.h (signgam): Don't make available if ISO C99.
2216         * math/tgmath.h (tgamma): Renamed from gamma.
2217         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2218
2219         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2220         Pretty printing.
2221         * intl/plural.y (new_exp): Take number of optional parameters in
2222         second parameter.  Test for correct number of parameters and free
2223         correctly in case of failure.  Adjust all callers.
2224         (yylex): Allow ';' as terminator character.
2225
2226 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2227
2228         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2229         walt_digits.
2230
2231         * locale/findlocale.c (free_mem): Also free here->filename.
2232
2233         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2234
2235         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2236         first test.
2237         (feexcp_nomask_test): Correct printf args.
2238         (feexcp_mask_test): Likewise.
2239
2240 2000-08-19  Andreas Jaeger  <aj@suse.de>
2241
2242         * inet/tst-gethnm.c: Include string.h to provide prototype for
2243         strcmp.
2244
2245         * malloc/mtrace.pl (usage): Inform about --help.
2246
2247 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2248
2249         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2250         size HEAP_MAX_SIZE.
2251
2252 2000-08-19  Andreas Jaeger  <aj@suse.de>
2253
2254         * shlib-versions: Remove libnss_db, libdb and libdb1.
2255
2256 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2257
2258         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2259         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2260         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2261         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2262         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2263         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2264         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2265         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2266         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2267         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2268         getdents.
2269         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2270         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2271
2272 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2273
2274         * include/glob.h (__glob64): Add prototype.
2275         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2276         define glob and glob_in_dir.
2277         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2278         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2279         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2280         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2281         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2282         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2283         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2284         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2285
2286 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2287
2288         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2289
2290 2000-08-17  Andreas Jaeger  <aj@suse.de>
2291
2292         * math/test-fenv.c (fe_single_test): New function.
2293         (fe_env_tests): Use fe_single_test.
2294         (feenable_test): New tests for feenable/fedisable and
2295         fegetexcpetions.
2296         (feexcp_mask_test): New function.
2297         (feexcp_nomask_test): New function.
2298
2299 2000-08-19  Richard Henderson  <rth@cygnus.com>
2300
2301         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2302         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2303         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2304         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2305         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2306         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2307         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2308         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2309         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2310         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2311         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2312         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2313         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2314         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2315         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2316         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2317         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2318
2319 2000-08-19  Andreas Jaeger  <aj@suse.de>
2320
2321         * elf/constload1.c: Include <stdio.h> for puts prototype.
2322
2323 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2324
2325         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2326         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2327         a dynamically loaded object remove old l_initfini list.
2328         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2329         remove some dynamically allocated memory blocks in the dynamic
2330         loading data structures.
2331         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2332         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2333         Instead call _dl_check_map_versions only for the dependencies.
2334         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2335         information of initial objects as not free-able.
2336         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2337         element.
2338
2339         * elf/filter.c: Call mtrace.
2340         * elf/restest1.c: Likewise.  Close the objects.
2341         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2342         debug information.
2343
2344         * elf/constload1.c: Add comment explaining not freed memory.
2345
2346 2000-08-18  Andreas Jaeger  <aj@suse.de>
2347
2348         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2349         alignment for structs stat and stat64.
2350         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2351
2352 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2355         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2356
2357         * nss/Versions: Remove libnss_db information.
2358
2359 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2362         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2363         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2364         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2365
2366         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2367         to match Solaris.
2368
2369 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2370
2371         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2372         (_FPU_SETCW): Likewise.
2373         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2374
2375         * stdio-common/printf_fp.c: Fix chars_needed computation.
2376         Patch by Greg McGary <greg@mcgary.org>.
2377
2378 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2379
2380         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2381         _dl_loaded are NULL.
2382
2383 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2384
2385         * manual/arith.texi (feholdexcept): Returns 0 on success.
2386
2387 2000-08-17  Andreas Jaeger  <aj@suse.de>
2388
2389         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2390         (ifr_newname): New.
2391         Reported by Andi Kleen <ak@suse.de>.
2392
2393 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2394
2395         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2396         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2397         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2398
2399 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2400
2401         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2402         of buf->st_ino and kbuf->st_ino, not __st_ino.
2403         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2404         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2405         directive so that only linux/getdents.c is used, not some
2406         architecture specific one.
2407
2408 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2409
2410         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2411         enabled, not disabled exceptions.
2412         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2413         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2414
2415 2000-08-17  Greg McGary  <greg@mcgary.org>
2416
2417         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2418         from test program name when constructing suffix for $(LDLIBS-*).
2419         (bounded-thread-library): New variable.
2420         * crypt/Makefile
2421         [build-shared, build-static] (libcrypt-dep): Remove variable.
2422         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2423         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2424         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2425         (librt-tests): Add variable.  (tests): Use it.
2426         [build-shared, build-static]
2427         ($(addprefix $(objpfx),$(tests)),
2428         $(addprefix $(objpfx),$(librt-tests))):
2429         Consolidate individual dependencies.
2430         [build-bounded]
2431         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2432         Add dependencies.
2433         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2434         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2435         * misc/Makefile
2436         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2437         * rt/Makefile
2438         [build-shared, build-static]
2439         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2440         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2441
2442 2000-08-17  Greg McGary  <greg@mcgary.org>
2443
2444         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2445         * sysdeps/unix/make-syscalls.sh: Likewise.
2446         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2447         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2448         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2449         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2450         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2451
2452 2000-08-17  Greg McGary  <greg@mcgary.org>
2453
2454         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2455         Wrap extern symbols in BP_SYM ().
2456         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2457         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2458         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2459         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2460         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2461         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2462         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2463         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2464         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2465         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2466
2467 2000-08-16  Andreas Schwab  <schwab@suse.de>
2468
2469         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2470         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2471         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2472
2473 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2474
2475         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2476         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2477         * elf/dl-support.c: Define _nl_nloaded.
2478         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2479         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2480         object to global list.
2481         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2482         from _dl_loaded list.
2483         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2484         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2485         number here.
2486
2487         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2488         unmask, exceptions.
2489         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2490         exceptions.
2491         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2492
2493 2000-08-16  Andreas Jaeger  <aj@suse.de>
2494
2495         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2496
2497 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2498
2499         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2500
2501 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2502
2503         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2504         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2505         (sysdep_routines): Add oldgetrlimit64.
2506         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2507         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2508
2509         * include/link.h: Undo last patches.  Hurd now has stat64.
2510         * elf/Makefile: Likewise.
2511         * elf/dl-load.c: Likewise.
2512         * elf/dl-misc.c: Likewise.
2513         * elf/dl-profile.c: Likewise.
2514         * sysdeps/generic/sysd-link.h: Removed.
2515         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2516
2517         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2518         thread event callback function.
2519         (__aio_notify_only): Use function above.
2520         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2521
2522 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2523
2524         * sysdeps/mach/hurd/lseek64.c: New file.
2525
2526 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2527
2528         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2529         Remove typedefs.
2530         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2531         typedefs.
2532         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2533         typedefs.
2534         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2535
2536 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2537
2538         * sysdeps/mach/hurd/xstatconv.c: New file.
2539         * sysdeps/mach/hurd/fxstat64.c: New file.
2540         * sysdeps/mach/hurd/lxstat64.c: New file.
2541         * sysdeps/mach/hurd/xstat64.c: New file.
2542         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2543
2544 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2545
2546         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2547         Initialize, needed for change in common symbol handling in newer
2548         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2549
2550 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2551
2552         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2553         * elf/constload2.c: Add destructor to unload constload3.
2554
2555         * include/link.h: Include sysd-link.h.
2556         * sysdeps/generic/sysd-link.h: New file.
2557         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2558         * elf/Makefile (distribute): Add sysd-link.h.
2559         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2560         types and functions directly.
2561         * elf/dl-misc.c: Likewise.
2562         * elf/dl-profile.c: Likewise.
2563
2564         * elf/loadfail.c (main): Close all successfully loaded objects.
2565
2566         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2567         free wd.
2568         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2569         there is already one.
2570
2571         * elf/dl-close.c: Pretty print.
2572
2573 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2574
2575         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2576         global (with file scope).  Add __libc_subfreeres function to free the
2577         string.
2578         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2579         in ttyname function.
2580
2581         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2582
2583         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2584
2585         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2586         mapping them to /x5c and /x7e respectively.
2587
2588         * locale/programs/ld-ctype.c: Add support for more definitions after
2589         copy statement.
2590
2591 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2592
2593         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2594         * sysdeps/unix/sysv/linux/kernel-features.h
2595         (__ASSUME_GETDENTS64_SYSCALL): Define.
2596         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2597         syscall if available to get d_type fields.
2598         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2599         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2600         __lxstat64): Export at GLIBC_2.2.
2601         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2602         Likewise.
2603         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2604         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2605         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2606         getdirentries64, versionsort64): Remove.
2607         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2608         getdirentries64, versionsort64): Remove.
2609
2610 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2611
2612         * posix/Makefile: Remove rules to generate glob package.
2613
2614         * posix/Makefile (tests): Add tst-regexloc.
2615         (tst-regexloc-ENV): Add LOCPATH.
2616         * posix/tst-regexloc.c: New file.
2617
2618 2000-08-12  Andreas Jaeger  <aj@suse.de>
2619
2620         * include/features.h (__STDC_ISO_10646__): Define.
2621         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2622
2623 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2624
2625         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2626
2627         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2628         for revision 6 and up).
2629
2630         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2631         including <time.h>.
2632         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2633         to get definitions of just these types.
2634
2635         * signal/signal.h: Define thread signal handling functions also for
2636         POSIX95.
2637
2638         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2639         POSIX95.
2640         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2641         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2642         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2643         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2644
2645         * sysvipc/sys/shm.h: Define pid_t for XPG.
2646
2647         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2648         they are not anymore required here.
2649
2650         * wcsmbs/wchar.h: Make the various wide char string and stream
2651         functions available for the respective XPG versions.
2652
2653         * nss/Makefile: Remove rules to build and distribute nss_db.
2654
2655         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2656         * sysdeps/generic/scandir64.c: Likewise.
2657         * sysdeps/generic/versionsort64.c: Likewise.
2658
2659 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2660             Benjamin Koznik  <bkoz@redhat.com>
2661
2662         * libio/fileops.c: Merge with libstdc++-v3.
2663         * libio/genops.c: Likewise.
2664         * libio/iofclose.c: Likewise.
2665         * libio/iofopen.c: Likewise.
2666         * libio/iofwide.c: Likewise.
2667         * libio/libio.h: Likewise.
2668         * libio/libioP.h: Likewise.
2669         * libio/stdfiles.c: Likewise.
2670         * libio/stdio.c: Likewise.
2671         * libio/wfileops.c: Likewise.
2672         * libio/wgenops.c: Likewise.
2673
2674         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2675
2676 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2677
2678         * locale/programs/localedef.c: Implement --prefix option to allow
2679         writing in standard places of alternative install directories.
2680
2681         * posix/regex.c (compile_range): Implement collation sequence
2682         handling for glibc.  Use simple character ordering otherwise and
2683         not strcoll.
2684
2685 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2686
2687         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2688
2689 2000-08-12  Andreas Jaeger  <aj@suse.de>
2690
2691         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2692         __USE_FILE_OFFSET64 correctly for locking.
2693         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2694
2695 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2696
2697         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2698         Define for 2.4.1 on sparc as well.
2699         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2700         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2701         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2702         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2703
2704 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2705
2706         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2707         defined.
2708
2709 2000-08-12  Andreas Jaeger  <aj@suse.de>
2710
2711         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2712         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2713
2714         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2715         mips2 for assembler.
2716
2717         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2718         if fnctl64 is not available for F_*LK*64.
2719
2720         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2721
2722 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2723
2724         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2725         Define for 2.4.1 on x86.
2726         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2727         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2728         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2729
2730         * dirent/dirent.h: Define DT_WHT.
2731
2732         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2733         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2734         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2735         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2736         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2737         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2738
2739 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2740
2741         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2742         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2743         * inet/Makefile (tests): Add tst-gethnm.
2744         * inet/tst-gethnm.c: New file.
2745
2746         * rt/aio_cancel.c: If canceling a specific request which is running
2747         *really* do nothing.
2748         * rt/aio_misc.h: Add `done' to states of a request.
2749         * rt/aio_misc.c: Add several tests for the correct state.
2750         Simplify request table memory handling.
2751
2752 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2753
2754         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2755         * dirent/scandir64.c: Move...
2756         * sysdeps/generic/scandir64.c: ...here.
2757         * dirent/alphasort64.c: Move...
2758         * sysdeps/generic/alphasort64.c: ...here.
2759         * dirent/versionsort64.c: Move...
2760         * sysdeps/generic/versionsort64.c: ...here.
2761         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2762         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2763         Export symbols at GLIBC_2.2.
2764         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2765         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2766         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2767         __versionsort64): Add prototypes.
2768         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2769         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2770         unused prototype.
2771         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2772         and GLIBC_2.2.
2773         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2774         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2775         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2776         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2777         __u_quad_t.
2778         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2779         Adjust for kernel-2.4.0-test6 layout.
2780         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2781         GLIBC_2.1 and GLIBC_2.2.
2782         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2783         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2784         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2785         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2786         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2787         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2788         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2789         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2790         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2791         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2792         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2793         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2794         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2795         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2796         __u_quad_t.
2797         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2798         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2799         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2800         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2801         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2802         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2803         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2804         __u_quad_t.
2805         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2806         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2807         Define.
2808         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2809         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2810         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2811         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2812         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2813         Define.
2814         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2815         alpha/readdir.c.
2816         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2817         alpha/readdir_r.c
2818         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2819         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2820         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2821         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2822         st_ino from __st_ino.
2823         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2824         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2825         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2826         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2827         set __st_ino in addition to st_ino.
2828         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2829         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2830         __old_getdents64 as well.
2831         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2832         getdirentries64 and old_getdirentries64 as well.
2833         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2834         __GETDENTS): Define.
2835         (GETDENTS64): Remove.
2836         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2837         Define.
2838         (GETDENTS64): Remove.
2839         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2840         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2841         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2842         as well.
2843         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2844         __old_readdir64_r as well.
2845         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2846         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2847
2848 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2849
2850         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2851         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2852         define of the kernel.
2853         Add missing __SEG_PSTKOVF definition.
2854         Adjust the padding of struct siginfo and struct sigevent to
2855         match the fact that sigval_t is 64 bit.
2856
2857 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2858
2859         * timezone/zic.c: Update from tzcode2000f.
2860         * timezone/australasia: Update from tzdata2000f.
2861         * timezone/europe: Likewise.
2862         * timezone/southamerica: Likewise.
2863         * timezone/yearistype: Likewise.
2864
2865 2000-08-10  Andreas Jaeger  <aj@suse.de>
2866
2867         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2868         stat with current MIPS kernel.
2869
2870 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2871
2872         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2873         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2874         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2875         Remove the junk that's only relevant in the Linux kernel itself.
2876         Add a warning saying that this file is now obsolete, and include
2877         <sys/procfs.h>.
2878         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2879         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2880         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2881         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2882         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2883         and add the notice that the file is primarily there for GDB.
2884         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2885
2886 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2887
2888         * time/tzfile.c (__tzfile_compute): __tzstring zones
2889         from zone_names.
2890
2891 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2892
2893         * resolv/resolv.h (__res_state): Surround prototype with
2894         __BEGIN_DECLS/__END_DECLS.
2895         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2896
2897 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2898
2899         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2900         Make independant of asm/resource.h from the Linux kernel.
2901
2902 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2903
2904         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2905
2906 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2907
2908         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2909         * locale/Makefile (locale-CPPFLAGS): Likewise.
2910
2911 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2912
2913         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2914         for AMD processors.
2915
2916 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * misc/Versions (mincore): Export at GLIBC_2.2.
2919
2920 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2921
2922         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2923
2924 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2925
2926         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2927         socketpair.  Made socketpair a weak alias.
2928         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2929         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2930         conforming, but fall back on the old protocol if the socket server
2931         doesn't support it.
2932         * include/sys/socket.h: Add prototype for __socketpair.
2933
2934 2000-08-09  Andreas Schwab  <schwab@suse.de>
2935
2936         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2937         long long modifier is seen.
2938
2939         * elf/nodelete.c (do_test): Remove reference to undefined member
2940         sa_restorer.
2941         * rt/tst-aio4.c (do_test): Likewise.
2942
2943         * configure.in: Add `-lm' when checking for libgd.
2944         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2945         linking.
2946
2947 2000-08-09  Andreas Jaeger  <aj@suse.de>
2948
2949         * configure.in: Change required make versions.
2950
2951         * manual/install.texi (Tools for Compilation): Document required
2952         make version.
2953         (Supported Configurations): Update list of supported
2954         configurations.
2955
2956 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2957
2958         * locale/linereader.c (get_string): Don't print an error is a string
2959         contains an unknown character.
2960
2961 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2962
2963         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2964         (new_symbol): Take new parameters with name of the symbol.
2965         Adjust callers.
2966         (handle_ellipsis): Don't only allow character symbols.
2967         (collate_read): Allow string of collating elements contain invalid
2968         characters; ignore entry in this case.
2969         Handle ellipsis of collating symbols before first order_start.
2970         Allow ellipsis in state 0.
2971
2972 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2973
2974         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2975         error message.
2976         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2977
2978 2000-08-04  Greg McGary  <greg@mcgary.org>
2979
2980         * posix/regex.c (SET_HIGH_BOUND): New macro.
2981         (MOVE_BUFFER_POINTER): Use it.
2982         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2983         (EXTEND_BUFFER): Use it.
2984
2985 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2986
2987         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2988         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2989         _wide_data but from _IO_FILE directly.
2990         * libio/iofclose.c: Likewise.
2991         * libio/wfileops.c: Likewise.
2992
2993         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2994         * libio/libioP.h: Change prototypes.
2995
2996 2000-08-03  Greg McGary  <greg@mcgary.org>
2997
2998         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2999         frame pointer early so that we save caller's frame pointer.
3000         * sysdeps/i386/elf/setjmp.S: Likewise.
3001
3002         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3003         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3004
3005         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3006         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3007         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3008
3009 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3010
3011         * iconvdata/big5.c: Updated.
3012         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3013
3014 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * Makeconfig (all-subdirs): Add conform.
3017         * conform/Makefile: Include ../Rules.
3018
3019         * Makefile (README): Add rules to generate here as well.
3020
3021 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3022
3023         * version.h (VERSION): Bump to 2.1.92.
3024
3025         * sysdeps/ia64/Dist: Add _mcount.S.
3026
3027         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3028
3029         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3030
3031         * elf/Makefile (distribute): Add missing modules.
3032
3033         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3034
3035         * posix/regex.c (compile_range): Translate range start and end
3036         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3037
3038         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3039         asm/resource.h.
3040
3041         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3042
3043 2000-08-02  Andreas Jaeger  <aj@suse.de>
3044
3045         * elf/elf.h (EM_S390): Added.
3046         (R_390_*): New relocs for S390.
3047
3048         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3049         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3050         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3051         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3052         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3053         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3054         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3055         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3056         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3057         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3058         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3059         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3060         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3061         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3062         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3063         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3064         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3065         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3066         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3067         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3068         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3069         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3070         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3071         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3072         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3073         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3074         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3075         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3076         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3077         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3078         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3079         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3080         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3081         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3082         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3083         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3084         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3085         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3086         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3087         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3088         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3089         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3090         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3091         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3092         * sysdeps/s390/sysdep.h: New file.
3093         * sysdeps/s390/sys/ucontext.h: New file.
3094         * sysdeps/s390/sub_n.S: New file.
3095         * sysdeps/s390/strncpy.S: New file.
3096         * sysdeps/s390/strcpy.S: New file.
3097         * sysdeps/s390/stackinfo.h: New file.
3098         * sysdeps/s390/setjmp.S: New file.
3099         * sysdeps/s390/s390-mcount.S: New file.
3100         * sysdeps/s390/mul_1.S: New file.
3101         * sysdeps/s390/memusage.h: New file.
3102         * sysdeps/s390/memset.S: New file.
3103         * sysdeps/s390/memcpy.S: New file.
3104         * sysdeps/s390/memchr.S: New file.
3105         * sysdeps/s390/machine-gmon.h: New file.
3106         * sysdeps/s390/ldbl2mpn.c: New file.
3107         * sysdeps/s390/gmp-mparam.h: New file.
3108         * sysdeps/s390/fpu/fpu_control.h: New file.
3109         * sysdeps/s390/fpu/fesetround.c: New file.
3110         * sysdeps/s390/fpu/fegetround.c: New file.
3111         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3112         * sysdeps/s390/fpu/bits/fenv.h: New file.
3113         * sysdeps/s390/ffs.c: New file.
3114         * sysdeps/s390/elf/start.S: New file.
3115         * sysdeps/s390/elf/setjmp.S: New file.
3116         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3117         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3118         * sysdeps/s390/dl-machine.h: New file.
3119         * sysdeps/s390/bzero.S: New file.
3120         * sysdeps/s390/bsd-setjmp.S: New file.
3121         * sysdeps/s390/bsd-_setjmp.S: New file.
3122         * sysdeps/s390/bits/string.h: New file.
3123         * sysdeps/s390/bits/setjmp.h: New file.
3124         * sysdeps/s390/bits/huge_val.h: New file.
3125         * sysdeps/s390/bits/endian.h: New file.
3126         * sysdeps/s390/bits/byteswap.h: New file.
3127         * sysdeps/s390/bcopy.S: New file.
3128         * sysdeps/s390/backtrace.c: New file.
3129         * sysdeps/s390/atomicity.h: New file.
3130         * sysdeps/s390/asm-syntax.h: New file.
3131         * sysdeps/s390/addmul_1.S: New file.
3132         * sysdeps/s390/add_n.S: New file.
3133         * sysdeps/s390/abort-instr.h: New file.
3134         * sysdeps/s390/__longjmp.c: New file.
3135         * sysdeps/s390/Makefile: New file.
3136         * sysdeps/s390/Implies: New file.
3137         * sysdeps/s390/Dist: New file.
3138         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3139
3140 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3141
3142         Remove incompatible IPv6 extension of RPC.
3143         * sunrpc/Makefile: Undo changes.
3144         * sunrpc/rpc_main.c: Likewise.
3145         * sunrpc/rpc/clnt.h: Likewise.
3146         * sunrpc/rpc/svc.h: Likewise.
3147         * sunrpc/bindrsvprt6.c: Removed.
3148         * sunrpc/clnt_tcp6.c: Removed.
3149         * sunrpc/clnt_udp6.c: Removed.
3150         * sunrpc/svc_tcp6.c: Removed.
3151         * sunrpc/svc_udp6.c: Removed.
3152
3153         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3154         dgettext, and dcgettetxt.
3155
3156         * intl/locale.alias: Update japanese aliases.
3157
3158         * sysdeps/ia64/bits/byteswap.h: New file.
3159         Patch by Dan Pop <Dan.Pop@cern.ch>.
3160
3161         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3162         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3163
3164 2000-07-13  H.J. Lu  <hjl@gnu.org>
3165
3166         * posix/regex.c (re_max_failures): Set to 4000.
3167
3168 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3169
3170         * gnulib/Makefile (tests): Add tst-gcc.
3171         * gnulib/tst-gcc.c: New file.
3172
3173         * assert/Makefile (routines): Add __assert.
3174         * assert/Versions: Export __assert for glibc 2.2.
3175         * assert/__assert.c: New file.
3176         * assert/assert.h: Declare __assert.
3177
3178 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3179
3180         * locale/localeinfo.h (_ISCTYPE): New macro.
3181         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3182         LC_CTYPE locale format.
3183         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3184         (ctype_output): Output class_b[nr] right before class_3level[nr].
3185         (allocate_arrays): Fill class_b, similarly to class_3level.
3186
3187 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3188             Joseph S. Myers  <jsm28@cam.ac.uk>
3189
3190         * math/tgmath.h: Make standard compliant.  Don't ask how.
3191
3192 2000-07-04  H.J. Lu  <hjl@gnu.org>
3193
3194         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3195         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3196         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3197
3198 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3199
3200         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3201         (__USE_LARGEFILE): Add an explanation.
3202         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3203         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3204
3205 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3206
3207         * libio/Makefile: Enable exception handling for genops, wgenops,
3208         fileops, and wfileops.
3209
3210 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3211
3212         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3213         acount that elf/rtld's main program might remove some varibales
3214         from the environment if we're trying to be secure.  Move the Hurd
3215         startup data if necessary, or, if we there is no startup data,
3216         make sure the magical convention that ARGV[0] is stored just after
3217         the environment list.
3218
3219 2000-08-01  Philip Blundell  <philb@gnu.org>
3220
3221         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3222         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3223         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3224         oldsetrlimit for GLIBC_2.0.
3225
3226 2000-08-01  Andreas Jaeger  <aj@suse.de>
3227
3228         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3229         (LINE_PARSER): Allow any number of spaces between ip address and
3230         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3231
3232         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3233
3234         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3235         constants in.
3236
3237         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3238         _nss_nisplus_getipnodebyname_r.
3239
3240         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3241         now, getipnodebyname is deprecated.
3242         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3243         Likewise.
3244
3245         * inet/Makefile (routines): Don't build getipnodebyaddr and
3246         friends.
3247
3248         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3249
3250         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3251
3252         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3253
3254         * wctype/Makefile (distribute): Add wchar-lookup.h.
3255
3256         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3257
3258         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3259
3260 2000-08-01  Andreas Schwab  <schwab@suse.de>
3261
3262         * Make-dist (dist): Resolve `..' in file names.
3263
3264 2000-08-01  Andreas Jaeger  <aj@suse.de>
3265
3266         * stdio-common/Makefile (distribute): Remove removed files, add
3267         new files.
3268
3269         * Makefile (distribute): Remove include/db_185.h and db.h.
3270
3271         * include/db_185.h: Remove, it's not needed anymore.
3272         * include/db.h: Likewise.
3273
3274 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3275
3276         * inet/Makefile (tests): Remove tst-ipnode.
3277         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3278         now.
3279
3280 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3281
3282         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3283         endp statements have already been added.
3284
3285 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3286
3287         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3288         <sysdeps/ia64/sysdep.h>.
3289
3290         * sysdeps/ia64/_mcount.S: New file.
3291
3292         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3293         __gmon_start__.  Fix up extraneous whitespace.
3294
3295 2000-01-12  H.J. Lu  <hjl@gnu.org>
3296
3297         * sysdeps/ia64/elf/initfini.c: New file.
3298
3299 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3300
3301         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3302         dependency between branch and ar.pfs write.
3303
3304 2000-07-31  H.J. Lu  <hjl@gnu.org>
3305
3306         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3307         handle the wchar_t array.
3308
3309 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3310
3311         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3312         10646 which are not yet assigned.
3313         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3314
3315 2000-07-31  Andreas Jaeger  <aj@suse.de>
3316
3317         * inet/Versions: Remove getipnodebyaddr and friends from
3318         GLIBC_2.2.
3319
3320         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3321
3322 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3323
3324         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3325         ch >= 0x81 && ch2 < 0x40 as invalid.
3326
3327 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3328
3329         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3330         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3331
3332 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3333
3334         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3335         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3336
3337 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3338
3339         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3340         0xb8.
3341         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3342
3343 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3344
3345         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3346
3347 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3348
3349         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3350         (from_ucs4): Change values of U+00A4 and U+00ED.
3351         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3352
3353 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3354
3355         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3356         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3357
3358 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3359
3360         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3361         * iconvdata/isiri-3342.h: New file.
3362         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3363         treat 0x80 as a gap.
3364
3365 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3366
3367         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3368         (utf8_encode): Use simple shifts instead.  Fix return value.
3369
3370 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3371
3372         * timezone/private.h: Update from tzcode2000e.
3373         * timezone/asia: Update from tzdata2000e.
3374         * timezone/australasia: Likewise.
3375         * timezone/europe: Likewise.
3376         * timezone/northamerica: Likewise.
3377         * timezone/zone-tab: Likewise.
3378
3379 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3380
3381         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3382         the order of struct sigaltstack members is different.
3383
3384 2000-07-26  Philip Blundell  <philb@gnu.org>
3385
3386         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3387
3388 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3389
3390         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3391         * locale/programs/ld-ctype.c: Adjust for this.
3392
3393         * locale/programs/ld-collate.c: Add more alignment checks.
3394         * locale/string/strcoll.c: Likewise.
3395
3396 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3397
3398         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3399         outside USE_IN_LIBIO block.
3400
3401 2000-07-26  Philip Blundell  <philb@gnu.org>
3402
3403         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3404         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3405
3406 2000-07-28  Philip Blundell  <philb@gnu.org>
3407
3408         * math/test-fpucw.c: Ignore reserved bits in control word.
3409
3410 2000-07-28  Philip Blundell  <philb@gnu.org>
3411
3412         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3413         (ret): Redefine to PSEUDO_RET.
3414         (PSEUDO): Remove jump to syscall_error.
3415
3416 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3417
3418         * resolv/README: Add some information about using the resolver in
3419         multi-threaded code and with C++.  Spelling fixes.
3420
3421 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3422
3423         * resolv/resolv.h (struct __sockaddr_in): Remove.
3424         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3425
3426 2000-07-29  Greg McGary  <greg@mcgary.org>
3427
3428         * Rules (test-bp-inputs, make-test-out): New variables.
3429         ($(objpfx)%-bp.out): New rule.
3430         ($(objpfx)%.out): Rewrite in terms of new variables.
3431
3432         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3433         internal function that uses vtable.
3434         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3435         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3436
3437         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3438         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3439         (chunk_align): Likewise.
3440
3441         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3442         in a way that conforms to decl, and avoids spurious bounds violation.
3443
3444         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3445         * sysdeps/generic/frame.h: Likewise.
3446         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3447         around return value.
3448         (__backtrace): Qualify frame-pointer chain and return address
3449         pointers as __unbounded.  Wrap bounds around variable `current'.
3450         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3451         around return value.
3452         (catch_segfault): Qualify frame-pointer chain and return address
3453         pointers as __unbounded.  Wrap bounds around variable `current'.
3454         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3455         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3456         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3457         __unbounded.
3458         (__backtrace): Qualify frame-pointer chain and return address
3459         pointers as __unbounded.  Wrap bounds around variable `current'.
3460
3461         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3462         * sysdeps/i386/mul_1.S: Likewise.
3463         * sysdeps/i386/submul_1.S: Likewise.
3464         * sysdeps/i386/i586/addmul_1.S: Likewise.
3465         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3466         * sysdeps/i386/i586/submul_1.S: Likewise.
3467
3468 2000-07-27  Andreas Jaeger  <aj@suse.de>
3469
3470         * libio/Depend: New file, libio needs localedata for tests.
3471         * posix/Depend: Likewise.
3472
3473 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3474
3475         * stdio-common/_i18n_itoa.c: Removed.
3476         * stdio-common/_i18n_itoa.h: Removed.
3477         * stdio-common/_i18n_itowa.c: Removed.
3478         * stdio-common/_i18n_itowa.h: Removed.
3479         * stdio-common/_i18n_number.h: New file.
3480         * stdio-common/Depend: New file.
3481         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3482         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3483         printing.  Change printing of numbers with locale specific digits to
3484         use new code in _i18n_number.h.
3485         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3486         _i18n_itowa.
3487
3488         * stdio-common/bug13.c: Improve messages.
3489
3490         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3491         (set_class_defaults): Always search also for Uxxxx names.
3492         Detect insufficient number of outdigits.
3493
3494         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3495
3496 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3497
3498         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3499         _NL_CTYPE_MAP_NAMES.
3500         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3501         * wctype/wcfuncs.c (towlower, towupper): Use them.
3502         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3503         * wctype/wctrans.c (wctrans): Likewise.
3504         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3505
3506 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3507
3508         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3509         Use the optimized version of this function outside glibc as well.
3510
3511 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3512
3513         * locale/indigits.h (indigit_value): Correct.
3514         * locale/indigitswc.h (indigitwc_value): Correct.
3515         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3516         conversion, add GROUP checking for it, fix GROUP number
3517         conversion with strlen(thousands) > 1.
3518         Honour width correctly in the presence of floating
3519         decimal points and thousands separators.
3520         * stdio-common/tst-sscanf.c: New test.
3521         * stdio-common/Makefile: Add it to tests.
3522         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3523         thousands separators and group argument is non-zero.
3524
3525 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3526
3527         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3528         starts at GLIBC_2.2.
3529
3530 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3531
3532         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3533         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3534         _test_and_set.
3535         (headers): Add sys/tas.h.
3536         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3537         GLIBC_2.2 from libc.
3538         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3539         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3540         _test_and_set.
3541
3542 2000-07-28  Andreas Jaeger  <aj@suse.de>
3543
3544         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3545
3546         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3547         ($(objpfx)tst-dladdr.out): new.
3548         (tests): Add tst-dladdr.
3549         ($(objpfx)glrefmain): Use libdl.
3550
3551         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3552         <vs@caldera.de>.
3553
3554 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3555
3556         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3557         ftruncate(64) calls.
3558
3559 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3560
3561         * intl/tst-translit.c: Include string.h to get prototype for
3562         strcmp().
3563
3564 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3565
3566         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3567         name and add weak alias for __fork.
3568
3569         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3570         & pwrite to use __libc_<name> as strong names instead of
3571         __syscall_<name>.
3572
3573         * include/sched.h: Add clone2 prototype.
3574
3575 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3576
3577         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3578         procedure name twice.
3579
3580 2000-07-27  Philip Blundell  <philb@gnu.org>
3581
3582         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3583
3584 2000-07-27  Andreas Jaeger  <aj@suse.de>
3585
3586         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3587         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3588         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3589         Reported by Andi Kleen <ak@suse.de>.
3590
3591         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3592         (do_wait): Test requests with aio_return64.
3593         (do_test): Change callers of do_wait.
3594
3595 2000-07-26  Andreas Jaeger  <aj@suse.de>
3596
3597         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3598         (do_wait): Test requests with aio_return.
3599         (do_test): Change callers of do_wait.
3600
3601 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3602
3603         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3604         from request list.  Don't do the list handling here, call
3605         __aio_remove_request.
3606         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3607         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3608         request might already be processed.  Don't do the list handling
3609         here, call __aio_remove_request.
3610
3611         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3612         LIO_DSYNC.
3613
3614         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3615         are missing.
3616
3617 2000-07-27  Greg McGary  <greg@mcgary.org>
3618
3619         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3620         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3621         in union init.  Pass zero for ignored semnum arg to semctl.
3622         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3623
3624 2000-07-26  Greg McGary  <greg@mcgary.org>
3625
3626         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3627         data structure pointers as __unbounded.
3628         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3629         * sysdeps/generic/bp-semctl.h: New file.
3630         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3631         pointers as __unbounded.  Check bounds of syscall args.
3632         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3633         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3634         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3635         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3636         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3637         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3638         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3639         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3640         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3641         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3642         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3643         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3644         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3645         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3646         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3647         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3648
3649 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3652         by default.
3653         * locale/C-ctype.c: Likewise.
3654         * wcsmbs/wcsmbsload.c: Likewise.
3655
3656 2000-07-26  Greg McGary  <greg@mcgary.org>
3657
3658         * Makeconfig (+link-bounded, link-libc-bounded,
3659         link-extra-libs-bounded): New variables.
3660         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3661         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3662         * Rules (tests-bp.out): New variable.
3663         (tests): Conditionally add BP tests.
3664         (binaries-bounded): Add variable and associated rule.
3665         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3666         Move conditional stuff after place where condition is defined.
3667
3668         * malloc/malloc.c (bp-checks.h): Add #include.
3669         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3670         (_bin_at): Add unbounded version of bin_at.
3671         (IAV, chunk_alloc): Use unbounded _bin_at.
3672         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3673         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3674         Wrap BOUNDED_N around return value.
3675         (chunk_realloc): Adjust oldsize once.
3676
3677         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3678         (__ubp_memchr): Add correct decl.
3679         (_CHECK_STRING): Use __ubp_memchr.
3680         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3681         New alias for unbounded-pointer __memchr.
3682         * sysdeps/i386/memchr.S: Likewise.
3683         * sysdeps/ia64/memchr.S: Likewise.
3684         * sysdeps/m68k/memchr.S: Likewise.
3685         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3686         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3687         * sysdeps/vax/memchr.s: Likewise.
3688
3689         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3690         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3691         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3692         * sysdeps/i386/i686/strtok.S: Likewise.
3693         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3694         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3695
3696         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3697         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3698
3699         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3700         bounds of copy_result to mount_proc.
3701
3702 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3703
3704         * wctype/wctype.h (__wctrans_l): New declaration.
3705         * wctype/wctrans_l.c: New file.
3706         * wctype/Makefile (routines): Add wctrans_l.
3707
3708 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3709
3710         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3711         Patch by MacGyver <macgyver@tos.net>.
3712
3713 2000-07-26  Andreas Jaeger  <aj@suse.de>
3714
3715         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3716         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3717         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3718
3719         * rt/tst-aio.c (test_file): Fix typo.
3720         * rt/tst-aio64.c (test_file): Likewise.
3721
3722         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3723         * rt/Makefile: Add rules to build and run tst-aio3.
3724
3725         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3726         it's not needed and confuses only.
3727
3728 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3729
3730         * resolv/res_init.c: Add support for nameserver communication with
3731         IPv6.
3732         * resolv/res_send.c: Likewise.
3733         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3734         in nsaddrs field.
3735         Patch by <venaas@nvg.ntnu.no>.
3736
3737 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3738
3739         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3740         (wcwidth_table_get): New function.
3741         (wcwidth_table_add): Call it.
3742         (wctrans_table_get): New function.
3743         (wctrans_table_add): Call it.
3744
3745 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3746
3747         * rt/lio_listio.c (lio_listio): Always disable individual
3748         notification.
3749         * rt/Makefile: Add rules to build and run tst-aio2.
3750         * rt/tst-aio2.c: New file.
3751
3752         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3753         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3754
3755 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3756
3757         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3758         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3759         leading and trailing spaces from host, user and domain name.
3760
3761 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3762
3763         * csu/defs.awk: Add support for need_endp.
3764
3765 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3766
3767         * resolv/resolv.h: Remove __P from res_send_qhook and
3768         res_send_rhook typedefs.
3769
3770 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3771
3772         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3773
3774 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3775
3776         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3777
3778 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3779
3780         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3781         calling thread, set the cancellation flag and return success
3782         instead of EINTR.
3783
3784 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3785
3786         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3787         * libio/tst-widetext.c: New file.
3788         * libio/tst-widetext.input: New file.
3789
3790         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3791
3792         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3793         empty external buffer correctly.
3794
3795 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3796
3797         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3798         __STRING(entry) and not #entry.
3799         (_RTLD_EPILOGUE): Likewise.
3800         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3801
3802 2000-07-25  Andreas Jaeger  <aj@suse.de>
3803
3804         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3805         according to changes in test program, run also with static only
3806         builds.
3807         ($(objpfx)tst-printf.out): Likewise.
3808
3809         * stdio-common/tst-unbputc.sh: Likewise.
3810         * stdio-common/tst-printf.sh: Likewise.
3811
3812 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3813
3814         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3815
3816         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3817         loop.
3818
3819         * libio/fileops.c: Pretty print.
3820
3821 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3822
3823         * wctype/wchar-lookup.h: New file.
3824         * wctype/iswctype.c: Include "wchar-lookup.h".
3825         (__iswctype): Support alternate locale format with 3-level tables.
3826         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3827         * wctype/towctrans.c (__towctrans): Likewise.
3828         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3829         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3830         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3831         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3832         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3833         __iswxdigit, towlower, towupper): Support alternate locale format
3834         with 3-level tables.
3835         * wctype/wcextra.c (iswblank): Likewise.
3836         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3837         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3838         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3839         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3840         format with 3-level tables.
3841         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3842         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3843         format, return a 3-level table pointer.
3844         * wctype/wctype_l.c (__wctype_l): Likewise.
3845         * wctype/wctrans.c (wctrans): Likewise.
3846         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3847         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3848         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3849         (iswctype): Remove macro definition.
3850         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3851         (internal_wcwidth): Support alternate locale format with 3-level
3852         tables.
3853         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3854         New nl_items.
3855         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3856         Define them as being type "word".
3857         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3858         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3859         __ctype32_width): New exported variables.
3860         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3861         alternate locale format. Don't initialize __ctype_names and
3862         __ctype_width in the alternate locale format.
3863         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3864         * locale/programs/localedef.c (oldstyle_tables): New variable.
3865         (OPT_OLDSTYLE): New macro.
3866         (options): Add --old-style option.
3867         (parse_opt): Handle --old-style option.
3868         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3869         map_offset, class_3level, map_3level, width_3level members.
3870         (ctype_output): Support for alternate locale format: Computation of
3871         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3872         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3873         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3874         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3875         now contain both class and map tables.
3876         (struct wctype_table): New type.
3877         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3878         functions.
3879         (struct wcwidth_table): New type.
3880         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3881         functions.
3882         (struct wctrans_table): New type.
3883         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3884         functions.
3885         (allocate_arrays): Support for alternate locale format: Set
3886         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3887         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3888         to the first 256 characters. Compute ctype->map_3level. Set
3889         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3890         instead of ctype->width.
3891
3892 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3893
3894         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3895         string functions.
3896
3897 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3898
3899         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3900         in wide characters, not bytes.
3901         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3902         into file.
3903
3904 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3905
3906         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3907         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3908         LC_MEASUREMENT, LC_IDENTIFICATION.
3909
3910         * locale/xlocale.h (struct __locale_struct): Increase size of
3911         __locales array.
3912         * locale/duplocale.c (__duplocale): Copy newly added categories as
3913         well.
3914         * locale/freelocale.c (__freelocale): Free newly added categories.
3915         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3916         If a base is given, use it, don't simply return it.
3917
3918 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3919
3920         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3921         variables, copied_key and copied_salt, instead of boolean variables.
3922
3923 2000-07-24  Andreas Jaeger  <aj@suse.de>
3924
3925         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3926         check for offset.
3927
3928         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3929         initgroups_function, adopted prototype for change from 2000-07-23.
3930         (initgroups): Follow type change.
3931
3932         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3933         & PAGE_MASK case, reformat.
3934
3935         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3936         from stdin and setup environment.
3937
3938 2000-07-24  Andreas Schwab  <schwab@suse.de>
3939
3940         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3941
3942 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3943
3944         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3945         more.  Patch by scarlet@mit.edu [PR libc/1799].
3946
3947         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3948         [PR libc/1792].
3949
3950         * argp/argp-parse.c (parser_finalize): Reverse order in which
3951         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3952
3953         * grp/initgroups.c (initgroups): Don't limit the possible number
3954         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3955         the setgroups call while the call fails and descrease the number
3956         of groups each round.
3957         The name of the initgroups function in the NSS modules changed.
3958         (compat_call): Adapt for dynamic resizing.
3959         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3960         Implement dynamic resizing.
3961         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3962         Likewise.
3963         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3964         * hesiod/Versions: Change exported interface name.
3965         * nis/Versions: Change exported interface name.
3966
3967 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3968
3969         * locale/iso-639.def: Some errors corrected.
3970         Patch by Keld Simonsen.
3971
3972         * include/limits.h: Update non-gcc portion.
3973         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3974
3975 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3976
3977         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3978         program's data space, reallocate only the space that was just
3979         deallocated to release its backing space.
3980
3981 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3982
3983         * stdio-common/vfprintf.c (process_string_arg): For wide character
3984         version, handle precision also correctly.
3985
3986         * nss/nss_files/files-hosts.c: Correct problem with three or more
3987         entries with the same name.
3988
3989         * nss/nss_files/files-hosts.c: Implement multi handling.
3990         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3991
3992 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3993
3994         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3995         strcasecmp.
3996
3997         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3998         * malloc/Makefile: Likewise.
3999         * malloc/tst-mtrace.sh: Likewise.
4000         * posix/Makefile: Likewise.
4001         * posix/globtest.sh: Likewise.
4002         * posix/wordexp-tst.sh: Likewise.
4003         * string/Makefile: Likewise.
4004
4005 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4006
4007         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4008         size instead of LC_ALL to take into account the new locale
4009         categories.
4010
4011 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4012
4013         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4014         remainders of hash table.
4015         * locale/categories.def: Remove remainders of transliteration
4016         hash table.
4017         * locale/langinfo.h: Likewise.
4018         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4019         transliteration tables.
4020
4021         * locale/gen-translit.pl: New file.
4022         * locale/C-translit.h.in: New file.
4023         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4024         data pointers with data from this file.
4025         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4026         and gen-translit.pl.
4027         Add rule to generate C-translit.h.
4028         * intl/tst-translit.c (main): Update for now performed
4029         transliteration.
4030
4031         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4032         (it's no input error).
4033         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4034         * stdio-common/scanf12.c: Correct expected result for first scanf.
4035
4036         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4037         of multibyte character strings in %s format with precision.
4038
4039 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4040
4041         * locale/programs/ld-collate.c (collate_read): Allow collating
4042         symbols and elements be named in reorder-after instructions.
4043         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4044
4045         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4046         duplication with generated name, not the name of the first
4047         character.
4048         Patch by Yong Li <yong.li@asu.edu>.
4049
4050         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4051         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4052
4053 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4054
4055         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4056         allocations only if a non-main arena cannot be extended.
4057
4058 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4059
4060         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4061         in DF_1_NODEFLIB handling.
4062
4063 2000-07-21  Andreas Jaeger  <aj@suse.de>
4064
4065         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4066         own rule.
4067
4068         * libio/fwide.c: Include <wchar.h> for prototype.
4069
4070 2000-07-21  Greg McGary  <greg@mcgary.org>
4071
4072         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4073         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4074         Define in terms of chunk_at_offset.
4075         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4076         (next_bin, prev_bin): offset by size of real array elements.
4077         (chunk_align): Make `m' a scalar, since that's how it's used.
4078
4079 2000-07-21  Greg McGary  <greg@mcgary.org>
4080
4081         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4082         UNCHECK_BOUNDS.
4083         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4084         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4085         Wrap bounds around argv & envp and each of their string members.
4086         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4087         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4088         symbol in BP_SYM ().  Discard bounds of address arg.
4089         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4090         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4091         Discard bounds on address arg, add bounds to return value.
4092
4093 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4094
4095         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4096         * elf/filter.c: New file.
4097         * elf/filtmod1.c: New file.
4098         * elf/filtmod2.c: New file.
4099
4100         * elf/rtld.c: Define _dl_bind_not variable.
4101         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4102         * elf/dl-support.c: Likewise.
4103         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4104         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4105         _dl_bind_not.
4106         (profile_fixup): Likewise.
4107
4108         * libio/Makefile (routines): Add fwide.
4109         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4110         fwide now.  Internal calls to _IO_fwide must do locking themselves
4111         or don't need locking.
4112         * libio/fwide.c: New file.
4113
4114         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4115
4116         * elf/Makefile: Add no modules for nodelete test.
4117         * elf/nodelmod3.c: New file.
4118         * elf/nodelmod4.c: New file.
4119         * elf/nodelete.c: Also test case where dependency of dlopen() object
4120         is marked nodelete.
4121
4122         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4123         * elf/nodlopen.c: New file.
4124         * elf/nodlopenmod.c: New file.
4125         * include/dlfcn.h: Define __RTLD_DLOPEN.
4126         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4127         and this is a dlopen() call, do not load the binary.
4128         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4129         * dlfcn/dlopenold.c: Likewise.
4130         * configure.in: Add test for -z nodelete option.
4131         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4132
4133 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4134
4135         Make Hesiod NSS module thread-safe.
4136
4137         * hesiod/README.hesiod: Update.
4138
4139         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4140         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4141         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4142         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4143         hesiod-proto.
4144         * hesiod/nss_hesiod/hesiod-init.c: New file.
4145         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4146         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4147         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4148         * hesiod/nss_hesiod/hesiod-service.c
4149         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4150         looking up services by port number.
4151         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4152
4153         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4154         * hesiod/hesiod.h: Likewise.
4155         * hesiod/hesiod_p.h: Likewise.
4156
4157 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4158
4159         Fix problems with `struct __res_state' getting too big.
4160         * resolv/resolv.h (struct __sockaddr_in): New definition.
4161         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4162         the private parts of the structure to save some space.
4163         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4164         (struct sockaddr_in *) in call to sock_eq.
4165         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4166
4167 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4168
4169         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4170         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4171         with nodelete.
4172         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4173         to _dl_map_object.  Return immediately if no object loaded.
4174         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4175         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4176         if it exists into l_flags_1 word.
4177         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4178         it to determine whether loading is wanted or not.
4179         (_dl_map_object): Likewise.
4180         Call _dl_map_object_from_fd with new parameter.
4181         * sysdeps/generic/ldsodefs.h: Update prototype.
4182         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4183         * elf/rtld.c: Likewise.
4184         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4185         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4186         * elf/noload.c: New file.
4187         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4188         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4189         * sysdeps/mips/bits/dlfcn.h: Likewise.
4190         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4191         (tests-nodelete-yes): Define.
4192         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4193         Add rules to build nodelete and modules.
4194         * elf/nodelete.c: New file.
4195         * elf/nodelmod1.c: New file.
4196         * elf/nodelmod2.c: New file.
4197         * configure.in: Add test for -z nodelete option.
4198         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4199
4200         * libio/Makefile (tests): Add tst_wprintf2.
4201         (tst_wprintf2-ARGS): Define.
4202         * libio/tst_wprintf2.c: New file.
4203         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4204
4205         * libio/wfiledoalloc.c: Only allocate external buffer if this
4206         hasn't happened yet.
4207
4208         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4209         something in the buffer.  gconv call can write up to end of the
4210         buffer, not only _IO_write_end.
4211         (_IO_wfile_overflow): Allocate also external buffer.
4212
4213 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4214
4215         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4216         strings with precision in vfwprintf correctly.
4217         * stdio-common/vfprintf.c: Fix completely broken handling of
4218         unbuffered wide character streams.
4219         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4220
4221         * resolv/Makefile (distribute): Add README.
4222
4223         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4224
4225 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4226
4227         Update resolver code to BIND 8.2.3-T5B.
4228
4229         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4230         __res_nclose.
4231         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4232         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4233         __res_search.
4234         * resolv/Banner: BIND-8.2.3-T5B.
4235
4236         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4237         * resolv/herror.c: Likewise.
4238         * resolv/inet_addr.c: Likewise.
4239         * resolv/inet_net_ntop.c: Likewise.
4240         * resolv/inet_net_pton.c: Likewise.
4241         * resolv/inet_neta.c: Likewise.
4242         * resolv/inet_ntop.c: Likewise.
4243         * resolv/nsap_addr.c: Likewise.
4244         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4245         IPv6 addresses (ISC bug #520).
4246
4247         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4248         * resolv/ns_parse.c: Likewise.
4249         * resolv/ns_netint.c: Likewise.
4250         * resolv/ns_samedomain.c: Likewise.
4251         * resolv/ns_ttl.c: Likewise.
4252         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4253         RCS ID in object file.
4254
4255         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4256         * resolv/res_mkquery.c: Likewise.
4257         * resolv/res_query.c: Likewise.
4258         * resolv/res_init.c: Likewise.
4259         (res_setoptions): Mark internal.
4260         * resolv/res_send.c: Likewise.
4261         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4262         by using poll instead.
4263         * resolv/res_comp.c: Likewise.
4264         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4265         weak alias for __dn_expand.
4266         * resolv/res_data.c: Likewise.
4267         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4268         in _res.options.  Avoids a potential security risk by avoiding a
4269         close (0).
4270         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4271         res_mkquery, res_query, res_querydomain adn res_search weak
4272         aliases for __res_mkquery, __res_query, __res_querydomain and
4273         __res_search.
4274         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4275         instead to avoid close(0).
4276         (res_init): Always use the static resolver context.
4277         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4278         alias for __res_init.
4279
4280         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4281         RES_SET_H_ERRNO and accompanying comment to...
4282         * include/resolv.h: ... here.
4283
4284         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4285         * resolv/arpa/nameser_compat.h: Likewise.
4286
4287 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4288
4289         * nss/makedb.c (main): Compare result of load_db with
4290         NSS_STATUS_SUCCESS and not 0.
4291         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4292
4293         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4294
4295 2000-07-18  Greg McGary  <greg@mcgary.org>
4296
4297         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4298         (EXTEND_BUFFER): Use it.
4299
4300 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4301
4302         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4303         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4304         __builtin_return_address.
4305         * dlfcn/dlopenold.c: Likewise.
4306         * dlfcn/dlsym.c: Likewise.
4307         * dlfcn/dlvsym.c: Likewise.
4308         * elf/dl-profstub.c: Likewise.
4309         * malloc/malloc.c: Likewise.
4310         * sysdeps/generic/machine-gmon.h: Likewise.
4311         Based on a patch by schwidefsky@de.ibm.com.
4312
4313 2000-07-18  Andreas Jaeger  <aj@suse.de>
4314
4315         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4316         NULL to elf_machine_fixup_plt t argument to silence GCC.
4317
4318         * include/string.h: Add prototype for __memchr.
4319
4320         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4321
4322         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4323         instead of memrchr.
4324
4325 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4326
4327         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4328
4329         * locale/C-ctype.c: Add initializers for gap elements.
4330         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4331         for gap elements.
4332
4333 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4334
4335         * nscd/nscd.c (print_version): Update copyright year.
4336
4337 2000-07-17  Greg McGary  <greg@mcgary.org>
4338
4339         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4340         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4341         signature argnames with angle-brackets for use as word delimiters,
4342         and to induce syntax errors for any args not handled.  Split
4343         multi-echo echoes and comment each stage.
4344         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4345         * sysdeps/unix/inet/syscalls.list: Likewise.
4346         * sysdeps/unix/mman/syscalls.list: Likewise.
4347         * sysdeps/unix/syscalls.list: Likewise.
4348         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4349         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4350         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4351         * sysdeps/unix/sysv/syscalls.list: Likewise.
4352         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4353
4354         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4355         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4356         qualifiers.  Don't check NULL-terminator of argv & envp.
4357         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4358         unbounded pointer type in word-size assertion.
4359         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4360         cases to stifle warnings.
4361
4362         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4363         _IO_file_attach.
4364         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4365
4366         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4367         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4368         ptr as __unbouned.
4369
4370         * Makerules (o-objects): Supplement with $(o-objects$o).
4371         * string/Makefile (o-objects.ob): Add variable to pull
4372         unbounded versions of memcpy, memset and memchr into libc_b.
4373
4374         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4375         rather than non-existent __ubp_memchr.
4376         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4377         (_CHECK_STRING, _CHECK_N): New macros.
4378         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4379         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4380         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4381         Add weak alias "memchr".
4382         * sysdeps/generic/memchr.c: Likewise.
4383         * sysdeps/i386/memchr.S: Likewise.
4384         * sysdeps/ia64/memchr.S: Likewise.
4385         * sysdeps/m68k/memchr.S: Likewise.
4386         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4387         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4388         * sysdeps/vax/memchr.s: Likewise.
4389
4390         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4391
4392         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4393         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4394         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4395         __BOUNDED_POINTERS__.
4396         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4397         for __BOUNDED_POINTERS__.
4398
4399 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4400
4401         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4402         field of struct __gconv_trans_data differently.  Don't pass NULL to
4403         trans_init_fct.  Simplify list append operation.
4404
4405 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4406
4407         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4408         not only those having tsearch.
4409
4410 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4411
4412         * locale/langinfo.h: Add placeholder values in enum for removed
4413         LC_CTYPE entries.
4414
4415 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4416
4417         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4418         chain if the PHDR check fails.
4419
4420 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4421
4422         * nss/getent.c (print_hosts): Make sure we always print a space
4423         between numeric addresses and hostnames.
4424
4425 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4426
4427         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4428         i.e. if n_mmaps_max>0.
4429
4430 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4431
4432         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4433         values to remove possible clash with other AI_* constants.
4434         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4435         hexadecimal constants to stress the fact they're in fact
4436         bit flags.
4437
4438 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4439
4440         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4441         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4442         instead of res_init.
4443
4444 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4445
4446         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4447         parameters of memset calls to avoid warnings.
4448
4449 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4450
4451         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4452         necessary.
4453
4454         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4455         Patch by Greg McGary <greg@mcgary.org>.
4456
4457         * io/Makefile (tests): Add tst-getcwd.
4458         * io/tst-getcwd.c: New file.
4459
4460         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4461
4462 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4463
4464         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4465         structure.
4466
4467 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4468
4469         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4470         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4471
4472 2000-07-12  H.J. Lu  <hjl@gnu.org>
4473
4474         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4475         GLIBC_2.2.
4476         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4477         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4478         (sysdep-routines): Add clone2.
4479         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4480
4481 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4482
4483         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4484         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4485
4486 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4487
4488         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4489         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4490         Change type of si_band from "int" to "long".
4491         (si_imm) [USE_GNU]: Define
4492         (si_isr) [USE_GNU]: Ditto.
4493         (ILL_BREAK) [USE_GNU]: Ditto.
4494         (FPE_DECOVF) [USE_GNU]: Ditto.
4495         (FPE_DECDIV) [USE_GNU]: Ditto.
4496         (FPE_DECERR) [USE_GNU]: Ditto.
4497         (FPE_INVASC) [USE_GNU]: Ditto.
4498         (FPE_INVDEC) [USE_GNU]: Ditto.
4499         (TRAP_BRANCH) [USE_GNU]: Ditto.
4500         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4501
4502 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4503
4504         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4505         bits/sigcontext as struct mcontext does not depend on it.
4506
4507         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4508
4509 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4510
4511         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4512
4513 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4514
4515         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4516
4517 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4518
4519         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4520
4521 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4522
4523         * intl/Makefile (test-srcs): Add tst-translit.
4524         (tests): Likewise.
4525         Add rules to build and run tst-translit.
4526         * intl/tst-translit.c: New file.
4527         * intl/tst-translit.sh: New file.
4528         * intl/translit.po: New file.
4529
4530 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4531
4532         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4533         transliteration function did its job, continue, don't stop.
4534
4535         * iconvdata/iso646.c: Little optimizations in body for conversion
4536         from UCS4.
4537
4538 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4539
4540         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4541
4542 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4543
4544         * configure.in: Check for pwd binary.
4545         * config.make.in: Add PWD_P to be subsituted.
4546         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4547
4548 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4549
4550         * iconvdata/Makefile (modules): Add GB18030.
4551         (distribute): Add gb18030.c.
4552         * iconvdata/gconv-modules: Add entries for GB18030 module.
4553         * iconvdata/gb18030.c: New file.
4554         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4555         and Wu Jian.
4556
4557 2000-07-13  Andreas Jaeger  <aj@suse.de>
4558
4559         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4560         patch.
4561
4562         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4563         * inet/getnetgrent.c (free_mem): Likewise.
4564         * misc/mntent.c (free_mem): Likewise.
4565         * nss/getXXbyYY.c (free_mem): Likewise.
4566         * nss/getXXent.c (free_mem): Likewise.
4567         * pwd/fgetpwent.c (free_mem): Likewise.
4568         * shadow/fgetspent.c (free_mem): Likewise.
4569
4570 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4571
4572         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4573         64-bit architecture correctly [PR libc/1794].
4574
4575 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4576
4577         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4578         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4579         report that we are out of memory.
4580         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4581         * elf/dl-libc.c (dlerror_run): Likewise.
4582         * elf/dl-open.c (_dl_open): Likewise.
4583         * elf/rtld.c (dl_main): Likewise.
4584         * elf/dl-error.c: Define _dl_out_of_memory.
4585         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4586         the error string.
4587         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4588         [PR libc/1813].
4589
4590         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4591
4592         * iconv/loop.c: Fix comment.
4593
4594         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4595
4596 2000-07-13  Andreas Jaeger  <aj@suse.de>
4597
4598         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4599         getcwd (NULL, size) with size > 0.
4600         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4601
4602 2000-07-13  Andreas Jaeger  <aj@suse.de>
4603
4604         * posix/Makefile: Remove build rules for libposix.
4605
4606 2000-07-13  Andreas Schwab  <schwab@suse.de>
4607
4608         * sysdeps/generic/glob.c (glob): Fix memory leak.
4609         [SHELL]: Remove reference to undefined variable `files'.
4610         Fixes PR libc/1782.
4611
4612 2000-07-13  Andreas Jaeger  <aj@suse.de>
4613
4614         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4615         functions.
4616
4617         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4618         memory if it was allocated.
4619
4620 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4621
4622         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4623         step.
4624
4625         * iconv/gconv_open.c (__gconv_open): Reapply
4626         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4627
4628                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4629
4630         * iconv/gconv_open.c: Undo last two changes for now.  They break
4631         everything.
4632
4633 2000-07-12  Andreas Jaeger  <aj@suse.de>
4634
4635         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4636         compiler.
4637         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4638         (CFLAGS-dl-cache.c): Likewise.
4639         (CFLAGS-ldconfig.c): Added, passes directory locations.
4640
4641         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4642         locate cache.
4643         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4644         (main): Use configured LIBDIR and SLIBDIR.
4645
4646 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4647
4648         * math/bits/cmathcalls.h (cimag): Add __THROW.
4649         (creal, conj): Likewise.
4650         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4651         by negative value.
4652
4653 2000-07-12  H.J. Lu  <hjl@gnu.org>
4654
4655         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4656         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4657
4658 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4659
4660         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4661         it is wrong.
4662
4663 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4664
4665         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4666
4667 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4668
4669         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4670         __modname.
4671
4672 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4673
4674         * iconv/gconv_open.c (__gconv_open): Initialize
4675         result->__steps[cnt].__data.
4676
4677 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4678
4679         * nss/getent.c (services_keys): Pass port number in network byte
4680         order in call to getservbyport.
4681
4682 2000-07-11  Andreas Jaeger  <aj@suse.de>
4683
4684         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4685         source dir.
4686         * intl/Makefile (do-gettext-test): Likewise.
4687         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4688
4689 2000-07-11  Andreas Schwab  <schwab@suse.de>
4690
4691         * Makeconfig (run-program-prefix): New rule.
4692         (built-program-cmd): Use run-program-prefix.
4693
4694 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4695
4696         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4697         and NOEXPR unconditionally available.
4698
4699 2000-07-12  Greg McGary  <greg@mcgary.org>
4700
4701         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4702         * sysdeps/posix/open64.c: Likewise.
4703         * sysdeps/generic/fegetenv.c: Likewise.
4704         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4705         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4706         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4707         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4708         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4709         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4710
4711 2000-07-11  Greg McGary  <greg@mcgary.org>
4712
4713         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4714         Add extra level of macro expansion.
4715         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4716         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4717         is available at the time `select' prototype is declared.
4718         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4719         Collect non-versioned weak aliases.  Consider only non-versioned
4720         aliases for the user-visible systemcall name.  Do checks inline with
4721         call to primitive system call.
4722         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4723         stand-alone bounds checks to suppress unused value warnings.
4724         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4725
4726 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4727
4728         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4729         file descriptor checking in SUID programs for the Hurd.
4730
4731         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4732         res_hostalias instead of __hostalias for thread-safety.
4733
4734 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4735
4736         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4737         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4738
4739 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4740
4741         * include/features.h: Include ISO C99 features if the compiler used
4742         is an ISO C99 compiler.
4743         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4744
4745 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4746
4747         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4748
4749 2000-07-10  Andreas Jaeger  <aj@suse.de>
4750
4751         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4752         it's overridden by libpthreads.
4753         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4754         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4755         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4756         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4757         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4758
4759         * malloc/Makefile: Run tst-mtrace only with shared libs.
4760
4761         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4762         with shared libs.
4763
4764 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4765
4766         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4767         that gpreg really points to the GOT section of the calling object.
4768         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4769         checking a start address of first one.
4770         Fix typos.
4771         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4772         Likewise.
4773
4774         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4775
4776 2000-07-10  Andreas Jaeger  <aj@suse.de>
4777
4778         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4779         (string_alias->strong_alias).
4780
4781 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4782
4783         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4784
4785 2000-07-07  Greg McGary  <greg@mcgary.org>
4786
4787         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4788         have no names without leading underscores.
4789
4790 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4791
4792         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4793         U007E.
4794
4795         * stdio-common/Makefile (tests): Remove tst-printf here...
4796         (tests-srcs): ...and add it here.
4797         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4798         Add rules to run tst-printf.sh.
4799         * stdio-common/tst-printf.c: Move code around so that there is really
4800         no further output where it's stated.
4801         * stdio-common/tst-printf.sh: New file.
4802
4803 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4804
4805         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4806         (do_write): Renamed from pwrite.
4807         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4808         `struct _IO_cookie_file'.
4809
4810 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4811
4812         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4813         detected.
4814         * malloc/tst-mtrace.sh: Run mtrace script.
4815
4816 2000-07-07  Greg McGary  <greg@mcgary.org>
4817
4818         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4819         Move all three components of a bounded pointer.
4820
4821 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4822
4823         * locale/programs/locale.c (write_locales): Don't simply add all
4824         directories found in the subdir, test whether at least the
4825         LC_CTYPE file is in there.
4826
4827 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4828
4829         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4830         * iconvdata/euc-kr.c: Likewise.
4831
4832         * stdio-common/vfprintf.c (process_string_arg): Check result of
4833         wcrtomb call and bail out if it failed.
4834
4835         * malloc/Makefile (test-srcs): Add tst-mtrace.
4836         (distribute): Add tst-mtrace.sh.
4837         Add rule to run tst-mtrace.sh.
4838         * malloc/tst-mtrace.c: New file.
4839         * malloc/tst-mtrace.sh: New file.
4840
4841         * include/signal.h: Declare __libc_sigaction.
4842         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4843         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4844         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4845         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4846         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4847         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4848         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4849
4850         * configure.in: Fix CFLAGS-memprofstat.c definition after
4851         2000-06-19 change.
4852         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4853
4854 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4855
4856         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4857         instead of NULL to elf_machine_fixup_plt t argument.
4858         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4859         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4860         cast.
4861
4862 2000-07-06  Andreas Jaeger  <aj@suse.de>
4863
4864         * crypt/Makefile (LDLIBS-cert): Removed.
4865         (LDLIBS-md5c-test): Removed.
4866         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4867         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4868
4869 2000-07-06  Andreas Jaeger  <aj@suse.de>
4870
4871         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4872         of the proc system is "proc".
4873
4874         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4875         thread library for static programs.
4876
4877 2000-07-06  Greg McGary  <greg@mcgary.org>
4878
4879         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4880         New macros.
4881         * sysdeps/generic/strcpy.c: Add bounds checks.
4882         * sysdeps/unix/fxstat.c: Likewise.
4883         * sysdeps/unix/xstat.c: Likewise.
4884         * sysdeps/unix/common/lxstat.c: Likewise.
4885         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4886         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4887         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4888         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4889         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4890         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4891         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4892         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4893         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4894         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4895         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4896         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4897         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4898         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4899         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4900         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4901         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4902         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4903         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4904         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4905         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4906         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4907         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4908         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4909         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4910         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4911         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4912         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4913         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4914         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4915         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4916         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4917         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4918         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4919         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4920         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4921         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4922         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4923         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4924         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4925         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4926         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4927         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4928         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4929         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4930         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4931         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4932         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4933         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4934         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4935         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4936         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4937         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4938         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4939         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4940         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4941         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4942         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4943         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4944         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4945         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4946         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4947         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4948         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4949
4950         * string/endian.h (__LONG_LONG_PAIR): New macro.
4951         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4952         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4953         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4954         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4955         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4956         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4957         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4958         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4959         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4960         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4961         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4962         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4963
4964         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4965
4966 2000-07-06  Andreas Jaeger  <aj@suse.de>
4967
4968         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4969         Initialize result.
4970
4971         * math/test-fpucw.c: Include <stdio.h> for printf.
4972
4973 2000-07-05  Greg McGary  <greg@mcgary.org>
4974
4975         * sysdeps/generic/bp-checks.h: New file.
4976         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4977         with list of #include files.
4978         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4979         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4980         Don't generate BP thunk if `V' appears in signature.
4981         Generate thunks with complete bounds checks.
4982         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4983         * sysdeps/unix/inet/syscalls.list: Likewise.
4984         * sysdeps/unix/mman/syscalls.list: Likewise.
4985         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4986         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4987         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4988         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4989
4990 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4991
4992         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4993         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4994         If mount not in the file fall back on /proc.
4995
4996         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4997         string got copied in.
4998         Patch by Solar Designer <solar@false.com>.
4999
5000 2000-07-05  Andreas Jaeger  <aj@suse.de>
5001
5002         * manual/install.texi (Installation): Update information about
5003         add-ons.
5004         (Configuring and compiling): Update for glibc 2.2.
5005
5006 2000-07-04  Andreas Jaeger  <aj@suse.de>
5007
5008         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5009         (_FPU_IEEE): Likewise.
5010
5011         * math/Makefile (tests): Add test-fpucw.
5012
5013         * math/test-fpucw.c (main): New file.
5014
5015 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5016
5017         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5018
5019         * locale/programs/ld-collate.c (collate_output): Also write out the
5020         collation sequence values and the wide character string for the
5021         collation symbol table.
5022
5023         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5024         * posix/fnmatch_loop.c: Implement collating symbol handling.
5025         * posix/tst-fnmatch.input: Add more tests, especially for collating
5026         symbol handling.
5027
5028         * posix/regex.c: Fix comment.
5029
5030 2000-07-05  Andreas Jaeger  <aj@suse.de>
5031
5032         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5033         (_FPU_GETCW): Remove extra colon.
5034         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5035
5036         * posix/fnmatch_loop.c (FCT): Only declare len if
5037         !WIDE_CHAR_VERSION to silence GCC.
5038
5039         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5040         prototype.
5041         * sysdeps/generic/strchrnul.c: Likewise.
5042         * sysdeps/generic/strlen.c: Likewise.
5043         * sysdeps/generic/strchr.c: Likewise.
5044         * sysdeps/generic/memchr.c: Likewise.
5045
5046 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5047
5048         * posix/fnmatch_loop.c: Implement equivalence class handling.
5049         * posix/tst-fnmatch.input: Add tests for equivalence class
5050         handling.
5051
5052         * posix/fnmatch_loop.c: Improve performance for single-byte
5053         character sets by not using btowc.
5054
5055         * posix/tst-fnmatch.input: Add tests for locale dependent
5056         behaviour.
5057         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5058
5059         * posix/tst-fnmatch.input: Add more test cases.
5060
5061         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5062         are not aligned to alignof(md5_uint32) do it before calling
5063         __md5_process_bytes.
5064         * crypt/md5.c: Make sure buffers are aligned.
5065         * crypt/md5.h: Likewise.
5066         Reported by Solar Designer <solar@false.com>.
5067
5068         * crypt/Makefile: Add dependencies for test programs.
5069
5070         * Rules: Define LC_ALL=C in environments of all programs we run.
5071
5072         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5073
5074 2000-07-03  H.J. Lu  <hjl@gnu.org>
5075
5076         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5077         is 2 + elem + offset, not 2 + elem + offset + 2.
5078
5079 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5080
5081         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5082         suite.
5083         * posix/Makefile (tests): Add tst-fnmatch.
5084         (tst-fnmatch-ENV): Define.
5085         * posix/tst-fnmatch.c: New file.
5086         * posix/tst-fnmatch.sh: New file.
5087
5088 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5089
5090         * locale/programs/charmap.c (charmap_read): Prepend
5091         the condition filename == NULL.
5092
5093 2000-07-03  Greg McGary  <greg@mcgary.org>
5094
5095         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5096
5097         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5098         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5099
5100         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5101         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5102         (FILEBUF_LITERAL): Add cast for CHAIN init.
5103         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5104         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5105         Revert type of `fp' to _IO_FILE*.
5106         (_IO_iter_file): Remove cast.
5107         (_IO_iter_next): Elide intermediate member reference.
5108
5109         * sysdeps/powerpc/strchr.S:  Check bounds.
5110         Wrap extern symbols in BP_SYM ().
5111
5112 2000-07-03  Andreas Jaeger  <aj@suse.de>
5113
5114         * dlfcn/Makefile (generated): New.
5115
5116 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5117
5118         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5119         (__uflow): Likewise.
5120         (__underflow): Likewise.
5121         * libio/wgenops.c (__wunderflow): Likewise.
5122         * stdio-common/tst-unbputc.c: New file.
5123         * stdio-common/tst-unbputc.sh: New file.
5124         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5125
5126         * po/en_GB.po: New file.
5127         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5128
5129 2000-07-01  Andreas Jaeger  <aj@suse.de>
5130
5131         * intl/Makefile (generated-dirs): New.
5132
5133         * elf/Makefile (generated): trusted-dirs.h is always generated,
5134         move out of build-shared condition.
5135         (generated): Merge the two entries for build-shared.
5136
5137 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5138
5139         * debug/Makefile (distribute): Add xtrace.sh.
5140
5141 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5142
5143         * version.h (VERSION): Bump to 2.1.91.
5144
5145         * configure.in: Update warning comment.  glibc should not be
5146         broken anymore.
5147
5148         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5149         ioperm.c, sys/procfs.h, and sys/io.h.
5150
5151         * sysdeps/powerpc/Dist: Add bp-asm.h.
5152
5153         * assert/Depend: Add localedata.
5154         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5155         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5156
5157         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5158         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5159         relocation address to prevent unaligned trap.
5160         Suggested by Richard Henderson <rth@cygnus.com>.
5161
5162 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5163
5164         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5165         if redirecting and either redirection is done using defines or
5166         not optimizing.
5167
5168 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5169
5170         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5171         generated expressions.
5172         Patch by Darren McClelland <dmcclell@zetec.com>.
5173
5174         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5175         since zic uses setlocale and gettext but we cannot make it use the
5176         new locale data since zic calls a shell which might not use the
5177         new libc.
5178
5179         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5180         handling the internation currency symbol.  POSIX says that the
5181         fourth character is used to separate the currency symbol from the
5182         value.  Therefore it does not have to be printed.  But we cannot
5183         remove the space if the currency symbol is printed before the
5184         number since this is what many locales expect.
5185
5186         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5187         whether this information is available.
5188
5189         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5190         buffers in case the translation is too large.  Remember allocated
5191         memory blocks in a list.
5192         (free_mem): Free memory for translations.
5193
5194         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5195
5196         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5197         information is available set the string length to zero.
5198
5199         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5200
5201 2000-06-30  Greg McGary  <greg@mcgary.org>
5202
5203         * sysdeps/powerpc/bp-asm.h: New file.
5204         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5205         Wrap extern symbols in BP_SYM ().
5206         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5207         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5208         * sysdeps/powerpc/setjmp.S: Likewise.
5209         * sysdeps/powerpc/add_n.S: Likewise.
5210         * sysdeps/powerpc/addmul_1.S: Likewise.
5211         * sysdeps/powerpc/lshift.S: Likewise.
5212         * sysdeps/powerpc/rshift.S: Likewise.
5213         * sysdeps/powerpc/mul_1.S: Likewise.
5214         * sysdeps/powerpc/sub_n.S: Likewise.
5215         * sysdeps/powerpc/submul_1.S: Likewise.
5216         * sysdeps/powerpc/strlen.S: Likewise.
5217         * sysdeps/powerpc/memset.S: Likewise.
5218         * sysdeps/powerpc/stpcpy.S: Likewise.
5219         * sysdeps/powerpc/strcmp.S: Likewise.
5220         * sysdeps/powerpc/strcpy.S: Likewise.
5221         * sysdeps/powerpc/elf/bzero.S: Likewise.
5222
5223         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5224         Line up operands column with tabs.
5225
5226 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5227
5228         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5229
5230         * sysdeps/ia64/htonl.S: New file.
5231         * sysdeps/ia64/htons.S: New file.
5232         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5233         floating point registers.
5234         Patches by Dan Pop <Dan.Pop@cern.ch>.
5235
5236 2000-06-30  Andreas Jaeger  <aj@suse.de>
5237
5238         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5239         shared libraries.
5240
5241         * io/Makefile (CFLAGS-test-lfs.c): New.
5242         (tests): Add test-lfs.
5243
5244         * io/test-lfs.c: New file.
5245
5246 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5247
5248         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5249         instruction.
5250
5251 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5252
5253         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5254
5255 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5256
5257         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5258         alias to the fstatfs call.
5259
5260         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5261         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5262
5263         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5264         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5265
5266         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5267         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5268         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5269         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5270
5271         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5272         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5273
5274         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5275         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5276
5277         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5278         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5279
5280         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5281
5282 2000-06-29  Andreas Jaeger  <aj@suse.de>
5283
5284         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5285         with syslog.
5286         (print_err_message): Likewise.
5287         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5288
5289 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5290
5291         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5292         used as words is properly aligned.
5293
5294         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5295         data files.
5296
5297 2000-06-29  Greg McGary  <greg@mcgary.org>
5298
5299         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5300         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5301         length 7..9, just in case...
5302         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5303
5304         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5305         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5306         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5307         (PUSH_SIGNAL_MASK): New macro.
5308         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5309         LEAVE is unnecessary.  Check bounds of jmp_buf.
5310         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5311         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5312         immediately before tail-call.
5313         * sysdeps/i386/setjmp.S: Likewise.
5314         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5315         * sysdeps/i386/bsd-setjmp.S: Likewise.
5316
5317 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5318
5319         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5320         versioned_symbol.
5321         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5322         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5323         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5324         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5325         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5326         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5327         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5328         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5329
5330 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5331
5332         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5333         we later need to calling free().
5334         Patch by Matt Wilson <msw@redhat.com>.
5335
5336         * stdio-common/tst-printf.c: Add test for above problem.
5337
5338 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5339
5340         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5341         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5342
5343 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5344
5345         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5346         prototype for abs().
5347         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5348
5349 2000-06-23  Andreas Jaeger  <aj@suse.de>
5350
5351         * config.h.in: Don't use regparm with bounded pointers.
5352
5353 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5354
5355         * stdlib/grouping.h: Correctly handle multibyte thousands
5356         separator and decimal point.
5357         * stdlib/stdtod.c: Likewise.
5358         * sysdeps/generic/strtol.c: Likewise.
5359
5360         * locale/categories.def: Add entries for wide character decimal point
5361         and thousands separator in numeric and monetary category.
5362
5363 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5364
5365         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5366         second definition and initialization of decimal.
5367
5368 2000-06-28  Greg McGary  <greg@mcgary.org>
5369
5370         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5371         out.
5372         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5373         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5374         in.
5375         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5376         (struct _IO_FILE_plus *).
5377         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5378         THIS, since _IO_JUMPS no longer does it implicitly.
5379         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5380         arg type as (struct _IO_FILE_plus *).
5381         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5382         arg as (_IO_strfile *).
5383         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5384         Declare 1st arg as (_IO_strfile *).
5385         * libio/fileops.c (_IO_new_file_init): Declare
5386         arg type as (struct _IO_FILE_plus *).
5387         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5388         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5389         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5390         Declare iteration pointer as (struct _IO_FILE_plus *).
5391         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5392                 (struct _IO_FILE_plus *).
5393         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5394         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5395         (_IO_check_libio): Set user-visible handles to
5396         (struct _IO_FILE_plus *).
5397         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5398         to (struct _IO_FILE_plus *).
5399
5400         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5401         whose high bound includes vtable to all functions that will use
5402         vtable.  For streambufs, pass pointer whose bounds include struct
5403         _IO_strfile.
5404         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5405         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5406         * libio/iofopen.c (_IO_new_fopen): Likewise.
5407         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5408         * libio/iofopen64.c (_IO_fopen64): Likewise.
5409         * libio/iopopen.c (_IO_new_popen): Likewise.
5410         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5411         * libio/memstream.c (open_memstream): Likewise.
5412         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5413         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5414         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5415         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5416         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5417         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5418         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5419         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5420         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5421         * stdlib/strfmon.c (__strfmon_l): Likewise.
5422         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5423         (vfprintf): Qualify computed-goto targets as unbounded.
5424
5425 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5426
5427         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5428         thousands separator correctly.
5429
5430         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5431         * stdio-common/vfwscanf.c: Likewise.
5432
5433 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5434
5435         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5436         count into signatures for most calls.
5437
5438 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5439
5440         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5441         the generic parser now.
5442
5443 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5444
5445         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5446         table entries are 32 bit on the ia64 (as specified by the ABI),
5447         not 64 bit as on the Alpha.
5448
5449         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5450         change of objects to use 32 bit hash table indices (see above).
5451
5452 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5453
5454         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5455         prototype for abs().
5456
5457 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5458
5459         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5460         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5461         may have been reached.
5462
5463 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5464
5465         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5466         symbols in multi-character weights correctly.
5467
5468         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5469         depending on whether the input string is empty or not.
5470
5471         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5472         given state and not avoiding this by modifying a local object.
5473         * wcsmbs/wcrtomb.c: Likewise.
5474
5475         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5476         object since some incomplete characters might be in there.
5477
5478         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5479         sequences with first byte 0x8e correctly.
5480
5481         * iconvdata/jis0208.h: Remove redundant test.
5482
5483 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5484
5485         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5486         Add it where it is needed now.
5487
5488         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5489         the input charset into account when generating the hash table.
5490         (allocate_arrays): Correct setting default width.  Not all empty slots
5491         in the table are filled, only those not covert explicitly by the
5492         locale description and in the charset.
5493
5494         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5495         return values from the wctrans function.
5496
5497         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5498         wide character version.
5499         For %C handling, test correct pointer variable for NULL.
5500
5501         * wcsmbs/wctob.c: Handle WEOF special.
5502
5503         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5504
5505         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5506         always-true test to avoid warning.
5507
5508 2000-06-27  Greg McGary  <greg@mcgary.org>
5509
5510         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5511         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5512         (symbol_version, default_symbol_version): Factor redundant
5513         definitions out of conditional.
5514
5515 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5516
5517         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5518         not obstack_blank.
5519
5520 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5521
5522         * include/libc-symbols.h (symbol_version): Add extra level of
5523         macro expansion.
5524         (default_symbol_version): Likewise.
5525
5526 2000-06-26  Greg McGary  <greg@mcgary.org>
5527
5528         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5529         for BP return value & push implicit struct-return pointer to
5530         __errno_location.
5531         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5532         (SYSCALL_ERROR_HANDLER): Likewise.
5533         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5534         (SYSCALL_ERROR_HANDLER): Likewise.
5535
5536         * Makeconfig: Add missing comment.
5537         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5538         BP-flavored startup object.
5539         ($(objpfx)b$(start-installed-name)): New rule.
5540         * include/libc-symbols.h (symbol_set_declare): Change type
5541         of `__start_##set' and `__stop_##set' to pointer-to-function.
5542         (symbol_set_declare): Change type of `set' to array of
5543         pointer-to-function.
5544         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5545         pointer-to-function.
5546
5547         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5548
5549         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5550         Remove clock_* and timer_* entries.
5551         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5552         arg-count with signatures.
5553
5554         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5555         Check bounds of arguments.
5556         * sysdeps/i386/addmul_1.S: Likewise.
5557         * sysdeps/i386/lshift.S: Likewise.
5558         * sysdeps/i386/mul_1.S: Likewise.
5559         * sysdeps/i386/rshift.S: Likewise.
5560         * sysdeps/i386/sub_n.S: Likewise.
5561         * sysdeps/i386/submul_1.S: Likewise.
5562         * sysdeps/i386/i586/add_n.S: Likewise.
5563         * sysdeps/i386/i586/addmul_1.S: Likewise.
5564         * sysdeps/i386/i586/lshift.S: Likewise.
5565         * sysdeps/i386/i586/rshift.S: Likewise.
5566         * sysdeps/i386/i586/sub_n.S: Likewise.
5567         * sysdeps/i386/i686/add_n.S: Likewise.
5568
5569         * sysdeps/i386/memchr.S: Likewise.
5570         * sysdeps/i386/memcmp.S: Likewise.
5571         * sysdeps/i386/rawmemchr.S: Likewise.
5572         * sysdeps/i386/i586/bzero.S: Likewise.
5573         * sysdeps/i386/i586/memcpy.S: Likewise.
5574         * sysdeps/i386/i586/mempcpy.S: Likewise.
5575         * sysdeps/i386/i586/memset.S: Likewise.
5576         * sysdeps/i386/i686/bzero.S: Likewise.
5577         * sysdeps/i386/i686/memcpy.S: Likewise.
5578         * sysdeps/i386/i686/mempcpy.S: Likewise.
5579         * sysdeps/i386/i686/memset.S: Likewise.
5580
5581         * sysdeps/i386/stpcpy.S: Likewise.
5582         * sysdeps/i386/stpncpy.S: Likewise.
5583         * sysdeps/i386/strchr.S: Likewise.
5584         * sysdeps/i386/strchrnul.S: Likewise.
5585         * sysdeps/i386/strcspn.S: Likewise.
5586         * sysdeps/i386/strpbrk.S: Likewise.
5587         * sysdeps/i386/strrchr.S: Likewise.
5588         * sysdeps/i386/strspn.S: Likewise.
5589         * sysdeps/i386/strtok.S: Likewise.
5590         * sysdeps/i386/strtok_r.S: Likewise.
5591         * sysdeps/i386/i486/strcat.S: Likewise.
5592         * sysdeps/i386/i486/strlen.S: Likewise.
5593         * sysdeps/i386/i586/strchr.S: Likewise.
5594         * sysdeps/i386/i586/strcpy.S: Likewise.
5595         * sysdeps/i386/i586/strlen.S: Likewise.
5596         * sysdeps/i386/i686/strcmp.S: Likewise.
5597         * sysdeps/i386/i686/strtok.S: Likewise.
5598         * sysdeps/i386/i686/strtok_r.S: Likewise.
5599
5600         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5601         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5602         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5603         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5604         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5605
5606         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5607         * sysdeps/i386/mul_1.S: Likewise.
5608         * sysdeps/i386/submul_1.S: Likewise.
5609         * sysdeps/i386/i586/add_n.S: Likewise.
5610         * sysdeps/i386/i586/addmul_1.S: Likewise.
5611         * sysdeps/i386/i586/lshift.S: Likewise.
5612         * sysdeps/i386/i586/mul_1.S: Likewise.
5613         * sysdeps/i386/i586/rshift.S: Likewise.
5614         * sysdeps/i386/i586/sub_n.S: Likewise.
5615         * sysdeps/i386/i586/submul_1.S: Likewise.
5616
5617 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5618
5619         * rt/Makefile (librt-routines): Add clock_nanosleep.
5620         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5621         * sysdeps/generic/clock_nanosleep.c: New file.
5622         * sysdeps/unix/clock_nanosleep.c: New file.
5623         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5624         * time/time.h: Declare clock_nanosleep.
5625
5626 2000-06-26  Greg McGary  <greg@mcgary.org>
5627
5628         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5629         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5630         (ALIGN): Cleanup surrounding conditionals.
5631
5632         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5633         Call ENTER/LEAVE macros.
5634         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5635         * sysdeps/i386/submul_1.S: Likewise.
5636
5637         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5638         syntax.  Define & use symbolic argument stack offsets.  Call
5639         ENTER/LEAVE macros.
5640         * sysdeps/i386/i586/mul_1.S: Likewise.
5641         * sysdeps/i386/i586/submul_1.S: Likewise.
5642
5643 2000-06-25  Greg McGary  <greg@mcgary.org>
5644
5645         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5646         not as bcopy.
5647
5648 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5649
5650         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5651         * iconvdata/gen-8bit-gap.sh: Likewise.
5652         * iconvdata/gen-8bit.sh: Likewise.
5653
5654         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5655
5656         * locale/programs/ld-collate.c (collate_read): Don't actually read
5657         the copy locale if we are ignoring the content.
5658
5659         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5660         unknown character.
5661
5662         * locale/programs/ld-collate.c: Correct handling of different
5663         collation sections.
5664         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5665         as extra parameter from which to copy category information.
5666         Change all callers.
5667         (load_locale): Likewise.
5668         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5669         and load_locale.
5670         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5671         * locale/programs/locfile.h: Likewise.
5672         * locale/programs/locfile-kw.gperf: Add entry for script.
5673         * locale/programs/locfile-token.h: Add tok_script.
5674
5675         * locale/programs/locale.c: Update copyright year.
5676         * locale/programs/localedef.c: Likewise.
5677
5678 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5679
5680         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5681         Jens Moeller <jens.moeller@waii.com>.
5682
5683 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5684
5685         * locale/programs/ld-name.c (name_finish): Add missing format
5686         specifier to test for name_fmt.
5687
5688         * locale/programs/ld-address.c (iso639): Correct length of string
5689         elements.
5690         (iso3166): Likewise.
5691
5692         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5693
5694         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5695         Define.
5696
5697         * elf/elf.h (NT_PRFPXREG): Define.
5698
5699 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5700
5701         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5702         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5703
5704 2000-06-23  Andreas Schwab  <schwab@suse.de>
5705
5706         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5707         with signatures.
5708
5709 2000-06-23  Andreas Jaeger  <aj@suse.de>
5710
5711         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5712
5713         * io/test-stat.c: Add copyright header, mention Maciej.
5714
5715         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5716         SYS_mincore, SYS_madvise): Added.
5717
5718         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5719         execve.
5720
5721 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5722
5723         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5724         (CFLAGS-tst_putwc.c): New definition.
5725         * libio/tst_getwc.c: New file.
5726         * libio/tst_getwc.input: New file.
5727         * libio/tst_putwc.c: New file.
5728
5729         * include/string.h: Add prototype for __strdup.
5730
5731 2000-06-22  Greg McGary  <greg@mcgary.org>
5732
5733         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5734         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5735         Fix signatures.
5736
5737 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5738
5739         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5740
5741 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5742
5743         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5744
5745 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5746
5747         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5748         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5749
5750 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5751
5752         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5753         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5754         and __S_TYPEISSHM.
5755         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5756         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5757         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5758         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5759         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5760         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5761         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5762         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5763         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5764         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5765         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5766         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5767         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5768         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5769         S_TYPEISSHM.
5770
5771 2000-06-22  Andreas Jaeger  <aj@suse.de>
5772
5773         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5774         with signatures.
5775
5776         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5777
5778         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5779
5780 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5781
5782         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5783         ahead.
5784
5785 2000-06-21  Greg McGary  <greg@mcgary.org>
5786
5787         * Makerules (elide-routines.*, elide-bp-thunks):
5788         Define unconditionally.
5789
5790 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5791
5792         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5793
5794 2000-06-21  Andreas Jaeger  <aj@suse.de>
5795
5796         * io/Makefile (tests): Add test-stat.
5797         (CFLAGS-test-stat.c): New.
5798
5799         * io/test-stat.c: New file from Maciej W. Rozycki
5800         <macro@ds2.pg.gda.pl>.
5801
5802 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5803
5804         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5805         in __rlimit_resource to make them match the kernel order.
5806         rlim_t is always 64 bit, use __rlim64_t to declare it
5807         unconditionally.
5808
5809 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5810
5811         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5812         RLIM_INFINITY before defining it to avoid clash with kernel header
5813
5814 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5815
5816         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5817
5818 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5819
5820         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5821
5822 2000-06-21  Andreas Jaeger  <aj@suse.de>
5823
5824         * stdio-common/temptest.c: Include <stdlib.h>.
5825         * stdio-common/tst-fileno.c: Likewise.
5826         * stdio-common/scanf4.c: Likewise.
5827         * stdio-common/scanf5.c: Likewise.
5828         * time/clocktest.c: Likewise.
5829         * posix/test-vfork.c: Likewise.
5830         * posix/globtest.c: Likewise.
5831         * io/test-utime.c: Likewise.
5832         * wctype/test_wcfuncs.c: Likewise.
5833         * crypt/cert.c: Likewise.
5834
5835         * stdio-common/tst-printfsz.c: Include <string.h>.
5836         * libio/tst_swscanf.c: Likewise.
5837         * libio/tst_wscanf.c: Likewise.
5838         * posix/runtests.c: Likewise.
5839         * posix/tst-getaddrinfo.c: Likewise.
5840         * posix/wordexp-test.c: Likewise.
5841         * misc/tst-efgcvt.c: Likewise.
5842
5843         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5844         * nss/test-netdb.c: Likewise.
5845
5846         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5847         supported kernel for MIPS.
5848
5849         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5850         * rt/aio_suspend.c: Likewise.
5851
5852 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5853
5854         * math/libm-test.inc: Include <string.h>.
5855
5856 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5857
5858         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5859
5860 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5861
5862         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5863         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5864
5865 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5866
5867         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5868
5869 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5870
5871         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5872
5873 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5874
5875         * locale/programs/ld-collate.c (insert_value): Now take string and
5876         length instead of struct token* parameter.  Adjust use of token.
5877         (handle_ellipsis): Likewise.
5878         (collate_read): Allow <Uxxxx> names and transform them into names
5879         to be passed to insert_value and handle_ellipsis.
5880
5881         * locale/programs/ld-ctype.c (uninames): New array with names of
5882         digits in <Uxxxxxxxx> format.
5883         (ctype_finish): Correct search for space character value.  Likewise
5884         for default outdigits values.
5885
5886 2000-06-20  Greg McGary  <greg@mcgary.org>
5887
5888         * Makerules (objects): Add BP thunks.
5889
5890 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5891
5892         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5893         in width definitions.
5894
5895 2000-06-20  Andreas Jaeger  <aj@suse.de>
5896
5897         * sysdeps/mips/fpu/libm-test-ulps: New file.
5898
5899         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5900         first.
5901
5902         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5903
5904         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5905
5906 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5907
5908         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5909         change in gconv_builtin.h.
5910
5911         * malloc/Makefile: Change all references to memprof into memusage.
5912         * malloc/memprof.c: Rename to...
5913         * malloc/memusage.c: ...this.  New file.
5914         * malloc/memprof.sh: Rename to...
5915         * malloc/memusage.sh: ...this.  New file.
5916         * malloc/memprofstat.c: Rename to...
5917         * malloc/memusagestat.c: ...this.  New file.
5918         * sysdeps/alpha/memprof.h: Rename to..
5919         * sysdeps/alpha/memusage.h: ...this.  New file.
5920         * sysdeps/arm/memprof.h: Rename to..
5921         * sysdeps/arm/memusage.h: ...this.  New file.
5922         * sysdeps/generic/memprof.h: Rename to..
5923         * sysdeps/generic/memusage.h: ...this.  New file.
5924         * sysdeps/i386/memprof.h: Rename to..
5925         * sysdeps/i386/memusage.h: ...this.  New file.
5926         * sysdeps/ia64/memprof.h: Rename to..
5927         * sysdeps/ia64/memusage.h: ...this.  New file.
5928         * sysdeps/m68k/memprof.h: Rename to..
5929         * sysdeps/m68k/memusage.h: ...this.  New file.
5930         * sysdeps/mips/memprof.h: Rename to..
5931         * sysdeps/mips/memusage.h: ...this.  New file.
5932         * sysdeps/powerpc/memprof.h: Rename to..
5933         * sysdeps/powerpc/memusage.h: ...this.  New file.
5934         * sysdeps/sparc/memprof.h: Rename to..
5935         * sysdeps/sparc/memusage.h: ...this.  New file.
5936         * sysdeps/sh/memprof.h: Rename to..
5937         * sysdeps/sh/memusage.h: ...this.  New file.
5938
5939         * elf/sprof.c (print_version): Update year.
5940
5941         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5942         table entry values.  Use D_PTR.
5943         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5944         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5945
5946 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5947
5948         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5949         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5950         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5951         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5952
5953 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5954
5955         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5956
5957 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5958
5959         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5960         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5961         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5962
5963         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5964
5965         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5966         kernel change.
5967
5968         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5969         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5970         structure.
5971         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5972         implementation.
5973
5974 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5975
5976         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5977
5978 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5979
5980         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5981
5982 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5983
5984         * iconv/gconv_int.h (strict gconv_module): Remove all members
5985         associated with regular expressions.  Use a simple string as the
5986         from name.
5987         * iconv/gconv_db.c: Remove code handling regular expressions.
5988         * iconv/gconv_conf.c: Likewise.
5989         * iconv/iconv_prog.c: Likewise.
5990         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5991
5992         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5993         General namespace cleanup.
5994         (struct __gconv_trans_data): Add next field.
5995         (struct __gconv_step_data): Make __trans a pointer.
5996         * iconv/gconv_conf.c: Split out code to find gconv directories from
5997         __gconv_read_conf in new functions.
5998         * iconv/gconv_int.h: Define new data structure and declare new
5999         functions for handling of gconv directory list.
6000         * iconv/gconv_open.c: Allow more than one error handling step being
6001         used.  Call function to load error handling module if it is none
6002         of the builtin transformations.
6003         * iconv/gconv_close.c: Add code to free transliteration data.
6004         * iconv/gconv_trans.c: Add functions to load and unload modules
6005         implementing transliteration etc.
6006         * iconv/skeleton.c: Call all context functions now that more than
6007         one module is allowed.
6008         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6009         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6010         where the full error handling using transliteration is needed.
6011         * iconvdata/8bit-gap.c: Likewise.
6012         * iconvdata/8bit-generic.c: Likewise.
6013         * iconvdata/ansi_x3.110.c: Likewise.
6014         * iconvdata/big5.c: Likewise.
6015         * iconvdata/big5hkscs.c: Likewise.
6016         * iconvdata/euc-cn.c: Likewise.
6017         * iconvdata/euc-jp.c: Likewise.
6018         * iconvdata/euc-kr.c: Likewise.
6019         * iconvdata/euc-tw.c: Likewise.
6020         * iconvdata/gbgbk.c: Likewise.
6021         * iconvdata/gbk.c: Likewise.
6022         * iconvdata/iso-2022-cn.c: Likewise.
6023         * iconvdata/iso-2022-jp.c: Likewise.
6024         * iconvdata/iso-2022-kr.c: Likewise.
6025         * iconvdata/iso646.c: Likewise.
6026         * iconvdata/iso8859-1.c: Likewise.
6027         * iconvdata/iso_6937-2.c: Likewise.
6028         * iconvdata/iso_6937.c: Likewise.
6029         * iconvdata/johab.c: Likewise.
6030         * iconvdata/sjis.c: Likewise.
6031         * iconvdata/t.61.c: Likewise.
6032         * iconvdata/uhc.c: Likewise.
6033         * iconvdata/unicode.c: Likewise.
6034         * iconvdata/utf-16.c: Likewise.
6035         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6036         structure correctly after last change.
6037         * wcsmbs/btowc.c: Likewise.
6038         * wcsmbs/mbrtowc.c: Likewise.
6039         * wcsmbs/mbsnrtowcs.c: Likewise.
6040         * wcsmbs/mbsrtowcs.c: Likewise.
6041         * wcsmbs/wcrtomb.c: Likewise.
6042         * wcsmbs/wcsnrtombs.c: Likewise.
6043         * wcsmbs/wcsrtombs.c: Likewise.
6044         * wcsmbs/wctob.c: Likewise.
6045
6046         * localedata/Makefile: Set -Wno-format for some files since gcc does
6047         not know all the format specifiers.
6048
6049 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6050
6051         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6052         unneeded code.
6053         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6054
6055 2000-06-18  Andreas Jaeger  <aj@suse.de>
6056
6057         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6058         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6059
6060 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6061
6062         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6063         LINUX_LINK_MAX.
6064         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6065
6066         * locale/programs/ld-ctype.c (ctype_output): Really write out
6067         mboutdigits information.
6068         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6069         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6070         * localedata/tests/trans.def: Add outdigit information.
6071
6072         * localedata/tst-mbswcs3.c: Remove comment.
6073
6074         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6075         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6076         * libio/tst_wprintf.c (main): Add test for I flag.
6077
6078         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6079         * locale/langinfo.h: Add entries for translit_ignore information.
6080         * locale/categories.def: Add entries for new LC_CTYPE elements.
6081         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6082         pointer instead of "" where possible.
6083         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6084         * intl/Depend: Add localedata.
6085         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6086         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6087
6088 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6089
6090         * locale/langinfo.h: Add entries for default_missing information.
6091         * locale/C-ctype.c: Add initializers for new fields.
6092         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6093         information.
6094         * locale/categories.h: Add entries for all LC_CTYPE values.
6095         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6096         information.
6097
6098         * localedata/tst-trans.c: Write out an error message if class is
6099         not found.
6100
6101         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6102         * iconv/gconv_open.c: Remove error handling specification from `from'
6103         character set name.
6104         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6105         new parameter to always enable transliteration.
6106         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6107         change.
6108         (struct locale_data): Add new members use_translit and options.
6109         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6110         character set name contained modifier TRANSLIT.
6111         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6112         and options fields.
6113         (_nl_unload_locale): Free options string if necessary.
6114         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6115         the locale names suggested this.
6116         * locale/C-address.c: Add two new initialilzers to adjust data
6117         structure for new format.
6118         * locale/C-collate.c: Likewise.
6119         * locale/C-ctype.c: Likewise.
6120         * locale/C-identification.c: Likewise.
6121         * locale/C-measurement.c: Likewise.
6122         * locale/C-messages.c: Likewise.
6123         * locale/C-monetary.c: Likewise.
6124         * locale/C-name.c: Likewise.
6125         * locale/C-numeric.c: Likewise.
6126         * locale/C-paper.c: Likewise.
6127         * locale/C-telephone.c: Likewise.
6128         * locale/C-time.c: Likewise.
6129
6130         * locale/setlocale.c: Add some more __builtin_expect.
6131
6132 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6133
6134         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6135         unsigned char **.
6136         (__gconv_init_fct): Remove two parameters.
6137         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6138         gconv_transliterate.  Remove two parameters.
6139         Change prototypes of builtin functions according to __gconv_fct change.
6140         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6141         != NULL only during error handling.  Stop in this case after the
6142         conversion.
6143         * iconv/gconv_trans.c: Replace with real implementation for
6144         __gconv_transliterate.
6145         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6146         * iconv/gconv.c: Change calls to downstream functions once again.
6147         Use NULL for the fifth parameter instead of pointer to output buffer.
6148         * libio/iofwide.c: Likewise.
6149         * wcsmbs/btowc.c: Likewise.
6150         * wcsmbs/mbrtowc.c: Likewise.
6151         * wcsmbs/mbsnrtowcs.c: Likewise.
6152         * wcsmbs/mbsrtowcs.c: Likewise.
6153         * wcsmbs/wcrtomb.c: Likewise.
6154         * wcsmbs/wcsnrtombs.c: Likewise.
6155         * wcsmbs/wcsrtombs.c: Likewise.
6156         * wcsmbs/wctob.c: Likewise.
6157         * iconv/gconv_simple.c: Remove two parameters from error handling
6158         function call.
6159         * iconvdata/8bit-gap.c: Likewise.
6160         * iconvdata/8bit-generic.c: Likewise.
6161         * iconvdata/ansi_x3.110.c: Likewise.
6162         * iconvdata/big5.c: Likewise.
6163         * iconvdata/big5hkscs.c: Likewise.
6164         * iconvdata/euc-cn.c: Likewise.
6165         * iconvdata/euc-jp.c: Likewise.
6166         * iconvdata/euc-kr.c: Likewise.
6167         * iconvdata/euc-tw.c: Likewise.
6168         * iconvdata/gbgbk.c: Likewise.
6169         * iconvdata/gbk.c: Likewise.
6170         * iconvdata/iso-2022-cn.c: Likewise.
6171         * iconvdata/iso-2022-jp.c: Likewise.
6172         * iconvdata/iso-2022-kr.c: Likewise.
6173         * iconvdata/iso646.c: Likewise.
6174         * iconvdata/iso8859-1.c: Likewise.
6175         * iconvdata/iso_6937-2.c: Likewise.
6176         * iconvdata/iso_6937.c: Likewise.
6177         * iconvdata/johab.c: Likewise.
6178         * iconvdata/sjis.c: Likewise.
6179         * iconvdata/t.61.c: Likewise.
6180         * iconvdata/uhc.c: Likewise.
6181         * iconvdata/unicode.c: Likewise.
6182         * iconvdata/utf-16.c: Likewise.
6183
6184 2000-06-15  Greg McGary  <greg@mcgary.org>
6185
6186         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6187         of callnum assignment.  Tolerate callnum expressions containing
6188         parens.
6189
6190 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6191
6192         * login/Makefile (utmpd): Remove rule to build utmpd.
6193
6194         * csu/Versions: Move libgcc frame handling functions from here...
6195         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6196         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6197         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6198         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6199         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6200         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6201         New file.
6202         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6203
6204         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6205
6206         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6207
6208 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6209
6210         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6211         compatibility.
6212         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6213         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6214         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6215         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6216
6217 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6218
6219         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6220         defined, terminate quotes and read them after the comment char.
6221         * configure.in (HAVE_SECTION_QUOTES): Test whether
6222         __attribute__((section ("x"))) puts quotes around x or not.
6223         * config.h.in (HAVE_SECTION_QUOTES): Add.
6224         * configure: Rebuilt.
6225
6226 2000-06-14  Andreas Jaeger  <aj@suse.de>
6227
6228         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6229         depending on the configure option --sysconfdir.
6230         Closes PR libc/1762.
6231         Patch by Andreas Schwab <schwab@suse.de>.
6232
6233         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6234         entry point.
6235         Reported by Jim Pick <jim@jimpick.com>.
6236
6237 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6238
6239         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6240         crashing the application.  Emit some simple error message.
6241         Reported by mju@panasas.com [PR libc/1769].
6242
6243 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6244
6245         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6246
6247         * crypt/Makefile (distribute): Add md5.h.
6248
6249         * Makefile (distribute): Add include/shlib-compat.h.
6250
6251         * Make-dist: Search for tests also in sysdeps hierachy.
6252
6253         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6254         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6255
6256         * sysdeps/sparc/Subdirs: New file.
6257
6258         * locale/Makefile (distribute): Add weightwc.h and
6259         programs/localedef.h.
6260
6261         * time/Makefile (distribute): Add datemsk.
6262
6263         * sysdeps/ia64/Dist: Add softpipe.h.
6264
6265         * sysdeps/unix/sysv/aix/Dist: New file.
6266
6267         * posix/setpgrp.c: Moved to...
6268         * sysdeps/generic/setpgrp.c: ...here.  New file.
6269         * io/mknod.c: Moved to...
6270         * sysdeps/generic/mknod.c: ...here.  New file.
6271
6272         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6273
6274         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6275
6276         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6277
6278         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6279         gprsave0.S, gprrest1.S, and gprrest0.S.
6280
6281         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6282
6283         * posix/Makefile (routines): Add spawnattr_getsigmask,
6284         spawnattr_getschedpolicy, spawnattr_getschedparam,
6285         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6286         spawnattr_setschedparam.
6287         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6288         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6289         posix_spawnattr_setschedparam.
6290
6291         * posix/spawnattr_setschedparam.c: Fix typo.
6292
6293         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6294         Correct typo.
6295
6296         * login/programs/utmpd.c: Removed.
6297         * login/programs/utmpd.h: Removed.
6298         * login/programs/utmpd-private.h: Removed.
6299
6300         * Makefile (distribute): Add include/db_185.h and include/db.h.
6301
6302         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6303         iso-ir-165.h.
6304
6305         * elf/Makefile (distribute): Add missing files.
6306
6307         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6308         * elf/eval.c: Moved to...
6309         * dlfcn/eval.c: ...here.  New file.
6310
6311         * Makefile (distribute): Also distribute ChangeLog.1?.
6312
6313         * Make-dist (+tsrcs): Remove .args handling here as well.
6314
6315         * rt/Makefile (tests): Add tst-timer.
6316         * sysdeps/generic/tst-timer.c: New file.
6317
6318         * Makerules (sources): Don't add BP sources here.
6319
6320         * login/Makefile (distribute): Remove xtmp.h.
6321
6322         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6323         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6324
6325 2000-06-13  Andreas Jaeger  <aj@suse.de>
6326
6327         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6328         Patch by Ralf Baechle <ralf@gnu.org>.
6329
6330 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6331
6332         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6333         for mincore syscall.
6334
6335         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6336         __BOUNDED_POINTERS__ is not defined.
6337
6338 2000-06-07  Greg McGary  <greg@mcgary.org>
6339
6340         * sysdeps/generic/bp-sym.h: New file.
6341         * sysdeps/generic/bp-start.h: New file.
6342         * sysdeps/i386/elf/start.S: Designate BP symbols.
6343         * sysdeps/generic/libc-start.c: Wrap bounds around
6344         argv & envp and each of their string members.
6345
6346 2000-06-07  Greg McGary  <greg@mcgary.org>
6347
6348         * sysdeps/unix/make-syscalls.sh: Add comments to
6349         output that aid debugging & comprehension.
6350         Map simple syscall signatures to number of args.
6351         Generate BP syscall thunk definitions.
6352         * sysdeps/generic/bp-thunks.h: New file.
6353         * sysdeps/unix/syscalls.list: Replace arg-count with
6354         simple return+arg signature.
6355         * sysdeps/unix/common/syscalls.list: Likewise.
6356         * sysdeps/unix/inet/syscalls.list: Likewise.
6357         * sysdeps/unix/mman/syscalls.list: Likewise.
6358         * sysdeps/unix/sysv/syscalls.list: Likewise.
6359         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6360         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6361
6362 2000-06-07  Greg McGary  <greg@mcgary.org>
6363
6364         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6365         for all files *.[cS].
6366         (CFLAGS-.ob): Don't optimize sibling calls.
6367         (bppfx): New variable.
6368         * Makerules (elide-bp-thunks): New variable.
6369         (elide-routines.*): Elide BP-* files for all but *.ob.
6370         (sources): Include bp-thunks.
6371
6372 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6373
6374         * iconv/gconv_simple.c: Remove unnecessary prototype.
6375
6376         * iconv/gconv_trans.c: Pretty print.
6377
6378         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6379
6380         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6381         minimal kernel versions.  Add information about IA-64 kernel.
6382
6383         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6384         specific minimal supported kernel versions to be specified.
6385
6386         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6387         step data structure.
6388         * wcsmbs/btowc.c: Likewise.
6389         * wcsmbs/mbrtowc.c: Likewise.
6390         * wcsmbs/mbsnrtowcs.c: Likewise.
6391         * wcsmbs/mbsrtowcs.c: Likewise.
6392         * wcsmbs/wcrtomb.c: Likewise.
6393         * wcsmbs/wcsnrtombs.c: Likewise.
6394         * wcsmbs/wcsrtombs.c: Likewise.
6395         * wcsmbs/wctob.c: Likewise.
6396
6397         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6398         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6399
6400         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6401
6402         * misc/sys/cdefs.h: Remove one more __P.
6403
6404         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6405         Reported by HJ Lu.
6406
6407         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6408         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6409         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6410
6411 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6412             Yutaka Niibe  <gniibe@chroot.org>
6413
6414         * configure.in: Add machine sh3, sh4.
6415         * elf/elf.h: Add SH specific declarations of relocations.
6416         * shlib-versions: Add sh*-*-linux* cases.
6417
6418 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6419
6420         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6421         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6422         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6423         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6424         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6425         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6426
6427         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6428         instead of KERNEL_MATH_EMULATION.
6429         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6430         KERNEL_MATH_EMULATION.
6431
6432         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6433         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6434         * sysdeps/sh/dl-machine.h: ...here.  New file.
6435         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6436         and include generic SH version.
6437         * sysdeps/sh/sh3/bits/endian.h: Move to...
6438         * sysdeps/sh/bits/endian.h: ...here.  New file.
6439         * sysdeps/sh/sh4/bits/endian.h: Removed.
6440         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6441         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6442         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6443
6444         * include/libc-symbols.h (link_warning): Work around a change in
6445         GAS which warns about changing section attributes.
6446         Proposed by Nick Clifton <nickc@redhat.com>.
6447
6448 2000-06-12  H.J. Lu  <hjl@gnu.org>
6449
6450         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6451
6452 2000-06-11  H.J. Lu  <hjl@gnu.org>
6453
6454         * sysdeps/i386/fpu/Versions: New file.
6455
6456 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6457
6458         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6459         parameters.
6460         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6461         exists.
6462
6463 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6464
6465         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6466         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6467         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6468
6469         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6470         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6471         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6472
6473 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6474             Yutaka Niibe  <gniibe@chroot.org>
6475
6476         * sysdeps/sh/Dist: New file.
6477         * sysdeps/sh/Implies: New file.
6478         * sysdeps/sh/elf/initfini.c: New file.
6479         * sysdeps/sh/gmp-mparam.h: New file.
6480         * sysdeps/sh/init-first.c: New file.
6481         * sysdeps/sh/machine-gmon.h: New file.
6482         * sysdeps/sh/memcpy.S: New file.
6483         * sysdeps/sh/memprof.h: New file.
6484         * sysdeps/sh/memset.S: New file.
6485         * sysdeps/sh/sh3/__longjmp.S: New file.
6486         * sysdeps/sh/sh3/bits/endian.h: New file.
6487         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6488         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6489         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6490         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6491         * sysdeps/sh/sh3/dl-machine.h: New file.
6492         * sysdeps/sh/sh3/setjmp.S: New file.
6493         * sysdeps/sh/sh4/__longjmp.S: New file.
6494         * sysdeps/sh/sh4/bits/endian.h: New file.
6495         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6496         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6497         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6498         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6499         * sysdeps/sh/sh4/dl-machine.h: New file.
6500         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6501         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6502         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6503         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6504         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6505         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6506         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6507         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6508         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6509         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6510         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6511         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6512         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6513         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6514         * sysdeps/sh/sh4/setjmp.S: New file.
6515         * sysdeps/sh/elf/start.S: New file.
6516         * sysdeps/sh/sys/ucontext.h: New file.
6517         * sysdeps/sh/strlen.S: New file.
6518         * sysdeps/sh/sysdep.h: New file.
6519         * sysdeps/unix/sh/sysdep.S: New file.
6520         * sysdeps/unix/sh/sysdep.h: New file.
6521         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6522         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6523         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6524         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6525         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6526         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6527         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6528         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6529         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6530         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6531         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6532         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6533         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6534         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6535         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6536         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6537         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6538         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6539         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6540         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6541         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6542         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6543         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6544         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6545         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6546         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6547         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6548         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6549         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6550         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6551         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6552         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6553         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6554         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6555         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6556         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6557         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6558         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6559         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6560         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6561         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6562         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6563         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6564         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6565         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6566         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6567         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6568         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6569         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6570         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6571
6572 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6573
6574         * Rules (%.out): Define GCONV_PATH in the environment.
6575         * assert/Depend: New file.
6576         * iconvdata/Depend: New file.
6577         * intl/Depend: New file.
6578         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6579         * intl/tst-gettext.sh: Likewise.
6580         * iconv/Makefile (routines): Add gconv_trans.
6581         * iconv/gconv_trans.c: New file.
6582         * iconv/gconv.h (struct __gconv_trans_data): New type.
6583         (__gconv_fct): New parameter with starting position in output buffer.
6584         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6585         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6586         (struct __gconv_step): Add new member __trans.
6587         * iconv/gconv_int.h: Pretty print prototypes.
6588         (gconv_transliterate): New prototype.
6589         (__BUILTIN_TRANS): Update for new conversion function interface.
6590         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6591         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6592         in names, find appropriate function, and install in the conversion
6593         steps it can be used.
6594         * iconv/skeleton.c: Add additional parameter for beginning of output
6595         buffer.  Change calls of downstream functions.
6596         * iconv/loop.c: Change loop function interface completely.  Pass in
6597         step and step_data structure.  Remove optimization for BODY with
6598         NEED_LENGTH_TEST == 0.
6599         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6600         appropriate error handling code to use transliteration steps.  Remove
6601         optimization for BODY with NEED_LENGTH_TEST == 0.
6602         * iconvdata/8bit-gap.c: Likewise.
6603         * iconvdata/8bit-generic.c: Likewise.
6604         * iconvdata/ansi_x3.110.c: Likewise.
6605         * iconvdata/big5.c: Likewise.
6606         * iconvdata/big5hkscs.c: Likewise.
6607         * iconvdata/euc-cn.c: Likewise.
6608         * iconvdata/euc-jp.c: Likewise.
6609         * iconvdata/euc-kr.c: Likewise.
6610         * iconvdata/euc-tw.c: Likewise.
6611         * iconvdata/gbgbk.c: Likewise.
6612         * iconvdata/gbk.c: Likewise.
6613         * iconvdata/iso-2022-cn.c: Likewise.
6614         * iconvdata/iso-2022-jp.c: Likewise.
6615         * iconvdata/iso-2022-kr.c: Likewise.
6616         * iconvdata/iso646.c: Likewise.
6617         * iconvdata/iso8859-1.c: Likewise.
6618         * iconvdata/iso_6937-2.c: Likewise.
6619         * iconvdata/iso_6937.c: Likewise.
6620         * iconvdata/johab.c: Likewise.
6621         * iconvdata/sjis.c: Likewise.
6622         * iconvdata/t.61.c: Likewise.
6623         * iconvdata/uhc.c: Likewise.
6624         * iconvdata/unicode.c: Likewise.
6625         * iconvdata/utf-16.c: Likewise.
6626         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6627         DL_CALL_FCT.
6628         * wcsmbs/btowc.c: Likewise.
6629         * wcsmbs/mbrtowc.c: Likewise.
6630         * wcsmbs/mbsnrtowcs.c: Likewise.
6631         * wcsmbs/mbsrtowcs.c: Likewise.
6632         * wcsmbs/wcrtomb.c: Likewise.
6633         * wcsmbs/wcsnrtombs.c: Likewise.
6634         * wcsmbs/wcsrtombs.c: Likewise.
6635         * wcsmbs/wctob.c: Likewise.
6636
6637 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6638
6639         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6640         other header files.  Mention about 128-byte cache line sizes.
6641         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6642         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6643         for current calling sequence.
6644         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6645
6646         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6647         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6648
6649         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6650         and setrlimit syscalls for backwards compatibility.
6651
6652 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6653
6654         * iconv/skeleton.c:  Rename converted written to correcter name
6655         irreversible.
6656         * iconv/gconv.c: Rename converted variable to correcter name
6657         irreversible.
6658         * iconv/gconv_int.h: Likewise.
6659         * iconv/gconv_simple.c: Likewise.
6660         * iconv/iconv.c: Likewise.
6661         * iconv/loop.c: Likewise.
6662         * iconvdata/8bit-gap.c: Likewise.
6663         * iconvdata/8bit-generic.c: Likewise.
6664         * iconvdata/ansi_x3.110.c: Likewise.
6665         * iconvdata/big5.c: Likewise.
6666         * iconvdata/big5hkscs.c: Likewise.
6667         * iconvdata/euc-cn.c: Likewise.
6668         * iconvdata/euc-jp.c: Likewise.
6669         * iconvdata/euc-kr.c: Likewise.
6670         * iconvdata/gbgbk.c: Likewise.
6671         * iconvdata/gbk.c: Likewise.
6672         * iconvdata/iso-2022-cn.c: Likewise.
6673         * iconvdata/iso-2022-jp.c: Likewise.
6674         * iconvdata/iso-2022-kr.c: Likewise.
6675         * iconvdata/iso646.c: Likewise.
6676         * iconvdata/iso8859-1.c: Likewise.
6677         * iconvdata/iso_6937-2.c: Likewise.
6678         * iconvdata/iso_6937.c: Likewise.
6679         * iconvdata/johab.c: Likewise.
6680         * iconvdata/sjis.c: Likewise.
6681         * iconvdata/t.61.c: Likewise.
6682         * iconvdata/uhc.c: Likewise.
6683         * iconvdata/unicode.c: Likewise.
6684         * iconvdata/utf-16.c: Likewise.
6685
6686         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6687         __cmsg_data field with __extension__.
6688
6689 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6690
6691         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6692
6693 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6694
6695         * iconv/gconv_simple.c: Fix various small bugs in several
6696         functions.
6697
6698         * iconv/loop.c: Fix comment.
6699
6700 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6701
6702         * elf/link.h: Remove libc internal declarations.
6703         * include/link.h: Move them here.
6704
6705 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6706
6707         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6708         Patch by Dan Pop <Dan.Pop@cern.ch>.
6709
6710         Rewrite error message handling.
6711         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6712         _dl_catch_error.
6713         * elf/dl-error (struct catch): Add objname member.
6714         (_dl_signal_error): Take new parameter with object name.  When
6715         passing message on simply store object name and duplicate error
6716         message.
6717         (_dl_catch_error): Take new parameter.  Store object name in the
6718         place pointed to.
6719         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6720         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6721         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6722         (dlerror): Add objname to asprintf() parameters.
6723         (_dl_error_run): Pass new parameter to _dl_catch_error.
6724         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6725         * elf/dl-open.c (_dl_open): Likewise.
6726         * elf/rtld.c (dl_main): Likewise.
6727         * elf/dl-close.c: Mark error messages with N_().
6728         * elf/dl-deps.c: Likewise.
6729         * elf/dl-error.c: Likewise.
6730         * elf/dl-load.c: Likewise.
6731         * elf/dl-open.c: Likewise.
6732         * elf/dl-reloc.c: Likewise.
6733         * elf/dl-support.c: Likewise.
6734         * elf/dl-sym.c: Likewise.
6735         * elf/dl-version.c: Likewise.
6736         * elf/dl-lookup.c: Add comments about problems with error message
6737         translations.
6738         * elf/dl-reloc.c: Likewise.
6739         * elf/dl-version.c: Likewise.
6740
6741 2000-06-09  H.J. Lu  <hjl@gnu.org>
6742
6743         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6744         after freeing it.
6745
6746         * dlfcn/Makefile (distribute): Add failtestmod.c.
6747         (tests): Add failtest.
6748         Add rules to build and run failtest.
6749         * dlfcn/failtest.c: New file.
6750         * dlfcn/failtestmod.c: New file.
6751
6752 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6753
6754         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6755         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6756         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6757         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6758         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6759
6760 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6761
6762         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6763         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6764
6765 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6766             Ulrich Drepper  <drepper@redhat.com>
6767
6768         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6769         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6770         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6771         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6772         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6773         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6774
6775 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6776
6777         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6778         to find correct mount point despite wrong information from the
6779         kernel.
6780
6781 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6782
6783         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6784         the address of a symbol so function pointers are handled properly.
6785
6786 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6787
6788         * sysdeps/i386/Dist: Add bp-asm.h.
6789
6790         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6791         defaultdir variable instead of "/var/shm" everywhere.
6792         (defaultdir): Change to /dev/shm/.
6793
6794 2000-06-08  Greg McGary  <greg@mcgary.org>
6795
6796         * sysdeps/i386/bp-asm.h: New file.
6797         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6798         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6799         frame-pointer chain when debugging.
6800         * sysdeps/i386/add_n.S: Likewise.
6801         * sysdeps/i386/addmul_1.S: Likewise.
6802         * sysdeps/i386/lshift.S: Likewise.
6803         * sysdeps/i386/memchr.S: Likewise.
6804         * sysdeps/i386/memcmp.S: Likewise.
6805         * sysdeps/i386/mul_1.S: Likewise.
6806         * sysdeps/i386/rawmemchr.S: Likewise.
6807         * sysdeps/i386/rshift.S: Likewise.
6808         * sysdeps/i386/stpcpy.S: Likewise.
6809         * sysdeps/i386/stpncpy.S: Likewise.
6810         * sysdeps/i386/strchr.S: Likewise.
6811         * sysdeps/i386/strchrnul.S: Likewise.
6812         * sysdeps/i386/strcspn.S: Likewise.
6813         * sysdeps/i386/strpbrk.S: Likewise.
6814         * sysdeps/i386/strrchr.S: Likewise.
6815         * sysdeps/i386/strspn.S: Likewise.
6816         * sysdeps/i386/strtok.S: Likewise.
6817         * sysdeps/i386/sub_n.S: Likewise.
6818         * sysdeps/i386/submul_1.S: Likewise.
6819         * sysdeps/i386/elf/setjmp.S: Likewise.
6820         * sysdeps/i386/i486/strcat.S: Likewise.
6821         * sysdeps/i386/i486/strlen.S: Likewise.
6822         * sysdeps/i386/i586/add_n.S: Likewise.
6823         * sysdeps/i386/i586/lshift.S: Likewise.
6824         * sysdeps/i386/i586/memcpy.S: Likewise.
6825         * sysdeps/i386/i586/memset.S: Likewise.
6826         * sysdeps/i386/i586/rshift.S: Likewise.
6827         * sysdeps/i386/i586/strchr.S: Likewise.
6828         * sysdeps/i386/i586/strcpy.S: Likewise.
6829         * sysdeps/i386/i586/strlen.S: Likewise.
6830         * sysdeps/i386/i586/sub_n.S: Likewise.
6831         * sysdeps/i386/i686/add_n.S: Likewise.
6832         * sysdeps/i386/i686/memcpy.S: Likewise.
6833         * sysdeps/i386/i686/mempcpy.S: Likewise.
6834         * sysdeps/i386/i686/memset.S: Likewise.
6835         * sysdeps/i386/i686/strcmp.S: Likewise.
6836
6837 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6838
6839         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6840
6841         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6842         256 and don't use OPEN_MAX.
6843
6844         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6845         use it instead of LINK_MAX.
6846         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6847
6848 2000-06-08  Andreas Jaeger  <aj@suse.de>
6849
6850         * libio/genops.c (_IO_list_lock): Only compile body if we're
6851         thread safe.
6852         (_IO_list_unlock): Likewise.
6853         (_IO_list_resetlock): Likewise.
6854
6855 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6856
6857         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6858         unless user defined it.
6859
6860         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6861         if not defined by the user.
6862
6863         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6864         * libio/iofwrite.c (_IO_fwrite): Likewise.
6865
6866         * time/time.h: Add missing __THROW for clock_getcpuclockid
6867         prototype.
6868
6869         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6870         * include/elf.h: Include also <dl-dtprocnum.h>.
6871         * elf/dl-deps.c: Likewise.
6872         * elf/dl-lookup.c: Likewise.
6873         * elf/dl-runtime.c: Likewise.
6874         * elf/dl-version.c: Likewise.
6875         * elf/do-rel.h: Likewise.
6876         * elf/dynamic-link.h: Likewise.
6877         * elf/link.h: Likewise.
6878         * elf/rtld.c: Likewise.
6879         * sysdeps/generic/dl-dtprocnum.h: New file.
6880         * sysdeps/ia64/dl-dtprocnum.h: New file.
6881         * sysdeps/mips/dl-dtprocnum.h: New file.
6882         * sysdeps/sparc/dl-dtprocnum.h: New file.
6883
6884         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6885
6886         * elf/do-lookup.h: Add some __builtin_expect.
6887
6888         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6889
6890         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6891         (_dl_dynamic_weak): New variable.
6892         * elf/dl-support.c: Likewise.
6893         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6894         * elf/do-lookup.h: If we find a weak definition treat it like a
6895         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6896         case treat it like before.
6897
6898         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6899         is in main program.
6900         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6901
6902         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6903         using l_map_start and l_map_end.
6904
6905         * elf/dl-version.c: Add __builtin_expect in many places.
6906
6907         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6908         Update.
6909
6910 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6911
6912         Lock for stdio stream list becomes global, for use in LinuxThreads.
6913
6914         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6915         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6916         _IO_list_resetlock): New interface for iterating global list of
6917         streams without accessing the _IO_list_all global variable,
6918         and for manipulating the lock which protects this list.
6919         * libio/libioP.h: Likewise.
6920         * libio/Version: Add entries for the new functions.
6921
6922         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6923         pointer to _IO_FILE.
6924
6925 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6926
6927         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6928         BIT() must actually be BITw().
6929
6930         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6931
6932         * locale/programs/charmap.c: Allow string arguments for
6933         code_set_name and repertoiremap.
6934
6935 2000-06-07  Andreas Jaeger  <aj@suse.de>
6936
6937         * elf/Makefile: Build ldconfig only when building shared libraries.
6938
6939 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6940
6941         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6942         __USE_ISOC99.
6943         (fdimf, __fdim, fdim): Likewise.
6944
6945 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6946
6947         * locale/findlocale.c: Add __builtin_expect in many places.
6948         * locale/loadlocale.c: Likewise.
6949
6950 2000-06-06  Greg McGary  <greg@mcgary.org>
6951
6952         * sysdeps/mips/elf/start.S: Trim redundant code.
6953
6954         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6955         Use C comments throughout.  Line up operands column with tabs.
6956         * sysdeps/powerpc/strchr.S: Likewise.
6957         * sysdeps/powerpc/strcmp.S: Likewise.
6958         * sysdeps/powerpc/strcpy.S: Likewise.
6959         * sysdeps/powerpc/strlen.S: Likewise.
6960
6961         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6962         Get low part of &__curbrk with @l.
6963
6964 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6965
6966         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6967         * iconvdata/unicode.c: Likewise.
6968         * iconvdata/uhc.c: Likewise.
6969         * iconvdata/t.61.c: Likewise.
6970         * iconvdata/sjis.c: Likewise.
6971         * iconvdata/johab.c: Likewise.
6972         * iconvdata/iso_6937.c: Likewise.
6973         * iconvdata/iso_6937-2.c: Likewise.
6974         * iconvdata/iso8859-1.c: Likewise.
6975         * iconvdata/iso646.c: Likewise.
6976         * iconvdata/iso-2022-kr.c: Likewise.
6977         * iconvdata/iso-2022-jp.c: Likewise.
6978         * iconvdata/iso-2022-cn.c: Likewise.
6979         * iconvdata/gbgbk.c: Likewise.
6980         * iconvdata/gbk.c: Likewise.
6981         * iconvdata/euc-kr.c: Likewise.
6982         * iconvdata/euc-jp.c: Likewise.
6983         * iconvdata/euc-cn.c: Likewise.
6984
6985 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6986
6987         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6988         * iconvdata/big5.c: Likewise.
6989         * iconvdata/ansi_x3.110.c: Likewise.
6990         * iconvdata/8bit-generic.c: Likewise.
6991         * iconvdata/8bit-gap.c: Likewise.
6992         * iconv/loop.c: Likewise.
6993         * iconv/gconv_db.c: Likewise.
6994         * iconv/gconv_dl.c: Likewise.
6995         * iconv/gconv_simple.c: Likewise.
6996         * iconv/skeleton.c: Likewise.
6997
6998         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6999         (struct __gconv_step_data): Rename __is_last to __flags.
7000         * iconv/gconv_close.c: Change all uses of __is_last.
7001         * iconv/skeleton.c: Likewise.
7002         * iconvdata/iso-2022-cn.c: Likewise.
7003         * iconvdata/iso-2022-jp.c: Likewise.
7004         * iconvdata/iso-2022-kr.c: Likewise.
7005         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7006         Recognize IGNORE error handling, set flag, and remove from name.
7007         * iconv/loop.c (ignore_errors_p): Define.
7008         Add flags parameter to both functions.
7009         * iconv/skeleton.c: Pass flags to all conversion functions.
7010         * iconv/gconv_simple.c: Add flags parameter to all functions.
7011         Don't return error for invald error if ignore flag is set.
7012         (ucs4_internal_loop_single): Add missing pointer increment.
7013         (internal_ucs4le_loop_single): Likewise.
7014         * iconv/iconv_prog.c: Implement handling of -c parameter.
7015         * iconvdata/8bit-gap.c: Don't return error for invald error if
7016         ignore flag is set.
7017         * iconvdata/8bit-generic.c: Likewise.
7018         * iconvdata/ansi_x3.110.c: Likewise.
7019         * iconvdata/big5.c: Likewise.
7020         * iconvdata/big5hkscs.c: Likewise.
7021         * iconvdata/euc-cn.c: Likewise.
7022         * iconvdata/euc-jp.c: Likewise.
7023         * iconvdata/euc-kr.c: Likewise.
7024         * iconvdata/gbgbk.c: Likewise.
7025         * iconvdata/gbk.c: Likewise.
7026         * iconvdata/iso-2022-cn.c: Likewise.
7027         * iconvdata/iso-2022-jp.c: Likewise.
7028         * iconvdata/iso-2022-kr.c: Likewise.
7029         * iconvdata/iso646.c: Likewise.
7030         * iconvdata/iso8859-1.c: Likewise.
7031         * iconvdata/iso_6937-2.c: Likewise.
7032         * iconvdata/iso_6937.c: Likewise.
7033         * iconvdata/johab.c: Likewise.
7034         * iconvdata/sjis.c: Likewise.
7035         * iconvdata/t.61.c: Likewise.
7036         * iconvdata/uhc.c: Likewise.
7037         * iconvdata/unicode.c: Likewise.
7038         * iconvdata/utf-16.c: Likewise.
7039         * libio/fileops.c: Likewise.
7040         * libio/iofwide.c: Likewise.
7041         * wcsmbs/btowc.c: Likewise.
7042         * wcsmbs/mbrtowc.c: Likewise.
7043         * wcsmbs/mbsnrtowcs.c: Likewise.
7044         * wcsmbs/mbsrtowcs.c: Likewise.
7045         * wcsmbs/wcrtomb.c: Likewise.
7046         * wcsmbs/wcsnrtombs.c: Likewise.
7047         * wcsmbs/wcsrtombs.c: Likewise.
7048         * wcsmbs/wctob.c: Likewise.
7049
7050         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7051         an error.
7052
7053 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7054
7055         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7056         counter for the object we are releasing, just decrement it.
7057         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7058
7059 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7060
7061         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7062         if -ffast-math.
7063
7064 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7065
7066         * iconvdata/big5hkscs.c: New file.
7067         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7068
7069         * iconvdata/gconv-modules: Add entry for new module.
7070         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7071         (distribute): Add big5hkscs.c.
7072
7073 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7074
7075         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7076         inlines to match prototypes in mathcalls.h.
7077         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7078         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7079         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7080         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7081
7082 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7083
7084         * elf/elf.h (SHT_SUNW_move): Define.
7085
7086         * elf/elf.h: Add more Solaris compatiblity definitions.
7087
7088 2000-06-03  Andreas Jaeger  <aj@suse.de>
7089
7090         * sysdeps/powerpc/dl-start.S: Close open comment.
7091
7092 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7093
7094         * inet/Versions: Fix typo in rresvport_af export.
7095
7096 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7097
7098         * math/tgmath.h: Pretty print.
7099
7100 2000-06-02  Andreas Jaeger  <aj@suse.de>
7101
7102         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7103         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7104
7105 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7106
7107         * elf/rtld.c (process_envvars): Test for = after variable name.
7108
7109 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7110
7111         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7112         have extra call to __gmon_start__, use the pointer we already have.
7113
7114         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7115         shifting.
7116
7117         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7118         binutils.  gas now emits a jump through the PLT instead of a
7119         relative jump if the jump target is an exported symbol.
7120
7121 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7122
7123         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7124
7125 2000-05-31  Andreas Jaeger  <aj@suse.de>
7126
7127         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7128         gregset_t.
7129
7130         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7131         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7132
7133         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7134         syscall.
7135         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7136
7137 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7138
7139         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7140
7141         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7142         * locale/localeconv.c: Make function versioned (with same definition).
7143
7144         * elf/Makefile (modules-names): Strip before using it.
7145
7146 2000-05-30  Andreas Jaeger  <aj@suse.de>
7147
7148         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7149         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7150         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7151         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7152         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7153         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7154
7155 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7156
7157         * Makefile: Add GNU make magic.
7158
7159         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7160         Removed.
7161         * inet/rcmd.c: Remove __P.  Remove unused variables.
7162         (iruserfopen): Make first parameter const.
7163         (ruserok_sa): Return result of ruserok2_sa.
7164         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7165         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7166         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7167         (ruserpass): Check results of memory allocation.
7168         * include/netdb.h: Add prototype for ruserpass.
7169
7170 2000-05-29  Andreas Jaeger  <aj@suse.de>
7171
7172         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7173         for all platforms.
7174
7175 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7176
7177         * inet/rcmd.c (rresvport_af): Use correct port number.
7178
7179 2000-05-26  Andreas Schwab  <schwab@suse.de>
7180
7181         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7182         entries in all-sonames.
7183         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7184         preserving the old name if different for compatibility.
7185
7186 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7187
7188         * posix/Makefile (tests): Add tst-spawn.
7189         (tst-spawn-ARGS): New variable.
7190         * posix/tst-spawn.c: New file.
7191
7192         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7193         * posix/spawn_faction_adddup2.c: Likewise.
7194         * posix/spawn_faction_addopen.c: Likewise.
7195         * posix/spawni.c: Correctly test for success of dup2 calls.
7196
7197         * posix/tst-preadwrite.c: Check success of malloc call.
7198
7199 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7200
7201         * posix/Makefile (tests): Add tst-exec.
7202         (tst-exec-ARGS): New variable.
7203         * posix/tst-exec.c: New file.
7204
7205         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7206
7207 2000-05-04  Andreas Jaeger  <aj@suse.de>
7208
7209         * string/string.h: Remove __strdup prototype, it's not needed in
7210         this file anymore.
7211
7212 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7213
7214         * posix/Makefile (tests): Add tst-fork.
7215         * posix/tst-fork.c: New file.
7216
7217         * resolv/inet_pton.c: Loose __P.
7218
7219 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7220
7221         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7222         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7223         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7224         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7225         _IO_CHECK_WIDE fails.
7226
7227 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7228
7229         * po/da.po: New file.
7230
7231         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7232         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7233
7234         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7235         (Other iconv Implementations): Fix typo.
7236         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7237
7238 2000-05-27  Andreas Jaeger  <aj@suse.de>
7239
7240         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7241         normal version now.
7242         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7243         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7244         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7245         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7246         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7247         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7248
7249         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7250         endianness to decide how to pass arguments.
7251         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7252
7253         * elf/vismain.c: Use test-skeleton interface.
7254         (TEST_FUNCTION): New macro.
7255         (do_test): Renamed from main.
7256
7257 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7258
7259         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7260         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7261
7262         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7263         handling of AI_V4MAPPED flag.
7264
7265         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7266         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7267         perform lookup for T_A type and tell getanswer_r to convert the
7268         result with new argument.
7269         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7270         Don't convert addresses from IPv4 to IPv6 here.
7271         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7272         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7273         IPv4 mapping has to be done.  Perform mappings if required by the
7274         caller and not if RES_USE_INET6 bit in _res.options is set.
7275         Add several __builtin_expect.
7276
7277 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7278
7279         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7280
7281         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7282         NULL.
7283
7284         * posix/tst-preadwrite.c: Allow parallel execution of
7285         tst-preadwrite and tst-preadwrite64.
7286
7287         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7288         * posix/tst-truncate.c: New file.
7289         * posix/tst-truncate64.c: New file.
7290
7291         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7292         was switched.
7293
7294         * posix/Makefile (tests): Add tst-preadwrite64.
7295         * posix/tst-preadwrite.c: Alloc file being used also for testing
7296         pread64 and pwrite64.
7297         * posix/tst-preadwrite64.c: New file.
7298
7299 2000-05-26  Andreas Jaeger  <aj@suse.de>
7300
7301         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7302         of arguments dependend on endianness.
7303         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7304
7305         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7306         normal version now.
7307         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7308         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7309         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7310         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7311
7312         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7313         endianness to check how to pass argument.
7314         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7315
7316         * elf/ldconfig.h: Update parameter list for process_elf_file.
7317
7318         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7319         Add parameter file_length and pass it ot process_elf*file.
7320
7321         * sysdeps/generic/readelflib.c (check_ptr): New.
7322         (process_elf_file): Use check_ptr to check all accesses to the
7323         mmapped file. Add parameter file_length.
7324
7325         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7326         library names.
7327
7328         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7329         Closes PR libc/1573, reported by Bradley White
7330         <bww@laurelnetworks.com>.
7331
7332 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7333
7334         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7335         __FAST_MATH__ is defined.
7336
7337 2000-05-22  Andreas Jaeger  <aj@suse.de>
7338
7339         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7340         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7341
7342         * manual/math.texi (FP Function Optimizations): Document gcc
7343         -ffast-math behaviour with mathinlines.
7344
7345         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7346         functions unless -ffast-math is given to gcc.
7347
7348 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7349
7350         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7351         __sincosl): Guard with __USE_GNU.
7352
7353 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7354
7355         * csu/Makefile (routines): Add check_fds.
7356         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7357         binaries.  Add various __builtin_expect.
7358         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7359         * sysdeps/generic/check_fds.c: ...here.  New file.
7360
7361         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7362         binaries if file /etc/suid-debug is available.
7363
7364         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7365         and wcseqorder members.
7366         (struct locale_collate_t): Likewise.
7367         (collate_finish): Assign collation sequence value to each character.
7368         Create tables for output.
7369         (collate_output): Write out tables with collation sequence information.
7370         * locale/C-collate.c: Provide C locale data for collation sequence
7371         table.
7372         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7373         _NL_COLLATE_COLLSEQWC.
7374         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7375         _NL_COLLATE_COLLSEQWC.
7376         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7377         include fnmatch_loop.c.
7378         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7379         character is matched by range expression.  Use collation sequence
7380         table.  Outside glibc fall back on simple character value comparison.
7381
7382 2000-05-24  Andreas Jaeger  <aj@suse.de>
7383
7384         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7385         words.
7386
7387         * intl/Makefile: Run gettext-test only if msgfmt is available.
7388
7389         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7390         Define it for newer kernels.
7391
7392 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7393
7394         * elf/dl-sym.c: Minor cleanups.
7395
7396         * configure.in: Add test for .protected.
7397         * config.make.in: Add have-protected variable.
7398         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7399         (tests-vis-yes): Add vismain.
7400         (modules-names): Add $(modules-vis-$(have-protected)).
7401         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7402         Add rules to generate and run vismain.
7403         * elf/vismain.c: New file.
7404         * elf/vismod1.c: New file.
7405         * elf/vismod2.c: New file.
7406         * elf/vismod3.c: New file.
7407
7408 2000-05-23  Andreas Jaeger  <aj@suse.de>
7409
7410         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7411
7412         * manual/search.texi (Array Sort Function): Document that qsort is
7413         not necessarily in-place.
7414
7415         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7416         Closes PR libc/1731.
7417
7418         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7419         * dirent/scandir64.c: Likewise.
7420         * pwd/getpw.c: Likewise.
7421         * stdlib/bsearch.c (bsearch): Likewise.
7422         * stdlib/tst-strtoll.c: Likewise.
7423         * localedata/collate-test.c: Likewise.
7424         * localedata/xfrm-test.c: Likewise.
7425         * posix/bsd-getpgrp.c: Likewise.
7426         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7427         * sysdeps/generic/bits/siginfo.h: Likewise.
7428         * sysdeps/generic/bits/sockaddr.h: Likewise.
7429         * sysdeps/generic/sys/swap.h: Likewise.
7430         * sysdeps/generic/sys/sysinfo.h: Likewise.
7431         * sysdeps/generic/vfork.c: Likewise.
7432         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7433         * sysdeps/mach/hurd/fdopen.c: Likewise.
7434         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7435         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7436         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7437         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7438         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7439         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7440         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7441
7442         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7443         * shadow/lckpwdf.c: Likewise.
7444         * stdlib/tst-strtol.c: Likewise.
7445         * sysdeps/generic/tcsetattr.c: Likewise.
7446         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7447         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7448
7449 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7450
7451         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7452         free it and set to (void *) -1.
7453
7454 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7455
7456         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7457         not the second character in the range.
7458         * stdio-common/tstscanf.c (main): Add testcase for the above.
7459         Reported by jik@kamens.brookline.ma.us.
7460
7461 2000-05-21  H.J. Lu  <hjl@gnu.org>
7462
7463         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7464         with noexec and noplt parameter.
7465         (do_lookup): Likewise.
7466
7467         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7468         do_lookup.  Support STV_PROTECTED.
7469         (_dl_lookup_symbol_skip): Likewise.
7470         (_dl_lookup_versioned_symbol): Likewise.
7471         (_dl_lookup_versioned_symbol_skip): Likewise.
7472
7473         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7474
7475         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7476
7477 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7478
7479         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7480         * sysdeps/i386/bits/huge_val.h: Likewise.
7481         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7482         * sysdeps/m68k/bits/huge_val.h: Likewise.
7483         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7484         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7485
7486 2000-05-22  Andreas Jaeger  <aj@suse.de>
7487
7488         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7489         change in iconv.h.
7490
7491 2000-05-19  Andreas Jaeger  <aj@suse.de>
7492
7493         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7494         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7495         breaks compilation without linuxthreads.
7496
7497 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7498
7499         * sysdeps/ia64/memccpy.S: New file.
7500         * sysdeps/ia64/memchr.S: New file.
7501         * sysdeps/ia64/memcmp.S: New file.
7502         * sysdeps/ia64/memcpy.S: New file.
7503         * sysdeps/ia64/memmove.S: New file.
7504         * sysdeps/ia64/memset.S: New file.
7505         * sysdeps/ia64/strcat.S: New file.
7506         * sysdeps/ia64/strchr.S: New file.
7507         * sysdeps/ia64/strcmp.S: New file.
7508         * sysdeps/ia64/strcpy.S: New file.
7509         * sysdeps/ia64/strlen.S: New file.
7510         * sysdeps/ia64/strncmp.S: New file.
7511         * sysdeps/ia64/strncpy.S: New file.
7512         * sysdeps/ia64/softpipe.h: New file.
7513         Patches by Dan Pop <Dan.Pop@cern.ch>.
7514
7515         * manual/memory.texi: Document memory handling functions (mlock,
7516         munlock, mlockall, munlockall, brk, and sbrk)
7517         * manual/time.texi: Document timespec and friends.
7518         * manual/conf.texi: Fix references.
7519         * manual/ctype.texi: Likewise.
7520         * manual/errno.texi: Likewise.
7521         * manual/intro.texi: Likewise.
7522         * manual/locale.texi: Likewise.
7523         * manual/sysinfo.texi: Likewise.
7524         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7525
7526 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7527
7528         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7529         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7530
7531 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7532
7533         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7534         dxfer_direction.
7535
7536 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7537
7538         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7539         * locale/localeconv.c: Initialize new elements from ISO C99.
7540         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7541         new standard elements.
7542         * locale/categories.def: Adjust accordingly.
7543
7544         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7545         * iconv/iconv.c: Likewise.
7546         * conform/data/iconv.h-data: Likewise.
7547         * iconv/iconv_prog.c (process_block): Remove const from second
7548         parameter.
7549         (main): Remove const from addr definition.
7550         * manual/charset.texi (Generic Conversion Interface): Remove from
7551         inbuf parameter of iconv.
7552
7553         * intl/dcigettext.c: Fix typo in comment.
7554
7555 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7556
7557         * resolv/res_libc.c (_res): Initialize _sock to -1.
7558
7559 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7560
7561         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7562         (fopencookie@@GLIBC_2.2): New.
7563         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7564         (fopencookie@GLIBC_2.0): New.
7565         * libio/Versions: Add fopencookie to GLIBC_2.2.
7566
7567 2000-05-18  Andreas Jaeger  <aj@suse.de>
7568
7569         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7570         Closes PR libc/1731.
7571
7572         * manual/arith.texi (Parsing of Integers): Fix typo.
7573         Closes PR libc/1744, reported by blp@gnu.org.
7574
7575 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7576
7577         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7578         __extension__ to hexadecimal floating constant notation.
7579         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7580         Likewise.
7581         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7582         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7583         Likewise.
7584         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7585         HUGE_VALL): Likewise.
7586         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7587         HUGE_VALL): Likewise.
7588         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7589
7590 2000-05-17  Andreas Jaeger  <aj@suse.de>
7591
7592         * string/envz.h: Add pure attributes if possible.
7593
7594         * string/argz.h: argz_count is a pure function.
7595
7596         * string/strings.h: Add pure and const attributes if possible.
7597
7598         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7599         possibly searching through the whole memory.
7600         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7601
7602 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7603
7604         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7605         not yet defined.
7606         (_dl_cache_check_flags): Likewise.
7607         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7608         dl-cache.h.
7609
7610 2000-05-17  Andreas Jaeger  <aj@suse.de>
7611
7612         * manual/creature.texi (Feature Test Macros): Remove paragraph
7613         since the description is wrong.
7614         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7615
7616         * scripts/config.sub: New version.
7617         * scripts/config.guess: Likewise.
7618         * manual/texinfo.tex: Likewise.
7619
7620         * time/test_time.args: Removed.
7621         * time/Makefile (test_time-ARGS): Added contents here instead.
7622
7623         * posix/tstgetopt.args: Removed.
7624         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7625
7626         * Rules: Allow arguments for test files to be specified in
7627         Makefile with testname-ARGS; remove rules with .args in it.
7628
7629         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7630         remove old bogus rule for opendir-tst1.args.
7631
7632         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7633
7634         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7635         into objdir.  This allows a readonly sourcetree.
7636         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7637
7638 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7639             David Huggins-Daines <dhd@linuxcare.com>
7640
7641         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7642         cache_data in case of only new cache format correctly.
7643
7644         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7645         cache_file_new.
7646
7647         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7648         struct cache_file_new.
7649
7650         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7651         present.
7652
7653         * elf/cache.c (save_cache): Align struct new_file_cache.
7654         (print_cache): Likewise.
7655
7656 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7657
7658         * elf/soinit.c (__libc_global_ctors): Move
7659         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7660         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7661         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7662         variable, don't define it to __res_state call.
7663
7664 2000-05-13  Andreas Jaeger  <aj@suse.de>
7665
7666         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7667         Linux 2.3.99pre7.
7668         (AF_PPPOX): Likewise.
7669         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7670         (AF_PPPOX): Likewise.
7671
7672 2000-05-12  Andreas Jaeger  <aj@suse.de>
7673
7674         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7675         Reported by tmoestl@gmx.net, closes PR libc/1732.
7676
7677 2000-05-11  Jan Hubicka  <jh@suse.cz>
7678
7679         * misc/sys/cdefs.h: Add support for pure attribute.
7680
7681         * include/string.h: Add __attribute_pure__ to various functions.
7682         * string/string.h: Likewise.
7683
7684 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7685
7686         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7687         argument.
7688         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7689         R_SPARC_UA64.
7690         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7691
7692 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7693
7694         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7695         at proper place.  Compute the high nibble correctly.
7696
7697 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7698
7699         * elf/ldconfig.c: Include elf.h.
7700
7701         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7702         (_dl_vsym): Likewise.
7703         Reported by Owen Taylor <otaylor@redhat.com>.
7704
7705         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7706         always.
7707
7708 2000-05-08  Andreas Jaeger  <aj@suse.de>
7709
7710         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7711
7712         * intl/bindtextdom.c (set_binding_values): Add prototype.
7713
7714 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7715
7716         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7717         call to elf_machine_fixup_plt.
7718         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7719         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7720
7721 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7722
7723         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7724         they are not dlclose'd from underneath us.
7725
7726 2000-05-08  Andreas Schwab  <schwab@suse.de>
7727
7728         * posix/execle.c: Fix size parameter of memcpy.
7729
7730 2000-05-08  Andreas Schwab  <schwab@suse.de>
7731
7732         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7733         getpagesize syscall if available.
7734
7735 2000-05-08  Andreas Jaeger  <aj@suse.de>
7736
7737         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7738         set errno.
7739
7740 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7741
7742         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7743         sizeof(struct link_map *) chunks, not in bytes.
7744
7745 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7746
7747         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7748         only needed for locale.
7749         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7750         It's only needed for catgets.
7751         Patches by Greg McGary <gkm@eng.ascend.com>.
7752
7753 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7754
7755         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7756         Remove duplicate <errno.h> include.  Remove inclusion of
7757         <libintl.h> and "nsswitch.h".
7758         (set_cloexec_flag): New function, broken out of dbopen.
7759         (dbopen): Changed return type to `enum
7760         nss_status'.  Mostly rewritten to make sure that we do not report
7761         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7762         (internal_setent): Change return type to nss_status.
7763         Document, and make sure that the function
7764         behaves accordingly.  Make dynamically loading the database
7765         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7766         failed.
7767         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7768         unecessary casts.
7769         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7770         documentation.
7771         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7772         c_get function member.
7773         * nss/nss_db/nss_db.h: Add and tweak some comments.
7774         (DBT): Move typedef before NSS_DBC typedef.
7775         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7776
7777 2000-05-07  H.J. Lu  <hjl@gnu.org>
7778
7779         * csu/initfini.c: Moved to ....
7780         * sysdeps/generic/initfini.c: ...here.
7781
7782         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7783
7784 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7785
7786         * manual/resource.texi: Document POSIX scheduling functions.
7787         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7788
7789         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7790         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7791
7792         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7793         for x since promotion in comparison might leads to unexpected
7794         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7795
7796         * iconv/Makefile (tests): Add tst-iconv1.
7797         * iconv/tst-iconv1.c: New file.
7798         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7799         empty input buffer over full output buffer.
7800         (ucs4_internal_loop): Likewise.
7801         (ucs4_internal_loop_unaligned): Likewise.
7802         (internal_ucs4le_loop): Likewise.
7803         (internal_ucs4le_loop_unaligned): Likewise.
7804         (ucs4le_internal_loop): Likewise.
7805         (ucs4le_internal_loop_unaligned): Likewise.
7806         Reported by yaoz@nih.gov.
7807
7808 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7809
7810         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7811         returned != __GCONV_OK, there is nothing to clean up.
7812
7813 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7814
7815         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7816         OUTPUT_CHARSET environment variables.
7817
7818 2000-05-06  Andreas Jaeger  <aj@suse.de>
7819
7820         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7821         (struct cache_file_new): New.
7822         (struct file_entry): New (moved from cache.c).
7823         (struct cache_file): New (moved from cache.c).
7824
7825         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7826         from _dl_load_cache_lookup.
7827         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7828         the different cache formats.
7829         New variable cache_new for new format.
7830
7831         * elf/ldconfig.h: Change according to changes in cache.c and
7832         ldconfig.c; remove cache_libcmp; add opt_format.
7833
7834         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7835         stuff that's defined in those headers.
7836         Add hwcap to struct lib_entry.
7837         (opt_format): New variable to select cache format.
7838         (options): Add format parameter.
7839         (is_hwcap): New function.
7840         (path_hwcap): New function.
7841         (parse_opt): Handle new format parameter.
7842         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7843
7844         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7845         ldconfig is part of glibc.
7846         Include dl-cache.h and remove stuff that's defined there.
7847         (struct cache_entry): Add new member hwcap.
7848         (print_entry): Print hwcap, cleanup a bit.
7849         (print_cache): Print new and old formats.
7850         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7851         (save_cache): Save new and old formats.
7852         (add_to_cache): Handle hwcap.
7853
7854         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7855         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7856         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7857         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7858         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7859         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7860
7861 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7862
7863         * intl/dcigettext.c (alignof): New macro.
7864         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7865         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7866         freemem_size to 0.
7867
7868 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7869
7870         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7871         return value.
7872
7873 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7874
7875         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7876         (mempcpy): Correct typo is parameter list.
7877
7878 2000-05-06  Andreas Jaeger  <aj@suse.de>
7879
7880         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7881         functions unless -ffast-math is given to gcc.
7882
7883 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7884
7885         * po/ko.po: Update from translation team.
7886
7887 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7888
7889         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7890         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7891         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7892         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7893         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7894         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7895
7896         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7897         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7898         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7899
7900         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7901         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7902         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7903         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7904
7905         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7906         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7907
7908 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7909
7910         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7911         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7912
7913         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7914         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7915
7916         * sysdeps/ia64/Implies: New file.
7917         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7918         * sysdeps/ia64/Makefile: New file.
7919         * sysdeps/ia64/gmp-mparam.h: New file,
7920
7921         * sysdeps/ia64/elf/start.S: New file.
7922
7923         * sysdeps/ia64/bits/fenv.h: New file.
7924
7925 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7926
7927         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7928
7929 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7930
7931         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7932         ia64 has 64 bit .hash entries just as the Alpha.
7933
7934 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7935
7936         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7937
7938 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7939
7940         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7941         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7942         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7943         * sysdeps/ia64/fpu/fegetenv.c: New file.
7944         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7945         * sysdeps/ia64/fpu/fegetround.c: New file.
7946         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7947         * sysdeps/ia64/fpu/fesetenv.c: New file.
7948         * sysdeps/ia64/fpu/fesetround.c: New file.
7949         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7950         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7951         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7952         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7953         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7954
7955 2000-05-05  Andreas Jaeger  <aj@suse.de>
7956
7957         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7958
7959         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7960         (_dl_string_hwcap): New, does nothing.
7961
7962         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7963         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7964         (_dl_string_hwcap): New function, converts from string to hwcap
7965         encoding.
7966         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7967         (_DL_HWCAP_COUNT): New.
7968         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7969         (_dl_string_hwcap): New function, converts from string to hwcap
7970         encoding.
7971         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7972         (_DL_HWCAP_COUNT): New.
7973         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7974         (_dl_string_hwcap): New function, converts from string to hwcap
7975         encoding.
7976
7977 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7978
7979         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7980         * sysdeps/ia64/Dist: New file.
7981
7982         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7983         parameter to mprotect and for variable assignments.
7984
7985 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7986
7987         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7988         validity of map before dereferencing it.
7989
7990         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7991
7992 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7993
7994         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7995         lookup to the arguments to elf_machine_fixup_plt().
7996
7997         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7998         of the symbol being resolved to input argument list and make the
7999         function return the pointer to the reloc.
8000
8001         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8002         return valuie to lookup_t and return the value.
8003         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8004         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8005         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8006         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8007         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8008         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8009
8010         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8011         Make it an inline function returning value after calling
8012         __elf_machine_fixup_plt().
8013
8014         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8015         symbol address.
8016
8017         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8018         obtain the symbol address.
8019
8020         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8021         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8022
8023         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8024         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8025         inline on non ia64.
8026
8027 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8028
8029         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8030         symbol address of an object.
8031
8032         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8033         the symbol address of an object.
8034
8035         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8036         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8037         (_dl_lookup_symbol_skip): Likewise.
8038         (_dl_lookup_versioned_symbol): Likewise.
8039         (_dl_lookup_versioned_symbol_skip): Likewise.
8040
8041 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8042
8043         * elf/rtld.c (_dl_start): Get the function pointer return address
8044         via _dl_start_address for architectures that need a function
8045         pointer descriptor rather than just a pointer (ia64).
8046
8047         * sysdeps/generic/dl-lookupcfg.h: New file.
8048         * sysdeps/ia64/dl-lookupcfg.h: New file.
8049         * sysdeps/ia64/dl-machine.h: New file.
8050         * sysdeps/ia64/dl-symaddr.c: New file.
8051         * sysdeps/ia64/dl-fptr.c: New file.
8052
8053         * elf/elf.h: Add IA-64 specific definitions.
8054
8055 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8056
8057         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8058         end of enum.
8059
8060 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8061
8062         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8063         happy.
8064
8065 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8066
8067         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8068         symbol.  Call _dl_init rather than the old way.
8069
8070 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8071
8072         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8073         test for pointer in range of DSO address space.
8074
8075 2000-05-04  Andreas Jaeger  <aj@suse.de>
8076
8077         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8078
8079 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8080
8081         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8082         calls of _nl_make_l10nflist.
8083
8084         * libio/stdio.h: Make fseeko and ftello prototypes available is
8085         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8086
8087         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8088         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8089
8090 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8091
8092         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8093         before calling tfind.
8094
8095 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8096
8097         * resolv/resolv.h (res_querydomain): Remove redefinition to
8098         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8099
8100 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8101
8102         * po/gl.po: Update from translation team.
8103
8104         * manual/intro.texi (Program Basics): Change section title.
8105         * manual/process.texi: Fix reference.
8106         (Executing a File): Add reference exec in other section.
8107         * manual/signal.texi: Fix reference.
8108         * manual/startup.texi: Document syscall function.
8109         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8110
8111 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8112
8113         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8114         * intl/bindtextdom.c (set_binding_values): New function.
8115         (bindtextdomain): Call it.
8116         (bind_textdomain_codeset): New function.
8117         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8118         (free_mem): Free each binding's codeset.
8119         * intl/gettextP.h (struct binding): Add codeset field.
8120         (_nl_find_domain): Add domainbinding argument.
8121         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8122         Pass it to _nl_make_l10nflist.
8123         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8124         (_nl_make_l10nflist): Add domainbinding argument.
8125         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8126         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8127         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8128         locale_charset().
8129         * manual/message.texi: New node "Charset conversion in gettext".
8130
8131 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8132
8133         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8134         appropriate.  Handle possible __read error.
8135
8136 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8137
8138         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8139         compiler builtin.
8140         * intl/loadinfo.h (__builtin_expect): Likewise.
8141         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8142         __builtin_expect where appropriate.
8143         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8144         * intl/localealias.c (extend_alias_table): Return an error indicator.
8145         (read_alias_file): Bail out if extend_alias_table fails.
8146
8147 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8148
8149         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8150         * intl/localealias.c: Likewise.
8151
8152 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8153
8154         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8155         Initialize domain->plural and domain->nplurals even if there is no
8156         nullentry.
8157
8158 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8159
8160         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8161         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8162         In case of failure, goto converted.
8163
8164 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8165
8166         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8167         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8168         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8169         __gconv_open.
8170
8171 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8172
8173         * intl/dcigettext.c (transcmp): Compare the domains as well.
8174         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8175         not before.
8176         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8177         <errno.h>.
8178
8179 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8180
8181         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8182         Reported by Bruno Haible.
8183
8184 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8185
8186         * manual/arith.texi: Remove @w from @itemize.
8187
8188 2000-05-02  Andreas Jaeger  <aj@suse.de>
8189
8190         * conform/data/tar.h-data: Add some checks for specific values.
8191
8192         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8193         and RAND_MAX.
8194
8195         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8196         FOPEN_MAX.
8197
8198         * conform/data/netinet/in.h-data: Add exact checks for the values
8199         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8200
8201         * conform/data/float.h-data: Add some minimal values.
8202
8203         * conform/conformtest.pl: Test for macros with string constants,
8204         check for minimum and maximum values.
8205         Add limits.h to headers.
8206
8207         * conform/data/cpio.h-data: Test for value of MAGIC.
8208
8209         * conform/data/limits.h-data: New file.
8210
8211 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8212
8213         * math/Makefile (headers): Add bits/fenvinline.h.
8214
8215 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8216
8217         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8218         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8219
8220         * posix/Versions: Change posix_spawnattr_getdefault and
8221         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8222         and posix_spawnattr_setsigdefault respectively.
8223         * posix/spawn.h: Likewise.
8224         * posix/spawnattr_getdefault.h: Likewise.
8225         * posix/spawnattr_setdefault.h: Likewise.
8226         * conform/data/spawn.h-data: Likewise.
8227
8228 2000-05-01  Andreas Jaeger  <aj@suse.de>
8229
8230         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8231
8232 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8233
8234         * manual/sysinfo.texi: Document getdomainname, setdomainname
8235         and sysctl.
8236         * manual/string.texi: Fix typo.
8237         * manual/terminal.texi: Document gtty and stty.
8238         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8239
8240 2000-04-30  Andreas Jaeger  <aj@suse.de>
8241
8242         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8243         accordance with Austin Draft.
8244
8245 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8246
8247         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8248         to recognize second character in comment line.
8249
8250         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8251         ENOBUFS if we are out of memory.
8252
8253         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8254         available if __USE_XOPEN2K.
8255         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8256         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8257         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8258         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8259         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8260         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8261         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8262         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8263
8264 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8265
8266         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8267         Recognize option -s, -c, and -l.
8268
8269 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8270
8271         * nscd/nscd.c: Start new session for nscd, drop privilegs
8272         to configured user if requested and no -S parameter are used.
8273         * nscd/nscd.conf: Add new option "server-user".
8274         * nscd/nscd_conf.c: Add support for new "server-user" option.
8275         * nscd/nscd.h: Add declaration for server_user variable.
8276         Based on patch by Chris Wing <wingc@engin.umich.edu>
8277
8278 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8279
8280         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8281         that changing the __restore and __restore_rt signal return code
8282         will break GDB.
8283
8284 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8285
8286         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8287         <sys/user.h>.
8288
8289 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8290
8291         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8292
8293 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8294
8295         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8296         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8297         arpa/inet.h.
8298         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8299         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8300         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8301         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8302         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8303         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8304         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8305         posix_fallocate, and posix_madvise.
8306         * conform/data/netdb.h-data: New file.
8307         * conform/data/pthread.h-data: Add pthread_barrier_t,
8308         pthread_barrierattr_t, pthread_barrier_destroy,
8309         pthread_barrier_init, pthread_barrier_wait,
8310         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8311         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8312         pthread_condattr_getclock, pthread_condattr_setclock,
8313         pthread_getcpuclockid, pthread_mutex_timedlock,
8314         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8315         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8316         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8317         * conform/data/sched.h-data: Add sched_ss_low_priority,
8318         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8319         SCHED_SPORADIC.
8320         * conform/data/semaphore.h-data: Add sem_timedwait.
8321         * conform/data/signal.h-data: Add SIGIO.
8322         * conform/data/spawn.h-data: New file.
8323         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8324         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8325         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8326         Fix typo in gmtime_r definition.
8327         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8328         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8329         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8330         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8331         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8332         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8333         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8334         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8335         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8336         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8337         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8338         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8339         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8340         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8341         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8342         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8343         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8344         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8345         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8346         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8347         typo in off_t definition.
8348         * conform/data/net/if.h-data: New file.
8349         * conform/data/netinet/in.h-data: New file.
8350         * conform/data/netinet/tcp.h-data: New file.
8351         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8352         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8353         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8354         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8355         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8356         and posix_typed_mem_open.
8357         * conform/data/sys/socket.h-data: New file.
8358         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8359         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8360         pthread_barrierattr_t, and pthread_spinlock_t.
8361         * conform/data/sys/un.h-data: New file.
8362         * conform/data/sys/utsname.h-data: New file.
8363
8364         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8365         parameter.
8366         * inet/gethstbyad.c (gethostbyname): Likewise.
8367         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8368         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8369         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8370         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8371         Likewise.
8372         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8373         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8374         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8375         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8376         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8377         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8378         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8379         and second parameter.
8380
8381         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8382         == NULL.
8383
8384 2000-04-29  Andreas Jaeger  <aj@suse.de>
8385
8386         * conform/data/arpa/inet.h-data: New file.
8387
8388 2000-04-28  Geoff Clare <gwc@unisoft.com>
8389
8390         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8391         path passed to ftw() or nftw() is an empty string.
8392         Closes PR libc/1710.
8393
8394 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8395
8396         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8397         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8398         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8399         * localedata/tst-mbswcs4.c: New file.
8400         * localedata/tst-mbswcs5.c: New file.
8401
8402         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8403         == NULL.  Little optimization.
8404
8405         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8406         DT_PREINIT_ARRAYSZ).
8407         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8408
8409         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8410         overflows in conversion from ASCII.
8411
8412 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8415         * Makerules (full_config_sysdirs): Likewise.
8416         * MakeTAGS (full_config_sysdirs): Likewise.
8417
8418 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8419
8420         * .cvsignore: Remove linuxthreads.
8421         * po/.cvsignore: Remove *.pot.
8422         * posix/glob/.cvsignore: Removed.
8423         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8424
8425 2000-04-25  Andreas Jaeger  <aj@suse.de>
8426
8427         * conform/Makefile (distribute): Also distribute contents of
8428         subdirectories.
8429
8430         * Makerules (no_deps): Remove abi-versions.h.
8431
8432         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8433
8434 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8435
8436         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8437         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8438         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8439         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8440         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8441         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8442         objects.
8443
8444 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8445
8446         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8447
8448 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8449
8450         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8451         * intl/l10nflist.c: Likewise.
8452
8453 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8454
8455         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8456         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8457         * intl/textdomain.c [!_LIBC]: Likewise.
8458         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8459         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8460         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8461         syntax error.
8462
8463 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8464
8465         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8466         character set conversion also in the case the translation was found
8467         after a hash collision or through binary search.  Store the maximum
8468         index together with the converted message.  Use iconv() when available.
8469         In case of out of memory during conversion, return the unconverted
8470         translated string, not NULL.
8471
8472 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8473
8474         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8475         to avoid name clashes with the ia32 linker.
8476
8477 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8478
8479         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8480         handling.
8481
8482 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8483
8484         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8485         strtoumax, strfry, and memfrob.
8486         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8487         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8488
8489         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8490         if this function is available.
8491
8492         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8493         all values.
8494
8495 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8496
8497         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8498
8499 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8500
8501         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8502         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8503         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8504         * localedata/tst-mbswcs3.c: New file.
8505
8506 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8509         characters.  Don't handle incomplete characters as errors.
8510         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8511         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8512         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8513         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8514         * localedata/tst-mbswcs2.c: New file.
8515
8516         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8517         stored character in state in UNPACK_BYTES macro.
8518         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8519         test for available characters, handle result of BODY code correctly.
8520         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8521         (distribute): Add tst-mbswcs.sh.
8522         Add rule to run tst-mbswcs.sh.
8523         * localedata/tst-mbswcs.sh: New file.
8524         * localedata/tst-mbswcs1.c: New file.
8525
8526 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8527
8528         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8529         allocation fixups centrally, fix __builtin_expect call, return NULL
8530         on failure, not NIS_NOMEMORY.
8531
8532 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8533
8534         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8535
8536         * intl/loadinfo.h (internal_function): Define if not already defined.
8537
8538 2000-04-27  Andreas Jaeger  <aj@suse.de>
8539
8540         * intl/libintl.h: Fix typo, reported by Bruno Haible
8541         <haible@clisp.cons.org>.
8542
8543 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8544
8545         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8546         setting the state to GMON_PROF_BUSY.
8547
8548 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8549
8550         * elf/dl-profile.c (_dl_start_profile): define all variables which
8551         do not have to be global as local variables.
8552
8553         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8554         patch.  Keep needed tests for failed memory allocation.
8555
8556         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8557         __builtin_expect saying that we don't normally expect to profile.
8558
8559         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8560         __builtin_expect where desirable.
8561
8562 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8563
8564         * manual/Makefile (chapters): Add syslog.
8565         * manual/syslog.texi: New file.
8566         * manual/math.texi: Fix references.
8567         * manual/terminal.texi: Likewise.
8568         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8569
8570 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8571
8572         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8573         stdlib.h was not included or __USE_XOPEN not defined.
8574
8575 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8576
8577         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8578         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8579
8580 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8581
8582         * manual/examples/subopt.c (mount_opts): Add missing terminating
8583         entry.
8584         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8585
8586         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8587         * libio/ftello.c: Likewise.
8588         * libio/ftello64.c: Likewise.
8589         * libio/ioftell.c: Likewise.
8590         * sysdeps/generic/memrchr.c: Likewise.
8591         * sysdeps/posix/libc_fatal.c: Likewise.
8592         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8593         * misc/fstab.c: Include <string.h> for strcmp prototype.
8594         * sysdeps/generic/ldsodefs.h: Likewise.
8595         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8596         Patch by Kurt Roeckx <Q@ping.be>.
8597
8598         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8599         Remove db-open.  Change all uses.
8600         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8601
8602 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8603
8604         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8605         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8606         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8607         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8608         with .set noat/at to shut up warnings.
8609         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8610         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8611         compilation if __NR_pciconfig_iobase is not defined.
8612         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8613         Add alias.
8614
8615 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8616
8617         * manual/sysinfo.texi: Fix typo.
8618         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8619         Replace "high precision time" with "high accuracy clock".
8620         Fix language.
8621         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8622
8623         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8624         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8625         instead of malloc.
8626         * nis/nis_subr.c: Use __builtin_expect.
8627         * nis/ypclnt.c: Likewise.
8628         * nis/nis_getservlist.c: Likewise.
8629         * nis/nis_creategroup.c: Likewise.
8630
8631         * nis/nis_callback.c (__nis_create_callback): Check result of
8632         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8633         (__nis_destroy_callback): Fix memory leaks.
8634
8635 2000-04-21  Andreas Jaeger  <aj@suse.de>
8636
8637         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8638         * sysdeps/mips/mips64/add_n.S: Likewise.
8639         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8640         * sysdeps/mips/mips64/lshift.S: Likewise.
8641         * sysdeps/mips/mips64/mul_1.S: Likewise.
8642         * sysdeps/mips/mips64/rshift.S: Likewise.
8643         * sysdeps/mips/mips64/setjmp.S: Likewise.
8644         * sysdeps/mips/mips64/sub_n.S: Likewise.
8645         * sysdeps/mips/mips64/submul_1.S: Likewise
8646         * sysdeps/unix/mips/sysdep.S: Likewise.
8647
8648         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8649         and update comment.  The strtab from _dl_relocate_object can be
8650         used.
8651
8652 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8653
8654         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8655         * iconv/iconv_close.c (iconv_close): Likewise.
8656         * iconv/iconv_open.c (iconv_open): Likewise.
8657
8658         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8659         __builtin_expect where useful.
8660
8661         * grp/initgroups.c (initgroups): Test for result of memory
8662         allocation and punt if it fails.
8663
8664         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8665         * grp/fgetgrent.c (fgetfrent): Likewise.
8666         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8667
8668 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8669
8670         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8671
8672 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8673
8674         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8675         don't search for NUL byte to decrement counter.
8676         Reported by Ulrich.Brink@sap.com.
8677
8678         * iconv/gconv_simple.c: Define separate functions to convert from
8679         UCS4/UCS4-LE to the internal encoding.
8680         * iconv/gconv_builtin.h: Use separate functions to convert from
8681         UCS4/UCS4-LE to the internal encoding.
8682         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8683         __gconv_transform_ucs4le_internal.
8684
8685         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8686         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8687
8688         * iconv/skeleton.c: Add some more __builtin_expect.
8689         * iconv/loop.c: Likewise.
8690
8691 2000-03-08  H.J. Lu  <hjl@gnu.org>
8692
8693         * posix/regex.c (regex_compile): Correctly handle "\{" when
8694         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8695
8696 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8697
8698         * manual/stdio.texi: Give advise about handling error when using
8699         stream functions.
8700         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8701
8702 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8703
8704         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8705         field to nelems * sizeof (uint32_t).
8706         * locale/programs/ld-address.c (address_output): Align word fields
8707         properly.
8708         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8709         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8710         field.
8711         Avoid giving arbitrary garbage in the crncystr field.
8712         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8713         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8714         fields.
8715         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8716         Don't restart idx pointers to idx end at the decimal_point_wc field.
8717         * locale/programs/ld-time.c (time_output): week_1stday should be
8718         word, not byte.  Align it properly.
8719
8720 2000-04-19  H.J. Lu  <hjl@gnu.org>
8721
8722         * csu/gmon-start.c (_start): Declared as "extern void".
8723         (etext): Likewise.
8724
8725 2000-04-18  Andreas Jaeger  <aj@suse.de>
8726
8727         * manual/install.texi (Running make install): Don't mention utmpd
8728         anymore.
8729
8730 2000-04-18  Andreas Jaeger  <aj@suse.de>
8731
8732         * linuxthreads/Versions: Use ld instead of ld.so.
8733
8734         * elf/Makefile (ld-map): Use ld.map.
8735
8736         * Versions.def: Use ld instead of ld.so.
8737         * elf/Versions: Likewise.
8738         * sysdeps/mach/hurd/Versions: Likewise.
8739
8740 2000-04-20  Andreas Jaeger  <aj@suse.de>
8741
8742         * elf/rtld.c (print_statistics): Move ifndef further up.
8743         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8744         (dl_main): Likewise.
8745
8746 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8749         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8750
8751         * po/cs.po: Update from translation team.
8752
8753         * sysdeps/generic/updwtmp.c: Remove daemon support.
8754
8755         * login/Makefile (routines): Remove utmp_daemon.
8756
8757         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8758         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8759         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8760         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8761
8762         * elf/rtld.c: Display statitics option also if hp timing is not
8763         available.
8764
8765         * login/programs/connection.c: Removed.
8766         * login/programs/database.c Removed.
8767         * login/programs/error.c: Removed.
8768         * login/programs/request.c: Removed.
8769         * login/programs/xtmp.c: Removed.
8770         * login/programs/xtmp.h: Removed.
8771         * login/Makefile: Remove rules for utmpd.
8772         * login/README.utmpd: Removed.
8773         * login/utmp_daemon.c: Removed.
8774         * login/getutent_r.c: Remove references to daemon functions.
8775         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8776         declaration.
8777
8778 2000-04-18  Andreas Jaeger  <aj@suse.de>
8779
8780         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8781         2.2 for libnsl, libresolv, librt, libnss_*.
8782
8783         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8784
8785         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8786
8787 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8788
8789         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8790         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8791         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8792         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8793         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8794         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8795         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8796         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8797         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8798         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8799         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8800         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8801         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8802         it here.
8803         * sysdeps/unix/sysv/aix/msync.c: New file.
8804         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8805         * sysdeps/unix/sysv/aix/net/if.h: New file.
8806         * sysdeps/unix/sysv/aix/pipe.c: New file.
8807         * sysdeps/unix/sysv/aix/poll.c: New file.
8808         * sysdeps/unix/sysv/aix/rename.c: New file.
8809         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8810         * sysdeps/unix/sysv/aix/select.c: New file.
8811         * sysdeps/unix/sysv/aix/semctl.c: New file.
8812         * sysdeps/unix/sysv/aix/semget.c: New file.
8813         * sysdeps/unix/sysv/aix/semop.c: New file.
8814         * sysdeps/unix/sysv/aix/sendto.c: New file.
8815         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8816         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8817         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8818         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8819         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8820         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8821         * sysdeps/unix/sysv/aix/setsid.c: New file.
8822         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8823         * sysdeps/unix/sysv/aix/shmat.c: New file.
8824         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8825         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8826         * sysdeps/unix/sysv/aix/shmget.c: New file.
8827         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8828         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8829         * sysdeps/unix/sysv/aix/socket.c: New file.
8830         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8831         * sysdeps/unix/sysv/aix/speed.c: New file.
8832         * sysdeps/unix/sysv/aix/symlink.c: New file.
8833         * sysdeps/unix/sysv/aix/sync.c: New file.
8834         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8835         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8836         * sysdeps/unix/sysv/aix/times.c: New file.
8837         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8838         * sysdeps/unix/sysv/aix/umask.c: New file.
8839         * sysdeps/unix/sysv/aix/unlink.c: New file.
8840         * sysdeps/unix/sysv/aix/ustat.c: New file.
8841         * sysdeps/unix/sysv/aix/utimes.c: New file.
8842
8843 2000-04-18  Andreas Jaeger  <aj@suse.de>
8844
8845         * manual/startup.texi (Environment Access): Fix putenv prototype
8846         according to recent changes.
8847         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8848         PR libc/1692.
8849
8850         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8851         needed.
8852
8853 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8854
8855         * posix/Makefile (tests): Add tst-getaddrinfo.
8856         * posix/tst-getaddrinfo.c: New file.
8857
8858 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8859
8860         * manual/sysinfo.texi: Document that umount2 is not widely available.
8861
8862         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8863         signal timing is not really implemented.
8864
8865 2000-04-17  Andreas Jaeger  <aj@suse.de>
8866
8867         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8868
8869 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8870
8871         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8872         and inst_libdir.
8873
8874 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8875
8876         * manual/intro.texi: Change reference from System Information to
8877         System Management.
8878         * manual/users.texi: Likewise.
8879         * manual/conf.texi: Likewise.
8880         * manual/sysinfo.texi: Document mount, umount, and umount2.
8881         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8882
8883 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8884
8885         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8886         Create wnumstr as well as numstr to support wide character output
8887         correctly.
8888
8889 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8890
8891         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8892         modification and move it...
8893         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8894         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8895         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8896         switch to $(LD) on sparc-linux.
8897
8898 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8899
8900         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8901         and setresuid from sysdep_routines.
8902
8903 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8904
8905         * manual/Makefile (chapters): Add resource.
8906
8907         * manual/time.texi: Move section on resources to...
8908         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8909         and vtimes.
8910         * manual/setjmp.texi: Adjust back reference.
8911         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8912
8913         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8914         definition.
8915         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8916         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8917         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8918         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8919         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8920         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8921         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8922         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8923         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8924         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8925         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8926         * sysdeps/unix/sysv/aix/Implies: New file.
8927         * sysdeps/unix/sysv/aix/Versions: New file.
8928         * sysdeps/unix/sysv/aix/bind.c: New file.
8929         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8930         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8931         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8932         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8933         * sysdeps/unix/sysv/aix/chdir.c: New file.
8934         * sysdeps/unix/sysv/aix/chmod.c: New file.
8935         * sysdeps/unix/sysv/aix/chroot.c: New file.
8936         * sysdeps/unix/sysv/aix/creat.c: New file.
8937         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8938         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8939         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8940         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8941         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8942         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8943         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8944         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8945         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8946         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8947         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8948         * sysdeps/unix/sysv/aix/link.c: New file.
8949         * sysdeps/unix/sysv/aix/madvise.c: New file.
8950         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8951         * sysdeps/unix/sysv/aix/mknod.c: New file.
8952         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8953         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8954         * sysdeps/unix/sysv/aix/msgget.c: New file.
8955         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8956
8957 2000-04-17  Andreas Jaeger  <aj@suse.de>
8958
8959         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8960         as suggested by Ulrich Drepper.
8961         (__dl_runtime_resolve): Remove unused variable, initialize sym
8962         directly.
8963         (RTLD_START): Document OFFSET_GP_GOT.
8964         (OFFSET_GP_GOT): New magic value.
8965         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8966         (elf_machine_got_rel): Only declare strtab if needed.
8967         (elf_machine_relplt): Removed, it's not needed.
8968         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8969
8970         * sysdeps/mips/add_n.S: Add newline at EOF.
8971         * sysdeps/mips/rshift.S: Likewise.
8972         * sysdeps/mips/mul_1.S: Likewise.
8973         * sysdeps/mips/lshift.S: Likewise.
8974         * sysdeps/mips/addmul_1.S: Likewise.
8975
8976 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8977
8978         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8979
8980         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8981         * elf/dl-lookup.c: Likewise.
8982         * elf/dl-init.c (_dl_init): Likewise.
8983         * elf/dl-fini.c (_dl_fini): Likewise.
8984         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8985         * elf/dl-close.c (_dl_close): Likewise.
8986         * elf/rtld.c (_dl_start_final): Likewise.
8987
8988         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8989
8990 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8991
8992         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8993         only fall back on using Linux.
8994
8995         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8996         Before testing versions check that we actually loaded the object
8997         and whether we are in trace mode.  If not loaded during tracing don't
8998         test versions in this object.
8999         (_dl_check_all_versions): Take new parameter and pass to
9000         _dl_check_map_versions.
9001         * sysdeps/generic/ldsodefs.h: Update prototypes for
9002         _dl_check_all_versions and _dl_check_map_versions.
9003         * elf/rtld.c (struct version_check_args): Add dotrace.
9004         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9005         (dl_main): Pass info about trace mode to version_check_doit.
9006         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9007         _dl_check_all_versions.
9008
9009         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9010         and getutmpx.
9011         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9012
9013         * manual/argp.texi: Document index parameter of argp_parse.
9014         Fix typo.
9015         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9016
9017 2000-04-14  Andreas Jaeger  <aj@suse.de>
9018
9019         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9020         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9021
9022         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9023
9024 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9025
9026         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9027         compat_symbol call for old adjtime.
9028
9029         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9030         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9031
9032         * posix/Makefile (headers): Add spawn.h.
9033         (distribute): Add spawn_int.h.
9034         (routines): Add spawn_faction_init, spawn_faction_destroy,
9035         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9036         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9037         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9038         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9039         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9040         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9041         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9042         posix_spawnattr_init, posix_spawnattr_destroy,
9043         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9044         posix_spawnattr_getflags, posix_spawnattr_setflags,
9045         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9046         and posix_spawnp.
9047         * posix/spawn.c: New file.
9048         * posix/spawn.h: New file.
9049         * posix/spawn_faction_addclose.c: New file.
9050         * posix/spawn_faction_adddup2.c: New file.
9051         * posix/spawn_faction_addopen.c: New file.
9052         * posix/spawn_faction_destroy.c: New file.
9053         * posix/spawn_faction_init.c: New file.
9054         * posix/spawn_int.h: New file.
9055         * posix/spawnattr_destroy.c: New file.
9056         * posix/spawnattr_getdefault.c: New file.
9057         * posix/spawnattr_getflags.c: New file.
9058         * posix/spawnattr_getpgroup.c: New file.
9059         * posix/spawnattr_getschedparam.c: New file.
9060         * posix/spawnattr_getschedpolicy.c: New file.
9061         * posix/spawnattr_getsigmask.c: New file.
9062         * posix/spawnattr_init.c: New file.
9063         * posix/spawnattr_setdefault.c: New file.
9064         * posix/spawnattr_setflags.c: New file.
9065         * posix/spawnattr_setpgroup.c: New file.
9066         * posix/spawnattr_setschedparam.c: New file.
9067         * posix/spawnattr_setschedpolicy.c: New file.
9068         * posix/spawnattr_setsigmask.c: New file.
9069         * posix/spawni.c: New file.
9070         * posix/spawnp.c: New file.
9071
9072         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9073         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9074
9075 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9076
9077         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9078         * malloc/malloc.c: Implement posix_memalign for glibc.
9079         * include/stdlib.h: Add prototype for __posix_memalign.
9080         * stdlib/stdlib.h: Add prototype for posix_memalign.
9081
9082 2000-04-14  Andreas Jaeger  <aj@suse.de>
9083
9084         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9085         symidx correctly.
9086         (elf_machine_got_rel): Cast sym correctly.
9087
9088         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9089         * sysdeps/mips/addmul_1.S: Likewise.
9090         * sysdeps/mips/lshift.S: Likewise.
9091         * sysdeps/mips/mul_1.S: Likewise.
9092         * sysdeps/mips/rshift.S: Likewise.
9093         * sysdeps/mips/sub_n.S: Likewise.
9094         * sysdeps/mips/submul_1.S: Likewise.
9095
9096         * stdlib/stdlib.h: Fix typo in comment.
9097
9098         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9099         2.2 for libdl, ld and libm.
9100
9101         * sysdeps/generic/madvise.c: Fix typos.
9102
9103         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9104
9105         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9106
9107         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9108         warnings.
9109
9110 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9111
9112         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9113         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9114         Make old name weak alias.
9115         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9116         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9117         Make old name weak alias.
9118         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9119
9120         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9121         posix_fallocate, and posix_fallocate64.
9122         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9123         posix_fallocate, and posix_fallocate64.
9124         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9125         posix_fallocate, and posix_fallocate64.
9126         * sysdeps/generic/fadvise.c: New file.
9127         * sysdeps/generic/fadvise64.c: New file.
9128         * sysdeps/generic/fallocate.c: New file.
9129         * sysdeps/generic/fallocate64.c: New file.
9130         * sysdeps/posix/fallocate.c: New file.
9131         * sysdeps/posix/fallocate64.c: New file.
9132         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9133         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9134         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9135         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9136         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9137         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9139         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9140         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9141
9142         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9143         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9144
9145 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9146
9147         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9148         * misc/sys/mman.h (posix_madvise): Add prototype.
9149         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9150         old name and posix_madvise weak aliases.
9151         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9152         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9153         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9154         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9155         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9156         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9157         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9158
9159 2000-04-13  Andreas Jaeger  <aj@suse.de>
9160
9161         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9162         versioning.
9163         (elf_machine_got_rel): Only add runtime display if needed.
9164         (elf_machine_got_rel): Handle symbol versioning.
9165
9166 2000-04-13  Andreas Jaeger  <aj@suse.de>
9167
9168         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9169
9170         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9171         default.
9172
9173         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9174         with some applications.
9175         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9176
9177         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9178         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9179         * sysdeps/mips/setjmp.S: Likewise.
9180
9181         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9182
9183 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9184
9185         * posix/globtest.sh: Work around inconsistency with expanding ~/
9186         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9187
9188 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9189
9190         * posix/getconf.c: Add support for many more POSIX options.
9191         * sysdeps/posix/sysconf.c: Likewise.
9192         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9193         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9194         _POSIX_SHELL.
9195         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9196         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9197         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9198         CLOCK_THREAD_CPUTIME_ID.
9199         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9200         CLOCK_PROCESS_CPUTIME_ID.
9201         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9202         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9203         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9204         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9205
9206         * malloc/Makefile (tests): Add tst-calloc.
9207         * malloc/tst-calloc.c: New file.
9208
9209         * sysdeps/arm/libm-test-ulps: New file.
9210
9211         * malloc/malloc.c: Undo all of today's changes.
9212
9213         * locale/programs/locale.c (show_info): Don't try to look into
9214         data for LC_ALL (there is none).
9215
9216         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9217         avoid writing over boundary.
9218         Patch by Greg McGary <gkm@eng.ascend.com>.
9219
9220         * sysdeps/arm/memprof.h: New file.
9221
9222 2000-04-12  Andreas Jaeger  <aj@suse.de>
9223
9224         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9225
9226         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9227         for memmem declaration.
9228
9229 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9230
9231         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9232         to -1.
9233         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9234
9235         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9236         mode is invalid.
9237         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9238         Patch by Bart Veer <bartv@redhat.com>.
9239
9240         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9241         function interface.
9242
9243 2000-04-11  Andreas Jaeger  <aj@suse.de>
9244
9245         * sysdeps/mips/dl-machine.h: Update some comments.
9246         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9247
9248 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9249
9250         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9251         _POSIX_SHARED_MEMORY_OBJECTS.
9252
9253         * rt/Makefile (tests): Add tst-shm.
9254         Add rules to generate tst-shm.
9255         * rt/tst-shm.c: New file.
9256
9257         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9258         for descriptor.
9259
9260         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9261         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9262         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9263         * sysdeps/generic/shm_open.c: New file.
9264         * sysdeps/generic/shm_unlink.c: New file.
9265         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9266         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9267         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9268          __endmntent, __getmntent_r, __setmntent, and __statfs.
9269
9270         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9271         fragmentation by allocating new memory at the end instead of
9272         reallocating.
9273
9274         * posix/globtest.sh: Fix last change.
9275
9276 2000-04-10  Philip Blundell  <philb@gnu.org>
9277
9278         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9279         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9280         IPV6_DROP_MEMBERSHIP.
9281         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9282         Likewise.
9283
9284 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9285
9286         * elf/readlib (process_file): Close streams in case of an error.
9287
9288 2000-04-09  Andreas Jaeger  <aj@suse.de>
9289
9290         * elf/readlib.c (process_file): Check if file is big enough to
9291         contain aout and ELF headers.
9292         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9293
9294 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9295
9296         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9297
9298 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9299
9300         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9301         stream unbuffered.
9302         * rt/Makefile (tests): Add tst-clock.
9303         Add rules to build tst-clock.
9304         * rt/tst-clock.c: New file.
9305         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9306         about initialization of nsec.
9307         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9308         about initialization of freq.  Set retval to zero if successful.
9309         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9310
9311 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9312
9313         * Versions.def (librt): Add GLIBC_2.2.
9314         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9315         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9316         timer_getoverr, timer_gettime, and timer_settime.
9317         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9318         clock_settime, timer_create, timer_delete, timer_getoverrun,
9319         timer_gettime, and timer_settime.
9320         * sysdeps/generic/clock_getcpuclockid.c: New file.
9321         * sysdeps/generic/get_clockfreq.c: New file.
9322         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9323         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9324         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9325         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9326         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9327         * sysdeps/unix/i386/i686/Implies: New file.
9328         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9329         * time/Makefile (routines): Move clock_getres, clock_gettime,
9330         clock_settime, timer_create, timer_delete, timer_getoverr,
9331         timer_gettime, and timer_settime to rt/Makefile.
9332         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9333         clock_settime, timer_create, timer_delete, timer_getoverrun,
9334         timer_gettime, and timer_settime.
9335         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9336
9337         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9338         and not const as attribute name.
9339
9340 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9341
9342         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9343
9344 2000-04-10  Andreas Schwab  <schwab@suse.de>
9345
9346         * posix/globtest.sh: Skip tests that depend on unreadable
9347         directories if run as root.
9348
9349 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9350
9351         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9352         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9353
9354 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9355
9356         * sysdeps/unix/clock_gettime.c: New file.
9357         * sysdeps/unix/clock_settime.c: New file.
9358         * sysdeps/posix/clock_getres.c: New file.
9359
9360         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9361
9362         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9363         lseek call be passing in a buffer which never allow a successful
9364         first getdents syscall if not at leas the initial entry can be
9365         stored in the user buffer.
9366
9367         * localedata/Makefile: Add rules to clean up directories created by
9368         new strfmon tests.
9369
9370 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9371
9372         * localedata/tst-fmon.data: Added new tests for strfmon()
9373         using test locales with all combinations of cs_precedes,
9374         sign_posn and sep_by_space.
9375         * localedata/tst-fmon.sh: Updated to support the new tests.
9376         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9377         the localedef source for the new strfmon() test locale.
9378         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9379         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9380         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9381         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9382         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9383         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9384         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9385         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9386         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9387         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9388         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9389         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9390         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9391         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9392
9393         * stdlib/strfmon.c: Correct problems with missing or extra
9394         spaces for unusual combinations of sign_posn and sep_by_space.
9395         Improved left-precision alignment code.
9396
9397 2000-04-07  Andreas Jaeger  <aj@suse.de>
9398
9399         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9400
9401 2000-04-10  Andreas Jaeger  <aj@suse.de>
9402
9403         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9404
9405 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9406
9407         Implement handling of restartable conversion functions according to
9408         ISO C.
9409         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9410         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9411         * iconv/gconv.c: Pass additional parameter to conversion function.
9412         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9413         (internal_ucs4le_loop_single): New function.
9414         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9415         (__gconv_transform_internal_ascii): Likewise.
9416         (__gconv_transform_internal_utf8): Likewise.
9417         (__gconv_transform_utf8_internal): Likewise.
9418         (__gconv_transform_ucs2_internal): Likewise.
9419         (__gconv_transform_internal_ucs2): Likewise.
9420         (__gconv_transform_ucs2reverse_internal): Likewise.
9421         (__gconv_transform_internal_ucs2reverse): Likewise.
9422         (internal_ucs4le_loop_unaligned): Before return
9423         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9424         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9425         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9426         * iconv/loop.c: Fit in definition of function to convert one character
9427         for processing of left-over bytes from the state object.
9428         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9429         inend to match names in loop functions.
9430         (RESET_INPUT_BUFFER): Change apprpriately.
9431         (gconv): If needed, call function to process bytes from the state
9432         object.  Similar at the end: store left over bytes if input is
9433         incomplete.
9434         Take extra argument and add new argument to all calls of the
9435         conversion function.
9436         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9437         information in the state object to not conflict with length count.
9438         * iconvdata/iso-2022-jp.c: Likewise.
9439         * iconvdata/iso-2022-kr.c: Likewise.
9440         * iconvdata/unicode.c: Adjust for change change in parameters of
9441         skeleton function.
9442         * iconvdata/utf-16.c: Likewise.
9443         * libio/iofwide.c: Add new parameter to all calls of conversion
9444         function.
9445         * wcsmbs/btowc.c: Likewise.
9446         * wcsmbs/mbrtowc.c: Likewise.
9447         * wcsmbs/mbsnrtowcs.c: Likewise.
9448         * wcsmbs/mbsrtowcs.c: Likewise.
9449         * wcsmbs/wcrtomb.c: Likewise.
9450         * wcsmbs/wcsnrtombs.c: Likewise.
9451         * wcsmbs/wcsrtombs.c: Likewise.
9452         * wcsmbs/wctob.c: Likewise.
9453
9454         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9455         MAX_NEEDED_INPUT.
9456
9457 2000-04-07  Andreas Jaeger  <aj@suse.de>
9458
9459         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9460         newer kernels.
9461
9462 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9463
9464         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9465         element a union to allow byte access.
9466         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9467         mbstate_t.
9468         * iconvdata/iso-2022-jp.c: Likewise.
9469         * iconvdata/iso-2022-kr.c: Likewise.
9470         * wcsmbs/mbsinit.c: Likewise.
9471         * stdlib/mblen.c: Likewise.
9472         * stdio-common/printf-parse.h: Likewise.
9473
9474 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9475
9476         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9477         kernel does not allow relative seeks on descriptors associated
9478         with directories.  Go back to get the position in the directory
9479         every time we enter the function.  Return -1 and set errno if one
9480         entry could be read from the kernel but does not fit into the
9481         buffer passed in by the user.
9482
9483         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9484         Support ..(2).. ellipsis.
9485         (parse_charmap): Recognize ..(2).. etc and pass step down.
9486         Correctly generate names for UCS4 characters.
9487
9488         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9489         (ctype_finish): We know the wide character value for <SP>,
9490         don't search.
9491         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9492         (charclass_ucs4_ellipsis): Likewise.
9493         (read_translit_ignore_entry): Store ellipsis step.
9494         (ctype_read): Recognize ..(2).. etc and pass step down.
9495
9496         * locale/programs/linereader.c (lr_token): When seeing comment
9497         character ignore only rest of line in sources but stop at escaped
9498         newline.
9499         Recognize ..(2).. and ....(2).....
9500
9501         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9502         and tok_ellipsis4_2.
9503
9504 2000-04-06  Andreas Jaeger  <aj@suse.de>
9505
9506         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9507         removed, remove it here also.
9508         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9509         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9510         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9511         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9512
9513 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9514
9515         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9516         include bits/sigcontext.h.
9517         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9518
9519 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9520
9521         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9522         collation symbol definition.  Value in quivalence definition must
9523         be defined, don't check that it is not.
9524
9525         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9526         values as character names.
9527
9528         * locale/programs/ld-ctype.c (get_character): Handle missing
9529         repertoire map correctly.
9530
9531 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9532
9533         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9534         because it is used in generic code.
9535         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9536         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9537         * intl/gettext.c: Include <locale.h>.
9538         * intl/ngettext.c: Likewise.
9539
9540 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9541
9542         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9543         socklen_t type for size.
9544         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9545         init function interface.
9546         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9547         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9548         sys/ucontext.h.
9549         (__jmp_buf): Declare the whole type structure here, don't use
9550         ucontext.
9551
9552 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9553
9554         * iconv/skeleton.c (put16u): Fix typo.
9555         Reported by Bruno Haible <haible@ilog.fr>.
9556
9557         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9558         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9559         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9560         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9561         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9562         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9563
9564         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9565         * Makefile (distribute): Add abi-versions.awk and
9566         firstversions.awk.
9567         Patches by Torsten Duwe <duwe@caldera.de>.
9568
9569 2000-04-05  Andreas Schwab  <schwab@suse.de>
9570
9571         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9572
9573 2000-04-05  Andreas Schwab  <schwab@suse.de>
9574
9575         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9576         entry point, used on Hurd.
9577
9578 2000-04-04  Andreas Jaeger  <aj@suse.de>
9579
9580         * intl/Makefile: Only run the gettext test with shared libraries.
9581
9582 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9583
9584         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9585         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9586
9587 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9588
9589         * Makeconfig: Undo last change.
9590         * configure.in: If --disable-shared was given, don't set VERSIONING,
9591         don't define DO_VERSIONING, and don't give scare warning for no
9592         versioning.
9593         * configure: Regenerated.
9594
9595 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9596
9597         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9598
9599 2000-04-04  Andreas Jaeger  <aj@suse.de>
9600
9601         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9602
9603 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9604
9605         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9606         STV_HIDDEN and STV_INTERNAL during lookup.
9607         (profile_fixup): Likewise.
9608         * elf/dl-reloc.c (RESOLVE): Likewise.
9609
9610         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9611         unaligned so that it compiles for system which need unaligned
9612         access handling.
9613
9614 2000-04-04  Andreas Schwab  <schwab@suse.de>
9615
9616         * elf/cache.c (print_entry): Only look at the type field when
9617         printing the type.
9618
9619 2000-04-04  Andreas Schwab  <schwab@suse.de>
9620
9621         * iconvdata/big5.c (BODY): Fix typo.
9622
9623 2000-04-04  Andreas Schwab  <schwab@suse.de>
9624
9625         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9626         function interface.  Remove unused _dl_start_user entry point.
9627
9628 2000-04-03  Andreas Jaeger  <aj@suse.de>
9629
9630         * include/arpa/inet.h (__inet_aton): Add protoype.
9631
9632 2000-04-01  Andreas Jaeger  <aj@suse.de>
9633
9634         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9635
9636         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9637         * sysdeps/mach/mips/thread_state.h: Likewise.
9638
9639         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9640         * sysdeps/generic/fegetenv.c: Likewise.
9641         * sysdeps/generic/fesetenv.c: Likewise.
9642         * sysdeps/generic/feupdateenv.c: Likewise.
9643         * sysdeps/generic/fraiseexcpt.c: Likewise.
9644         * sysdeps/generic/fsetexcptflg.c: Likewise.
9645         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9646         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9647         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9648         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9649
9650 2000-04-02  H.J. Lu  <hjl@gnu.org>
9651
9652         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9653
9654 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9655
9656         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9657         (add_name_to_object): Add cast in malloc call.
9658         (fillin_rpath): Optimize loop to initialize ->status a bit.
9659
9660         * sysdeps/i386/dl-machine.h: Undo last change.
9661         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9662         Restore %edx register after call here.
9663
9664         * sysdeps/arm/atomicity.h: New file.
9665         Contributed by Jesper Skov <jskov@redhat.com>.
9666
9667 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9668
9669         * Makeconfig (preprocess-versions): Undo last change.
9670         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9671
9672         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9673         here, before we might move the stack.
9674         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9675         (init1): And not here.
9676
9677         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9678         change, to restore argc value in call-clobbered register after
9679         RTLD_START_SPECIAL_INIT, which will contain a call.
9680
9681         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9682         allocating and initializing L->l_initfini.
9683
9684         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9685
9686 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9687
9688         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9689         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9690         (open_path): Change type of fourth parameter.  Make pointer to array
9691         of pointers.  Create variable dirs with original type.
9692         Track whether any directory for the object exists and if not,
9693         change *DIRSP to (void*) -1 to signal there is no such search path.
9694         (_dl_map_object): Change all calls of open_path.
9695         Rewrite decompose_rpath calls.
9696
9697 2000-03-31  Andreas Schwab  <schwab@suse.de>
9698
9699         * string/strfry.c: Declare STATE as array of char instead of int
9700         and do not initialize it (done by initstate_r).  Pass correct
9701         size.
9702
9703 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9704
9705         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9706
9707         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9708         instruction out of the code.
9709
9710 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9711
9712         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9713         element at this position.
9714
9715         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9716         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9717         l_reldeps elements.
9718         * elf/dl-lookup.c (add_dependency): New function.
9719         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9720         dynamically loaded object.
9721         (_dl_lookup_symbol_skip): Likewise.
9722         (_dl_lookup_versioned_symbol): Likewise.
9723         (_dl_lookup_versioned_symbol_skip): Likewise.
9724         * elf/dl-open.c: Don't define _dl_load_lock here...
9725         * elf/rtld.c: ...but here...
9726         * elf/dl-support.c: ...and here.
9727         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9728         through relocation.
9729         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9730         relocations.
9731         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9732         anymore.
9733         * dlfcn/glrefmain.c: Add one more debug message.
9734
9735         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9736         command line.
9737         * Makerules (sysd-versions): Use ( ) instead of { }.
9738
9739         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9740         optimize for the non-debugging case.
9741         * elf/dl-lookup.c: Likewise.
9742         * sysdeps/generic/libc-start.c: Likewise.
9743
9744 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9745
9746         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9747         (init1): Don't initialize __environ here, since init already does it.
9748         (first_init): New function, broken out of _init.
9749         (_hurd_stack_setup): Use it.
9750         [SHARED] (_dl_init_first): New function, renamed from old _init.
9751         (init1) [SHARED]: Don't call posixland_init here.
9752         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9753         [SHARED] (_init): Define as alias for posixland_init.
9754         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9755         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9756         RTLD_START_SPECIAL_INIT before calling initializers.
9757         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9758         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9759         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9760         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9761
9762         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9763         since we define the function with the name `tmpfile'.
9764
9765         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9766         * hurd/Versions: Likewise.
9767
9768 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9769
9770         * elf/dl-runtime.c (fixup): Fix typo in comment.
9771
9772         * resolv/netdb.h (getnameinfo): All length parameters are of type
9773         socklen_t.
9774         * inet/getnameinfo.c: Likewise.
9775
9776 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9777
9778         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9779         (gethostname): Change type of second parameter to socklen_t.
9780         * include/unistd.h (__gethostname): Change type of second
9781         parameter to socklen_t.
9782         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9783         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9784         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9785         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9786         Likewise.
9787         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9788         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9789         Allow definition elsewhere.
9790         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9791         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9792         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9793         * sysdeps/generic/bits/types.h: Define __socklen_t.
9794         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9795         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9796         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9797         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9798         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9799         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9800         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9801
9802         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9803         (inet_lnaof): Likewise.
9804         (inet_netof): Likewise.
9805         (inet_network): Likewise.
9806         (inet_aton): Likewise.
9807         (inet_makeaddr): Change parameter types to in_addr_t.
9808         (inet_neta): Likewise.
9809         (inet_ntop): Change type of last parameter to socklen_t.
9810         (inet_aton): Only make available if __USE_MISC.
9811         (inet_neta): Likewise.
9812         (inet_net_ntop): Likewise.
9813         (inet_net_pton): Likewise.
9814         (inet_nsap_ntoa): Likewise.
9815
9816         * inet/in.h: Define in_port_t type.
9817         Define in_addr_t type.
9818         (struct in_addr): Use in_addr_t in definition.
9819         (IN_CLASSA): Use cast to in_addr_t.
9820         (IN_CLASSB): Likewise.
9821         (IN_CLASSC): Likewise.
9822         (IN_CLASSD): Likewise.
9823         (IN_EXPERIMENTAL): Likewise.
9824         (IN_BADCLASS): Likewise.
9825         (INADDR_ANY): Likewise.
9826         (INADDR_BROADCAST): Likewise.
9827         (INADDR_NONE): Likewise.
9828         (INADDR_LOOPBACK): Likewise.
9829         (INADDR_UNSPEC_GROUP): Likewise.
9830         (INADDR_ALLHOSTS_GROUP): Likewise.
9831         (INADDR_ALLRTRS_GROUP): Likewise.
9832         (INADDR_MAX_LOCAL_GROUP): Likewise.
9833         (struct sockaddr_in): Use in_port_t for sin_port element.
9834         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9835         Use uint8_t instead of u_int8_t.
9836
9837         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9838         Call __inet_aton instead of inet_aton.
9839         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9840
9841         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9842         (innetgr): Likewise.
9843         (struct addrinfo): Use socklen_t for ai_addrlen element.
9844
9845         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9846         IPV6_RECVERR): New defines.
9847
9848         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9849         * inet/getnetbyad.c: Likewise.
9850         * inet/getnetbyad_r.c: Likewise.
9851         * nis/nss_nis/nis-network.c: Likewise.
9852         * nis/nssplus_nis/nisplus-network.c: Likewise.
9853         * nss/nss_files/files-network.c: Likewise.
9854         * resolv/netdb.h: Define uint32_t if not already happened.
9855         Include bits/netdb.h.  Remove definition of struct netent.
9856         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9857         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9858         * sysdeps/generic/bits/netdb.h: New file.
9859         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9860
9861         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9862         (tests): Add glrefmain.
9863         Add rules to build modules and run tests.  Ignore result of glrefmain
9864         for now since it fails.
9865         * dlfcn/glrefmain.c: New file.
9866         * dlfcn/glreflib1.c: New file.
9867         * dlfcn/glreflib2.c: New file.
9868
9869         * test-skeleton.c: Include <string.h> for strsignal prototype.
9870
9871         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9872         to be missing.
9873
9874         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9875         former init-first.h.  Initialize __libc_multiple_libcs.
9876
9877 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9878
9879         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9880         #if expression for use of unaligned function to the one used in
9881         the definition of these functions.
9882         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9883         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9884         (internal_ucs4le_loop_unaligned): New function.
9885
9886         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9887         (tests): Add order.
9888         (module-names): Add dep1, dep2, dep3, and dep4.
9889         Add dependencies for dep* modules and order.
9890         Define rule for order.out which checks the result.
9891         * elf/dep1.c: New file.
9892         * elf/dep2.c: New file.
9893         * elf/dep3.c: New file.
9894         * elf/dep4.c: New file.
9895         * elf/order.c: New file.
9896
9897         * elf/dl-init.c: Fix typo in comment.
9898
9899 2000-03-31  Andreas Jaeger  <aj@suse.de>
9900
9901         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9902         init function interface.
9903         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9904
9905 2000-03-31  Andreas Jaeger  <aj@suse.de>
9906
9907         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9908         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9909         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9910         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9911         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9912
9913         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9914         anymore, update comment.
9915
9916         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9917
9918         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9919         SHLIB_COMPAT - the struct is always needed.
9920
9921 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9922
9923         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9924         * elf/dl-support.c: Define _dl_starting_up.
9925
9926 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9927
9928         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9929         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9930
9931         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9932
9933         * elf/Makefile (dl-routines): Remove preinit.
9934         * elf/Versions: Remove _dl_preinit.
9935         * elf/dl-preinit.c: Removed.  Move content into...
9936         * elf/dl-init.c: ...here.
9937         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9938
9939         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9940         elements.
9941
9942 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9943
9944         * stdlib/strfmon.c: Corrected problems with the code that
9945         sets default values for [np]_sep_by_space and
9946         [np]_sign_posn; also the new positive/negative alignment
9947         code from the previous patch was not quite right for
9948         [np]_sign_posn = 0.
9949
9950         * localedata/tst-fmon.data: Changes corresponding to the
9951         two sets of fixes made to stdlib/strfmon.c.
9952
9953 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9954
9955         * malloc/malloc.c: Declare bit flags UL so that they will not
9956         default to int size when being inverted.
9957
9958 2000-03-29  Andreas Jaeger  <aj@suse.de>
9959
9960         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9961         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9962
9963 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9964             Ralf Baechle <ralf@uni-koblenz.de>
9965
9966         * Makeconfig: Introduce new variable SHARED to mark code used in
9967         the shared library.
9968         * elf/dl-close.c: Use it instead of PIC.
9969         * elf/dl-load.c: Likewise.
9970         * elf/dl-open.c: Likewise.
9971         * hurd/geteuids.c: Likewise.
9972         * include/libc-symbols.h: Likewise.
9973         * include/shlib-compat.h: Likewise.
9974         * libio/freopen.c: Likewise.
9975         * linuxthreads/cancel.c: Likewise.
9976         * linuxthreads/pthread.c: Likewise.
9977         * linuxthreads/wrapsyscall.c: Likewise.
9978         * nss/nsswitch.c: Likewise.
9979         * stdio-common/vfprintf.c: Likewise.
9980         * sysdeps/arm/init-first.c: Likewise.
9981         * sysdeps/i386/init-first.c: Likewise
9982         * sysdeps/generic/init-first.c: Likewise.
9983         * sysdeps/generic/libc-start.c: Likewise.
9984         * sysdeps/mips/init-first.c: Likewise.
9985         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9986         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9987         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9988         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9989         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9990
9991         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9992
9993 2000-03-29  Andreas Jaeger  <aj@suse.de>
9994
9995         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9996         Use D_PTR to access relocated entries in l_info.
9997         (elf_machine_rela): Likewise.
9998
9999         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10000         Likewise.
10001         (elf_machine_rela): Likewise.
10002
10003         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10004         Likewise.
10005         (__elf_machine_fixup_plt): Likewise.
10006         (__process_machine_rela): Likewise.
10007
10008         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10009         (elf_machine_rela): Likewise.
10010
10011         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10012         (elf_machine_rel): Likewise.
10013
10014         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10015         (elf_machine_fixup_plt): Likewise.
10016         (elf_machine_rela): Likewise.
10017
10018 2000-03-29  Andreas Jaeger  <aj@suse.de>
10019
10020         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10021         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10022         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10023         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10024         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10025         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10026         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10027         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10028         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10029         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10030         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10031         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10032         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10033         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10034         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10035
10036         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10037         macros, remove K&R prototypes.
10038
10039 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10040
10041         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10042         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10043         (PR libc/1677).
10044
10045 2000-03-30  Andreas Jaeger  <aj@suse.de>
10046
10047         * misc/sys/cdefs.h: Remove K&R support.
10048
10049 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10050
10051         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10052         more cases.
10053         * iconv/loop.c: Likewise.
10054
10055 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10056
10057         * iconv/loop.c (put16): Remove __const. Fix access index.
10058         (put32): Remove __const. Use uint32_t instead of uint16_t.
10059         * iconv/skeleton.c: Likewise.
10060
10061 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10062
10063         * mach/Versions (libc: GLIBC_2.0)
10064         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10065         __vm_allocate on this.
10066         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10067         mutex- and spinlock-related symbols on this.
10068         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10069         New version set.  Lock-related symbols go here instead in this case.
10070         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10071         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10072         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10073         * hurd/Versions
10074         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10075         Put them here instead.
10076         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10077         New version set.  Those cthreads symbols go here instead in this case.
10078         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10079
10080 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10081
10082         * elf/dl-init.c (_dl_init): We don't need to call constructors
10083         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10084
10085         Implement dynamic determination of constructor/destructor order in
10086         the dynamic linker.
10087         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10088         (GLIBC_2.2): Add _dl_init.
10089         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10090         r_duplist is not anymore allocated separately.  l_initfini is and
10091         therefore free it if necessary.
10092         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10093         malloc block.  Otherwise allocate l_initfini list only.
10094         Put dependencies for the object in l_initfini list.
10095         Sort dependencies for the object to be loaded topologically.
10096         * elf/dl-fini.c: Before running the destructors sort the topologically.
10097         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10098         call constructors instead of iterating over the pointers.  Get list of
10099         objects for which to run constructors from l_initfini element. Accept
10100         argc, argv, and env as parameters and pass them to the constructors.
10101         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10102         with size of dynamic section.
10103         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10104         _dl_init_next and calling constructors ourself.
10105         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10106         Take argc, argv, and env as parameters and pass them to the
10107         constructors.  Rewrite to call all constructors and not iterate over
10108         the pointers.
10109         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10110         precompute l_initcount and l_preinitcount.
10111         * elf/link.h (struct link_map): Add l_ldnum member.
10112         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10113         l_initcount, and l_preinitcount.  Add l_initfini.
10114         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10115         one for _dl_init.
10116         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10117         function interface.
10118         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10119         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10120         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10121         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10122         conventions now match.
10123
10124         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10125         effect for shared objects.  Don't emit message and call only for
10126         static library.
10127
10128 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10129
10130         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10131         CSA_Z243.4-1985-1..UCS2.
10132         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10133         ISO-8859-10..UCS2.
10134
10135 2000-03-29  Andreas Jaeger  <aj@suse.de>
10136
10137         * include/unistd.h: Remove duplicate entry for __rmdir.
10138         Remove declaration of __mkdir since __mkdir is declared in
10139         sys/stat.h.
10140
10141         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10142         by Michael Deutschmann <michael@talamasca.ocis.net>.
10143
10144         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10145         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10146         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10147         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10148         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10149
10150 2000-03-28  Andreas Jaeger  <aj@suse.de>
10151
10152         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10153         declaration, the prototype is defined via bits/mathcalls.h.
10154         (__sincosf): Likewise.
10155         (__sincosl): Likewise.
10156         (ldexp): Likewise.
10157         (ldexpf): Likewise.
10158         (ldexpl): Likewise.
10159         (__finite): Likewise.
10160         (__inline_mathcodeNP): New macro without prototype
10161         declarations.
10162         (__inline_mathcodeNP2): Likewise.
10163         (__inline_mathcodeNP3): Likewise.
10164         (__inline_mathcodeNP_): Likewise.
10165         (__inline_mathcodeNP2_): Likewise.
10166         (__inline_mathcodeNP3_): Likewise.
10167         (__inline_mathopNP): Likewise.
10168         (__inline_mathop_declNP): Likewise.
10169         (__inline_mathop_declNP_): Likewise.
10170         (__inline_mathcode_): Use __inline_mathcodeNP_.
10171         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10172         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10173         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10174         (__expm1l): Don't define prototype, the prototype is defined via
10175         bits/mathcalls.h.
10176         (exp): Likewise.
10177         (__expl): Likewise.
10178         (tan): Likewise.
10179         (atan2): Likewise.
10180         (__atan2l): Likewise.
10181         (fmod): Likewise.
10182         (pow): Likewise.
10183         (fabsf): Likewise.
10184         (fabsl): Likewise.
10185         (__fabsl): Likewise.
10186         (asin): Likewise.
10187         (acos): Likewise.
10188         (sinh): Likewise.
10189         (cosh): Likewise.
10190         (tanh): Likewise.
10191         (floor): Likewise.
10192         (ceil): Likewise.
10193         (expm1): Likewise.
10194         (log1p): Likewise.
10195         (asinh): Likewise.
10196         (acosh): Likewise.
10197         (atanh): Likewise.
10198         (hypot): Likewise.
10199         (logb): Likewise.
10200         (fma): Likewise.
10201         (drem): Likewise.
10202         (sqrt): Likewise.
10203         (__sqrtl): Likewise.
10204         (sin): Likewise.
10205         (cos): Likewise.
10206         (atan): Likewise.
10207         (log): Likewise.
10208         (log10): Likewise.
10209         (asinh): Likewise.
10210         (log2): Likewise.
10211         (rint): Likewise.
10212
10213 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10214
10215         * Makerules: If make variable md5 is defined to yes after
10216         generating dependencies generate MD5 sum for the object.
10217
10218         * iconv/gconv_builtin.h: Fix length in transformation definition
10219         for UNICODEBIG.
10220
10221         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10222
10223         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10224         allow as well reading from/writing to unaligned addresses on machines
10225         which don't support this in hardware.  Use FCTNAME macro to define
10226         function name.  Include the file a second time for platforms which
10227         need special unaligned handling.
10228         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10229         to access potentially unaligned addresses.  These macros are intended
10230         to be used only outside the loops.
10231         (unaligned): New definition.  In case the machine can handle unaligned
10232         access define as zero.  Otherwise as a variable which is initialized
10233         as nonzero in case the buffer passed in at runtime is unaligned with
10234         respect to the character set encoding involved.
10235         Call aligned or unaligned looop functions according to unaligned
10236         variable.
10237         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10238         of direct casting pointer to potentially handle unaligned memory
10239         accesses.
10240         * iconvdata/8bit-generic.c: Likewise.
10241         * iconvdata/ansi_x3.110.c: Likewise.
10242         * iconvdata/big5.c: Likewise.
10243         * iconvdata/euc-cn.c: Likewise.
10244         * iconvdata/euc-jp.c: Likewise.
10245         * iconvdata/euc-kr.c: Likewise.
10246         * iconvdata/euc-tw.c: Likewise.
10247         * iconvdata/gbk.c: Likewise.
10248         * iconvdata/iso-2022-cn.c: Likewise.
10249         * iconvdata/iso-2022-jp.c: Likewise.
10250         * iconvdata/iso-2022-kr.c: Likewise.
10251         * iconvdata/iso646.c: Likewise.
10252         * iconvdata/iso_6937-2.c: Likewise.
10253         * iconvdata/iso_6937.c: Likewise.
10254         * iconvdata/johab.c: Likewise.
10255         * iconvdata/sjis.c: Likewise.
10256         * iconvdata/t.61.c: Likewise.
10257         * iconvdata/uhc.c: Likewise.
10258         * iconvdata/unicode.c: Likewise.
10259         * iconvdata/utf-16.c: Likewise.
10260
10261         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10262         prototypes.
10263
10264         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10265         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10266         public.
10267         * malloc/mcheck.h (mcheck_check_all): Declare.
10268
10269         * stdio-common/Makefile (tests): Add tst-obprintf.
10270
10271 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10272
10273         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10274         Declare pthread_sigmask.
10275
10276         * csu/version.c: Add 2000 to copyright years.
10277         Remove Emacs local variables section.
10278
10279 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10280
10281         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10282         __gconv_transform_internal_ucs2little): Remove declarations.
10283         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10284         __gconv_transform_internal_ucs2): Never need to bswap_16.
10285         (__gconv_transform_ucs2reverse_internal,
10286         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10287
10288 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10289
10290         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10291         obsoleting version not being defined at all, in which case the
10292         result is always true.
10293
10294         * Makeconfig (preprocess-versions): New canned sequence for running
10295         cpp on shlib-versions and the like.
10296         (soversions.i): Use it.
10297         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10298         Versions.def and Versions files.
10299
10300 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10301
10302         * stdio-common/tst-obprintf.c (main): Add another check to see
10303         obstack_printf handling all possible beginnings of the block
10304         inside an obstack chunk.
10305
10306         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10307         install mcheck handler.
10308
10309         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10310         handling problem.
10311
10312 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10313
10314         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10315
10316         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10317         on [HAVE_ELF && DO_VERSIONING].
10318
10319 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10320
10321         * stdio-common/tst-obprintf.c: New file.
10322
10323 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10324
10325         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10326         _IO_OVERFLOW directly instead through __overflow.
10327
10328         * locale/programs/localedef.c (construct_output_path): If path
10329         contains a / compute the end of the directory name correctly.
10330
10331         * include/features.h: Undef and document __USE_XOPEN2K.
10332
10333         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10334         whenever a function is called.  Initiated by calling mcheck_pedantic
10335         instead of mcheck.
10336         * malloc/mcheck.h: Declare mcheck_pedantic.
10337         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10338         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10339         for now.
10340
10341 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10342
10343         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10344         * dlfcn/dlopenold.c: Likewise.
10345         * nss/getXXbyYY_r.c: Likewise.
10346         * nss/getXXent_r.c: Likewise.
10347         * hurd/hurdinit.c: Likewise.
10348         * hurd/compat-20.c: Likewise.
10349         * libio/oldiofopen.c: Likewise.
10350         * libio/oldiofclose.c: Likewise.
10351         * libio/oldiofdopen.c: Likewise.
10352         * libio/oldfileops.c: Likewise.
10353         * libio/oldstdfiles.c: Likewise.
10354         * libio/oldiofsetpos.c: Likewise.
10355         * libio/oldiofgetpos.c: Likewise.
10356         * libio/oldiofgetpos64.c: Likewise.
10357         * libio/oldiofsetpos64.c: Likewise.
10358         * libio/oldiopopen.c: Likewise.
10359         * libio/oldpclose.c: Likewise.
10360         * libio/oldtmpfile.c: Likewise.
10361         * libio/freopen.c (freopen): Likewise.
10362         * libio/iofclose.c (_IO_new_fclose): Likewise.
10363
10364         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10365         (reboot): Declare it.
10366
10367         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10368
10369         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10370
10371         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10372
10373         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10374         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10375         We need this for the sbrk decl, which can be included without Unix98.
10376
10377 2000-03-20  Richard Henderson  <rth@cygnus.com>
10378
10379         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10380         argument to yperr2nss is an int, not size_t.
10381         * posix/regex.c (print_partial_compiled_pattern): Cast all
10382         ptrdiff_t to long for printing.
10383         (print_compiled_pattern): Use Z for printing size_t.
10384         * posix/testfnm.c (tests): Avoid trigraphs.
10385         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10386         Use a C comment, not an assembly comment.
10387
10388         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10389         of __ASSUME_32BITUIDS.
10390
10391 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10392
10393         * libio/iofopncook.c: Remove K&R prototypes.
10394
10395 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10396
10397         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10398         an initial value of 1024 instead of RLIM_INFINITY.
10399
10400         * Versions.def (libmachuser, libhurduser): Remove these sections,
10401         since these libraries do not presently use symbol versions.
10402
10403         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10404         is RLIM_INFINITY, return -1 instead.
10405
10406 2000-03-24  Andreas Jaeger  <aj@suse.de>
10407
10408         * Makefile (postclean): Added soversions.i.
10409
10410 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10411
10412         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10413         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10414         and _FPU_IEEE.  Change _FPU_RESERVED.
10415
10416 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10417
10418         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10419
10420 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10421
10422         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10423         (gaih_inet): Remove unused duplicate variable.
10424
10425         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10426         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10427         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10428         only flavors supported by this function anyway.
10429
10430 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10431
10432         * stdlib/strfmon.c: Corrected problems with missing signs and
10433         missing or extra spaces; allow for sign strings longer than
10434         one character; add padding to ensure positive and negative
10435         formats are aligned when a left precision is used.
10436
10437 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10438
10439         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10440         Patch by John Mizel <John.Mizel@msdw.com>.
10441
10442 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10443
10444         * manual/install.texi: Remove references to crypt add-on.
10445
10446 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10447
10448         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10449         section while taking the _hurd_rlimit_lock.
10450         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10451
10452 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10453
10454         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10455         using $(LN_S).
10456
10457         * sysdeps/mach/hurd/if_index.c: New file.
10458
10459         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10460         * sysdeps/gnu/net/if.h: here.
10461         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10462         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10463         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10464         functions and `struct if_nameindex' type.
10465         * socket/Makefile (headers): Add net/if.h here.
10466         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10467         * sysdeps/mach/hurd/Dist: Remove it here.
10468         * sysdeps/unix/sysv/linux/Dist: And here.
10469         * sysdeps/generic/if_index.c: Include <net/if.h>.
10470
10471 2000-03-24  Andreas Jaeger  <aj@suse.de>
10472
10473         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10474         access relocated entries in l_info.
10475         (elf_machine_got_rel): Likewise.
10476         (elf_machine_runtime_setup): Likewise.
10477         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10478         (elf_machine_runtime_setup): Likewise.
10479         (__dl_runtime_resolve): Likewise.
10480
10481 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10482
10483         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10484         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10485         according to RFC 2553.
10486         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10487         * inet/getnameinfo.c: Likewise.
10488         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10489
10490 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10491
10492         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10493         Remove no-op pointer increment.
10494
10495 2000-03-23  Andreas Jaeger  <aj@suse.de>
10496
10497         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10498         follow change for libio.h from 2000-03-10.
10499
10500 2000-03-23  Andreas Jaeger  <aj@suse.de>
10501
10502         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10503         change.
10504         * elf/dl-debug.c: Likewise.
10505         * elf/dl-deps.c: Likewise.
10506         * elf/dl-error.c: Likewise.
10507         * elf/dl-fini.c: Likewise.
10508         * elf/dl-init.c: Likewise.
10509         * elf/dl-load.c: Likewise.
10510         * elf/dl-lookup.c: Likewise.
10511         * elf/dl-minimal.c: Likewise.
10512         * elf/dl-object.c: Likewise.
10513         * elf/dl-open.c: Likewise.
10514         * elf/dl-preinit.c: Likewise.
10515         * elf/dl-profile.c: Likewise.
10516         * elf/dl-profstub.c: Likewise.
10517         * elf/dl-reloc.c: Likewise.
10518         * elf/dl-runtime.c: Likewise.
10519         * elf/dl-support.c: Likewise.
10520         * elf/dl-symbol.c: Likewise.
10521         * elf/dl-version.c: Likewise.
10522         * elf/rtld.c: Likewise.
10523         * elf/sprof.c: Likewise.
10524         * sysdeps/generic/dl-cache.c: Likewise.
10525         * sysdeps/generic/dl-origin.c: Likewise.
10526         * sysdeps/generic/dl-sysdep.c: Likewise.
10527         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10528         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10529         * sysdeps/generic/libc-start.c: Likewise.
10530         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10531         * sysdeps/powerpc/dl-machine.c: Likewise.
10532         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10533         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10534         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10535         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10536
10537         * elf/ldsodefs.h: Move file to ...
10538         * sysdeps/generic/ldsodefs.h: ... here.
10539
10540         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10541
10542         * sysdeps/mips/elf/ldsodefs.h: New file.
10543
10544         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10545         entries in l_info.
10546         (_dl_check_map_versions): Likewise.
10547         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10548         * elf/dl-load.c (_dl_init_paths): Likewise.
10549         (_dl_map_object): Likewise.
10550         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10551         (elf_get_dynamic_info): Likewise.
10552         * elf/do-lookup.h (FCT): Likewise.
10553         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10554         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10555         * elf/dl-addr.c (_dl_addr): Likewise.
10556         * elf/dl-runtime.c (profile_fixup): Likewise.
10557         (fixup): Likewise.
10558         * elf/dl-init.c (_dl_init_next): Likewise.
10559         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10560         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10561         (DISTINGUISH_LIB_VERSIONS): Likewise.
10562         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10563         (elf_machine_rel): Likewise.
10564
10565         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10566         for writable dynamic section.
10567
10568 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10569
10570         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10571         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10572
10573 2000-03-22  Andreas Jaeger  <aj@suse.de>
10574
10575         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10576         from latest Linux kernel.
10577
10578 2000-03-21  Andreas Jaeger  <aj@suse.de>
10579
10580         * Versions.def: Add version 2.1.4.
10581
10582 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10583
10584         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10585         * libio/oldiofopen.c: Likewise.
10586         * libio/oldiofclose.c: Likewise.
10587         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10588
10589 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10590
10591         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10592         indicating the first version set to obsolete the conditionalized code.
10593         (compat_symbol): New macro.
10594         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10595         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10596         integer values to the ABI_* macros for supported versions.
10597         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10598         compat_symbol macro.
10599
10600 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10601
10602         * nscd/connections.c (nscd_run): Pretty print.
10603         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10604
10605         * manual/charset.texi: Fix typos.  Rephrase.
10606         * manual/process.texi: Likewise.
10607         * manual/signal.texi: Likewise.
10608         Patches by Mike Coleman <mkc@kc.net>.
10609
10610         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10611         versions.
10612         * libio/iofdopen.c: Likewise.
10613         * libio/iofgetpos.c: Likewise.
10614         * libio/iofgetpos64.c: Likewise.
10615         * libio/iofopen.c: Likewise.
10616         * libio/iofsetpos.c: Likewise.
10617         * libio/iofsetpos64.c: Likewise.
10618         * libio/iopopen.c: Likewise.
10619         * libio/oldiofopen.c: Likewise.
10620         * libio/pclose.c: Likewise.
10621         * sysdeps/gnu/siglist.c: Likewise.
10622         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10623
10624         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10625         chance to expand VERSION_##lib##_##version.
10626
10627         * libio/fileops.c: Use new macros from shlib-compat.h to define
10628         versions.
10629         * libio/iofclose.c: Likewise.
10630         * libio/oldiofclose.c: Likewise.
10631         Patch by Roland McGrath <roland@frob.com>.
10632
10633 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10634
10635         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10636         Lay out struct sigcontext according to what really gets passed on
10637         the stack.
10638         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10639         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10640         (prgregset_t, prfpregset_t): Define to elf_* types.
10641         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10642         Define to correct value.
10643         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10644         sigcontext.
10645         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10646
10647 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10648
10649         * scripts/firstversions.awk: Allow multiple version sets in the
10650         "earliest version" specification, meaning that version sets in the
10651         gaps between listed versions should be folded into the earliest later
10652         version that is explicitly listed.
10653         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10654         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10655
10656 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10657
10658         * iconv/gconv_builtin.c: Include <endian.h>.
10659         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10660         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10661         according to current platform.
10662         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10663         __gconv_transform_internal_ucs2reverse, and
10664         __gconv_transform_internal_ucs4le.
10665         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10666         __gconv_transform_ucs2reverse_internal and
10667         __gconv_transform_internal_ucs2reverse.
10668         * iconvdata/Makefile (modules): Add UNICODE.
10669         (distribute): Add unicode.c.
10670         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10671         * iconvdata/unicode.c: New file.
10672
10673         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10674         determine byte order of input and convert accordingly.
10675
10676         * iconvdata/utf-16.c (gconv_init): Fix typo.
10677
10678 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10679
10680         * iconvdata/gconv-modules: Fix typo.
10681
10682         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10683         more messages.
10684
10685         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10686
10687 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10688
10689         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10690
10691 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10692
10693         * misc/Makefile (routines): Add mincore.
10694
10695 2000-03-20  Andreas Jaeger  <aj@suse.de>
10696
10697         * sysdeps/generic/mincore.c: New stub file.
10698
10699         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10700         from latest Linux kernel.
10701
10702 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10703
10704         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10705         _SC_GETPW_R_SIZE_MAX.
10706
10707 2000-03-20  Richard Henderson  <rth@cygnus.com>
10708
10709         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10710         in GLIBC_2.1.4.
10711
10712 2000-03-20  Richard Henderson  <rth@cygnus.com>
10713
10714         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10715         of arithmetic instructions.
10716
10717         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10718         with the fpcr.  Protect from INV exception.
10719         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10720         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10721         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10722
10723         * sysdeps/alpha/fpu/s_copysign.c: New.
10724         * sysdeps/alpha/fpu/s_copysignf.c: New.
10725         * sysdeps/alpha/fpu/s_fabs.c: New.
10726         * sysdeps/alpha/fpu/s_fabsf.c: New.
10727         * sysdeps/alpha/fpu/s_rint.c: New.
10728         * sysdeps/alpha/fpu/s_rintf.c: New.
10729
10730         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10731
10732         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10733         Kill sethae.
10734         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10735         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10736         Use physical addresses not KSEG addresses.
10737         (io_system): Add PYXIS.
10738         (io): Remove hae.reg, sys, hae_shift.
10739         (stb_mb, stw_mb, stl_mb, __sethae): New.
10740         (inline_outb, inline_outw, inline_outl): Don't set hae.
10741         (inline_inb, inline_inw, inline_inl): Likewise.
10742         (dense_sethae): New null function.
10743         (struct cpuinfo_data): New.
10744         (process_cpuinfo): Use local and stack variables, not static.
10745         Move readlink check here from init_iosys.
10746         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10747         (_iopl): Simplify.
10748         (_hae_shift): Calculate it here.
10749         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10750         add pciconfig_iobase.
10751
10752 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10753
10754         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10755         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10756
10757         * scripts/versions.awk: Fixed version renaming code to distinguish
10758         libraries properly.
10759
10760 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10761
10762         * include/stdlib.h: Add prototype for __cxa_atexit.
10763
10764         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10765         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10766
10767 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10768
10769         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10770         existing rtld-installed-name.
10771         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10772         replace existing rtld-installed-name using $(symbolic-link-prog).
10773
10774 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10775
10776         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10777         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10778         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10779         but not the former.
10780
10781 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10782
10783         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10784         glob64.  Since there is no glob64 in the LFS proposal applications
10785         can assume that glob handles LFS situations.  glob64 is only needed
10786         if alternative filesystem functions are used.
10787
10788 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10789
10790         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10791         when GLOB_DOOFFS is set; correct handling of patterns
10792         containing escaped wildcards (and no unescaped ones);
10793         GLOB_ERR flag was being ignored in some situations.
10794
10795         * posix/globtest.c, posix/globtest.sh: Updated to include
10796         tests for the problems fixed by the above changes to glob.c.
10797
10798         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10799
10800 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10801
10802         * Makeconfig (soversion.i): Use only first match for each lib.
10803
10804         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10805
10806         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10807         rather than $(sysd-dirs-done) to protect these rules.
10808
10809         * Makerules (version-renames.def): Target removed.
10810         (Versions.all): Depend on soversions.i directly and parse it.
10811
10812         * Makeconfig (soversions.i): New target, input-reading parts of
10813         soversions.mk generation moved here; result is a canonicalized
10814         list "LIB VERSION [SET]" for this configuration.
10815         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10816         * Makerules (version-renames.def): New target, generated from
10817         soversions.i with contents that was in $(map-firstversions).
10818         (Versions.all): Don't depend on soversions.mk, depend on
10819         version-renames.def instead; just cat it into the input.
10820
10821         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10822         for $(map-firstversions), which better handles it being empty.
10823
10824         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10825         supported version for libc 0.2.90.libio to GLIBC_2.2.
10826
10827         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10828         and use it to emit new variable `map-firstversions'.
10829         * scripts/firstversions.awk: New file.
10830         * Makerules (Versions.all): Use scripts/firstversions.awk and
10831         the $(map-firstversions) value to generate a modified versions list
10832         that includes renames in "A = B" syntax for each version set earlier
10833         than the "earliest symbol version" named in shlib-versions.
10834         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10835         rename version set A to B in the output to the intermediate file.
10836         * scripts/abi-versions.awk: New file.
10837         * Makerules (abi-versions.h): New target, generated by that script.
10838         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10839         * include/shlib-compat.h: New file, uses that generated header.
10840
10841 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10842
10843         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10844         after stripping # comments, and then run it through cpp.
10845         This allows things like "%ifdef FOO" based on config.h settings.
10846         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10847
10848         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10849         and other errors that indicate a pseudo-receive happened, grok through
10850         the message buffer for port rights that need references fixed up.
10851
10852 2000-03-16  Andreas Jaeger  <aj@suse.de>
10853
10854         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10855
10856         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10857
10858         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10859         from latest Linux kernel.
10860         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10861
10862         * misc/sys/mman.h: Add prototype for mincore.
10863
10864 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10865
10866         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10867         entry for GLIBC_2.0 version of setrlimit.
10868         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10869
10870 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10871
10872         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10873         * nis/nss_compat/compat-initgroups.c: Likewise.
10874         * nis/nss_nis/nis-initgroups.c: Likewise.
10875         * nis/nss_nis/nis-netgrp.c: Likewise.
10876         * nis/nss_nis/nis-proto.c: Likewise.
10877         * nis/nss_nis/nis-rpc.c: Likewise.
10878         * nis/nss_nis/nis-service.c: Likewise.
10879         * nis/ypclnt.c: Likewise.
10880
10881 2000-03-16  Andreas Jaeger  <aj@suse.de>
10882
10883         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10884         doesn't exist, correct checks.  Fixes PR libc/1649.
10885
10886 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10887
10888         * nscd/hstcache.c: Restore correct UID.
10889         * nscd/pwdcache.c: Likewise.
10890         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10891
10892 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10893
10894         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10895         macros for register names, in line with 2000-03-14 linux change.
10896
10897         * sysdeps/mach/sched_yield.c: New file.
10898
10899 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10900
10901         * sysdeps/generic/lockfile.c: Include <stdio.h>
10902         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10903         case <libio.h> defined them.
10904         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10905         from __internal_*.
10906         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10907         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10908
10909         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10910         for more pleasing parse error.
10911
10912 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10913
10914         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10915         memory for eras.
10916         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10917
10918         * elf/Makefile: Add rules to compile and run constload1 test.
10919         * elf/constload1.c: New file.
10920         * elf/constload2.c: New file.
10921         * elf/constload3.c: New file.
10922
10923 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10924
10925         * sysdeps/posix/open64.c: Make __open64 weak alias.
10926         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10927         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10928         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10929         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10930         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10931         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10932         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10933         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10934         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10935         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10936
10937 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10938
10939         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10940         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10941
10942 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10943
10944         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10945         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10946
10947 2000-03-08  Andreas Jaeger  <aj@suse.de>
10948
10949         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10950
10951 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10952
10953         * timezone/africa: Update from tzdata2000d.
10954         * timezone/asia: Likewise.
10955         * timezone/australasia: Likewise.
10956         * timezone/europe: Likewise.
10957         * timezone/northamerica: Likewise.
10958         * timezone/southamerica: Likewise.
10959
10960         * po/fr.po: Update from translation team.
10961         * po/de.po: Likewise.
10962
10963         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10964         last parameter.  Move code to add map to global scope from here...
10965         * elf/dl-open.c (dl_open_worker): ...here.
10966         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10967         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10968
10969         * locale/programs/ld-collate.c (collate_read): Fix warning.
10970
10971         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10972         values and macros for register names.
10973
10974         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10975         returned by seek cookie function is -1.
10976
10977 2000-03-14  Andreas Jaeger  <aj@suse.de>
10978
10979         * locale/localeconv.c (localeconv): Fix typo.
10980         Reported by Andre Charbonneau <andrec@corel.com>.
10981
10982 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10983
10984         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10985         since modules depend on it counting the number of times the conversion
10986         function got called.
10987
10988         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10989
10990         * iconv/gconv.h: Pretty print.
10991
10992 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10993
10994         * posix/wordexp-test.c: Correct one of the tests added in the last
10995         change.  Really get the root passwd entry to check again ~root.
10996
10997 2000-03-10  Andreas Jaeger  <aj@suse.de>
10998
10999         * manual/filesys.texi (Working Directory): Fix last patch.
11000         Patch by Martin Buchholz  <martin@xemacs.org>.
11001
11002 2000-03-10  Andreas Jaeger  <aj@suse.de>
11003
11004         * manual/creature.texi (Feature Test Macros): Fix language.
11005
11006 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11007
11008         * mach/devstream.c (devstream_write, devstream_read): New functions.
11009         (input, output): Functions removed.
11010         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11011         using only the vanilla fopencookie interface.
11012
11013         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11014         as macro for __io_functions.
11015         (funcsio): Use cookie_io_functions_t type name.
11016         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11017
11018         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11019         fopencookie.
11020         (fopencookie): Use it.
11021         * libio/libio.h: Declare _IO_cookie_init.
11022         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11023         _IO_cookie_init.
11024
11025         * libio/libio.h (__io_seek_fn): Fix second argument type
11026         to be a pointer, in line with the manual and the old stdio.
11027         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11028
11029         * sysdeps/generic/bits/stdio-lock.h: New file.
11030         This is a stub with #error, but that's better than no file at all.
11031
11032 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11033
11034         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11035         * manual/message.texi (Using gettextized software): Doc Fixes.
11036         * manual/message.texi (Message Translation): Doc Fixes.
11037         * manual/filesys.texi (File Size): Doc Fixes.
11038         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11039         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11040         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11041         * manual/install.texi: Doc Fixes.
11042         * manual/search.texi (Hash Search Function): Doc Fixes.
11043         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11044         * FAQ.in: Doc Fixes.
11045         * config.h.in: Doc Fixes.
11046         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11047         Doc Fixes.  `allows to' is not correct English.
11048
11049         * elf/rtld.c: Doc fixes.
11050         * manual/creature.texi (Feature Test Macros): Doc fixes.
11051         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11052
11053         * manual/filesys.texi (Working Directory): Check for ERANGE to
11054         avoid infloop.
11055
11056 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11057
11058         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11059         conditions so as not to clobber the final '\0' when there is only one
11060         element in the vector.
11061
11062 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11063
11064         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11065         broken by 2000-02-27 change.
11066
11067         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11068
11069 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11070
11071         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11072         argument type, for 2000-02-22 change in signal/signal.h declaration.
11073
11074 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11075
11076         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11077         to getdirentries64 (no __), since the Linux implementation
11078         has no __ name, and there is no declaration for the __ name.
11079
11080         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11081
11082         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11083         sed regexp so as not to break directory names including /../ within.
11084
11085         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11086         The sysdeps/generic file is right for BSD.  This file was in fact the
11087         Hurd file, but the only difference was the WNOREAP flag that was never
11088         actually implemented or used anywhere.
11089
11090         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11091         since AC_PATH_PROG already does it for us.
11092         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11093         correctness and sh portability.  I replaced the broken check
11094         with a more sensible implementation of the apparently intended
11095         semantics, which might still be questionable.  Using expr causes
11096         a non-numeric value for `perl -V:apiversion` to be accepted,
11097         refusing to use only a perl that reports a number less than 5;
11098         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11099         * configure: Regenerated.
11100
11101 2000-03-08  Andreas Jaeger  <aj@suse.de>
11102
11103         * manual/crypt.texi: Fix paths.
11104
11105 2000-03-07  Andreas Jaeger  <aj@suse.de>
11106
11107         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11108         were swapped.
11109         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11110         libc/1636.
11111
11112 2000-03-06  Andreas Jaeger  <aj@suse.de>
11113
11114         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11115         in __sgn1l, otherwise g++ fails to parse this.
11116         Reported by Sean Chen <sean.chen@turbolinux.com>.
11117
11118 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11119
11120         * configure.in: Compute sizeof-long-double.
11121         * configure: Regenerated.
11122         * config.make.in: Make sizeof-long-double available to sub-makes.
11123
11124 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11125
11126         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11127         call.
11128
11129 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11130
11131         * Makeconfig (rpath-dirs): Add crypt.
11132         (all-subdirs): Remove md5crypt.
11133         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11134         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11135         * sysdeps/generic/crypt-entry.c: Delete.
11136         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11137         * sysdeps/generic/crypt.h: Delete.
11138         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11139         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11140         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11141         * sysdeps/generic/des_impl.c: Delete.
11142         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11143         * crypt/sysdeps: Delete.
11144         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11145         * md5-crypt/Versions: Move to crypt/.
11146         * md5-crypt/md5-crypt.c: Move to crypt/.
11147         * md5-crypt/md5.c: Move to crypt/.
11148         * md5-crypt/md5c-test.c: Move to crypt/.
11149         * md5-crypt/md5test.c: Move to crypt/.
11150         * md5-crypt: Delete.
11151         * crypt/Makefile: Adjust for new structure.
11152
11153 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11154
11155         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11156         define to 1 if not defined.
11157
11158 2000-03-03  Andreas Jaeger  <aj@suse.de>
11159
11160         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11161
11162 2000-03-03  Andreas Jaeger  <aj@suse.de>
11163
11164         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11165         cases.
11166         (xdr_int64_t): Correctly handle lower half.
11167         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11168
11169 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11170
11171         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11172         call.
11173
11174 2000-03-02  Andreas Jaeger  <aj@suse.de>
11175
11176         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11177         2.3.43.
11178
11179 2000-03-02  Andreas Jaeger  <aj@suse.de>
11180
11181         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11182
11183 2000-03-01  Andreas Jaeger  <aj@suse.de>
11184
11185         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11186         (tests): Added tst-getdate.
11187
11188         * time/tst-getdate.c: New file.
11189
11190         * time/datemsk: New file, needed for tst-getdate.
11191
11192 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11193
11194         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11195
11196 2000-02-17  H.J. Lu  <hjl@gnu.org>
11197
11198         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11199
11200         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11201         available.
11202         (svcudp_recv): Set up message with the new "xp_pad" field for
11203         IP_PKTINFO.
11204         (svcudp_reply): Support IP_PKTINFO if available.
11205
11206 2000-03-01  Andreas Jaeger  <aj@suse.de>
11207
11208         * time/getdate.c (check_mday): Fix check for february.
11209         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11210         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11211
11212 2000-03-02  Andreas Jaeger  <aj@suse.de>
11213
11214         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11215         g++ fails to parse this.
11216         Reported by Sean Chen <sean.chen@turbolinux.com>.
11217
11218 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11219
11220         * io/creat.c: Moved to...
11221         * sysdeps/generic/creat.c: ...here.
11222         * io/creat64.c: Moved to...
11223         * sysdeps/generic/creat64.c: ...here.
11224         * io/lockf.c: Moved to...
11225         * sysdeps/generic/lockf.c: ...here.
11226
11227         * crypt/crypt.texi: Moved to...
11228         * manual/crypt.texi: ...here.
11229         * crypt/examples/genpass.c: Moved to...
11230         * manual/examples/genpass.c: ...here.
11231         * crypt/examples/mygenpass.c: Moved to...
11232         * manual/examples/mygenpass.c: ...here.
11233         * crypt/examples/testpass.c: Moved to...
11234         * manual/examples/testpass.c: ...here.
11235
11236         * manual/Makefile (chapters): Add crypt.
11237         * manual/conf.texi: Add usual header for not-last chapter.
11238         * manual/crypt.texi: Add special header for last chapter.
11239
11240 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11241
11242         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11243         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11244         complain if there is no crypt add-on.
11245         * crypt/configure: Removed.
11246
11247         * crypt/crypt.texi: Update documentation of US export restrictions
11248         to match the 14 Jan 2000 regulations.
11249
11250 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11251
11252         * crypt: New subdirectory, merged in from the crypt add-on.
11253
11254 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11255
11256         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11257
11258
11259 See ChangeLog.10 for earlier changes.