f49147a9f298d1f6dae5faa35276a3c9ac1c7ecd
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
2
3         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
4         Add missing case in va_arg handling for numbers.
5         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
6         handling.  Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
7
8 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
9
10         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
11         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
12         characters.
13         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
14         as equivalent to uppercase hexadecimal digits.
15
16 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
17
18         * iconvdata/testdata/EUC-KR..UTF8: New file.
19         * iconvdata/testdata/EUC-TW: New file.
20         * iconvdata/testdata/EUC-TW..UTF8: New file.
21         * iconvdata/testdata/EUC-JP: New file.
22         * iconvdata/testdata/EUC-JP..UTF8: New file.
23         * iconvdata/testdata/ISO-2022-JP: New file.
24         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
25         * iconvdata/testdata/ISO-2022-JP-2: New file.
26         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
27         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
28         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
29         * iconvdata/testdata/ISO-2022-CN: New file.
30         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
31         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
32         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
33         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
34         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
35
36 2000-09-24  Andreas Jaeger  <aj@suse.de>
37
38         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
39         function add_single_dir.
40         (add_single_dir): New function.
41         (search_dir): Use add_single_dir instead of recursing.
42
43         * sysdeps/generic/dl-cache.h: Include stdint.h.
44         (struct file_entry_new): Use fixed sizes for interoperability
45         between 32bit and 64bit systems, add __unused to make alignment
46         explicit.
47         (CACHE_VERSION): Increment.
48         (struct cache_file_new): Use fixed sizes, add one more unused
49         entry to make alignment explicit.
50
51 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
52
53         * elf/ldconfig.c (search_dir): Make more use of d_type information.
54
55 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
56
57         * stdio-common/printf-parse.h (parse_one_spec): Clear
58         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
59
60 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
61
62         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
63         #undef since we don't have msync.
64
65         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
66         constant since that is what clock_t is.
67         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
68
69 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
70
71         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
72         multiply by LOAD_SCALE.
73
74 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
75
76         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
77         (crypt_r, setkey_r, encrypt_r): Likewise.
78
79 2000-09-22  Andreas Jaeger  <aj@suse.de>
80
81         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
82         array size.
83
84         * sysdeps/alpha/fpu/libm-test-ulps: New file.
85         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
86
87 2000-09-21  Andreas Jaeger  <aj@suse.de>
88
89         * math/libm-test.inc (atan_test): Test for existence of function.
90         (expm1_test): Likewise.
91         (acos_test): Likewise.
92         (asin_test): Likewise.
93         (exp_test): Likewise.
94         (log10_test): Likewise.
95         (log_test): Likewise.
96         (pow_test): Likewise.
97         (sqrt_test): Likewise.
98         (cos_test): Likewise.
99         (sin_test): Likewise.
100         (tan_test): Likewise.
101         (log1p_test): Likewise.
102         (log2_test): Likewise.
103
104         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
105
106         * libio/oldiofsetpos64.c: Fix alias names.
107
108 2000-09-21  Martin Buchholz  <martin@xemacs.org>
109
110         * manual/terminal.texi (Allocation): Sample code correction.
111
112 2000-09-20  Andreas Jaeger  <aj@suse.de>
113
114         * iconvdata/Makefile (generated): Add tst-tables.out.
115
116         * intl/Makefile (generated): Add test output.
117
118 2000-09-19  Andreas Jaeger  <aj@suse.de>
119
120         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
121         Reported by Jens-Uwe Mager <jum@helios.de>.
122
123 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
124
125         * version.h (VERSION): Bump to 2.1.94.
126
127         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
128         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
129         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
130         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
131
132         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
133
134 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
135
136         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
137         range 0xD800..0xDFFF.
138         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
139         (BODY for FROM_LOOP): Likewise.
140         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
141         (internal_ucs2_loop): Likewise.
142         (ucs2reverse_internal_loop): Likewise.
143         (internal_ucs2reverse_loop): Likewise.
144
145 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
146
147         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
148         names.
149
150 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
151
152         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
153         * iconvdata/tst-table-to.c (main): Likewise.
154
155 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
156
157         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
158         __isoir165_tab.
159         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
160         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
161         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
162         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
163         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
164         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
165         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
166         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
167         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
168         encodings when needed.  When outputting an announcement, don't clear
169         most other announcements.
170
171 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
172
173         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
174         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
175
176 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
177
178         * intl/Versions: Add bind_textdomain_codeset.
179
180 2000-09-16  Ralf Baechle  <ralf@gnu.org>
181
182         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
183         as function.
184         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
185         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
186         it will even work when not loaded to the standard address.
187         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
188         before the dynamic linker itself is relocated.
189
190 2000-09-18  Andreas Jaeger  <aj@suse.de>
191
192         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
193         __ASSUME_32BITUIDS for MIPS.
194         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
195         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
196
197 2000-09-17  H.J. Lu  <hjl@gnu.org>
198
199         * catgets/Makefile ($(objpfx)de/libc.cat): Use
200         $(make-target-directory) instead of mkdir.
201
202 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
203
204         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
205         __ASSUME_32BITUIDS for __powerpc__.
206         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
207         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
208
209 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
210
211         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
212         patch.
213         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
214
215 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
216
217         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
218         first.
219         * sysdeps/m68k/Implies: Likewise.
220         * sysdeps/sparc/sparc64/Implies: Likewise.
221
222 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
223
224         * elf/readlib.c (process_file): Don't error for stale .so links either.
225
226 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
227
228         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
229         __builtin_expect.
230
231         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
232         Patch by Thorsten Kukuk <kukuk@suse.de>.
233
234         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
235         (test): Add default.
236         (modules-names): Add defaultmod1 and defaultmod2.
237         Add rules to build test objects.
238
239 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
240
241         * wctype/wctype.h: Always include <bits/types.h>.
242         Reported by Jim Meyering <meyering@ascend.com>.
243
244         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
245         * elf/dl-support.c: Likewise.
246
247         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
248         st_blocks member in stat and stat64 structs.
249         Patch by Bill Nottingham <notting@redhat.com>.
250
251         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
252         take longer.
253
254         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
255         __extension__ to _Complex_I definition since gcc warns if -pedantic.
256         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
257         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
258
259         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
260         necessary.  Move includes of POSIX and Unix limits files to the end.
261         * stdlib/Makefile (tests): Add tst-limits.
262         * stdlib/tst-limits.h: New file.
263
264 2000-09-15  Andreas Jaeger  <aj@suse.de>
265
266         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
267
268         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
269
270 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
271
272         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
273         clobber.
274         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
275         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
276
277 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
278
279         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
280         (tests): Add next.
281         (modules-names): Add nextmod1 and nextmod2.
282         Add rules to build and run next.
283         * elf/next.c: New file.
284         * elf/nextmod1.c: New file.
285         * elf/nextmod2.c: New file.
286
287 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
288
289         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
290
291 2000-09-15  Andreas Jaeger  <aj@suse.de>
292
293         * sysdeps/mips/fpu/fenv_libc.h: New file.
294         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
295         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
296         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
297
298         * sysdeps/mips/fpu/feenablxcpt.c: New file.
299         * sysdeps/mips/fpu/fegetexcept.c: New file.
300         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
301
302 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
303
304         * intl/Makefile: Avoid unnecessary test reruns.
305
306         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
307
308         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
309         to not use sysctl().  Too many architectures have problems with it.
310
311 2000-09-14  Andreas Jaeger  <aj@suse.de>
312
313         * scripts/config.sub: New version from subversions.gnu.org.
314
315         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
316         long.
317
318 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
319
320         * posix/regex.c (compile_range): Cast collseq index to unsigned char
321         to avoid accessing data before collseq.
322
323         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
324         pasting strings together.
325
326 2000-09-14  Greg McGary  <greg@mcgary.org>
327
328         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
329         copyright notice.
330         * sysdeps/generic/bp-semctl.h: Likewise.
331         * sysdeps/generic/bp-start.h: Likewise.
332         * sysdeps/generic/bp-sym.h: Likewise.
333         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
334         rename prototype.
335
336 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
337
338         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
339         don't fail.
340
341         * elf/elf.h: Add missing official relocations.
342
343         * libio/stdio.h: Define __FILE if __need___FILE is defined.
344         * stdio/stdio.h: Likewise.
345         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
346         * include/stdio.h: Handle __need___FILE like __need_FILE.
347         * include/wchar.h: Use __FILE instead of FILE.
348         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
349         * libio/fwscanf.c: Likewise.
350         * libio/getwc.c: Likewise.
351
352         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
353         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
354         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
355
356         * assert/assert.h: Update comment header about ISO C section.
357         * math/complex.h: Likewise.
358         * ctype/ctype.h: Likewise.
359         * include/errno.h: Likewise.
360         * include/limits.h: Likewise.
361         * locale/locale.h: Likewise.
362         * math/math.h: Likewise.
363         * setjmp/setjmp.h: Likewise.
364         * signal/signal.h: Likewise.
365         * stdio/stdio.h: Likewise.
366         * libio/stdio.h: Likewise.
367         * stdlib/stdlib.h: Likewise.
368         * string/string.h: Likewise.
369         * time/time.h: Likewise.
370         * wcsmbs/wchar.h: Likewise.
371         * wctype/wctype.h: Likewise.
372         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
373
374 2000-09-13  Andreas Jaeger  <aj@suse.de>
375
376         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
377         for no more entries.
378         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
379         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
380         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
381
382 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
383
384         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
385         constant since this is what clock_t is.
386         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
387         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
388         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
389         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
390
391         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
392         definitions are requested.
393
394 2000-09-13  Andreas Jaeger  <aj@suse.de>
395
396         * shlib-versions: libBrokenLocale needs minimal version for ia64,
397         sparc64 and sh to synch with libc.
398
399 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
400
401         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
402         (distribute): Add iso-2022-cn-ext.c.
403         Add definitions to compile the new module.
404         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
405         * iconvdata/iso-2022-cn-ext.c: New file.
406         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
407         ucs4_from_isoir165.  Increment input pointer if successful.
408
409         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
410
411         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
412
413 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
414
415         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
416         __syscall_getdents64 wrapper.
417
418         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
419
420 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
421
422         * iconvdata/gb18030.c: Many many changes.  Make consistent with
423         charmap and with itself.
424         * iconvdata/tst-tables.sh: Test GB18030.
425
426 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
427
428         * iconv/skeleton.c: Fix last patch, add missing parameter to
429         unaligned function call.
430
431 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
432
433         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
434         of decimal ellipsis.
435
436 2000-09-11  Bruno Haible <haible@clisp.cons.org>
437
438         * locale/programs/ld-collate.c (collate_read): Always initialize
439         error_section.next.
440
441 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
442
443         * locale/programs/ld-collate.c (collate_finish): Upper bound for
444         ruleidx is 128, not 256.
445
446 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
447
448         * locale/programs/ld-collate.c (collate_read): Correct check for
449         already inserted entries.
450
451 2000-09-10  Bruno Haible <haible@clisp.cons.org>
452
453         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
454         second try as well.
455
456 2000-09-10  Bruno Haible <haible@clisp.cons.org>
457
458         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
459         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
460
461 2000-09-10  Bruno Haible <haible@clisp.cons.org>
462
463         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
464         SAVE_RESET_STATE.
465
466 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
467
468         * iconvdata/utf-7.c: New file.
469         * iconvdata/gconv-modules (UTF-7): New module entries.
470         * iconvdata/Makefile (modules): Add UTF-7.
471         (distribute): Add utf-7.c.
472         * iconvdata/testdata/UTF-7: New file.
473         * iconvdata/testdata/UTF-7..UTF8: New file.
474         * iconvdata/TESTS (UTF-7): New entry.
475         * iconvdata/run-iconv-test.sh: Fix confusing output.
476
477 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
478
479         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
480
481 2000-09-10  David S. Miller  <davem@redhat.com>
482
483         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
484         frame pointer offset for non-fast path.
485
486 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
487
488         * locale/programs/3level.h (*_init): Initialize level1, level2,
489         and level3 as well.
490         (*_add): Remove a few unnecessary conditionals.
491
492 2000-09-05  Wolfram Gloger  <wg@malloc.de>
493
494         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
495         ensure usability of mutex as an `in use' flag.
496
497 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
498
499         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
500
501         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
502         ugly GMON_WEAK_START hack.
503         Patch by Philip Blundell <philb@gnu.org>.
504
505         * sysdeps/i386/i486/bits/string.h: Pretty printing.
506
507 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
508
509         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
510         and PPC_ICBI asm for broken compilers.
511         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
512
513 2000-09-09  Andreas Jaeger  <aj@suse.de>
514
515         * manual/message.texi (Advanced gettext functions): Fix typo.
516
517         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
518         strncpy prototype.
519
520 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
521
522         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
523         warnings.
524         * sysdeps/ia64/memccpy.S: Likewise.
525         Patches by Jim Wilson <wilson@redhat.com>.
526
527         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
528         before trying to read /proc.
529         Patch by Matt Wilson <msw@redhat.com>.
530         * include/sys/utsname.h: Declare __uname.
531         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
532         * sysdeps/mach/hurd/uname.c: Likewise.
533         * sysdeps/unix/syscalls.list: Likewise.
534
535         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
536         unloading a bit.
537
538 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
539
540         * posix/getopt.c (_getopt_internal): When long_only is set always
541         recognize conflicts just like before.
542
543 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
544
545         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
546
547 2000-09-08  Greg McGary  <greg@mcgary.org>
548
549         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
550         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
551         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
552
553 2000-09-08  Andreas Jaeger  <aj@suse.de>
554
555         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
556
557         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
558
559         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
560         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
561         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
562
563 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
564
565         * iconvdata/tst-tables.sh: Enable EUC-KR test.
566
567         * elf/dl-load.c (lose): Decrement _nl_loaded.
568         (_dl_map_object_from_fd): Don't try to dlopen executables.
569
570         * iconvdata/tst-tables.sh: Actually return with an error if
571         something goes wrong.
572         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
573         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
574
575         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
576
577         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
578         * iconvdata/tst-table-from.c: Include <string.h>.
579         (try): Correct cast in iconv call.
580
581         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
582         too.
583         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
584         (sysdep_routines): Remove dl-start.
585         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
586
587         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
588
589         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
590         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
591
592 2000-09-06  Andreas Schwab  <schwab@suse.de>
593
594         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
595
596 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
597
598         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
599
600         * scripts/config.sub: Strip out -unknown for Linux targets.
601         Patch by Scott Bambrough <scottb@netwinder.org>.
602
603         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
604         add one more test.
605
606 2000-09-07  Andreas Jaeger  <aj@suse.de>
607
608         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
609
610         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
611         syscalls.
612
613         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
614
615         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
616         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
617
618         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
619
620         * stdlib/tst-bsearch.c (main): Add more test cases.
621
622         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
623         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
624         Reported by GOTO Masanori <gotom@debian.or.jp>.
625
626 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
627
628         * posix/Makefile (tests): Add tst-dir.
629         (tst-dir-ARGS): New variable.
630         * posix/tst-dir.c: New file.
631
632 2000-09-07  Andreas Jaeger  <aj@suse.de>
633
634         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
635         (SYS_fcntl64): New.
636
637         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
638
639 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
640
641         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
642         use the hack with tryopen_o_directory to determine at runtime
643         whether it works.
644         * sysdeps/unix/sysv/linux/opendir.c: New file.
645         * sysdeps/unix/sysv/linux/kernel-features.h: Define
646         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
647
648         * catgets/Depend: New file.  Add intl.
649         * catgets/Makefile (tests): Add tst-catgets.
650         (generated): Remove de.msg.
651         (generated-dirs): Add de.
652         Add dependency if tst-catgets output on de/libc.cat.
653         * catgets/tst-catgets.c: New file.
654
655         * po/ja.po: New file.
656         * po/el.po: Update from translation team.
657
658         * wcsmbs/Depend: New file.
659         * wcsmbs/Makefile (tests): Add tst-btowc.
660         (tst-btowc-ENV): Define.
661         * wcsmbs/tst-btowc.c: New file.
662
663         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
664         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
665
666         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
667
668         * stdlib/Makefile (tests): Add tst-bsearch.
669         * stdlib/tst-bsearch.c: New file.
670
671         * posix/getopt.c (_getopt_internal): Don't recognize an option
672         name as ambiguous if it's a prefix for more than one name but the
673         other struct option values are identical.
674
675         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
676         Don't depend on visual inspection of the output file to recognize
677         errors.
678         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
679
680 2000-09-06  Andreas Jaeger  <aj@suse.de>
681
682         * sysdeps/alpha/soft-fp/Dist: New file.
683         * sysdeps/i386/soft-fp/Dist: New file.
684         * sysdeps/mips/mips64/soft-fp/Dist: New file.
685         * sysdeps/mips/soft-fp/Dist: New file.
686         * sysdeps/powerpc/soft-fp/Dist: New file.
687         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
688         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
689
690         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
691         Use sysdep_routines instead of routines to fix make dist failure.
692         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
693         out code).
694         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
695
696         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
697         sysdep_headers instead of headers for make dist.
698
699         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
700         Likewise.
701
702 2000-09-06  Andreas Schwab  <schwab@suse.de>
703
704         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
705
706 2000-09-06  Andreas Jaeger  <aj@suse.de>
707
708         * soft-fp/Makefile (distribute): Remove ChangeLog.
709
710         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
711         sysdep_routines instead of routines for make dist.
712
713 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
714
715         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
716         compatibility check for old stream and call _IO_wide in doubt.
717         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
718         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
719         needed tst for such an old structure and don't do anything.
720         * libio/freopen.c: Remove declaration of _IO_stdin_used.
721
722 2000-09-06  Andreas Jaeger  <aj@suse.de>
723
724         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
725         sysdep-dl-routines and sysdep_routines instead of rtld-routines
726         and dl-routines.
727
728         * soft-fp/ChangeLog: Merged with this file.
729
730 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
731
732         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
733
734         * soft-fp/Makefile (distribute): Add the math functions, too.
735
736         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
737
738 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
739
740         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
741         as a statement.
742
743         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
744         * soft-fp/sysdeps/powerpc/q_*: New files.
745
746 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
747
748         * stdio-common/vfprintf.c (process_string_arg): Handle precision
749         in wide char case correctly.  Don't allocate too long temporary
750         strings with alloca.
751
752         * stdio-common/Makefile (tests): Add tst-swprintf.
753         (tst-swprintf-ENV): New variable.
754         * stdio-common/tst-swprintf.c: New file.
755
756 2000-09-05  Andreas Jaeger  <aj@suse.de>
757
758         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
759         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
760         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
761
762 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
763
764         * configure.in: Strip out "unknown" from configuration names.
765
766 2000-09-05  Andreas Jaeger  <aj@suse.de>
767
768         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
769
770         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
771         * sysdeps/sparc/sparc32/Implies: Likewise.
772         * sysdeps/powerpc/Implies: Likewise.
773
774         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
775         * libio/oldiofgetpos64.c: Likewise.
776
777         * soft-fp/Makefile (distribute): Remove configure.
778
779         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
780
781         * soft-fp/configure: Remove.
782
783         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
784         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
785
786         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
787         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
788
789         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
790         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
791
792         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
793         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
794
795         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
796         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
797
798         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
799         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
800
801         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
802         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
803
804         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
805         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
806
807         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
808         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
809
810         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
811         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
812
813         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
814         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
815
816         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
817         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
818
819         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
820         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
821
822         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
823         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
824
825         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
826         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
827
828         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
829         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
830
831         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
832         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
833
834         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
835         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
836
837         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
838         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
839
840         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
841         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
842
843         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
844         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
845
846         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
847         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
848
849         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
850         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
851
852         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
853         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
854
855         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
856         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
857
858         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
859         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
860
861         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
862         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
863
864         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
865         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
866
867         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
868         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
869
870         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
871         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
872
873         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
874         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
875
876         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
877         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
878
879         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
880         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
881
882         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
883         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
884
885         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
886         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
887
888         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
889         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
890
891         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
892         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
893
894         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
895         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
896
897         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
898         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
899
900         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
901         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
902
903         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
904         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
905
906         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
907         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
908
909         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
910         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
911
912         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
913         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
914
915         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
916         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
917
918         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
919         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
920
921         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
922         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
923
924         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
925         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
926
927         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
928         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
929
930         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
931         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
932
933         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
934         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
935
936         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
937         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
938
939         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
940         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
941
942         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
943         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
944
945         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
946         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
947
948         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
949         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
950
951         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
952         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
953
954         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
955         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
956
957         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
958         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
959
960         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
961         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
962
963         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
964         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
965
966         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
967         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
968
969         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
970         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
971
972         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
973         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
974
975         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
976         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
977
978         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
979         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
980
981         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
982         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
983
984         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
985         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
986
987         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
988         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
989
990         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
991         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
992
993         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
994         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
995
996         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
997         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
998
999         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1000         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1001
1002         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1003         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1004
1005         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1006         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1007
1008         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1009         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1010
1011         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1012         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1013
1014         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1015         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1016
1017         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1018         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1019
1020         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1021         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1022
1023         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1024         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1025
1026         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1027         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1028
1029         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1030         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1031
1032         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1033         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1034
1035         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1036         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1037
1038         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1039         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1040
1041         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1042         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1043
1044         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1045         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1046
1047         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1048         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1049
1050         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1051         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1052
1053         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1054         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1055
1056         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1057         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1058
1059         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1060         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1061
1062         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1063         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1064
1065         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1066         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1067
1068         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1069         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1070
1071         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1072         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1073
1074         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1075         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1076
1077         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1078         change symbol version.
1079         * libio/oldiofgetpos64.c: Likewise.
1080         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1081
1082         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1083         typo.
1084         Reported by dyky@kondara.org, closes PR libc/1886.
1085
1086         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1087         libc/1880.
1088
1089 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1090
1091         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1092         script when ^C is hit.
1093
1094         * locale/programs/localedef.c (construct_output_path): Correct
1095         computation of endp after asprintf.
1096         * locale/programs/locfile.c (write_locale_data): Don't add extra
1097         slash in filename.
1098
1099 2000-09-05  Andreas Jaeger  <aj@suse.de>
1100
1101         * scripts/config.guess: New upstream version.
1102         * scripts/config.sub: Likewise.
1103         * manual/texinfo.tex: Likewise.
1104
1105 2000-09-04  Andreas Schwab  <schwab@suse.de>
1106
1107         * elf/Makefile (all-dl-routines): New variable.
1108         (elide-routines.os): Use it instead of $(dl-routines).
1109         (all-rtld-routines): New variable.
1110         (extra-objs): Use it instead of $(rtld-routines).
1111         ($(objpfx)dl-allobjs.os): Likewise.
1112         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1113         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1114         and dl-routines.
1115
1116 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1117
1118         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1119         Set fname to NULL if the module wasn't found.
1120
1121 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1122
1123         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1124         true if trans->name already ends in ".so".
1125
1126 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1127
1128         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1129         void.
1130         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1131         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1132         (__gconv_release_shlib): Change return type to void.
1133         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1134         step->__counter here.
1135         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1136         if the reference is zero.
1137         (release_step): New function.
1138         (gen_steps): Always initialize the __counter to 1. Use release_step.
1139         Don't call the destructor on the step whose initializer failed.
1140         (increment_counter): Use release_step. Don't normally run destructors
1141         here.
1142         (__gconv_close_transform): Use release_step.
1143
1144 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1145
1146         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1147         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1148
1149 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1150
1151         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1152         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1153         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1154         to check for incomplete input.
1155         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1156         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1157         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1158         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1159         0x9f9d..0x9fa5.
1160         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1161         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1162         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1163         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1164         upto index 0x0052.
1165
1166 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1167
1168         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1169         solution.
1170
1171 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1172
1173         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1174         are invalid.
1175
1176 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1177
1178         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1179         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1180         U+007E.
1181
1182 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1183
1184         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1185
1186 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1187
1188         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1189
1190 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1191
1192         * iconvdata/tst-tables.sh: New file.
1193         * iconvdata/tst-table.sh: New file.
1194         * iconvdata/tst-table-from.c: New file.
1195         * iconvdata/tst-table-to.c: New file.
1196         * iconvdata/tst-table-charmap.sh: New file.
1197         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1198         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1199         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1200         ISIRI-3342.irreversible, SJIS.irreversible.
1201         (tests): Add dependency on tst-tables.out.
1202         (tst-tables.out, tst-tables-clean): New rules.
1203         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1204         * iconvdata/ISIRI-3342.irreversible: New file.
1205         * iconvdata/EUC-JP.irreversible: New file.
1206         * iconvdata/SJIS.irreversible: New file.
1207
1208 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1209
1210         * manual/locale.texi (General Numeric): Update description of
1211         representation of the grouping information in the locale data.
1212         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1213
1214 2000-09-04  Andreas Jaeger  <aj@suse.de>
1215
1216         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1217         * iconv/iconv_prog.c (options): Fix typo.
1218         Reported by dyky@kondara.org, closes PR libc/1885.
1219
1220 2000-09-04  Andreas Jaeger  <aj@suse.de>
1221
1222         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1223         Reported by Rob Levin <lilo@transvirtual.com>.
1224
1225 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1226
1227         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1228         to the typedefs of __timezone_ptr_t.
1229         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1230
1231 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1232
1233         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1234         the loop.
1235
1236 2000-09-01  H.J. Lu  <hjl@gnu.org>
1237
1238         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1239         to run a binary if it is in $(tests-static).
1240
1241         * Rules (binaries-static): Add $(tests-static).
1242
1243 2000-09-02  Andreas Jaeger  <aj@suse.de>
1244
1245         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1246
1247         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1248         patch.
1249
1250 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * iconvdata/big5hkscs.c: Regenerated from charmap.
1253         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1254         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1255
1256         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1257         statement.  General cleanup.
1258
1259 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1260
1261         * wctype/wcfuncs.c (iswblank): New function.
1262         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1263         * wctype/wcextra.c: Remove file.
1264         * wctype/wcextra_l.c: Remove file.
1265         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1266
1267 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1268
1269         * locale/programs/ld-collate.c (collate_output): Remove redundant
1270         assert call.
1271         * string/strcoll.c: Likewise.
1272         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1273         string/strcoll.c.
1274
1275 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1276
1277         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1278         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1279         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1280         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1281         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1282         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1283         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1284         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1285         _NL_CTYPE_GAP5/6 respectively.
1286
1287         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1288         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1289         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1290         Don't initialize __ctype_names and __ctype_width.
1291         * wctype/cname-lookup.h: Remove file.
1292         * wctype/Makefile (distribute): Remove cname-lookup.h.
1293         * wctype/wchar-lookup.h: Include stdint.h.
1294         * wctype/wctype.c (__wctype): Assume new locale format.
1295         * wctype/wctype_l.c (__wctype_l): Likewise.
1296         * wctype/iswctype.c: Don't include cname-lookup.h.
1297         (__iswctype): Assume new locale format.
1298         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1299         (__iswctype_l): Assume new locale format.
1300         * wctype/wctrans.c: Don't include ctype.h.
1301         (wctrans): Assume new locale format.
1302         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1303         * wctype/towctrans.c: Don't include cname-lookup.h.
1304         (__towctrans): Assume new locale format.
1305         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1306         (__towctrans_l): Assume new locale format.
1307         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1308         localeinfo.h instead.
1309         (__NO_WCTYPE): Remove unused macro.
1310         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1311         declarations.
1312         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1313         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1314         (towlower, towupper): Likewise.
1315         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1316         localeinfo.h instead.
1317         (__NO_WCTYPE): Remove unused macro.
1318         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1319         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1320         __iswxdigit_l): Assume new locale format.
1321         (__towlower_l, __towupper_l): Likewise.
1322         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1323         (__ctype32_b): Remove declaration.
1324         (internal_wcwidth): Assume new locale format.
1325         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1326         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1327         to map32_b, rename width_3level to width.
1328         (ctype_output): Always create new locale format. Don't emit
1329         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1330         (allocate_arrays): Always create new locale format.
1331
1332         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1333         * locale/weightwc.h (findidx): Assume new locale format.
1334         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1335         names.
1336         * string/strxfrm.c (wcsxfrm): Likewise.
1337         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1338         local variable collseq to 'const char *'.
1339         (SUFFIX): Don't use, don't undefine.
1340         * posix/fnmatch.c: Remove SUFFIX definition.
1341         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1342         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1343         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1344         (collate_finish): Always create new locale format. Remove local
1345         variables min_total, act_size.
1346         (collate_output): Always create new locale format. Remove local
1347         variables table_size, names, tablewc. Rename tablewc_3level to
1348         tablewc.
1349
1350 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1351
1352         * locale/programs/ld-collate.c (obstack_int32_grow,
1353         obstack_int32_grow_fast): New inline functions.
1354         (output_weightwc, collate_output): Use them where possible.
1355
1356 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1357
1358         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1359         patch (_mode -> _flags).
1360
1361         * libio/Makefile (headers): Add stdio_ext.h.
1362         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1363         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1364         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1365         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1366         __fsetlocking, and _flushlbf.
1367         * libio/__fbufsize.c: New file.
1368         * libio/__flbf.c: New file.
1369         * libio/__fpending.c: New file.
1370         * libio/__fpurge.c: New file.
1371         * libio/__freadable.c: New file.
1372         * libio/__freading.c: New file.
1373         * libio/__fsetlocking.c: New file.
1374         * libio/__fwritable.c: New file.
1375         * libio/__fwriting.c: New file.
1376         * libio/stdio_ext.h: New file.
1377         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1378         * libio/libio.h (_IO_USER_LOCK): Define.
1379         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1380         test _IO_USER_LOCK flag first.
1381
1382         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1383         malloc fails.
1384
1385 2000-09-01  Andreas Jaeger  <aj@suse.de>
1386
1387         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1388
1389         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1390
1391 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * math/Makefile (tests): Add tst-defintions.
1394         * math/tst-definitions.c: New file.
1395
1396         * stdlib/Makefile (headers): Add bits/wchar.h.
1397         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1398         * sysdeps/generic/bits/wchar.h: New file.
1399         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1400         file to define WCHAR_MIN and WCHAR_MAX.
1401         Change UINT*8_MAX and UIN*16_MAX value to type int.
1402         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1403         file to define WCHAR_MIN and WCHAR_MAX.
1404         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1405         int values.
1406         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1407         * sysdeps/generic/bits/mathdef.h: Likewise.
1408         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1409         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1410         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1411         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1412         * locale/locale.h (struct lconv): Add __ prefix to the new members
1413         if not C99.
1414         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1415         imaxdiv optimizations.
1416         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1417         * sysdeps/wordsize-64/ldiv.c: Likewise.
1418         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1419         const fenv_t*.
1420         * sysdeps/generic/bits/fenv.h: Likewise.
1421         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1422         * sysdeps/ia64/bits/fenv.h: Likewise.
1423         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1424         * sysdeps/mips/bits/fenv.h: Likewise.
1425         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1426         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1427         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1428
1429         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1430         * inet/ruserpass.c: Likewise.
1431         * catgets/open_catalog.c: Likewise.
1432         * intl/loadmsgcat.c: Likewise.
1433         * io/getdirname.c: Likewise.
1434         * locale/loadlocale.c: Likewise.
1435         * misc/getusershell.c: Likewise.
1436         * stdlib/canonicalize.c: Likewise.
1437         * sysdeps/posix/euidaccess.c: Likewise.
1438         * sysdeps/posix/isfdtype.c: Likewise.
1439         * sysdeps/posix/posix_fallocate.c: Likewise.
1440         * sysdeps/posix/tempname.c: Likewise.
1441         * sysdeps/unix/grantpt.c: Likewise.
1442         * sysdeps/unix/opendir.c: Likewise.
1443         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1444         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1445         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1446         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1447         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1448         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1449         * sysvipc/ftok.c: Likewise.
1450         * time/getdate.c: Likewise.
1451
1452         * time/getdate.c: Add extra access test.
1453
1454 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1455
1456         * version.h (VERSION): Bump to 2.1.93.
1457
1458         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1459         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1460
1461         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1462         Make this a new rule depending on tst-gettext.out and run mtrace.
1463         * intl/tst-gettext.c: Call mtrace.
1464         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1465
1466         * elf/dl-reloc.c: Add a few more __builtin_expect.
1467
1468         * configure.in: Remove --with-gettext option.
1469
1470         * intl/dcigettext.c (free_mem): Correct freeing of
1471         _nl_domain_bindings list.
1472
1473         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1474         allocated memory.
1475
1476         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1477
1478         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1479
1480         * stdio-common/itoa-digits.c: Move upper digits to...
1481         * stdio-common/itoa-udigits.c: ...here.  New file.
1482         * stdio-common/Makefile (routines): Add itoa-udigits.
1483
1484         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1485         relocate ld.so don't add supprt for relocations which should not
1486         appear in ld.so.
1487
1488         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1489         __secure_getenv.  Instead test __libc_enable_secure once.
1490
1491         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1492
1493 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1494
1495         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1496         whether the new record should be freed if it's a duplicate.
1497         (add_module): Adjust insert_module call.
1498         (__gconv_read_conf): Likewise.
1499         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1500         mtrace-tst-loading.
1501         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1502
1503         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1504         _dl_all_init_dirs.
1505         * include/link.h (struct r_search_path_struct): New.
1506         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1507         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1508         _dl_all_init_dirs.
1509         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1510         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1511         added at startup time.
1512         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1513         contains element to remember fact that we can free memory.
1514         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1515         (_dl_init_all_dirs): New variable.
1516         (fillin_rpath): Save one malloc call.
1517         (decompose_rpath): Change interface.  New first parameter points to
1518         r_search_path_struct.
1519         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1520         deletable.  Set _dl_init_all_paths value.
1521         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1522         parameter replaced with r_search_path_struct *.  Information about
1523         freeing now contained in r_search_path_struct.
1524         (_dl_map_object): Adjust for above changes.
1525
1526         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1527
1528         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1529         when adding new entries.
1530
1531         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1532         since the object being loaded can be unloaded.
1533
1534         * iconvdata/Makefile (tests): Add tst-loading.
1535         * iconvdata/tst-loading.c: New file.
1536
1537 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1538
1539         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1540         When comparing a char with an int, always cast the char to
1541         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1542         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1543
1544 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1545
1546         * time/strftime.c (my_strftime): Add compatibility code for use
1547         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1548
1549         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1550         return 0 for success but always < 0 on failure.
1551
1552         * nss/getXXbyYY_r.c: Define result to *result before including
1553         digits_dots.c.
1554
1555 2000-08-30  Andreas Jaeger  <aj@suse.de>
1556
1557         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1558
1559 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1560
1561         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1562         official file.
1563         * iconvdata/TESTS: Add BIG5HKSCS entry.
1564         * iconvdata/testdata/BIG5HKSCS: New file.
1565         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1566
1567         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1568         always true.
1569
1570         * libio/iogetline.c: Set mode before the loop in case n==0.
1571         * libio/iogetwline.c: Likewise.
1572
1573 2000-08-29  H.J. Lu  <hjl@gnu.org>
1574
1575         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1576         of fp->_mode < 0.
1577         (_IO_new_file_overflow): Likewise.
1578         * libio/genops.c (_IO_flush_all): Likewise.
1579         * libio/ioftell.c (_IO_ftell): Likewise.
1580
1581 2000-08-29  Akira Higuchi  <a@kondara.org>
1582
1583         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1584         and __end_fct fields of struct __gconv_step.
1585         * iconv/Makefile (tests): Add iconv-bug2.
1586         * iconv/iconv-bug2.c: New file.
1587
1588         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1589         instead of 'inptr - inend' to ksc5601_to_ucs4.
1590
1591         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1592
1593         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1594         character or shift sequence is found at the end of the input
1595         string, return__GCONV_INCOMPLETE_INPUT instead of
1596         __GCONV_EMPTY_INPUT.
1597         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1598         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1599
1600         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1601         __GCONV_ILLEGAL_INPUT for 8bit characters.
1602
1603 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1604
1605         * signal/signal.h (sigpause): Move __THROW before __asm__.
1606
1607         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1608         names don't match don't return.
1609         Patch by Olaf Kirch <okir@flash.lst.de>.
1610
1611 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1612
1613         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1614
1615 2000-08-27  H.J. Lu  <hjl@gnu.org>
1616
1617         * posix/Makefile (otherlibs): Add for building with static-nss
1618         for "make check".
1619
1620 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1621
1622         * libio/stdio.h: Add fmemopen prototype.
1623
1624 2000-08-25  Andreas Jaeger  <aj@suse.de>
1625
1626         * libio/Makefile (routines): Add fmemopen.
1627         (tests): Add test-fmemopen.
1628         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1629         * libio/test-fmemopen.c: New file.
1630         * libio/fmemopen.c: New file.
1631         Patches by Hanno Mueller <kontakt@hanno.de>.
1632
1633 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1634
1635         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1636         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1637
1638         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1639         to avoid crashing statically linked applications.
1640
1641 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1642
1643         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1644         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1645
1646         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1647         If the result is fits in the buffer, copy only as many bytes as needed.
1648
1649         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1650         buffer after copying numbuf into it.
1651         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1652
1653 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1654
1655         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1656         the result.  When string_len < len, don't clear the rest of the buffer.
1657
1658 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1659
1660         Support for new LC_COLLATE format.
1661         * locale/coll-lookup.h: New file.
1662         * locale/weightwc.h (findidx): When size == 0, call
1663         collidx_table_lookup.
1664         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1665         * wcsmbs/wcsxfrm.c: Likewise.
1666         * posix/fnmatch.c: Likewise.
1667         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1668         collseq_table_lookup.
1669         * locale/programs/3level.h: New file.
1670         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1671         by including "3level.h".
1672         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1673         collseq_table): New types, defined by including "3level.h".
1674         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1675         (encoding_mask, encoding_byte): Remove.
1676         (utf8_encode): Use simple shifts instead.
1677         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1678         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1679         (collate_output): New local variable tablewc_3level. When
1680         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1681         tablewc_3level instead of tablewc. Change format of TABLEWC and
1682         COLLSEQWC entries written to the file.
1683         * locale/C-collate.c (collseqwc): Change format.
1684         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1685         of COLLSEQWC.
1686         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1687
1688 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1689
1690         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1691         (locale_ctype_t): New charnames_idx field.
1692         (ctype_startup): Initialize charnames_idx field.
1693         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1694
1695 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1696
1697         * locale/C-ctype.c: Switch to new locale format.
1698         (_nl_C_LC_CTYPE_names): Remove array.
1699         (STRUCT_CTYPE_CLASS): New macro.
1700         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1701         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1702         New three-level tables.
1703         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1704         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1705         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1706         12 class tables and 2 map tables at the end.
1707         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1708         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1709         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1710         New declarations.
1711         (b): Remove trailing semicolon.
1712         (__ctype_names, __ctype_width): Don't initialize.
1713         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1714
1715 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1716
1717         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1718         is guaranteed to be allocated with the same malloc() and may be
1719         passed to free().
1720         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1721         been set to empty by an earlier open_path call, don't pass it again.
1722
1723 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1724
1725         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1726         we are not optimizing.
1727
1728         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1729         inclusion.
1730
1731         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1732         really match EOF.
1733         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1734
1735 2000-08-28  Andreas Jaeger  <aj@suse.de>
1736
1737         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1738
1739 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1740
1741         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1742         getpeername.  Use ISO C style function definition.
1743         (getpeername): Provide weak alias.
1744         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1745         setrlimit.  Use ISO C style function definition.
1746         (setrlimit): Provide weak alias.
1747
1748 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1749
1750         * shlib-versions: Add a rule for S/390 to the libm version list.
1751         * sysdeps/s390/Versions: New file.
1752         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1753         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1754         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1755         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1756         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1757         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1758         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1759         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1760         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1761         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1762         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1763         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1764         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1765         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1766         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1767         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1768         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1769         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1770
1771 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1772
1773         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1774         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1775
1776         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1777         * elf/dl-close.c (_dl_close): Print debug message if object is not
1778         unloaded.
1779         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1780         returning to caller.
1781
1782         * po/zh.po: Renamed to...
1783         * po/zh_TW.po: ...this.
1784
1785 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1786
1787         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1788
1789         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1790         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1791         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1792         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1793
1794 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1795
1796         * locale/programs/ld-collate.c (insert_weights): Also update
1797         backpointer of next element.
1798         (collate_read): Allow definition of new collation symbols in stage 2.
1799         Symbol after reorder-after can be UCS4 value.
1800         Allow reordering of collation symbols and elements.
1801         Do not only move reorder entry in new position.  Instead call
1802         insert_weight to do this and read the weights.
1803
1804         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1805
1806         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1807         to determine invalid locale name.
1808         * locale/findlocale.c (_nl_find_locale): Likewise.
1809
1810         * posix/annexc.c: Correct test for unavailable feature.
1811
1812         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1813         __inline.
1814
1815 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1816
1817         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1818         syscall.
1819
1820         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1821         (sysdep_routines): Add oldgetrlimit64.
1822
1823         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1824         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1825         (tests): Add unload, reldep, reldep2, and reldep3.
1826         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1827         and reldepmod4.
1828         Add rules to build and run unload, reldep, reldep2, and reldep3.
1829         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1830         Don't create relocation dependency if it is nonzero.
1831         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1832         can never happen here.
1833         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1834         Don't create relocation dependency if it is nonzero.
1835         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1836         stuff.  This can never happen here.
1837         * sysdeps/generic/ldsodefs.h: Change prototypes.
1838         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1839         _dl_lookup_up and _dl_lookup_versioned_symbol.
1840         (RESOLV): Likewise.
1841         * elf/dl-runtime.c (fixup): Likewise.
1842         (profile_fixup): Likewise.
1843         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1844         _dl_lookup_symbol.
1845         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1846         * elf/rtld.c (dl_main): Likewise.
1847         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1848         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1849         and pass down the caller map.
1850         (_dl_vsym): Likewise.
1851         * elf/reldep.c: New file.
1852         * elf/reldep2.c: New file.
1853         * elf/reldep3.c: New file.
1854         * elf/reldepmod1.c: New file.
1855         * elf/reldepmod2.c: New file.
1856         * elf/reldepmod3.c: New file.
1857         * elf/reldepmod4.c: New file.
1858         * elf/unload.c: New file.
1859         * elf/unloadmod.c: New file.
1860
1861         * elf/do-lookup.h: Remove unused undef_name parameter.
1862         * elf/dl-lookup.c: Adjust callers.
1863
1864 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1865
1866         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1867         irreversible in recursive call of conversion function to signal that
1868         no error handling is wanted.
1869         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1870         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1871         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1872         recursive error handling call, otherwise to &lirreversible.  Use it
1873         for calls to conversion functions.
1874         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1875         transliterating.
1876         (ucs4_internal_loop_unaligned): Likewise.
1877         (ucs4le_internal_loop): Likewise.
1878         (ucs4le_internal_loop_unaligned): Likewise.
1879
1880 2000-08-25  Greg McGary  <greg@mcgary.org>
1881
1882         * sysdeps/i386/memchr.S: Check high bound against chars
1883         actually scanned.
1884         * sysdeps/i386/memcmp.S: Likewise.
1885         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1886         account for pointers that lie one beyond end-of-buffer.
1887
1888 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1889
1890         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1891         * elf/nodelete.c (fini_ran): New global variable.
1892         (do_test): Before every dlclose call clear fini_ran and test
1893         afterwards that it is not set by the destructors.
1894         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1895         * elf/nodelmod2.c: Likewise.
1896         * elf/nodelmod4.c: Likewise.
1897
1898 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1899
1900         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1901         getrlimit to the list.
1902
1903 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1904
1905         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1906         long double format so use ldbl-96 instead of ldbl-128.
1907
1908 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1909
1910         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1911         even if bits 10 a 11 are non-zero.
1912         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1913
1914         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1915         included before building gnu/lib-names.h
1916         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1917
1918         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1919         marked DF_1_NODELETE.
1920
1921         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1922         since we call sigaction in the child.
1923
1924 2000-08-25  Andreas Jaeger  <aj@suse.de>
1925
1926         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1927         gconv-modules.
1928
1929 2000-08-25  Andreas Jaeger  <aj@suse.de>
1930
1931         * manual/arith.texi (Control Functions): Clarify possible
1932         arguments.  Closes PR libc/1856.
1933
1934 2000-08-24  H.J. Lu  <hjl@gnu.org>
1935
1936         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1937         * malloc/Makefile (tests): Likewise.
1938
1939 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1940
1941         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1942
1943 2000-08-24  Andreas Jaeger  <aj@suse.de>
1944
1945         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1946         only if LIBGD is available.
1947
1948 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1949
1950         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1951         problems with now restrict parameter types.
1952         (convaddr4to6): Likewise.
1953
1954 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1955
1956         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1957         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1958         * sysdeps/s390/fpu/fegetexcept.c: New file.
1959         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1960         FPC_VALID_MASK.
1961
1962 2000-08-24  Andreas Jaeger  <aj@suse.de>
1963
1964         * malloc/Makefile (extra-objs): Add memusagestat.o.
1965         (generated): Added memusage and memusagestat for make clean.
1966
1967         * libio/tst_putwc.c (do_test): Delete temporary file.
1968         Move inclusion of test-skeleton to front to have prototype for
1969         add_temp_file.
1970
1971         * posix/Makefile (generated): Add wordexp-tst.out.
1972
1973 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1974
1975         * resolv/res_hconf.c (free_mem): Remove not needed if.
1976
1977         * time/tzset.c (free_mem): New function.
1978         * string/strsignal.c (free_mem): New function.
1979         * inet/inet_ntoa.c (free_mem): New function.
1980         * sunrpc/clnt_perr.c (free_mem): New function.
1981
1982 2000-08-24  Andreas Jaeger  <aj@suse.de>
1983
1984         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1985         * sysdeps/unix/sysv/syscalls.list: Likewise.
1986
1987         * posix/unistd.h: Move internal prototypes from here ...
1988         * include/unistd.h: ... to here.
1989
1990         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1991
1992 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1993
1994         * grp/initgroups.c (initgroups): Deallocate groups array.
1995         Reported by jani.raiha@sonera.com [PR libc/1868].
1996
1997         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1998         * sysdeps/alpha/Dist: Likewise.
1999
2000 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2001
2002         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2003         destructor).  Reported by Solar Designer <solar@false.com>.
2004
2005         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2006         avoid adding double slashes.
2007
2008 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2009
2010         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2011         out of the __REDIRECT macro.
2012
2013 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2014
2015         * stdio-common/vfscanf.c: Add %F format support.
2016
2017         * locale/programs/ld-ctype.c (ctype_output): Make sure
2018         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2019         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2020         (ctype_read): Enable returning of wide character strings for reading
2021         transliteration information.
2022
2023 2000-08-23  Andreas Jaeger  <aj@suse.de>
2024
2025         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2026         Use static __inline instead of _EXTERN_INLINE.
2027
2028         * misc/sys/select.h: Move prototypes of __select from here ...
2029         * include/sys/select.h: ... to here.
2030
2031         * socket/sys/socket.h: Move prototypes of __send and __connect
2032         from here....
2033         * include/sys/socket.h: ... to here.
2034
2035         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2036         lr_error.
2037
2038 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2039
2040         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2041         __setrlimit as strong name. Takes only 2 arguments.
2042
2043         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2044         takes only 2 arguments.
2045
2046 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2047
2048         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2049
2050         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2051
2052 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2053
2054         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2055         default_missing character being specified, pick the first
2056         representable.
2057
2058 2000-08-23  Andreas Jaeger  <aj@suse.de>
2059
2060         * include/wchar.h: Add some pure attributes.
2061
2062         * time/time.h: Add const attribute for dysize.
2063
2064         * include/stdlib.h: Add malloc attribute to __posix memalign.
2065
2066         * stdlib/stdlib.h: Add some pure and malloc attributes.
2067         * wcsmbs/wchar.h: Likewise.
2068
2069         * dirent/dirent.h: Add some pure attributes.
2070         * include/dirent.h: Likewise.
2071
2072 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2073
2074         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2075         on 64bit arches.
2076
2077 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2078
2079         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2080         missing buffer size checks.
2081
2082 2000-08-23  Andreas Jaeger  <aj@suse.de>
2083
2084         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2085         strong name.
2086         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2087
2088         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2089         otherwise __LINUX_KERNEL_VERSION might not be defined.
2090         (MIN): Define if not already defined.
2091
2092 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2093
2094         * stdio-common/vfprintf.c: Handle %F format.
2095         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2096         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2097
2098         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2099
2100         * po/zh.po: New file.
2101
2102         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2103         enough room in target buffer.
2104         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2105         * iconvdata/bug-iconv1.c: New file.
2106         * iconvdata/Makefile (tests): Add bug-iconv1.
2107
2108         * locale/iso-4217.def: Update entry for Nicaragua.
2109
2110 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2111
2112         * hurd/hurdsig.c: Rearrange headers a bit.
2113         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2114         when cthreads is being used.
2115
2116 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2117
2118         * elf/Makefile (distribute): Add dl-osinfo.h.
2119         * sysdeps/generic/dl-osinfo.h: New file.
2120         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2121         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2122         if defined.
2123         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2124         only for !SHARED case.  Get the code from dl-osinfo.h.
2125
2126         * stdlib/random_r.c: Cleanups.
2127         * stdlib/tst-random.c: New file.
2128         * stdlib/Makefile (tests): Add tst-random.
2129         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2130
2131 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2132
2133         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2134         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2135         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2136         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2137
2138 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2139
2140         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2141         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2142         (__syscall__sysctl): Add.
2143
2144 2000-08-21  Andreas Jaeger  <aj@suse.de>
2145
2146         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2147         libc/1864).
2148         * stdlib/tst-strtoll.c: Likewise.
2149
2150 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2153         correctly.
2154         (__initstate_r): Set errno on error.
2155         (__random_r): Likewise.
2156         (__setstate_r): Correct offset when computing
2157         new rptr and fptr.  Test for arg_state being NULL.
2158         Reported by Michael Fischer <fischer@cs.yale.edu>.
2159
2160         * posix/regex.h: Add macro definitions to allow compiling outside
2161         glibc.
2162
2163         * sysdeps/i370/Implies: Removed.
2164         * sysdeps/mvs/Implies: Removed.
2165
2166         * catgets/catgets.c (catopen): Filter out env_var values with / if
2167         necessary.
2168
2169         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2170         locale name after all getenvs.
2171
2172         * configure.in: Allow sed versions like 3.02.8.
2173         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2174
2175 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2176
2177         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2178
2179 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2180
2181         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2182         of gethostbyname2_r call.
2183
2184         * intl/locale.alias: Add aliases for Korean.
2185
2186 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2187
2188         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2189         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2190         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2191         * sysdeps/s390/fpu/fegetenv.c: New file.
2192         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2193         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2194         * sysdeps/s390/fpu/fenv_libc.h: New file.
2195         * sysdeps/s390/fpu/fesetenv.c: New file.
2196         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2197         * sysdeps/s390/fpu/feupdateenv.c: New file.
2198         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2199         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2200         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2201         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2202         * sysdeps/s390/fpu/ftestexcept.c: New file.
2203         * sysdeps/s390/fpu/libm-test-ulps: New file.
2204         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2205         * sysdeps/s390/initfini.c: New file.
2206         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2207         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2208         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2209         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2210         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2211         sys/procfs.h as proposed by Mark Kettenis.
2212         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2213
2214 2000-08-21  Andreas Jaeger  <aj@suse.de>
2215
2216         * include/poll.h: Include include/sys/poll.h to get __poll
2217         declaration.
2218
2219         * io/sys/poll.h: Move __poll declaration from here...
2220         * include/sys/poll.h: ...to here.
2221
2222         * include/sys/socket.h (__getpeername): Add declaration.
2223
2224         * include/wchar.h (__vswprintf): Add declaration.
2225
2226         * include/stdio.h (__flockfile): Add declaration.
2227         (__funlockfile): Likewise.
2228
2229 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2230
2231         * misc/sys/cdefs.h: Define __restrict_arr.
2232         * include/sys/time.h: Add restrict where required by AGd4.
2233         * inet/arpa/inet.h: Likewise.
2234         * io/sys/stat.h: Likewise.
2235         * io/sys/statvfs.h: Likewise.
2236         * misc/search.h: Likewise.
2237         * misc/sys/select.h: Likewise.
2238         * posix/glob.h: Likewise.
2239         * posix/regex.h: Likewise.
2240         * posix/spawn.h: Likewise.
2241         * posix/unistd.h: Likewise.
2242         * rt/aio.h: Likewise.
2243         * signal/signal.h: Likewise.
2244         * socket/sys/socket.h: Likewise.
2245         * stdlib/ucontext.h: Likewise.
2246         * streams/stropts.h: Likewise.
2247         * string/string.h: Likewise.
2248         * time/time.h: Likewise.
2249         * time/sys/time.h: Likewise.
2250
2251         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2252         and posix_spawnattr_setscheparam.
2253
2254         * libio/stdio.h: Make cuserid prototype again available for all
2255         XPG versions.
2256
2257         * argp/argp-help.c: Unify use of function aliases to make more compact
2258         PLT.
2259         * include/libintl.h: Likewise.
2260         * inet/rcmd.c: Likewise.
2261         * intl/dcigettext.c: Likewise.
2262         * libio/iofputws.c: Likewise.
2263         * libio/iofputws_u.c: Likewise.
2264         * libio/iogetwline.c: Likewise.
2265         * libio/swprintf.c: Likewise.
2266         * malloc/malloc.c: Likewise.
2267         * nss/digits_dots.c: Likewise.
2268         * posix/fnmatch.c: Likewise.
2269         * posix/spawn_faction_addclose.c: Likewise.
2270         * posix/spawn_faction_adddup2.c: Likewise.
2271         * posix/spawn_faction_addopen.c: Likewise.
2272         * posix/spawni.c: Likewise.
2273         * posix/wordexp.c: Likewise.
2274         * posix/spawni.c: Likewise.
2275         * resolv/res_hconf.c: Likewise.
2276         * resolv/res_init.c: Likewise.
2277         * shadow/lckpwdf.c: Likewise.
2278         * signal/sighold.c: Likewise.
2279         * signal/sigrelse.c: Likewise.
2280         * stdio-common/printf-parse.h: Likewise.
2281         * stdio-common/printf-prs.c: Likewise.
2282         * stdio-common/printf_fp.c: Likewise.
2283         * stdio-common/vfprintf.c: Likewise.
2284         * stdio-common/vfscanf.c: Likewise.
2285         * stdlib/rpmatch.c: Likewise.
2286         * sunrpc/create_xid.c: Likewise.
2287         * sunrpc/key_call.c: Likewise.
2288         * sysdeps/generic/setrlimit64.c: Likewise.
2289         * sysdeps/generic/utmp_file.c: Likewise.
2290         * sysdeps/generic/vlimit.c: Likewise.
2291         * sysdeps/posix/posix_fallocate.c: Likewise.
2292         * sysdeps/posix/posix_fallocate64.c: Likewise.
2293         * sysdeps/posix/sigpause.c: Likewise.
2294         * sysdeps/posix/sigset.c: Likewise.
2295         * sysdeps/unix/grantpt.c: Likewise.
2296         * sysdeps/unix/bsd/ualarm.c: Likewise.
2297         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2298         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2299         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2300         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2301         * time/strftime.c: Likewise.
2302         * wcsmbs/wcscoll.c: Likewise.
2303         * wcsmbs/wcsxfrm.c: Likewise.
2304
2305         * time/tst-getdate.c (main): Make error messages more human readable.
2306
2307         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2308         postinc/predec instruction.
2309         (_FPU_SETCW): Likewise.
2310         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2311
2312 2000-08-20  Andreas Jaeger  <aj@suse.de>
2313
2314         * time/tst-getdate.c (main): Increase error in case of wrong
2315         conversion.
2316         Fix typo in test case.
2317
2318 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2319
2320         * ctype/ctype.h (isblank): Make available if ISO C99.
2321         * wctype/wctype.h (iswblank): Make available if ISO C99.
2322         * math/math.h (signgam): Don't make available if ISO C99.
2323         * math/tgmath.h (tgamma): Renamed from gamma.
2324         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2325
2326         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2327         Pretty printing.
2328         * intl/plural.y (new_exp): Take number of optional parameters in
2329         second parameter.  Test for correct number of parameters and free
2330         correctly in case of failure.  Adjust all callers.
2331         (yylex): Allow ';' as terminator character.
2332
2333 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2334
2335         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2336         walt_digits.
2337
2338         * locale/findlocale.c (free_mem): Also free here->filename.
2339
2340         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2341
2342         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2343         first test.
2344         (feexcp_nomask_test): Correct printf args.
2345         (feexcp_mask_test): Likewise.
2346
2347 2000-08-19  Andreas Jaeger  <aj@suse.de>
2348
2349         * inet/tst-gethnm.c: Include string.h to provide prototype for
2350         strcmp.
2351
2352         * malloc/mtrace.pl (usage): Inform about --help.
2353
2354 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2355
2356         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2357         size HEAP_MAX_SIZE.
2358
2359 2000-08-19  Andreas Jaeger  <aj@suse.de>
2360
2361         * shlib-versions: Remove libnss_db, libdb and libdb1.
2362
2363 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2364
2365         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2366         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2367         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2368         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2369         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2370         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2371         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2372         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2373         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2374         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2375         getdents.
2376         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2377         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2378
2379 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2380
2381         * include/glob.h (__glob64): Add prototype.
2382         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2383         define glob and glob_in_dir.
2384         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2385         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2386         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2387         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2388         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2389         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2390         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2391         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2392
2393 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2394
2395         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2396
2397 2000-08-17  Andreas Jaeger  <aj@suse.de>
2398
2399         * math/test-fenv.c (fe_single_test): New function.
2400         (fe_env_tests): Use fe_single_test.
2401         (feenable_test): New tests for feenable/fedisable and
2402         fegetexcpetions.
2403         (feexcp_mask_test): New function.
2404         (feexcp_nomask_test): New function.
2405
2406 2000-08-19  Richard Henderson  <rth@cygnus.com>
2407
2408         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2409         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2410         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2411         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2412         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2413         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2414         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2415         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2416         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2417         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2418         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2419         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2420         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2421         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2422         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2423         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2424         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2425
2426 2000-08-19  Andreas Jaeger  <aj@suse.de>
2427
2428         * elf/constload1.c: Include <stdio.h> for puts prototype.
2429
2430 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2431
2432         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2433         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2434         a dynamically loaded object remove old l_initfini list.
2435         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2436         remove some dynamically allocated memory blocks in the dynamic
2437         loading data structures.
2438         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2439         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2440         Instead call _dl_check_map_versions only for the dependencies.
2441         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2442         information of initial objects as not free-able.
2443         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2444         element.
2445
2446         * elf/filter.c: Call mtrace.
2447         * elf/restest1.c: Likewise.  Close the objects.
2448         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2449         debug information.
2450
2451         * elf/constload1.c: Add comment explaining not freed memory.
2452
2453 2000-08-18  Andreas Jaeger  <aj@suse.de>
2454
2455         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2456         alignment for structs stat and stat64.
2457         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2458
2459 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2462         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2463
2464         * nss/Versions: Remove libnss_db information.
2465
2466 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2467
2468         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2469         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2470         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2471         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2472
2473         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2474         to match Solaris.
2475
2476 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2477
2478         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2479         (_FPU_SETCW): Likewise.
2480         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2481
2482         * stdio-common/printf_fp.c: Fix chars_needed computation.
2483         Patch by Greg McGary <greg@mcgary.org>.
2484
2485 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2486
2487         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2488         _dl_loaded are NULL.
2489
2490 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2491
2492         * manual/arith.texi (feholdexcept): Returns 0 on success.
2493
2494 2000-08-17  Andreas Jaeger  <aj@suse.de>
2495
2496         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2497         (ifr_newname): New.
2498         Reported by Andi Kleen <ak@suse.de>.
2499
2500 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2501
2502         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2503         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2504         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2505
2506 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2507
2508         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2509         of buf->st_ino and kbuf->st_ino, not __st_ino.
2510         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2511         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2512         directive so that only linux/getdents.c is used, not some
2513         architecture specific one.
2514
2515 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2516
2517         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2518         enabled, not disabled exceptions.
2519         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2520         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2521
2522 2000-08-17  Greg McGary  <greg@mcgary.org>
2523
2524         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2525         from test program name when constructing suffix for $(LDLIBS-*).
2526         (bounded-thread-library): New variable.
2527         * crypt/Makefile
2528         [build-shared, build-static] (libcrypt-dep): Remove variable.
2529         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2530         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2531         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2532         (librt-tests): Add variable.  (tests): Use it.
2533         [build-shared, build-static]
2534         ($(addprefix $(objpfx),$(tests)),
2535         $(addprefix $(objpfx),$(librt-tests))):
2536         Consolidate individual dependencies.
2537         [build-bounded]
2538         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2539         Add dependencies.
2540         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2541         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2542         * misc/Makefile
2543         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2544         * rt/Makefile
2545         [build-shared, build-static]
2546         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2547         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2548
2549 2000-08-17  Greg McGary  <greg@mcgary.org>
2550
2551         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2552         * sysdeps/unix/make-syscalls.sh: Likewise.
2553         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2554         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2555         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2556         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2557         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2558
2559 2000-08-17  Greg McGary  <greg@mcgary.org>
2560
2561         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2562         Wrap extern symbols in BP_SYM ().
2563         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2564         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2565         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2566         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2567         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2568         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2569         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2570         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2571         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2572         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2573
2574 2000-08-16  Andreas Schwab  <schwab@suse.de>
2575
2576         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2577         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2578         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2579
2580 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2581
2582         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2583         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2584         * elf/dl-support.c: Define _nl_nloaded.
2585         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2586         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2587         object to global list.
2588         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2589         from _dl_loaded list.
2590         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2591         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2592         number here.
2593
2594         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2595         unmask, exceptions.
2596         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2597         exceptions.
2598         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2599
2600 2000-08-16  Andreas Jaeger  <aj@suse.de>
2601
2602         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2603
2604 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2605
2606         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2607
2608 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2609
2610         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2611         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2612         (sysdep_routines): Add oldgetrlimit64.
2613         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2614         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2615
2616         * include/link.h: Undo last patches.  Hurd now has stat64.
2617         * elf/Makefile: Likewise.
2618         * elf/dl-load.c: Likewise.
2619         * elf/dl-misc.c: Likewise.
2620         * elf/dl-profile.c: Likewise.
2621         * sysdeps/generic/sysd-link.h: Removed.
2622         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2623
2624         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2625         thread event callback function.
2626         (__aio_notify_only): Use function above.
2627         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2628
2629 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2630
2631         * sysdeps/mach/hurd/lseek64.c: New file.
2632
2633 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2634
2635         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2636         Remove typedefs.
2637         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2638         typedefs.
2639         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2640         typedefs.
2641         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2642
2643 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2644
2645         * sysdeps/mach/hurd/xstatconv.c: New file.
2646         * sysdeps/mach/hurd/fxstat64.c: New file.
2647         * sysdeps/mach/hurd/lxstat64.c: New file.
2648         * sysdeps/mach/hurd/xstat64.c: New file.
2649         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2650
2651 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2652
2653         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2654         Initialize, needed for change in common symbol handling in newer
2655         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2656
2657 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2658
2659         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2660         * elf/constload2.c: Add destructor to unload constload3.
2661
2662         * include/link.h: Include sysd-link.h.
2663         * sysdeps/generic/sysd-link.h: New file.
2664         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2665         * elf/Makefile (distribute): Add sysd-link.h.
2666         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2667         types and functions directly.
2668         * elf/dl-misc.c: Likewise.
2669         * elf/dl-profile.c: Likewise.
2670
2671         * elf/loadfail.c (main): Close all successfully loaded objects.
2672
2673         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2674         free wd.
2675         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2676         there is already one.
2677
2678         * elf/dl-close.c: Pretty print.
2679
2680 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2681
2682         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2683         global (with file scope).  Add __libc_subfreeres function to free the
2684         string.
2685         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2686         in ttyname function.
2687
2688         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2689
2690         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2691
2692         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2693         mapping them to /x5c and /x7e respectively.
2694
2695         * locale/programs/ld-ctype.c: Add support for more definitions after
2696         copy statement.
2697
2698 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2699
2700         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2701         * sysdeps/unix/sysv/linux/kernel-features.h
2702         (__ASSUME_GETDENTS64_SYSCALL): Define.
2703         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2704         syscall if available to get d_type fields.
2705         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2706         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2707         __lxstat64): Export at GLIBC_2.2.
2708         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2709         Likewise.
2710         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2711         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2712         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2713         getdirentries64, versionsort64): Remove.
2714         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2715         getdirentries64, versionsort64): Remove.
2716
2717 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2718
2719         * posix/Makefile: Remove rules to generate glob package.
2720
2721         * posix/Makefile (tests): Add tst-regexloc.
2722         (tst-regexloc-ENV): Add LOCPATH.
2723         * posix/tst-regexloc.c: New file.
2724
2725 2000-08-12  Andreas Jaeger  <aj@suse.de>
2726
2727         * include/features.h (__STDC_ISO_10646__): Define.
2728         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2729
2730 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2731
2732         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2733
2734         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2735         for revision 6 and up).
2736
2737         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2738         including <time.h>.
2739         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2740         to get definitions of just these types.
2741
2742         * signal/signal.h: Define thread signal handling functions also for
2743         POSIX95.
2744
2745         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2746         POSIX95.
2747         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2748         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2749         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2750         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2751
2752         * sysvipc/sys/shm.h: Define pid_t for XPG.
2753
2754         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2755         they are not anymore required here.
2756
2757         * wcsmbs/wchar.h: Make the various wide char string and stream
2758         functions available for the respective XPG versions.
2759
2760         * nss/Makefile: Remove rules to build and distribute nss_db.
2761
2762         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2763         * sysdeps/generic/scandir64.c: Likewise.
2764         * sysdeps/generic/versionsort64.c: Likewise.
2765
2766 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2767             Benjamin Koznik  <bkoz@redhat.com>
2768
2769         * libio/fileops.c: Merge with libstdc++-v3.
2770         * libio/genops.c: Likewise.
2771         * libio/iofclose.c: Likewise.
2772         * libio/iofopen.c: Likewise.
2773         * libio/iofwide.c: Likewise.
2774         * libio/libio.h: Likewise.
2775         * libio/libioP.h: Likewise.
2776         * libio/stdfiles.c: Likewise.
2777         * libio/stdio.c: Likewise.
2778         * libio/wfileops.c: Likewise.
2779         * libio/wgenops.c: Likewise.
2780
2781         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2782
2783 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2784
2785         * locale/programs/localedef.c: Implement --prefix option to allow
2786         writing in standard places of alternative install directories.
2787
2788         * posix/regex.c (compile_range): Implement collation sequence
2789         handling for glibc.  Use simple character ordering otherwise and
2790         not strcoll.
2791
2792 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2793
2794         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2795
2796 2000-08-12  Andreas Jaeger  <aj@suse.de>
2797
2798         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2799         __USE_FILE_OFFSET64 correctly for locking.
2800         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2801
2802 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2803
2804         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2805         Define for 2.4.1 on sparc as well.
2806         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2807         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2808         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2809         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2810
2811 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2812
2813         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2814         defined.
2815
2816 2000-08-12  Andreas Jaeger  <aj@suse.de>
2817
2818         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2819         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2820
2821         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2822         mips2 for assembler.
2823
2824         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2825         if fnctl64 is not available for F_*LK*64.
2826
2827         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2828
2829 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2830
2831         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2832         Define for 2.4.1 on x86.
2833         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2834         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2835         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2836
2837         * dirent/dirent.h: Define DT_WHT.
2838
2839         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2840         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2841         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2842         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2843         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2844         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2845
2846 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2847
2848         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2849         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2850         * inet/Makefile (tests): Add tst-gethnm.
2851         * inet/tst-gethnm.c: New file.
2852
2853         * rt/aio_cancel.c: If canceling a specific request which is running
2854         *really* do nothing.
2855         * rt/aio_misc.h: Add `done' to states of a request.
2856         * rt/aio_misc.c: Add several tests for the correct state.
2857         Simplify request table memory handling.
2858
2859 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2860
2861         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2862         * dirent/scandir64.c: Move...
2863         * sysdeps/generic/scandir64.c: ...here.
2864         * dirent/alphasort64.c: Move...
2865         * sysdeps/generic/alphasort64.c: ...here.
2866         * dirent/versionsort64.c: Move...
2867         * sysdeps/generic/versionsort64.c: ...here.
2868         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2869         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2870         Export symbols at GLIBC_2.2.
2871         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2872         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2873         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2874         __versionsort64): Add prototypes.
2875         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2876         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2877         unused prototype.
2878         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2879         and GLIBC_2.2.
2880         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2881         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2882         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2883         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2884         __u_quad_t.
2885         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2886         Adjust for kernel-2.4.0-test6 layout.
2887         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2888         GLIBC_2.1 and GLIBC_2.2.
2889         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2890         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2891         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2892         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2893         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2894         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2895         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2896         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2897         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2898         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2899         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2900         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2901         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2902         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2903         __u_quad_t.
2904         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2905         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2906         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2907         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2908         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2909         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2910         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2911         __u_quad_t.
2912         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2913         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2914         Define.
2915         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2916         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2917         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2918         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2919         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2920         Define.
2921         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2922         alpha/readdir.c.
2923         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2924         alpha/readdir_r.c
2925         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2926         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2927         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2928         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2929         st_ino from __st_ino.
2930         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2931         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2932         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2933         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2934         set __st_ino in addition to st_ino.
2935         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2936         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2937         __old_getdents64 as well.
2938         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2939         getdirentries64 and old_getdirentries64 as well.
2940         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2941         __GETDENTS): Define.
2942         (GETDENTS64): Remove.
2943         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2944         Define.
2945         (GETDENTS64): Remove.
2946         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2947         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2948         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2949         as well.
2950         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2951         __old_readdir64_r as well.
2952         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2953         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2954
2955 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2956
2957         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2958         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2959         define of the kernel.
2960         Add missing __SEG_PSTKOVF definition.
2961         Adjust the padding of struct siginfo and struct sigevent to
2962         match the fact that sigval_t is 64 bit.
2963
2964 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2965
2966         * timezone/zic.c: Update from tzcode2000f.
2967         * timezone/australasia: Update from tzdata2000f.
2968         * timezone/europe: Likewise.
2969         * timezone/southamerica: Likewise.
2970         * timezone/yearistype: Likewise.
2971
2972 2000-08-10  Andreas Jaeger  <aj@suse.de>
2973
2974         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2975         stat with current MIPS kernel.
2976
2977 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2978
2979         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2980         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2981         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2982         Remove the junk that's only relevant in the Linux kernel itself.
2983         Add a warning saying that this file is now obsolete, and include
2984         <sys/procfs.h>.
2985         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2986         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2987         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2988         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2989         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2990         and add the notice that the file is primarily there for GDB.
2991         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2992
2993 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * time/tzfile.c (__tzfile_compute): __tzstring zones
2996         from zone_names.
2997
2998 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2999
3000         * resolv/resolv.h (__res_state): Surround prototype with
3001         __BEGIN_DECLS/__END_DECLS.
3002         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3003
3004 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3005
3006         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3007         Make independant of asm/resource.h from the Linux kernel.
3008
3009 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3010
3011         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3012
3013 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3014
3015         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3016         * locale/Makefile (locale-CPPFLAGS): Likewise.
3017
3018 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3019
3020         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3021         for AMD processors.
3022
3023 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3024
3025         * misc/Versions (mincore): Export at GLIBC_2.2.
3026
3027 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3028
3029         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3030
3031 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3032
3033         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3034         socketpair.  Made socketpair a weak alias.
3035         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3036         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3037         conforming, but fall back on the old protocol if the socket server
3038         doesn't support it.
3039         * include/sys/socket.h: Add prototype for __socketpair.
3040
3041 2000-08-09  Andreas Schwab  <schwab@suse.de>
3042
3043         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3044         long long modifier is seen.
3045
3046         * elf/nodelete.c (do_test): Remove reference to undefined member
3047         sa_restorer.
3048         * rt/tst-aio4.c (do_test): Likewise.
3049
3050         * configure.in: Add `-lm' when checking for libgd.
3051         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3052         linking.
3053
3054 2000-08-09  Andreas Jaeger  <aj@suse.de>
3055
3056         * configure.in: Change required make versions.
3057
3058         * manual/install.texi (Tools for Compilation): Document required
3059         make version.
3060         (Supported Configurations): Update list of supported
3061         configurations.
3062
3063 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3064
3065         * locale/linereader.c (get_string): Don't print an error is a string
3066         contains an unknown character.
3067
3068 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3069
3070         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3071         (new_symbol): Take new parameters with name of the symbol.
3072         Adjust callers.
3073         (handle_ellipsis): Don't only allow character symbols.
3074         (collate_read): Allow string of collating elements contain invalid
3075         characters; ignore entry in this case.
3076         Handle ellipsis of collating symbols before first order_start.
3077         Allow ellipsis in state 0.
3078
3079 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3080
3081         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3082         error message.
3083         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3084
3085 2000-08-04  Greg McGary  <greg@mcgary.org>
3086
3087         * posix/regex.c (SET_HIGH_BOUND): New macro.
3088         (MOVE_BUFFER_POINTER): Use it.
3089         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3090         (EXTEND_BUFFER): Use it.
3091
3092 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3093
3094         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3095         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3096         _wide_data but from _IO_FILE directly.
3097         * libio/iofclose.c: Likewise.
3098         * libio/wfileops.c: Likewise.
3099
3100         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3101         * libio/libioP.h: Change prototypes.
3102
3103 2000-08-03  Greg McGary  <greg@mcgary.org>
3104
3105         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3106         frame pointer early so that we save caller's frame pointer.
3107         * sysdeps/i386/elf/setjmp.S: Likewise.
3108
3109         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3110         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3111
3112         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3113         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3114         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3115
3116 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3117
3118         * iconvdata/big5.c: Updated.
3119         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3120
3121 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * Makeconfig (all-subdirs): Add conform.
3124         * conform/Makefile: Include ../Rules.
3125
3126         * Makefile (README): Add rules to generate here as well.
3127
3128 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3129
3130         * version.h (VERSION): Bump to 2.1.92.
3131
3132         * sysdeps/ia64/Dist: Add _mcount.S.
3133
3134         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3135
3136         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3137
3138         * elf/Makefile (distribute): Add missing modules.
3139
3140         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3141
3142         * posix/regex.c (compile_range): Translate range start and end
3143         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3144
3145         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3146         asm/resource.h.
3147
3148         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3149
3150 2000-08-02  Andreas Jaeger  <aj@suse.de>
3151
3152         * elf/elf.h (EM_S390): Added.
3153         (R_390_*): New relocs for S390.
3154
3155         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3156         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3157         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3158         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3159         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3160         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3161         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3162         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3163         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3164         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3165         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3166         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3167         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3168         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3169         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3170         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3171         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3172         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3173         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3174         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3175         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3176         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3177         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3178         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3179         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3180         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3181         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3182         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3183         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3184         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3185         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3186         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3187         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3188         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3189         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3190         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3191         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3192         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3193         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3194         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3195         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3196         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3197         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3198         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3199         * sysdeps/s390/sysdep.h: New file.
3200         * sysdeps/s390/sys/ucontext.h: New file.
3201         * sysdeps/s390/sub_n.S: New file.
3202         * sysdeps/s390/strncpy.S: New file.
3203         * sysdeps/s390/strcpy.S: New file.
3204         * sysdeps/s390/stackinfo.h: New file.
3205         * sysdeps/s390/setjmp.S: New file.
3206         * sysdeps/s390/s390-mcount.S: New file.
3207         * sysdeps/s390/mul_1.S: New file.
3208         * sysdeps/s390/memusage.h: New file.
3209         * sysdeps/s390/memset.S: New file.
3210         * sysdeps/s390/memcpy.S: New file.
3211         * sysdeps/s390/memchr.S: New file.
3212         * sysdeps/s390/machine-gmon.h: New file.
3213         * sysdeps/s390/ldbl2mpn.c: New file.
3214         * sysdeps/s390/gmp-mparam.h: New file.
3215         * sysdeps/s390/fpu/fpu_control.h: New file.
3216         * sysdeps/s390/fpu/fesetround.c: New file.
3217         * sysdeps/s390/fpu/fegetround.c: New file.
3218         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3219         * sysdeps/s390/fpu/bits/fenv.h: New file.
3220         * sysdeps/s390/ffs.c: New file.
3221         * sysdeps/s390/elf/start.S: New file.
3222         * sysdeps/s390/elf/setjmp.S: New file.
3223         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3224         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3225         * sysdeps/s390/dl-machine.h: New file.
3226         * sysdeps/s390/bzero.S: New file.
3227         * sysdeps/s390/bsd-setjmp.S: New file.
3228         * sysdeps/s390/bsd-_setjmp.S: New file.
3229         * sysdeps/s390/bits/string.h: New file.
3230         * sysdeps/s390/bits/setjmp.h: New file.
3231         * sysdeps/s390/bits/huge_val.h: New file.
3232         * sysdeps/s390/bits/endian.h: New file.
3233         * sysdeps/s390/bits/byteswap.h: New file.
3234         * sysdeps/s390/bcopy.S: New file.
3235         * sysdeps/s390/backtrace.c: New file.
3236         * sysdeps/s390/atomicity.h: New file.
3237         * sysdeps/s390/asm-syntax.h: New file.
3238         * sysdeps/s390/addmul_1.S: New file.
3239         * sysdeps/s390/add_n.S: New file.
3240         * sysdeps/s390/abort-instr.h: New file.
3241         * sysdeps/s390/__longjmp.c: New file.
3242         * sysdeps/s390/Makefile: New file.
3243         * sysdeps/s390/Implies: New file.
3244         * sysdeps/s390/Dist: New file.
3245         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3246
3247 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3248
3249         Remove incompatible IPv6 extension of RPC.
3250         * sunrpc/Makefile: Undo changes.
3251         * sunrpc/rpc_main.c: Likewise.
3252         * sunrpc/rpc/clnt.h: Likewise.
3253         * sunrpc/rpc/svc.h: Likewise.
3254         * sunrpc/bindrsvprt6.c: Removed.
3255         * sunrpc/clnt_tcp6.c: Removed.
3256         * sunrpc/clnt_udp6.c: Removed.
3257         * sunrpc/svc_tcp6.c: Removed.
3258         * sunrpc/svc_udp6.c: Removed.
3259
3260         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3261         dgettext, and dcgettetxt.
3262
3263         * intl/locale.alias: Update japanese aliases.
3264
3265         * sysdeps/ia64/bits/byteswap.h: New file.
3266         Patch by Dan Pop <Dan.Pop@cern.ch>.
3267
3268         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3269         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3270
3271 2000-07-13  H.J. Lu  <hjl@gnu.org>
3272
3273         * posix/regex.c (re_max_failures): Set to 4000.
3274
3275 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3276
3277         * gnulib/Makefile (tests): Add tst-gcc.
3278         * gnulib/tst-gcc.c: New file.
3279
3280         * assert/Makefile (routines): Add __assert.
3281         * assert/Versions: Export __assert for glibc 2.2.
3282         * assert/__assert.c: New file.
3283         * assert/assert.h: Declare __assert.
3284
3285 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3286
3287         * locale/localeinfo.h (_ISCTYPE): New macro.
3288         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3289         LC_CTYPE locale format.
3290         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3291         (ctype_output): Output class_b[nr] right before class_3level[nr].
3292         (allocate_arrays): Fill class_b, similarly to class_3level.
3293
3294 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3295             Joseph S. Myers  <jsm28@cam.ac.uk>
3296
3297         * math/tgmath.h: Make standard compliant.  Don't ask how.
3298
3299 2000-07-04  H.J. Lu  <hjl@gnu.org>
3300
3301         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3302         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3303         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3304
3305 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3306
3307         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3308         (__USE_LARGEFILE): Add an explanation.
3309         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3310         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3311
3312 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3313
3314         * libio/Makefile: Enable exception handling for genops, wgenops,
3315         fileops, and wfileops.
3316
3317 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3318
3319         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3320         acount that elf/rtld's main program might remove some varibales
3321         from the environment if we're trying to be secure.  Move the Hurd
3322         startup data if necessary, or, if we there is no startup data,
3323         make sure the magical convention that ARGV[0] is stored just after
3324         the environment list.
3325
3326 2000-08-01  Philip Blundell  <philb@gnu.org>
3327
3328         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3329         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3330         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3331         oldsetrlimit for GLIBC_2.0.
3332
3333 2000-08-01  Andreas Jaeger  <aj@suse.de>
3334
3335         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3336         (LINE_PARSER): Allow any number of spaces between ip address and
3337         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3338
3339         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3340
3341         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3342         constants in.
3343
3344         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3345         _nss_nisplus_getipnodebyname_r.
3346
3347         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3348         now, getipnodebyname is deprecated.
3349         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3350         Likewise.
3351
3352         * inet/Makefile (routines): Don't build getipnodebyaddr and
3353         friends.
3354
3355         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3356
3357         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3358
3359         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3360
3361         * wctype/Makefile (distribute): Add wchar-lookup.h.
3362
3363         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3364
3365         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3366
3367 2000-08-01  Andreas Schwab  <schwab@suse.de>
3368
3369         * Make-dist (dist): Resolve `..' in file names.
3370
3371 2000-08-01  Andreas Jaeger  <aj@suse.de>
3372
3373         * stdio-common/Makefile (distribute): Remove removed files, add
3374         new files.
3375
3376         * Makefile (distribute): Remove include/db_185.h and db.h.
3377
3378         * include/db_185.h: Remove, it's not needed anymore.
3379         * include/db.h: Likewise.
3380
3381 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3382
3383         * inet/Makefile (tests): Remove tst-ipnode.
3384         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3385         now.
3386
3387 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3388
3389         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3390         endp statements have already been added.
3391
3392 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3393
3394         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3395         <sysdeps/ia64/sysdep.h>.
3396
3397         * sysdeps/ia64/_mcount.S: New file.
3398
3399         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3400         __gmon_start__.  Fix up extraneous whitespace.
3401
3402 2000-01-12  H.J. Lu  <hjl@gnu.org>
3403
3404         * sysdeps/ia64/elf/initfini.c: New file.
3405
3406 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3407
3408         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3409         dependency between branch and ar.pfs write.
3410
3411 2000-07-31  H.J. Lu  <hjl@gnu.org>
3412
3413         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3414         handle the wchar_t array.
3415
3416 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3417
3418         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3419         10646 which are not yet assigned.
3420         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3421
3422 2000-07-31  Andreas Jaeger  <aj@suse.de>
3423
3424         * inet/Versions: Remove getipnodebyaddr and friends from
3425         GLIBC_2.2.
3426
3427         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3428
3429 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3430
3431         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3432         ch >= 0x81 && ch2 < 0x40 as invalid.
3433
3434 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3435
3436         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3437         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3438
3439 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3440
3441         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3442         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3443
3444 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3445
3446         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3447         0xb8.
3448         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3449
3450 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3451
3452         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3453
3454 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3455
3456         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3457         (from_ucs4): Change values of U+00A4 and U+00ED.
3458         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3459
3460 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3461
3462         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3463         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3464
3465 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3466
3467         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3468         * iconvdata/isiri-3342.h: New file.
3469         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3470         treat 0x80 as a gap.
3471
3472 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3473
3474         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3475         (utf8_encode): Use simple shifts instead.  Fix return value.
3476
3477 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3478
3479         * timezone/private.h: Update from tzcode2000e.
3480         * timezone/asia: Update from tzdata2000e.
3481         * timezone/australasia: Likewise.
3482         * timezone/europe: Likewise.
3483         * timezone/northamerica: Likewise.
3484         * timezone/zone-tab: Likewise.
3485
3486 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3487
3488         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3489         the order of struct sigaltstack members is different.
3490
3491 2000-07-26  Philip Blundell  <philb@gnu.org>
3492
3493         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3494
3495 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3496
3497         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3498         * locale/programs/ld-ctype.c: Adjust for this.
3499
3500         * locale/programs/ld-collate.c: Add more alignment checks.
3501         * locale/string/strcoll.c: Likewise.
3502
3503 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3504
3505         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3506         outside USE_IN_LIBIO block.
3507
3508 2000-07-26  Philip Blundell  <philb@gnu.org>
3509
3510         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3511         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3512
3513 2000-07-28  Philip Blundell  <philb@gnu.org>
3514
3515         * math/test-fpucw.c: Ignore reserved bits in control word.
3516
3517 2000-07-28  Philip Blundell  <philb@gnu.org>
3518
3519         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3520         (ret): Redefine to PSEUDO_RET.
3521         (PSEUDO): Remove jump to syscall_error.
3522
3523 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3524
3525         * resolv/README: Add some information about using the resolver in
3526         multi-threaded code and with C++.  Spelling fixes.
3527
3528 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3529
3530         * resolv/resolv.h (struct __sockaddr_in): Remove.
3531         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3532
3533 2000-07-29  Greg McGary  <greg@mcgary.org>
3534
3535         * Rules (test-bp-inputs, make-test-out): New variables.
3536         ($(objpfx)%-bp.out): New rule.
3537         ($(objpfx)%.out): Rewrite in terms of new variables.
3538
3539         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3540         internal function that uses vtable.
3541         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3542         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3543
3544         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3545         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3546         (chunk_align): Likewise.
3547
3548         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3549         in a way that conforms to decl, and avoids spurious bounds violation.
3550
3551         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3552         * sysdeps/generic/frame.h: Likewise.
3553         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3554         around return value.
3555         (__backtrace): Qualify frame-pointer chain and return address
3556         pointers as __unbounded.  Wrap bounds around variable `current'.
3557         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3558         around return value.
3559         (catch_segfault): Qualify frame-pointer chain and return address
3560         pointers as __unbounded.  Wrap bounds around variable `current'.
3561         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3562         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3563         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3564         __unbounded.
3565         (__backtrace): Qualify frame-pointer chain and return address
3566         pointers as __unbounded.  Wrap bounds around variable `current'.
3567
3568         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3569         * sysdeps/i386/mul_1.S: Likewise.
3570         * sysdeps/i386/submul_1.S: Likewise.
3571         * sysdeps/i386/i586/addmul_1.S: Likewise.
3572         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3573         * sysdeps/i386/i586/submul_1.S: Likewise.
3574
3575 2000-07-27  Andreas Jaeger  <aj@suse.de>
3576
3577         * libio/Depend: New file, libio needs localedata for tests.
3578         * posix/Depend: Likewise.
3579
3580 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3581
3582         * stdio-common/_i18n_itoa.c: Removed.
3583         * stdio-common/_i18n_itoa.h: Removed.
3584         * stdio-common/_i18n_itowa.c: Removed.
3585         * stdio-common/_i18n_itowa.h: Removed.
3586         * stdio-common/_i18n_number.h: New file.
3587         * stdio-common/Depend: New file.
3588         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3589         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3590         printing.  Change printing of numbers with locale specific digits to
3591         use new code in _i18n_number.h.
3592         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3593         _i18n_itowa.
3594
3595         * stdio-common/bug13.c: Improve messages.
3596
3597         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3598         (set_class_defaults): Always search also for Uxxxx names.
3599         Detect insufficient number of outdigits.
3600
3601         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3602
3603 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3604
3605         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3606         _NL_CTYPE_MAP_NAMES.
3607         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3608         * wctype/wcfuncs.c (towlower, towupper): Use them.
3609         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3610         * wctype/wctrans.c (wctrans): Likewise.
3611         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3612
3613 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3614
3615         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3616         Use the optimized version of this function outside glibc as well.
3617
3618 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3619
3620         * locale/indigits.h (indigit_value): Correct.
3621         * locale/indigitswc.h (indigitwc_value): Correct.
3622         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3623         conversion, add GROUP checking for it, fix GROUP number
3624         conversion with strlen(thousands) > 1.
3625         Honour width correctly in the presence of floating
3626         decimal points and thousands separators.
3627         * stdio-common/tst-sscanf.c: New test.
3628         * stdio-common/Makefile: Add it to tests.
3629         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3630         thousands separators and group argument is non-zero.
3631
3632 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3633
3634         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3635         starts at GLIBC_2.2.
3636
3637 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3638
3639         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3640         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3641         _test_and_set.
3642         (headers): Add sys/tas.h.
3643         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3644         GLIBC_2.2 from libc.
3645         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3646         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3647         _test_and_set.
3648
3649 2000-07-28  Andreas Jaeger  <aj@suse.de>
3650
3651         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3652
3653         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3654         ($(objpfx)tst-dladdr.out): new.
3655         (tests): Add tst-dladdr.
3656         ($(objpfx)glrefmain): Use libdl.
3657
3658         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3659         <vs@caldera.de>.
3660
3661 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3662
3663         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3664         ftruncate(64) calls.
3665
3666 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3667
3668         * intl/tst-translit.c: Include string.h to get prototype for
3669         strcmp().
3670
3671 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3672
3673         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3674         name and add weak alias for __fork.
3675
3676         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3677         & pwrite to use __libc_<name> as strong names instead of
3678         __syscall_<name>.
3679
3680         * include/sched.h: Add clone2 prototype.
3681
3682 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3683
3684         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3685         procedure name twice.
3686
3687 2000-07-27  Philip Blundell  <philb@gnu.org>
3688
3689         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3690
3691 2000-07-27  Andreas Jaeger  <aj@suse.de>
3692
3693         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3694         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3695         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3696         Reported by Andi Kleen <ak@suse.de>.
3697
3698         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3699         (do_wait): Test requests with aio_return64.
3700         (do_test): Change callers of do_wait.
3701
3702 2000-07-26  Andreas Jaeger  <aj@suse.de>
3703
3704         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3705         (do_wait): Test requests with aio_return.
3706         (do_test): Change callers of do_wait.
3707
3708 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3709
3710         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3711         from request list.  Don't do the list handling here, call
3712         __aio_remove_request.
3713         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3714         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3715         request might already be processed.  Don't do the list handling
3716         here, call __aio_remove_request.
3717
3718         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3719         LIO_DSYNC.
3720
3721         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3722         are missing.
3723
3724 2000-07-27  Greg McGary  <greg@mcgary.org>
3725
3726         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3727         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3728         in union init.  Pass zero for ignored semnum arg to semctl.
3729         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3730
3731 2000-07-26  Greg McGary  <greg@mcgary.org>
3732
3733         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3734         data structure pointers as __unbounded.
3735         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3736         * sysdeps/generic/bp-semctl.h: New file.
3737         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3738         pointers as __unbounded.  Check bounds of syscall args.
3739         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3740         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3741         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3742         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3743         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3744         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3745         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3746         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3747         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3748         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3749         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3750         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3751         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3752         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3753         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3754         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3755
3756 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3759         by default.
3760         * locale/C-ctype.c: Likewise.
3761         * wcsmbs/wcsmbsload.c: Likewise.
3762
3763 2000-07-26  Greg McGary  <greg@mcgary.org>
3764
3765         * Makeconfig (+link-bounded, link-libc-bounded,
3766         link-extra-libs-bounded): New variables.
3767         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3768         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3769         * Rules (tests-bp.out): New variable.
3770         (tests): Conditionally add BP tests.
3771         (binaries-bounded): Add variable and associated rule.
3772         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3773         Move conditional stuff after place where condition is defined.
3774
3775         * malloc/malloc.c (bp-checks.h): Add #include.
3776         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3777         (_bin_at): Add unbounded version of bin_at.
3778         (IAV, chunk_alloc): Use unbounded _bin_at.
3779         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3780         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3781         Wrap BOUNDED_N around return value.
3782         (chunk_realloc): Adjust oldsize once.
3783
3784         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3785         (__ubp_memchr): Add correct decl.
3786         (_CHECK_STRING): Use __ubp_memchr.
3787         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3788         New alias for unbounded-pointer __memchr.
3789         * sysdeps/i386/memchr.S: Likewise.
3790         * sysdeps/ia64/memchr.S: Likewise.
3791         * sysdeps/m68k/memchr.S: Likewise.
3792         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3793         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3794         * sysdeps/vax/memchr.s: Likewise.
3795
3796         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3797         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3798         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3799         * sysdeps/i386/i686/strtok.S: Likewise.
3800         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3801         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3802
3803         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3804         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3805
3806         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3807         bounds of copy_result to mount_proc.
3808
3809 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3810
3811         * wctype/wctype.h (__wctrans_l): New declaration.
3812         * wctype/wctrans_l.c: New file.
3813         * wctype/Makefile (routines): Add wctrans_l.
3814
3815 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3816
3817         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3818         Patch by MacGyver <macgyver@tos.net>.
3819
3820 2000-07-26  Andreas Jaeger  <aj@suse.de>
3821
3822         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3823         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3824         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3825
3826         * rt/tst-aio.c (test_file): Fix typo.
3827         * rt/tst-aio64.c (test_file): Likewise.
3828
3829         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3830         * rt/Makefile: Add rules to build and run tst-aio3.
3831
3832         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3833         it's not needed and confuses only.
3834
3835 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3836
3837         * resolv/res_init.c: Add support for nameserver communication with
3838         IPv6.
3839         * resolv/res_send.c: Likewise.
3840         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3841         in nsaddrs field.
3842         Patch by <venaas@nvg.ntnu.no>.
3843
3844 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3845
3846         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3847         (wcwidth_table_get): New function.
3848         (wcwidth_table_add): Call it.
3849         (wctrans_table_get): New function.
3850         (wctrans_table_add): Call it.
3851
3852 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3853
3854         * rt/lio_listio.c (lio_listio): Always disable individual
3855         notification.
3856         * rt/Makefile: Add rules to build and run tst-aio2.
3857         * rt/tst-aio2.c: New file.
3858
3859         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3860         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3861
3862 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3863
3864         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3865         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3866         leading and trailing spaces from host, user and domain name.
3867
3868 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3869
3870         * csu/defs.awk: Add support for need_endp.
3871
3872 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3873
3874         * resolv/resolv.h: Remove __P from res_send_qhook and
3875         res_send_rhook typedefs.
3876
3877 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3878
3879         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3880
3881 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3882
3883         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3884
3885 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3886
3887         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3888         calling thread, set the cancellation flag and return success
3889         instead of EINTR.
3890
3891 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3892
3893         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3894         * libio/tst-widetext.c: New file.
3895         * libio/tst-widetext.input: New file.
3896
3897         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3898
3899         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3900         empty external buffer correctly.
3901
3902 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3903
3904         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3905         __STRING(entry) and not #entry.
3906         (_RTLD_EPILOGUE): Likewise.
3907         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3908
3909 2000-07-25  Andreas Jaeger  <aj@suse.de>
3910
3911         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3912         according to changes in test program, run also with static only
3913         builds.
3914         ($(objpfx)tst-printf.out): Likewise.
3915
3916         * stdio-common/tst-unbputc.sh: Likewise.
3917         * stdio-common/tst-printf.sh: Likewise.
3918
3919 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3920
3921         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3922
3923         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3924         loop.
3925
3926         * libio/fileops.c: Pretty print.
3927
3928 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3929
3930         * wctype/wchar-lookup.h: New file.
3931         * wctype/iswctype.c: Include "wchar-lookup.h".
3932         (__iswctype): Support alternate locale format with 3-level tables.
3933         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3934         * wctype/towctrans.c (__towctrans): Likewise.
3935         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3936         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3937         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3938         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3939         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3940         __iswxdigit, towlower, towupper): Support alternate locale format
3941         with 3-level tables.
3942         * wctype/wcextra.c (iswblank): Likewise.
3943         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3944         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3945         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3946         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3947         format with 3-level tables.
3948         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3949         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3950         format, return a 3-level table pointer.
3951         * wctype/wctype_l.c (__wctype_l): Likewise.
3952         * wctype/wctrans.c (wctrans): Likewise.
3953         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3954         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3955         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3956         (iswctype): Remove macro definition.
3957         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3958         (internal_wcwidth): Support alternate locale format with 3-level
3959         tables.
3960         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3961         New nl_items.
3962         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3963         Define them as being type "word".
3964         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3965         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3966         __ctype32_width): New exported variables.
3967         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3968         alternate locale format. Don't initialize __ctype_names and
3969         __ctype_width in the alternate locale format.
3970         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3971         * locale/programs/localedef.c (oldstyle_tables): New variable.
3972         (OPT_OLDSTYLE): New macro.
3973         (options): Add --old-style option.
3974         (parse_opt): Handle --old-style option.
3975         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3976         map_offset, class_3level, map_3level, width_3level members.
3977         (ctype_output): Support for alternate locale format: Computation of
3978         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3979         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3980         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3981         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3982         now contain both class and map tables.
3983         (struct wctype_table): New type.
3984         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3985         functions.
3986         (struct wcwidth_table): New type.
3987         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3988         functions.
3989         (struct wctrans_table): New type.
3990         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3991         functions.
3992         (allocate_arrays): Support for alternate locale format: Set
3993         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3994         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3995         to the first 256 characters. Compute ctype->map_3level. Set
3996         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3997         instead of ctype->width.
3998
3999 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4002         string functions.
4003
4004 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4005
4006         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4007         in wide characters, not bytes.
4008         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4009         into file.
4010
4011 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4012
4013         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4014         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4015         LC_MEASUREMENT, LC_IDENTIFICATION.
4016
4017         * locale/xlocale.h (struct __locale_struct): Increase size of
4018         __locales array.
4019         * locale/duplocale.c (__duplocale): Copy newly added categories as
4020         well.
4021         * locale/freelocale.c (__freelocale): Free newly added categories.
4022         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4023         If a base is given, use it, don't simply return it.
4024
4025 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4026
4027         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4028         variables, copied_key and copied_salt, instead of boolean variables.
4029
4030 2000-07-24  Andreas Jaeger  <aj@suse.de>
4031
4032         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4033         check for offset.
4034
4035         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4036         initgroups_function, adopted prototype for change from 2000-07-23.
4037         (initgroups): Follow type change.
4038
4039         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4040         & PAGE_MASK case, reformat.
4041
4042         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4043         from stdin and setup environment.
4044
4045 2000-07-24  Andreas Schwab  <schwab@suse.de>
4046
4047         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4048
4049 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4050
4051         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4052         more.  Patch by scarlet@mit.edu [PR libc/1799].
4053
4054         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4055         [PR libc/1792].
4056
4057         * argp/argp-parse.c (parser_finalize): Reverse order in which
4058         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4059
4060         * grp/initgroups.c (initgroups): Don't limit the possible number
4061         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4062         the setgroups call while the call fails and descrease the number
4063         of groups each round.
4064         The name of the initgroups function in the NSS modules changed.
4065         (compat_call): Adapt for dynamic resizing.
4066         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4067         Implement dynamic resizing.
4068         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4069         Likewise.
4070         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4071         * hesiod/Versions: Change exported interface name.
4072         * nis/Versions: Change exported interface name.
4073
4074 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4075
4076         * locale/iso-639.def: Some errors corrected.
4077         Patch by Keld Simonsen.
4078
4079         * include/limits.h: Update non-gcc portion.
4080         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4081
4082 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4083
4084         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4085         program's data space, reallocate only the space that was just
4086         deallocated to release its backing space.
4087
4088 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4089
4090         * stdio-common/vfprintf.c (process_string_arg): For wide character
4091         version, handle precision also correctly.
4092
4093         * nss/nss_files/files-hosts.c: Correct problem with three or more
4094         entries with the same name.
4095
4096         * nss/nss_files/files-hosts.c: Implement multi handling.
4097         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4098
4099 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4100
4101         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4102         strcasecmp.
4103
4104         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4105         * malloc/Makefile: Likewise.
4106         * malloc/tst-mtrace.sh: Likewise.
4107         * posix/Makefile: Likewise.
4108         * posix/globtest.sh: Likewise.
4109         * posix/wordexp-tst.sh: Likewise.
4110         * string/Makefile: Likewise.
4111
4112 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4113
4114         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4115         size instead of LC_ALL to take into account the new locale
4116         categories.
4117
4118 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4119
4120         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4121         remainders of hash table.
4122         * locale/categories.def: Remove remainders of transliteration
4123         hash table.
4124         * locale/langinfo.h: Likewise.
4125         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4126         transliteration tables.
4127
4128         * locale/gen-translit.pl: New file.
4129         * locale/C-translit.h.in: New file.
4130         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4131         data pointers with data from this file.
4132         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4133         and gen-translit.pl.
4134         Add rule to generate C-translit.h.
4135         * intl/tst-translit.c (main): Update for now performed
4136         transliteration.
4137
4138         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4139         (it's no input error).
4140         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4141         * stdio-common/scanf12.c: Correct expected result for first scanf.
4142
4143         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4144         of multibyte character strings in %s format with precision.
4145
4146 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4147
4148         * locale/programs/ld-collate.c (collate_read): Allow collating
4149         symbols and elements be named in reorder-after instructions.
4150         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4151
4152         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4153         duplication with generated name, not the name of the first
4154         character.
4155         Patch by Yong Li <yong.li@asu.edu>.
4156
4157         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4158         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4159
4160 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4161
4162         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4163         allocations only if a non-main arena cannot be extended.
4164
4165 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4166
4167         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4168         in DF_1_NODEFLIB handling.
4169
4170 2000-07-21  Andreas Jaeger  <aj@suse.de>
4171
4172         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4173         own rule.
4174
4175         * libio/fwide.c: Include <wchar.h> for prototype.
4176
4177 2000-07-21  Greg McGary  <greg@mcgary.org>
4178
4179         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4180         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4181         Define in terms of chunk_at_offset.
4182         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4183         (next_bin, prev_bin): offset by size of real array elements.
4184         (chunk_align): Make `m' a scalar, since that's how it's used.
4185
4186 2000-07-21  Greg McGary  <greg@mcgary.org>
4187
4188         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4189         UNCHECK_BOUNDS.
4190         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4191         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4192         Wrap bounds around argv & envp and each of their string members.
4193         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4194         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4195         symbol in BP_SYM ().  Discard bounds of address arg.
4196         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4197         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4198         Discard bounds on address arg, add bounds to return value.
4199
4200 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4201
4202         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4203         * elf/filter.c: New file.
4204         * elf/filtmod1.c: New file.
4205         * elf/filtmod2.c: New file.
4206
4207         * elf/rtld.c: Define _dl_bind_not variable.
4208         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4209         * elf/dl-support.c: Likewise.
4210         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4211         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4212         _dl_bind_not.
4213         (profile_fixup): Likewise.
4214
4215         * libio/Makefile (routines): Add fwide.
4216         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4217         fwide now.  Internal calls to _IO_fwide must do locking themselves
4218         or don't need locking.
4219         * libio/fwide.c: New file.
4220
4221         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4222
4223         * elf/Makefile: Add no modules for nodelete test.
4224         * elf/nodelmod3.c: New file.
4225         * elf/nodelmod4.c: New file.
4226         * elf/nodelete.c: Also test case where dependency of dlopen() object
4227         is marked nodelete.
4228
4229         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4230         * elf/nodlopen.c: New file.
4231         * elf/nodlopenmod.c: New file.
4232         * include/dlfcn.h: Define __RTLD_DLOPEN.
4233         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4234         and this is a dlopen() call, do not load the binary.
4235         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4236         * dlfcn/dlopenold.c: Likewise.
4237         * configure.in: Add test for -z nodelete option.
4238         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4239
4240 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4241
4242         Make Hesiod NSS module thread-safe.
4243
4244         * hesiod/README.hesiod: Update.
4245
4246         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4247         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4248         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4249         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4250         hesiod-proto.
4251         * hesiod/nss_hesiod/hesiod-init.c: New file.
4252         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4253         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4254         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4255         * hesiod/nss_hesiod/hesiod-service.c
4256         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4257         looking up services by port number.
4258         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4259
4260         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4261         * hesiod/hesiod.h: Likewise.
4262         * hesiod/hesiod_p.h: Likewise.
4263
4264 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4265
4266         Fix problems with `struct __res_state' getting too big.
4267         * resolv/resolv.h (struct __sockaddr_in): New definition.
4268         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4269         the private parts of the structure to save some space.
4270         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4271         (struct sockaddr_in *) in call to sock_eq.
4272         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4273
4274 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4275
4276         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4277         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4278         with nodelete.
4279         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4280         to _dl_map_object.  Return immediately if no object loaded.
4281         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4282         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4283         if it exists into l_flags_1 word.
4284         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4285         it to determine whether loading is wanted or not.
4286         (_dl_map_object): Likewise.
4287         Call _dl_map_object_from_fd with new parameter.
4288         * sysdeps/generic/ldsodefs.h: Update prototype.
4289         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4290         * elf/rtld.c: Likewise.
4291         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4292         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4293         * elf/noload.c: New file.
4294         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4295         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4296         * sysdeps/mips/bits/dlfcn.h: Likewise.
4297         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4298         (tests-nodelete-yes): Define.
4299         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4300         Add rules to build nodelete and modules.
4301         * elf/nodelete.c: New file.
4302         * elf/nodelmod1.c: New file.
4303         * elf/nodelmod2.c: New file.
4304         * configure.in: Add test for -z nodelete option.
4305         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4306
4307         * libio/Makefile (tests): Add tst_wprintf2.
4308         (tst_wprintf2-ARGS): Define.
4309         * libio/tst_wprintf2.c: New file.
4310         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4311
4312         * libio/wfiledoalloc.c: Only allocate external buffer if this
4313         hasn't happened yet.
4314
4315         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4316         something in the buffer.  gconv call can write up to end of the
4317         buffer, not only _IO_write_end.
4318         (_IO_wfile_overflow): Allocate also external buffer.
4319
4320 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4321
4322         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4323         strings with precision in vfwprintf correctly.
4324         * stdio-common/vfprintf.c: Fix completely broken handling of
4325         unbuffered wide character streams.
4326         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4327
4328         * resolv/Makefile (distribute): Add README.
4329
4330         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4331
4332 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4333
4334         Update resolver code to BIND 8.2.3-T5B.
4335
4336         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4337         __res_nclose.
4338         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4339         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4340         __res_search.
4341         * resolv/Banner: BIND-8.2.3-T5B.
4342
4343         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4344         * resolv/herror.c: Likewise.
4345         * resolv/inet_addr.c: Likewise.
4346         * resolv/inet_net_ntop.c: Likewise.
4347         * resolv/inet_net_pton.c: Likewise.
4348         * resolv/inet_neta.c: Likewise.
4349         * resolv/inet_ntop.c: Likewise.
4350         * resolv/nsap_addr.c: Likewise.
4351         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4352         IPv6 addresses (ISC bug #520).
4353
4354         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4355         * resolv/ns_parse.c: Likewise.
4356         * resolv/ns_netint.c: Likewise.
4357         * resolv/ns_samedomain.c: Likewise.
4358         * resolv/ns_ttl.c: Likewise.
4359         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4360         RCS ID in object file.
4361
4362         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4363         * resolv/res_mkquery.c: Likewise.
4364         * resolv/res_query.c: Likewise.
4365         * resolv/res_init.c: Likewise.
4366         (res_setoptions): Mark internal.
4367         * resolv/res_send.c: Likewise.
4368         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4369         by using poll instead.
4370         * resolv/res_comp.c: Likewise.
4371         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4372         weak alias for __dn_expand.
4373         * resolv/res_data.c: Likewise.
4374         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4375         in _res.options.  Avoids a potential security risk by avoiding a
4376         close (0).
4377         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4378         res_mkquery, res_query, res_querydomain adn res_search weak
4379         aliases for __res_mkquery, __res_query, __res_querydomain and
4380         __res_search.
4381         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4382         instead to avoid close(0).
4383         (res_init): Always use the static resolver context.
4384         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4385         alias for __res_init.
4386
4387         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4388         RES_SET_H_ERRNO and accompanying comment to...
4389         * include/resolv.h: ... here.
4390
4391         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4392         * resolv/arpa/nameser_compat.h: Likewise.
4393
4394 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4395
4396         * nss/makedb.c (main): Compare result of load_db with
4397         NSS_STATUS_SUCCESS and not 0.
4398         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4399
4400         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4401
4402 2000-07-18  Greg McGary  <greg@mcgary.org>
4403
4404         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4405         (EXTEND_BUFFER): Use it.
4406
4407 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4408
4409         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4410         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4411         __builtin_return_address.
4412         * dlfcn/dlopenold.c: Likewise.
4413         * dlfcn/dlsym.c: Likewise.
4414         * dlfcn/dlvsym.c: Likewise.
4415         * elf/dl-profstub.c: Likewise.
4416         * malloc/malloc.c: Likewise.
4417         * sysdeps/generic/machine-gmon.h: Likewise.
4418         Based on a patch by schwidefsky@de.ibm.com.
4419
4420 2000-07-18  Andreas Jaeger  <aj@suse.de>
4421
4422         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4423         NULL to elf_machine_fixup_plt t argument to silence GCC.
4424
4425         * include/string.h: Add prototype for __memchr.
4426
4427         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4428
4429         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4430         instead of memrchr.
4431
4432 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4433
4434         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4435
4436         * locale/C-ctype.c: Add initializers for gap elements.
4437         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4438         for gap elements.
4439
4440 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4441
4442         * nscd/nscd.c (print_version): Update copyright year.
4443
4444 2000-07-17  Greg McGary  <greg@mcgary.org>
4445
4446         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4447         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4448         signature argnames with angle-brackets for use as word delimiters,
4449         and to induce syntax errors for any args not handled.  Split
4450         multi-echo echoes and comment each stage.
4451         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4452         * sysdeps/unix/inet/syscalls.list: Likewise.
4453         * sysdeps/unix/mman/syscalls.list: Likewise.
4454         * sysdeps/unix/syscalls.list: Likewise.
4455         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4456         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4457         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4458         * sysdeps/unix/sysv/syscalls.list: Likewise.
4459         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4460
4461         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4462         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4463         qualifiers.  Don't check NULL-terminator of argv & envp.
4464         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4465         unbounded pointer type in word-size assertion.
4466         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4467         cases to stifle warnings.
4468
4469         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4470         _IO_file_attach.
4471         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4472
4473         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4474         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4475         ptr as __unbouned.
4476
4477         * Makerules (o-objects): Supplement with $(o-objects$o).
4478         * string/Makefile (o-objects.ob): Add variable to pull
4479         unbounded versions of memcpy, memset and memchr into libc_b.
4480
4481         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4482         rather than non-existent __ubp_memchr.
4483         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4484         (_CHECK_STRING, _CHECK_N): New macros.
4485         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4486         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4487         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4488         Add weak alias "memchr".
4489         * sysdeps/generic/memchr.c: Likewise.
4490         * sysdeps/i386/memchr.S: Likewise.
4491         * sysdeps/ia64/memchr.S: Likewise.
4492         * sysdeps/m68k/memchr.S: Likewise.
4493         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4494         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4495         * sysdeps/vax/memchr.s: Likewise.
4496
4497         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4498
4499         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4500         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4501         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4502         __BOUNDED_POINTERS__.
4503         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4504         for __BOUNDED_POINTERS__.
4505
4506 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4507
4508         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4509         field of struct __gconv_trans_data differently.  Don't pass NULL to
4510         trans_init_fct.  Simplify list append operation.
4511
4512 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4513
4514         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4515         not only those having tsearch.
4516
4517 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4518
4519         * locale/langinfo.h: Add placeholder values in enum for removed
4520         LC_CTYPE entries.
4521
4522 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4523
4524         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4525         chain if the PHDR check fails.
4526
4527 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4528
4529         * nss/getent.c (print_hosts): Make sure we always print a space
4530         between numeric addresses and hostnames.
4531
4532 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4533
4534         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4535         i.e. if n_mmaps_max>0.
4536
4537 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4538
4539         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4540         values to remove possible clash with other AI_* constants.
4541         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4542         hexadecimal constants to stress the fact they're in fact
4543         bit flags.
4544
4545 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4546
4547         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4548         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4549         instead of res_init.
4550
4551 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4552
4553         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4554         parameters of memset calls to avoid warnings.
4555
4556 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4557
4558         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4559         necessary.
4560
4561         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4562         Patch by Greg McGary <greg@mcgary.org>.
4563
4564         * io/Makefile (tests): Add tst-getcwd.
4565         * io/tst-getcwd.c: New file.
4566
4567         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4568
4569 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4570
4571         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4572         structure.
4573
4574 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4575
4576         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4577         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4578
4579 2000-07-12  H.J. Lu  <hjl@gnu.org>
4580
4581         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4582         GLIBC_2.2.
4583         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4584         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4585         (sysdep-routines): Add clone2.
4586         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4587
4588 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4589
4590         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4591         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4592
4593 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4594
4595         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4596         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4597         Change type of si_band from "int" to "long".
4598         (si_imm) [USE_GNU]: Define
4599         (si_isr) [USE_GNU]: Ditto.
4600         (ILL_BREAK) [USE_GNU]: Ditto.
4601         (FPE_DECOVF) [USE_GNU]: Ditto.
4602         (FPE_DECDIV) [USE_GNU]: Ditto.
4603         (FPE_DECERR) [USE_GNU]: Ditto.
4604         (FPE_INVASC) [USE_GNU]: Ditto.
4605         (FPE_INVDEC) [USE_GNU]: Ditto.
4606         (TRAP_BRANCH) [USE_GNU]: Ditto.
4607         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4608
4609 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4610
4611         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4612         bits/sigcontext as struct mcontext does not depend on it.
4613
4614         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4615
4616 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4617
4618         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4619
4620 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4621
4622         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4623
4624 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4625
4626         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4627
4628 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4629
4630         * intl/Makefile (test-srcs): Add tst-translit.
4631         (tests): Likewise.
4632         Add rules to build and run tst-translit.
4633         * intl/tst-translit.c: New file.
4634         * intl/tst-translit.sh: New file.
4635         * intl/translit.po: New file.
4636
4637 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4638
4639         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4640         transliteration function did its job, continue, don't stop.
4641
4642         * iconvdata/iso646.c: Little optimizations in body for conversion
4643         from UCS4.
4644
4645 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4646
4647         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4648
4649 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4650
4651         * configure.in: Check for pwd binary.
4652         * config.make.in: Add PWD_P to be subsituted.
4653         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4654
4655 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4656
4657         * iconvdata/Makefile (modules): Add GB18030.
4658         (distribute): Add gb18030.c.
4659         * iconvdata/gconv-modules: Add entries for GB18030 module.
4660         * iconvdata/gb18030.c: New file.
4661         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4662         and Wu Jian.
4663
4664 2000-07-13  Andreas Jaeger  <aj@suse.de>
4665
4666         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4667         patch.
4668
4669         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4670         * inet/getnetgrent.c (free_mem): Likewise.
4671         * misc/mntent.c (free_mem): Likewise.
4672         * nss/getXXbyYY.c (free_mem): Likewise.
4673         * nss/getXXent.c (free_mem): Likewise.
4674         * pwd/fgetpwent.c (free_mem): Likewise.
4675         * shadow/fgetspent.c (free_mem): Likewise.
4676
4677 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4678
4679         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4680         64-bit architecture correctly [PR libc/1794].
4681
4682 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4683
4684         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4685         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4686         report that we are out of memory.
4687         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4688         * elf/dl-libc.c (dlerror_run): Likewise.
4689         * elf/dl-open.c (_dl_open): Likewise.
4690         * elf/rtld.c (dl_main): Likewise.
4691         * elf/dl-error.c: Define _dl_out_of_memory.
4692         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4693         the error string.
4694         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4695         [PR libc/1813].
4696
4697         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4698
4699         * iconv/loop.c: Fix comment.
4700
4701         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4702
4703 2000-07-13  Andreas Jaeger  <aj@suse.de>
4704
4705         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4706         getcwd (NULL, size) with size > 0.
4707         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4708
4709 2000-07-13  Andreas Jaeger  <aj@suse.de>
4710
4711         * posix/Makefile: Remove build rules for libposix.
4712
4713 2000-07-13  Andreas Schwab  <schwab@suse.de>
4714
4715         * sysdeps/generic/glob.c (glob): Fix memory leak.
4716         [SHELL]: Remove reference to undefined variable `files'.
4717         Fixes PR libc/1782.
4718
4719 2000-07-13  Andreas Jaeger  <aj@suse.de>
4720
4721         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4722         functions.
4723
4724         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4725         memory if it was allocated.
4726
4727 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4728
4729         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4730         step.
4731
4732         * iconv/gconv_open.c (__gconv_open): Reapply
4733         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4734
4735                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4736
4737         * iconv/gconv_open.c: Undo last two changes for now.  They break
4738         everything.
4739
4740 2000-07-12  Andreas Jaeger  <aj@suse.de>
4741
4742         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4743         compiler.
4744         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4745         (CFLAGS-dl-cache.c): Likewise.
4746         (CFLAGS-ldconfig.c): Added, passes directory locations.
4747
4748         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4749         locate cache.
4750         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4751         (main): Use configured LIBDIR and SLIBDIR.
4752
4753 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4754
4755         * math/bits/cmathcalls.h (cimag): Add __THROW.
4756         (creal, conj): Likewise.
4757         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4758         by negative value.
4759
4760 2000-07-12  H.J. Lu  <hjl@gnu.org>
4761
4762         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4763         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4764
4765 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4766
4767         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4768         it is wrong.
4769
4770 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4771
4772         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4773
4774 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4775
4776         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4777         __modname.
4778
4779 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4780
4781         * iconv/gconv_open.c (__gconv_open): Initialize
4782         result->__steps[cnt].__data.
4783
4784 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4785
4786         * nss/getent.c (services_keys): Pass port number in network byte
4787         order in call to getservbyport.
4788
4789 2000-07-11  Andreas Jaeger  <aj@suse.de>
4790
4791         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4792         source dir.
4793         * intl/Makefile (do-gettext-test): Likewise.
4794         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4795
4796 2000-07-11  Andreas Schwab  <schwab@suse.de>
4797
4798         * Makeconfig (run-program-prefix): New rule.
4799         (built-program-cmd): Use run-program-prefix.
4800
4801 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4802
4803         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4804         and NOEXPR unconditionally available.
4805
4806 2000-07-12  Greg McGary  <greg@mcgary.org>
4807
4808         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4809         * sysdeps/posix/open64.c: Likewise.
4810         * sysdeps/generic/fegetenv.c: Likewise.
4811         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4812         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4813         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4814         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4815         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4816         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4817
4818 2000-07-11  Greg McGary  <greg@mcgary.org>
4819
4820         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4821         Add extra level of macro expansion.
4822         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4823         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4824         is available at the time `select' prototype is declared.
4825         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4826         Collect non-versioned weak aliases.  Consider only non-versioned
4827         aliases for the user-visible systemcall name.  Do checks inline with
4828         call to primitive system call.
4829         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4830         stand-alone bounds checks to suppress unused value warnings.
4831         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4832
4833 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4834
4835         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4836         file descriptor checking in SUID programs for the Hurd.
4837
4838         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4839         res_hostalias instead of __hostalias for thread-safety.
4840
4841 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4842
4843         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4844         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4845
4846 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4847
4848         * include/features.h: Include ISO C99 features if the compiler used
4849         is an ISO C99 compiler.
4850         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4851
4852 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4853
4854         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4855
4856 2000-07-10  Andreas Jaeger  <aj@suse.de>
4857
4858         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4859         it's overridden by libpthreads.
4860         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4861         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4862         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4863         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4864         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4865
4866         * malloc/Makefile: Run tst-mtrace only with shared libs.
4867
4868         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4869         with shared libs.
4870
4871 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4872
4873         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4874         that gpreg really points to the GOT section of the calling object.
4875         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4876         checking a start address of first one.
4877         Fix typos.
4878         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4879         Likewise.
4880
4881         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4882
4883 2000-07-10  Andreas Jaeger  <aj@suse.de>
4884
4885         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4886         (string_alias->strong_alias).
4887
4888 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4889
4890         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4891
4892 2000-07-07  Greg McGary  <greg@mcgary.org>
4893
4894         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4895         have no names without leading underscores.
4896
4897 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4898
4899         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4900         U007E.
4901
4902         * stdio-common/Makefile (tests): Remove tst-printf here...
4903         (tests-srcs): ...and add it here.
4904         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4905         Add rules to run tst-printf.sh.
4906         * stdio-common/tst-printf.c: Move code around so that there is really
4907         no further output where it's stated.
4908         * stdio-common/tst-printf.sh: New file.
4909
4910 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4911
4912         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4913         (do_write): Renamed from pwrite.
4914         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4915         `struct _IO_cookie_file'.
4916
4917 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4918
4919         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4920         detected.
4921         * malloc/tst-mtrace.sh: Run mtrace script.
4922
4923 2000-07-07  Greg McGary  <greg@mcgary.org>
4924
4925         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4926         Move all three components of a bounded pointer.
4927
4928 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4929
4930         * locale/programs/locale.c (write_locales): Don't simply add all
4931         directories found in the subdir, test whether at least the
4932         LC_CTYPE file is in there.
4933
4934 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4935
4936         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4937         * iconvdata/euc-kr.c: Likewise.
4938
4939         * stdio-common/vfprintf.c (process_string_arg): Check result of
4940         wcrtomb call and bail out if it failed.
4941
4942         * malloc/Makefile (test-srcs): Add tst-mtrace.
4943         (distribute): Add tst-mtrace.sh.
4944         Add rule to run tst-mtrace.sh.
4945         * malloc/tst-mtrace.c: New file.
4946         * malloc/tst-mtrace.sh: New file.
4947
4948         * include/signal.h: Declare __libc_sigaction.
4949         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4950         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4951         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4952         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4953         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4954         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4955         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4956
4957         * configure.in: Fix CFLAGS-memprofstat.c definition after
4958         2000-06-19 change.
4959         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4960
4961 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4962
4963         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4964         instead of NULL to elf_machine_fixup_plt t argument.
4965         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4966         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4967         cast.
4968
4969 2000-07-06  Andreas Jaeger  <aj@suse.de>
4970
4971         * crypt/Makefile (LDLIBS-cert): Removed.
4972         (LDLIBS-md5c-test): Removed.
4973         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4974         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4975
4976 2000-07-06  Andreas Jaeger  <aj@suse.de>
4977
4978         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4979         of the proc system is "proc".
4980
4981         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4982         thread library for static programs.
4983
4984 2000-07-06  Greg McGary  <greg@mcgary.org>
4985
4986         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4987         New macros.
4988         * sysdeps/generic/strcpy.c: Add bounds checks.
4989         * sysdeps/unix/fxstat.c: Likewise.
4990         * sysdeps/unix/xstat.c: Likewise.
4991         * sysdeps/unix/common/lxstat.c: Likewise.
4992         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4993         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4994         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4995         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4996         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4997         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4998         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4999         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5000         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5001         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5002         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5003         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5004         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5005         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5006         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5007         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5008         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5009         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5010         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5011         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5012         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5013         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5014         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5015         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5016         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5017         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5018         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5019         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5020         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5021         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5022         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5023         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5024         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5025         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5026         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5027         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5028         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5029         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5030         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5031         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5032         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5033         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5034         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5035         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5036         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5037         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5038         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5039         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5040         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5041         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5042         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5043         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5044         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5045         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5046         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5047         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5048         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5049         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5050         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5051         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5052         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5053         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5054         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5055         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5056
5057         * string/endian.h (__LONG_LONG_PAIR): New macro.
5058         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5059         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5060         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5061         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5062         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5063         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5064         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5065         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5066         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5067         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5068         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5069         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5070
5071         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5072
5073 2000-07-06  Andreas Jaeger  <aj@suse.de>
5074
5075         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5076         Initialize result.
5077
5078         * math/test-fpucw.c: Include <stdio.h> for printf.
5079
5080 2000-07-05  Greg McGary  <greg@mcgary.org>
5081
5082         * sysdeps/generic/bp-checks.h: New file.
5083         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5084         with list of #include files.
5085         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5086         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5087         Don't generate BP thunk if `V' appears in signature.
5088         Generate thunks with complete bounds checks.
5089         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5090         * sysdeps/unix/inet/syscalls.list: Likewise.
5091         * sysdeps/unix/mman/syscalls.list: Likewise.
5092         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5093         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5094         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5095         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5096
5097 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5098
5099         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5100         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5101         If mount not in the file fall back on /proc.
5102
5103         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5104         string got copied in.
5105         Patch by Solar Designer <solar@false.com>.
5106
5107 2000-07-05  Andreas Jaeger  <aj@suse.de>
5108
5109         * manual/install.texi (Installation): Update information about
5110         add-ons.
5111         (Configuring and compiling): Update for glibc 2.2.
5112
5113 2000-07-04  Andreas Jaeger  <aj@suse.de>
5114
5115         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5116         (_FPU_IEEE): Likewise.
5117
5118         * math/Makefile (tests): Add test-fpucw.
5119
5120         * math/test-fpucw.c (main): New file.
5121
5122 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5123
5124         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5125
5126         * locale/programs/ld-collate.c (collate_output): Also write out the
5127         collation sequence values and the wide character string for the
5128         collation symbol table.
5129
5130         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5131         * posix/fnmatch_loop.c: Implement collating symbol handling.
5132         * posix/tst-fnmatch.input: Add more tests, especially for collating
5133         symbol handling.
5134
5135         * posix/regex.c: Fix comment.
5136
5137 2000-07-05  Andreas Jaeger  <aj@suse.de>
5138
5139         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5140         (_FPU_GETCW): Remove extra colon.
5141         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5142
5143         * posix/fnmatch_loop.c (FCT): Only declare len if
5144         !WIDE_CHAR_VERSION to silence GCC.
5145
5146         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5147         prototype.
5148         * sysdeps/generic/strchrnul.c: Likewise.
5149         * sysdeps/generic/strlen.c: Likewise.
5150         * sysdeps/generic/strchr.c: Likewise.
5151         * sysdeps/generic/memchr.c: Likewise.
5152
5153 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5154
5155         * posix/fnmatch_loop.c: Implement equivalence class handling.
5156         * posix/tst-fnmatch.input: Add tests for equivalence class
5157         handling.
5158
5159         * posix/fnmatch_loop.c: Improve performance for single-byte
5160         character sets by not using btowc.
5161
5162         * posix/tst-fnmatch.input: Add tests for locale dependent
5163         behaviour.
5164         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5165
5166         * posix/tst-fnmatch.input: Add more test cases.
5167
5168         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5169         are not aligned to alignof(md5_uint32) do it before calling
5170         __md5_process_bytes.
5171         * crypt/md5.c: Make sure buffers are aligned.
5172         * crypt/md5.h: Likewise.
5173         Reported by Solar Designer <solar@false.com>.
5174
5175         * crypt/Makefile: Add dependencies for test programs.
5176
5177         * Rules: Define LC_ALL=C in environments of all programs we run.
5178
5179         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5180
5181 2000-07-03  H.J. Lu  <hjl@gnu.org>
5182
5183         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5184         is 2 + elem + offset, not 2 + elem + offset + 2.
5185
5186 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5187
5188         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5189         suite.
5190         * posix/Makefile (tests): Add tst-fnmatch.
5191         (tst-fnmatch-ENV): Define.
5192         * posix/tst-fnmatch.c: New file.
5193         * posix/tst-fnmatch.sh: New file.
5194
5195 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5196
5197         * locale/programs/charmap.c (charmap_read): Prepend
5198         the condition filename == NULL.
5199
5200 2000-07-03  Greg McGary  <greg@mcgary.org>
5201
5202         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5203
5204         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5205         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5206
5207         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5208         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5209         (FILEBUF_LITERAL): Add cast for CHAIN init.
5210         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5211         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5212         Revert type of `fp' to _IO_FILE*.
5213         (_IO_iter_file): Remove cast.
5214         (_IO_iter_next): Elide intermediate member reference.
5215
5216         * sysdeps/powerpc/strchr.S:  Check bounds.
5217         Wrap extern symbols in BP_SYM ().
5218
5219 2000-07-03  Andreas Jaeger  <aj@suse.de>
5220
5221         * dlfcn/Makefile (generated): New.
5222
5223 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5224
5225         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5226         (__uflow): Likewise.
5227         (__underflow): Likewise.
5228         * libio/wgenops.c (__wunderflow): Likewise.
5229         * stdio-common/tst-unbputc.c: New file.
5230         * stdio-common/tst-unbputc.sh: New file.
5231         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5232
5233         * po/en_GB.po: New file.
5234         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5235
5236 2000-07-01  Andreas Jaeger  <aj@suse.de>
5237
5238         * intl/Makefile (generated-dirs): New.
5239
5240         * elf/Makefile (generated): trusted-dirs.h is always generated,
5241         move out of build-shared condition.
5242         (generated): Merge the two entries for build-shared.
5243
5244 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5245
5246         * debug/Makefile (distribute): Add xtrace.sh.
5247
5248 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5249
5250         * version.h (VERSION): Bump to 2.1.91.
5251
5252         * configure.in: Update warning comment.  glibc should not be
5253         broken anymore.
5254
5255         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5256         ioperm.c, sys/procfs.h, and sys/io.h.
5257
5258         * sysdeps/powerpc/Dist: Add bp-asm.h.
5259
5260         * assert/Depend: Add localedata.
5261         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5262         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5263
5264         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5265         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5266         relocation address to prevent unaligned trap.
5267         Suggested by Richard Henderson <rth@cygnus.com>.
5268
5269 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5270
5271         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5272         if redirecting and either redirection is done using defines or
5273         not optimizing.
5274
5275 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5276
5277         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5278         generated expressions.
5279         Patch by Darren McClelland <dmcclell@zetec.com>.
5280
5281         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5282         since zic uses setlocale and gettext but we cannot make it use the
5283         new locale data since zic calls a shell which might not use the
5284         new libc.
5285
5286         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5287         handling the internation currency symbol.  POSIX says that the
5288         fourth character is used to separate the currency symbol from the
5289         value.  Therefore it does not have to be printed.  But we cannot
5290         remove the space if the currency symbol is printed before the
5291         number since this is what many locales expect.
5292
5293         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5294         whether this information is available.
5295
5296         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5297         buffers in case the translation is too large.  Remember allocated
5298         memory blocks in a list.
5299         (free_mem): Free memory for translations.
5300
5301         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5302
5303         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5304         information is available set the string length to zero.
5305
5306         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5307
5308 2000-06-30  Greg McGary  <greg@mcgary.org>
5309
5310         * sysdeps/powerpc/bp-asm.h: New file.
5311         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5312         Wrap extern symbols in BP_SYM ().
5313         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5314         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5315         * sysdeps/powerpc/setjmp.S: Likewise.
5316         * sysdeps/powerpc/add_n.S: Likewise.
5317         * sysdeps/powerpc/addmul_1.S: Likewise.
5318         * sysdeps/powerpc/lshift.S: Likewise.
5319         * sysdeps/powerpc/rshift.S: Likewise.
5320         * sysdeps/powerpc/mul_1.S: Likewise.
5321         * sysdeps/powerpc/sub_n.S: Likewise.
5322         * sysdeps/powerpc/submul_1.S: Likewise.
5323         * sysdeps/powerpc/strlen.S: Likewise.
5324         * sysdeps/powerpc/memset.S: Likewise.
5325         * sysdeps/powerpc/stpcpy.S: Likewise.
5326         * sysdeps/powerpc/strcmp.S: Likewise.
5327         * sysdeps/powerpc/strcpy.S: Likewise.
5328         * sysdeps/powerpc/elf/bzero.S: Likewise.
5329
5330         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5331         Line up operands column with tabs.
5332
5333 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5334
5335         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5336
5337         * sysdeps/ia64/htonl.S: New file.
5338         * sysdeps/ia64/htons.S: New file.
5339         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5340         floating point registers.
5341         Patches by Dan Pop <Dan.Pop@cern.ch>.
5342
5343 2000-06-30  Andreas Jaeger  <aj@suse.de>
5344
5345         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5346         shared libraries.
5347
5348         * io/Makefile (CFLAGS-test-lfs.c): New.
5349         (tests): Add test-lfs.
5350
5351         * io/test-lfs.c: New file.
5352
5353 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5354
5355         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5356         instruction.
5357
5358 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5359
5360         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5361
5362 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5363
5364         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5365         alias to the fstatfs call.
5366
5367         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5368         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5369
5370         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5371         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5372
5373         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5374         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5375         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5376         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5377
5378         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5379         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5380
5381         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5382         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5383
5384         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5385         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5386
5387         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5388
5389 2000-06-29  Andreas Jaeger  <aj@suse.de>
5390
5391         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5392         with syslog.
5393         (print_err_message): Likewise.
5394         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5395
5396 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5397
5398         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5399         used as words is properly aligned.
5400
5401         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5402         data files.
5403
5404 2000-06-29  Greg McGary  <greg@mcgary.org>
5405
5406         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5407         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5408         length 7..9, just in case...
5409         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5410
5411         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5412         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5413         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5414         (PUSH_SIGNAL_MASK): New macro.
5415         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5416         LEAVE is unnecessary.  Check bounds of jmp_buf.
5417         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5418         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5419         immediately before tail-call.
5420         * sysdeps/i386/setjmp.S: Likewise.
5421         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5422         * sysdeps/i386/bsd-setjmp.S: Likewise.
5423
5424 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5425
5426         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5427         versioned_symbol.
5428         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5429         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5430         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5431         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5432         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5433         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5434         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5435         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5436
5437 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5438
5439         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5440         we later need to calling free().
5441         Patch by Matt Wilson <msw@redhat.com>.
5442
5443         * stdio-common/tst-printf.c: Add test for above problem.
5444
5445 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5446
5447         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5448         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5449
5450 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5451
5452         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5453         prototype for abs().
5454         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5455
5456 2000-06-23  Andreas Jaeger  <aj@suse.de>
5457
5458         * config.h.in: Don't use regparm with bounded pointers.
5459
5460 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5461
5462         * stdlib/grouping.h: Correctly handle multibyte thousands
5463         separator and decimal point.
5464         * stdlib/stdtod.c: Likewise.
5465         * sysdeps/generic/strtol.c: Likewise.
5466
5467         * locale/categories.def: Add entries for wide character decimal point
5468         and thousands separator in numeric and monetary category.
5469
5470 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5471
5472         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5473         second definition and initialization of decimal.
5474
5475 2000-06-28  Greg McGary  <greg@mcgary.org>
5476
5477         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5478         out.
5479         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5480         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5481         in.
5482         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5483         (struct _IO_FILE_plus *).
5484         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5485         THIS, since _IO_JUMPS no longer does it implicitly.
5486         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5487         arg type as (struct _IO_FILE_plus *).
5488         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5489         arg as (_IO_strfile *).
5490         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5491         Declare 1st arg as (_IO_strfile *).
5492         * libio/fileops.c (_IO_new_file_init): Declare
5493         arg type as (struct _IO_FILE_plus *).
5494         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5495         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5496         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5497         Declare iteration pointer as (struct _IO_FILE_plus *).
5498         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5499                 (struct _IO_FILE_plus *).
5500         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5501         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5502         (_IO_check_libio): Set user-visible handles to
5503         (struct _IO_FILE_plus *).
5504         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5505         to (struct _IO_FILE_plus *).
5506
5507         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5508         whose high bound includes vtable to all functions that will use
5509         vtable.  For streambufs, pass pointer whose bounds include struct
5510         _IO_strfile.
5511         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5512         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5513         * libio/iofopen.c (_IO_new_fopen): Likewise.
5514         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5515         * libio/iofopen64.c (_IO_fopen64): Likewise.
5516         * libio/iopopen.c (_IO_new_popen): Likewise.
5517         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5518         * libio/memstream.c (open_memstream): Likewise.
5519         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5520         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5521         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5522         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5523         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5524         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5525         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5526         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5527         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5528         * stdlib/strfmon.c (__strfmon_l): Likewise.
5529         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5530         (vfprintf): Qualify computed-goto targets as unbounded.
5531
5532 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5533
5534         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5535         thousands separator correctly.
5536
5537         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5538         * stdio-common/vfwscanf.c: Likewise.
5539
5540 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5541
5542         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5543         count into signatures for most calls.
5544
5545 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5546
5547         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5548         the generic parser now.
5549
5550 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5551
5552         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5553         table entries are 32 bit on the ia64 (as specified by the ABI),
5554         not 64 bit as on the Alpha.
5555
5556         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5557         change of objects to use 32 bit hash table indices (see above).
5558
5559 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5560
5561         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5562         prototype for abs().
5563
5564 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5565
5566         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5567         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5568         may have been reached.
5569
5570 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5571
5572         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5573         symbols in multi-character weights correctly.
5574
5575         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5576         depending on whether the input string is empty or not.
5577
5578         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5579         given state and not avoiding this by modifying a local object.
5580         * wcsmbs/wcrtomb.c: Likewise.
5581
5582         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5583         object since some incomplete characters might be in there.
5584
5585         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5586         sequences with first byte 0x8e correctly.
5587
5588         * iconvdata/jis0208.h: Remove redundant test.
5589
5590 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5591
5592         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5593         Add it where it is needed now.
5594
5595         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5596         the input charset into account when generating the hash table.
5597         (allocate_arrays): Correct setting default width.  Not all empty slots
5598         in the table are filled, only those not covert explicitly by the
5599         locale description and in the charset.
5600
5601         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5602         return values from the wctrans function.
5603
5604         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5605         wide character version.
5606         For %C handling, test correct pointer variable for NULL.
5607
5608         * wcsmbs/wctob.c: Handle WEOF special.
5609
5610         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5611
5612         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5613         always-true test to avoid warning.
5614
5615 2000-06-27  Greg McGary  <greg@mcgary.org>
5616
5617         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5618         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5619         (symbol_version, default_symbol_version): Factor redundant
5620         definitions out of conditional.
5621
5622 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5623
5624         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5625         not obstack_blank.
5626
5627 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5628
5629         * include/libc-symbols.h (symbol_version): Add extra level of
5630         macro expansion.
5631         (default_symbol_version): Likewise.
5632
5633 2000-06-26  Greg McGary  <greg@mcgary.org>
5634
5635         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5636         for BP return value & push implicit struct-return pointer to
5637         __errno_location.
5638         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5639         (SYSCALL_ERROR_HANDLER): Likewise.
5640         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5641         (SYSCALL_ERROR_HANDLER): Likewise.
5642
5643         * Makeconfig: Add missing comment.
5644         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5645         BP-flavored startup object.
5646         ($(objpfx)b$(start-installed-name)): New rule.
5647         * include/libc-symbols.h (symbol_set_declare): Change type
5648         of `__start_##set' and `__stop_##set' to pointer-to-function.
5649         (symbol_set_declare): Change type of `set' to array of
5650         pointer-to-function.
5651         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5652         pointer-to-function.
5653
5654         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5655
5656         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5657         Remove clock_* and timer_* entries.
5658         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5659         arg-count with signatures.
5660
5661         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5662         Check bounds of arguments.
5663         * sysdeps/i386/addmul_1.S: Likewise.
5664         * sysdeps/i386/lshift.S: Likewise.
5665         * sysdeps/i386/mul_1.S: Likewise.
5666         * sysdeps/i386/rshift.S: Likewise.
5667         * sysdeps/i386/sub_n.S: Likewise.
5668         * sysdeps/i386/submul_1.S: Likewise.
5669         * sysdeps/i386/i586/add_n.S: Likewise.
5670         * sysdeps/i386/i586/addmul_1.S: Likewise.
5671         * sysdeps/i386/i586/lshift.S: Likewise.
5672         * sysdeps/i386/i586/rshift.S: Likewise.
5673         * sysdeps/i386/i586/sub_n.S: Likewise.
5674         * sysdeps/i386/i686/add_n.S: Likewise.
5675
5676         * sysdeps/i386/memchr.S: Likewise.
5677         * sysdeps/i386/memcmp.S: Likewise.
5678         * sysdeps/i386/rawmemchr.S: Likewise.
5679         * sysdeps/i386/i586/bzero.S: Likewise.
5680         * sysdeps/i386/i586/memcpy.S: Likewise.
5681         * sysdeps/i386/i586/mempcpy.S: Likewise.
5682         * sysdeps/i386/i586/memset.S: Likewise.
5683         * sysdeps/i386/i686/bzero.S: Likewise.
5684         * sysdeps/i386/i686/memcpy.S: Likewise.
5685         * sysdeps/i386/i686/mempcpy.S: Likewise.
5686         * sysdeps/i386/i686/memset.S: Likewise.
5687
5688         * sysdeps/i386/stpcpy.S: Likewise.
5689         * sysdeps/i386/stpncpy.S: Likewise.
5690         * sysdeps/i386/strchr.S: Likewise.
5691         * sysdeps/i386/strchrnul.S: Likewise.
5692         * sysdeps/i386/strcspn.S: Likewise.
5693         * sysdeps/i386/strpbrk.S: Likewise.
5694         * sysdeps/i386/strrchr.S: Likewise.
5695         * sysdeps/i386/strspn.S: Likewise.
5696         * sysdeps/i386/strtok.S: Likewise.
5697         * sysdeps/i386/strtok_r.S: Likewise.
5698         * sysdeps/i386/i486/strcat.S: Likewise.
5699         * sysdeps/i386/i486/strlen.S: Likewise.
5700         * sysdeps/i386/i586/strchr.S: Likewise.
5701         * sysdeps/i386/i586/strcpy.S: Likewise.
5702         * sysdeps/i386/i586/strlen.S: Likewise.
5703         * sysdeps/i386/i686/strcmp.S: Likewise.
5704         * sysdeps/i386/i686/strtok.S: Likewise.
5705         * sysdeps/i386/i686/strtok_r.S: Likewise.
5706
5707         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5708         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5709         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5710         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5711         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5712
5713         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5714         * sysdeps/i386/mul_1.S: Likewise.
5715         * sysdeps/i386/submul_1.S: Likewise.
5716         * sysdeps/i386/i586/add_n.S: Likewise.
5717         * sysdeps/i386/i586/addmul_1.S: Likewise.
5718         * sysdeps/i386/i586/lshift.S: Likewise.
5719         * sysdeps/i386/i586/mul_1.S: Likewise.
5720         * sysdeps/i386/i586/rshift.S: Likewise.
5721         * sysdeps/i386/i586/sub_n.S: Likewise.
5722         * sysdeps/i386/i586/submul_1.S: Likewise.
5723
5724 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5725
5726         * rt/Makefile (librt-routines): Add clock_nanosleep.
5727         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5728         * sysdeps/generic/clock_nanosleep.c: New file.
5729         * sysdeps/unix/clock_nanosleep.c: New file.
5730         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5731         * time/time.h: Declare clock_nanosleep.
5732
5733 2000-06-26  Greg McGary  <greg@mcgary.org>
5734
5735         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5736         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5737         (ALIGN): Cleanup surrounding conditionals.
5738
5739         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5740         Call ENTER/LEAVE macros.
5741         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5742         * sysdeps/i386/submul_1.S: Likewise.
5743
5744         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5745         syntax.  Define & use symbolic argument stack offsets.  Call
5746         ENTER/LEAVE macros.
5747         * sysdeps/i386/i586/mul_1.S: Likewise.
5748         * sysdeps/i386/i586/submul_1.S: Likewise.
5749
5750 2000-06-25  Greg McGary  <greg@mcgary.org>
5751
5752         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5753         not as bcopy.
5754
5755 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5756
5757         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5758         * iconvdata/gen-8bit-gap.sh: Likewise.
5759         * iconvdata/gen-8bit.sh: Likewise.
5760
5761         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5762
5763         * locale/programs/ld-collate.c (collate_read): Don't actually read
5764         the copy locale if we are ignoring the content.
5765
5766         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5767         unknown character.
5768
5769         * locale/programs/ld-collate.c: Correct handling of different
5770         collation sections.
5771         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5772         as extra parameter from which to copy category information.
5773         Change all callers.
5774         (load_locale): Likewise.
5775         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5776         and load_locale.
5777         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5778         * locale/programs/locfile.h: Likewise.
5779         * locale/programs/locfile-kw.gperf: Add entry for script.
5780         * locale/programs/locfile-token.h: Add tok_script.
5781
5782         * locale/programs/locale.c: Update copyright year.
5783         * locale/programs/localedef.c: Likewise.
5784
5785 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5786
5787         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5788         Jens Moeller <jens.moeller@waii.com>.
5789
5790 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5791
5792         * locale/programs/ld-name.c (name_finish): Add missing format
5793         specifier to test for name_fmt.
5794
5795         * locale/programs/ld-address.c (iso639): Correct length of string
5796         elements.
5797         (iso3166): Likewise.
5798
5799         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5800
5801         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5802         Define.
5803
5804         * elf/elf.h (NT_PRFPXREG): Define.
5805
5806 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5807
5808         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5809         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5810
5811 2000-06-23  Andreas Schwab  <schwab@suse.de>
5812
5813         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5814         with signatures.
5815
5816 2000-06-23  Andreas Jaeger  <aj@suse.de>
5817
5818         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5819
5820         * io/test-stat.c: Add copyright header, mention Maciej.
5821
5822         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5823         SYS_mincore, SYS_madvise): Added.
5824
5825         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5826         execve.
5827
5828 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5829
5830         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5831         (CFLAGS-tst_putwc.c): New definition.
5832         * libio/tst_getwc.c: New file.
5833         * libio/tst_getwc.input: New file.
5834         * libio/tst_putwc.c: New file.
5835
5836         * include/string.h: Add prototype for __strdup.
5837
5838 2000-06-22  Greg McGary  <greg@mcgary.org>
5839
5840         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5841         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5842         Fix signatures.
5843
5844 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5845
5846         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5847
5848 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5849
5850         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5851
5852 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5853
5854         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5855         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5856
5857 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5858
5859         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5860         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5861         and __S_TYPEISSHM.
5862         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5863         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5864         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5865         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5866         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5867         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5868         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5869         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5870         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5871         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5872         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5873         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5874         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5875         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5876         S_TYPEISSHM.
5877
5878 2000-06-22  Andreas Jaeger  <aj@suse.de>
5879
5880         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5881         with signatures.
5882
5883         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5884
5885         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5886
5887 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5888
5889         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5890         ahead.
5891
5892 2000-06-21  Greg McGary  <greg@mcgary.org>
5893
5894         * Makerules (elide-routines.*, elide-bp-thunks):
5895         Define unconditionally.
5896
5897 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5898
5899         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5900
5901 2000-06-21  Andreas Jaeger  <aj@suse.de>
5902
5903         * io/Makefile (tests): Add test-stat.
5904         (CFLAGS-test-stat.c): New.
5905
5906         * io/test-stat.c: New file from Maciej W. Rozycki
5907         <macro@ds2.pg.gda.pl>.
5908
5909 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5910
5911         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5912         in __rlimit_resource to make them match the kernel order.
5913         rlim_t is always 64 bit, use __rlim64_t to declare it
5914         unconditionally.
5915
5916 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5917
5918         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5919         RLIM_INFINITY before defining it to avoid clash with kernel header
5920
5921 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5922
5923         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5924
5925 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5926
5927         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5928
5929 2000-06-21  Andreas Jaeger  <aj@suse.de>
5930
5931         * stdio-common/temptest.c: Include <stdlib.h>.
5932         * stdio-common/tst-fileno.c: Likewise.
5933         * stdio-common/scanf4.c: Likewise.
5934         * stdio-common/scanf5.c: Likewise.
5935         * time/clocktest.c: Likewise.
5936         * posix/test-vfork.c: Likewise.
5937         * posix/globtest.c: Likewise.
5938         * io/test-utime.c: Likewise.
5939         * wctype/test_wcfuncs.c: Likewise.
5940         * crypt/cert.c: Likewise.
5941
5942         * stdio-common/tst-printfsz.c: Include <string.h>.
5943         * libio/tst_swscanf.c: Likewise.
5944         * libio/tst_wscanf.c: Likewise.
5945         * posix/runtests.c: Likewise.
5946         * posix/tst-getaddrinfo.c: Likewise.
5947         * posix/wordexp-test.c: Likewise.
5948         * misc/tst-efgcvt.c: Likewise.
5949
5950         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5951         * nss/test-netdb.c: Likewise.
5952
5953         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5954         supported kernel for MIPS.
5955
5956         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5957         * rt/aio_suspend.c: Likewise.
5958
5959 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5960
5961         * math/libm-test.inc: Include <string.h>.
5962
5963 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5964
5965         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5966
5967 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5968
5969         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5970         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5971
5972 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5973
5974         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5975
5976 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5977
5978         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5979
5980 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5981
5982         * locale/programs/ld-collate.c (insert_value): Now take string and
5983         length instead of struct token* parameter.  Adjust use of token.
5984         (handle_ellipsis): Likewise.
5985         (collate_read): Allow <Uxxxx> names and transform them into names
5986         to be passed to insert_value and handle_ellipsis.
5987
5988         * locale/programs/ld-ctype.c (uninames): New array with names of
5989         digits in <Uxxxxxxxx> format.
5990         (ctype_finish): Correct search for space character value.  Likewise
5991         for default outdigits values.
5992
5993 2000-06-20  Greg McGary  <greg@mcgary.org>
5994
5995         * Makerules (objects): Add BP thunks.
5996
5997 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5998
5999         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6000         in width definitions.
6001
6002 2000-06-20  Andreas Jaeger  <aj@suse.de>
6003
6004         * sysdeps/mips/fpu/libm-test-ulps: New file.
6005
6006         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6007         first.
6008
6009         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6010
6011         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6012
6013 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6014
6015         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6016         change in gconv_builtin.h.
6017
6018         * malloc/Makefile: Change all references to memprof into memusage.
6019         * malloc/memprof.c: Rename to...
6020         * malloc/memusage.c: ...this.  New file.
6021         * malloc/memprof.sh: Rename to...
6022         * malloc/memusage.sh: ...this.  New file.
6023         * malloc/memprofstat.c: Rename to...
6024         * malloc/memusagestat.c: ...this.  New file.
6025         * sysdeps/alpha/memprof.h: Rename to..
6026         * sysdeps/alpha/memusage.h: ...this.  New file.
6027         * sysdeps/arm/memprof.h: Rename to..
6028         * sysdeps/arm/memusage.h: ...this.  New file.
6029         * sysdeps/generic/memprof.h: Rename to..
6030         * sysdeps/generic/memusage.h: ...this.  New file.
6031         * sysdeps/i386/memprof.h: Rename to..
6032         * sysdeps/i386/memusage.h: ...this.  New file.
6033         * sysdeps/ia64/memprof.h: Rename to..
6034         * sysdeps/ia64/memusage.h: ...this.  New file.
6035         * sysdeps/m68k/memprof.h: Rename to..
6036         * sysdeps/m68k/memusage.h: ...this.  New file.
6037         * sysdeps/mips/memprof.h: Rename to..
6038         * sysdeps/mips/memusage.h: ...this.  New file.
6039         * sysdeps/powerpc/memprof.h: Rename to..
6040         * sysdeps/powerpc/memusage.h: ...this.  New file.
6041         * sysdeps/sparc/memprof.h: Rename to..
6042         * sysdeps/sparc/memusage.h: ...this.  New file.
6043         * sysdeps/sh/memprof.h: Rename to..
6044         * sysdeps/sh/memusage.h: ...this.  New file.
6045
6046         * elf/sprof.c (print_version): Update year.
6047
6048         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6049         table entry values.  Use D_PTR.
6050         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6051         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6052
6053 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6054
6055         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6056         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6057         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6058         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6059
6060 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6061
6062         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6063
6064 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6065
6066         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6067         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6068         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6069
6070         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6071
6072         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6073         kernel change.
6074
6075         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6076         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6077         structure.
6078         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6079         implementation.
6080
6081 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6082
6083         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6084
6085 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6086
6087         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6088
6089 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6090
6091         * iconv/gconv_int.h (strict gconv_module): Remove all members
6092         associated with regular expressions.  Use a simple string as the
6093         from name.
6094         * iconv/gconv_db.c: Remove code handling regular expressions.
6095         * iconv/gconv_conf.c: Likewise.
6096         * iconv/iconv_prog.c: Likewise.
6097         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6098
6099         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6100         General namespace cleanup.
6101         (struct __gconv_trans_data): Add next field.
6102         (struct __gconv_step_data): Make __trans a pointer.
6103         * iconv/gconv_conf.c: Split out code to find gconv directories from
6104         __gconv_read_conf in new functions.
6105         * iconv/gconv_int.h: Define new data structure and declare new
6106         functions for handling of gconv directory list.
6107         * iconv/gconv_open.c: Allow more than one error handling step being
6108         used.  Call function to load error handling module if it is none
6109         of the builtin transformations.
6110         * iconv/gconv_close.c: Add code to free transliteration data.
6111         * iconv/gconv_trans.c: Add functions to load and unload modules
6112         implementing transliteration etc.
6113         * iconv/skeleton.c: Call all context functions now that more than
6114         one module is allowed.
6115         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6116         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6117         where the full error handling using transliteration is needed.
6118         * iconvdata/8bit-gap.c: Likewise.
6119         * iconvdata/8bit-generic.c: Likewise.
6120         * iconvdata/ansi_x3.110.c: Likewise.
6121         * iconvdata/big5.c: Likewise.
6122         * iconvdata/big5hkscs.c: Likewise.
6123         * iconvdata/euc-cn.c: Likewise.
6124         * iconvdata/euc-jp.c: Likewise.
6125         * iconvdata/euc-kr.c: Likewise.
6126         * iconvdata/euc-tw.c: Likewise.
6127         * iconvdata/gbgbk.c: Likewise.
6128         * iconvdata/gbk.c: Likewise.
6129         * iconvdata/iso-2022-cn.c: Likewise.
6130         * iconvdata/iso-2022-jp.c: Likewise.
6131         * iconvdata/iso-2022-kr.c: Likewise.
6132         * iconvdata/iso646.c: Likewise.
6133         * iconvdata/iso8859-1.c: Likewise.
6134         * iconvdata/iso_6937-2.c: Likewise.
6135         * iconvdata/iso_6937.c: Likewise.
6136         * iconvdata/johab.c: Likewise.
6137         * iconvdata/sjis.c: Likewise.
6138         * iconvdata/t.61.c: Likewise.
6139         * iconvdata/uhc.c: Likewise.
6140         * iconvdata/unicode.c: Likewise.
6141         * iconvdata/utf-16.c: Likewise.
6142         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6143         structure correctly after last change.
6144         * wcsmbs/btowc.c: Likewise.
6145         * wcsmbs/mbrtowc.c: Likewise.
6146         * wcsmbs/mbsnrtowcs.c: Likewise.
6147         * wcsmbs/mbsrtowcs.c: Likewise.
6148         * wcsmbs/wcrtomb.c: Likewise.
6149         * wcsmbs/wcsnrtombs.c: Likewise.
6150         * wcsmbs/wcsrtombs.c: Likewise.
6151         * wcsmbs/wctob.c: Likewise.
6152
6153         * localedata/Makefile: Set -Wno-format for some files since gcc does
6154         not know all the format specifiers.
6155
6156 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6157
6158         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6159         unneeded code.
6160         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6161
6162 2000-06-18  Andreas Jaeger  <aj@suse.de>
6163
6164         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6165         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6166
6167 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6168
6169         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6170         LINUX_LINK_MAX.
6171         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6172
6173         * locale/programs/ld-ctype.c (ctype_output): Really write out
6174         mboutdigits information.
6175         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6176         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6177         * localedata/tests/trans.def: Add outdigit information.
6178
6179         * localedata/tst-mbswcs3.c: Remove comment.
6180
6181         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6182         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6183         * libio/tst_wprintf.c (main): Add test for I flag.
6184
6185         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6186         * locale/langinfo.h: Add entries for translit_ignore information.
6187         * locale/categories.def: Add entries for new LC_CTYPE elements.
6188         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6189         pointer instead of "" where possible.
6190         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6191         * intl/Depend: Add localedata.
6192         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6193         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6194
6195 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6196
6197         * locale/langinfo.h: Add entries for default_missing information.
6198         * locale/C-ctype.c: Add initializers for new fields.
6199         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6200         information.
6201         * locale/categories.h: Add entries for all LC_CTYPE values.
6202         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6203         information.
6204
6205         * localedata/tst-trans.c: Write out an error message if class is
6206         not found.
6207
6208         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6209         * iconv/gconv_open.c: Remove error handling specification from `from'
6210         character set name.
6211         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6212         new parameter to always enable transliteration.
6213         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6214         change.
6215         (struct locale_data): Add new members use_translit and options.
6216         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6217         character set name contained modifier TRANSLIT.
6218         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6219         and options fields.
6220         (_nl_unload_locale): Free options string if necessary.
6221         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6222         the locale names suggested this.
6223         * locale/C-address.c: Add two new initialilzers to adjust data
6224         structure for new format.
6225         * locale/C-collate.c: Likewise.
6226         * locale/C-ctype.c: Likewise.
6227         * locale/C-identification.c: Likewise.
6228         * locale/C-measurement.c: Likewise.
6229         * locale/C-messages.c: Likewise.
6230         * locale/C-monetary.c: Likewise.
6231         * locale/C-name.c: Likewise.
6232         * locale/C-numeric.c: Likewise.
6233         * locale/C-paper.c: Likewise.
6234         * locale/C-telephone.c: Likewise.
6235         * locale/C-time.c: Likewise.
6236
6237         * locale/setlocale.c: Add some more __builtin_expect.
6238
6239 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6240
6241         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6242         unsigned char **.
6243         (__gconv_init_fct): Remove two parameters.
6244         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6245         gconv_transliterate.  Remove two parameters.
6246         Change prototypes of builtin functions according to __gconv_fct change.
6247         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6248         != NULL only during error handling.  Stop in this case after the
6249         conversion.
6250         * iconv/gconv_trans.c: Replace with real implementation for
6251         __gconv_transliterate.
6252         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6253         * iconv/gconv.c: Change calls to downstream functions once again.
6254         Use NULL for the fifth parameter instead of pointer to output buffer.
6255         * libio/iofwide.c: Likewise.
6256         * wcsmbs/btowc.c: Likewise.
6257         * wcsmbs/mbrtowc.c: Likewise.
6258         * wcsmbs/mbsnrtowcs.c: Likewise.
6259         * wcsmbs/mbsrtowcs.c: Likewise.
6260         * wcsmbs/wcrtomb.c: Likewise.
6261         * wcsmbs/wcsnrtombs.c: Likewise.
6262         * wcsmbs/wcsrtombs.c: Likewise.
6263         * wcsmbs/wctob.c: Likewise.
6264         * iconv/gconv_simple.c: Remove two parameters from error handling
6265         function call.
6266         * iconvdata/8bit-gap.c: Likewise.
6267         * iconvdata/8bit-generic.c: Likewise.
6268         * iconvdata/ansi_x3.110.c: Likewise.
6269         * iconvdata/big5.c: Likewise.
6270         * iconvdata/big5hkscs.c: Likewise.
6271         * iconvdata/euc-cn.c: Likewise.
6272         * iconvdata/euc-jp.c: Likewise.
6273         * iconvdata/euc-kr.c: Likewise.
6274         * iconvdata/euc-tw.c: Likewise.
6275         * iconvdata/gbgbk.c: Likewise.
6276         * iconvdata/gbk.c: Likewise.
6277         * iconvdata/iso-2022-cn.c: Likewise.
6278         * iconvdata/iso-2022-jp.c: Likewise.
6279         * iconvdata/iso-2022-kr.c: Likewise.
6280         * iconvdata/iso646.c: Likewise.
6281         * iconvdata/iso8859-1.c: Likewise.
6282         * iconvdata/iso_6937-2.c: Likewise.
6283         * iconvdata/iso_6937.c: Likewise.
6284         * iconvdata/johab.c: Likewise.
6285         * iconvdata/sjis.c: Likewise.
6286         * iconvdata/t.61.c: Likewise.
6287         * iconvdata/uhc.c: Likewise.
6288         * iconvdata/unicode.c: Likewise.
6289         * iconvdata/utf-16.c: Likewise.
6290
6291 2000-06-15  Greg McGary  <greg@mcgary.org>
6292
6293         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6294         of callnum assignment.  Tolerate callnum expressions containing
6295         parens.
6296
6297 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6298
6299         * login/Makefile (utmpd): Remove rule to build utmpd.
6300
6301         * csu/Versions: Move libgcc frame handling functions from here...
6302         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6303         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6304         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6305         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6306         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6307         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6308         New file.
6309         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6310
6311         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6312
6313         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6314
6315 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6316
6317         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6318         compatibility.
6319         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6320         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6321         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6322         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6323
6324 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6325
6326         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6327         defined, terminate quotes and read them after the comment char.
6328         * configure.in (HAVE_SECTION_QUOTES): Test whether
6329         __attribute__((section ("x"))) puts quotes around x or not.
6330         * config.h.in (HAVE_SECTION_QUOTES): Add.
6331         * configure: Rebuilt.
6332
6333 2000-06-14  Andreas Jaeger  <aj@suse.de>
6334
6335         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6336         depending on the configure option --sysconfdir.
6337         Closes PR libc/1762.
6338         Patch by Andreas Schwab <schwab@suse.de>.
6339
6340         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6341         entry point.
6342         Reported by Jim Pick <jim@jimpick.com>.
6343
6344 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6345
6346         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6347         crashing the application.  Emit some simple error message.
6348         Reported by mju@panasas.com [PR libc/1769].
6349
6350 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6351
6352         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6353
6354         * crypt/Makefile (distribute): Add md5.h.
6355
6356         * Makefile (distribute): Add include/shlib-compat.h.
6357
6358         * Make-dist: Search for tests also in sysdeps hierachy.
6359
6360         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6361         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6362
6363         * sysdeps/sparc/Subdirs: New file.
6364
6365         * locale/Makefile (distribute): Add weightwc.h and
6366         programs/localedef.h.
6367
6368         * time/Makefile (distribute): Add datemsk.
6369
6370         * sysdeps/ia64/Dist: Add softpipe.h.
6371
6372         * sysdeps/unix/sysv/aix/Dist: New file.
6373
6374         * posix/setpgrp.c: Moved to...
6375         * sysdeps/generic/setpgrp.c: ...here.  New file.
6376         * io/mknod.c: Moved to...
6377         * sysdeps/generic/mknod.c: ...here.  New file.
6378
6379         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6380
6381         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6382
6383         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6384
6385         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6386         gprsave0.S, gprrest1.S, and gprrest0.S.
6387
6388         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6389
6390         * posix/Makefile (routines): Add spawnattr_getsigmask,
6391         spawnattr_getschedpolicy, spawnattr_getschedparam,
6392         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6393         spawnattr_setschedparam.
6394         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6395         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6396         posix_spawnattr_setschedparam.
6397
6398         * posix/spawnattr_setschedparam.c: Fix typo.
6399
6400         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6401         Correct typo.
6402
6403         * login/programs/utmpd.c: Removed.
6404         * login/programs/utmpd.h: Removed.
6405         * login/programs/utmpd-private.h: Removed.
6406
6407         * Makefile (distribute): Add include/db_185.h and include/db.h.
6408
6409         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6410         iso-ir-165.h.
6411
6412         * elf/Makefile (distribute): Add missing files.
6413
6414         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6415         * elf/eval.c: Moved to...
6416         * dlfcn/eval.c: ...here.  New file.
6417
6418         * Makefile (distribute): Also distribute ChangeLog.1?.
6419
6420         * Make-dist (+tsrcs): Remove .args handling here as well.
6421
6422         * rt/Makefile (tests): Add tst-timer.
6423         * sysdeps/generic/tst-timer.c: New file.
6424
6425         * Makerules (sources): Don't add BP sources here.
6426
6427         * login/Makefile (distribute): Remove xtmp.h.
6428
6429         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6430         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6431
6432 2000-06-13  Andreas Jaeger  <aj@suse.de>
6433
6434         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6435         Patch by Ralf Baechle <ralf@gnu.org>.
6436
6437 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6438
6439         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6440         for mincore syscall.
6441
6442         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6443         __BOUNDED_POINTERS__ is not defined.
6444
6445 2000-06-07  Greg McGary  <greg@mcgary.org>
6446
6447         * sysdeps/generic/bp-sym.h: New file.
6448         * sysdeps/generic/bp-start.h: New file.
6449         * sysdeps/i386/elf/start.S: Designate BP symbols.
6450         * sysdeps/generic/libc-start.c: Wrap bounds around
6451         argv & envp and each of their string members.
6452
6453 2000-06-07  Greg McGary  <greg@mcgary.org>
6454
6455         * sysdeps/unix/make-syscalls.sh: Add comments to
6456         output that aid debugging & comprehension.
6457         Map simple syscall signatures to number of args.
6458         Generate BP syscall thunk definitions.
6459         * sysdeps/generic/bp-thunks.h: New file.
6460         * sysdeps/unix/syscalls.list: Replace arg-count with
6461         simple return+arg signature.
6462         * sysdeps/unix/common/syscalls.list: Likewise.
6463         * sysdeps/unix/inet/syscalls.list: Likewise.
6464         * sysdeps/unix/mman/syscalls.list: Likewise.
6465         * sysdeps/unix/sysv/syscalls.list: Likewise.
6466         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6467         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6468
6469 2000-06-07  Greg McGary  <greg@mcgary.org>
6470
6471         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6472         for all files *.[cS].
6473         (CFLAGS-.ob): Don't optimize sibling calls.
6474         (bppfx): New variable.
6475         * Makerules (elide-bp-thunks): New variable.
6476         (elide-routines.*): Elide BP-* files for all but *.ob.
6477         (sources): Include bp-thunks.
6478
6479 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6480
6481         * iconv/gconv_simple.c: Remove unnecessary prototype.
6482
6483         * iconv/gconv_trans.c: Pretty print.
6484
6485         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6486
6487         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6488         minimal kernel versions.  Add information about IA-64 kernel.
6489
6490         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6491         specific minimal supported kernel versions to be specified.
6492
6493         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6494         step data structure.
6495         * wcsmbs/btowc.c: Likewise.
6496         * wcsmbs/mbrtowc.c: Likewise.
6497         * wcsmbs/mbsnrtowcs.c: Likewise.
6498         * wcsmbs/mbsrtowcs.c: Likewise.
6499         * wcsmbs/wcrtomb.c: Likewise.
6500         * wcsmbs/wcsnrtombs.c: Likewise.
6501         * wcsmbs/wcsrtombs.c: Likewise.
6502         * wcsmbs/wctob.c: Likewise.
6503
6504         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6505         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6506
6507         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6508
6509         * misc/sys/cdefs.h: Remove one more __P.
6510
6511         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6512         Reported by HJ Lu.
6513
6514         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6515         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6516         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6517
6518 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6519             Yutaka Niibe  <gniibe@chroot.org>
6520
6521         * configure.in: Add machine sh3, sh4.
6522         * elf/elf.h: Add SH specific declarations of relocations.
6523         * shlib-versions: Add sh*-*-linux* cases.
6524
6525 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6526
6527         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6528         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6529         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6530         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6531         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6532         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6533
6534         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6535         instead of KERNEL_MATH_EMULATION.
6536         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6537         KERNEL_MATH_EMULATION.
6538
6539         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6540         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6541         * sysdeps/sh/dl-machine.h: ...here.  New file.
6542         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6543         and include generic SH version.
6544         * sysdeps/sh/sh3/bits/endian.h: Move to...
6545         * sysdeps/sh/bits/endian.h: ...here.  New file.
6546         * sysdeps/sh/sh4/bits/endian.h: Removed.
6547         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6548         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6549         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6550
6551         * include/libc-symbols.h (link_warning): Work around a change in
6552         GAS which warns about changing section attributes.
6553         Proposed by Nick Clifton <nickc@redhat.com>.
6554
6555 2000-06-12  H.J. Lu  <hjl@gnu.org>
6556
6557         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6558
6559 2000-06-11  H.J. Lu  <hjl@gnu.org>
6560
6561         * sysdeps/i386/fpu/Versions: New file.
6562
6563 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6564
6565         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6566         parameters.
6567         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6568         exists.
6569
6570 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6571
6572         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6573         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6574         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6575
6576         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6577         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6578         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6579
6580 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6581             Yutaka Niibe  <gniibe@chroot.org>
6582
6583         * sysdeps/sh/Dist: New file.
6584         * sysdeps/sh/Implies: New file.
6585         * sysdeps/sh/elf/initfini.c: New file.
6586         * sysdeps/sh/gmp-mparam.h: New file.
6587         * sysdeps/sh/init-first.c: New file.
6588         * sysdeps/sh/machine-gmon.h: New file.
6589         * sysdeps/sh/memcpy.S: New file.
6590         * sysdeps/sh/memprof.h: New file.
6591         * sysdeps/sh/memset.S: New file.
6592         * sysdeps/sh/sh3/__longjmp.S: New file.
6593         * sysdeps/sh/sh3/bits/endian.h: New file.
6594         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6595         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6596         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6597         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6598         * sysdeps/sh/sh3/dl-machine.h: New file.
6599         * sysdeps/sh/sh3/setjmp.S: New file.
6600         * sysdeps/sh/sh4/__longjmp.S: New file.
6601         * sysdeps/sh/sh4/bits/endian.h: New file.
6602         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6603         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6604         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6605         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6606         * sysdeps/sh/sh4/dl-machine.h: New file.
6607         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6608         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6609         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6610         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6611         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6612         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6613         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6614         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6615         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6616         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6617         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6618         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6619         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6620         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6621         * sysdeps/sh/sh4/setjmp.S: New file.
6622         * sysdeps/sh/elf/start.S: New file.
6623         * sysdeps/sh/sys/ucontext.h: New file.
6624         * sysdeps/sh/strlen.S: New file.
6625         * sysdeps/sh/sysdep.h: New file.
6626         * sysdeps/unix/sh/sysdep.S: New file.
6627         * sysdeps/unix/sh/sysdep.h: New file.
6628         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6629         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6630         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6631         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6632         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6633         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6634         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6635         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6636         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6637         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6638         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6639         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6640         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6641         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6642         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6643         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6644         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6645         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6646         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6647         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6648         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6649         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6650         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6651         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6652         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6653         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6654         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6655         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6656         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6657         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6658         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6659         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6660         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6661         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6662         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6663         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6664         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6665         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6666         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6667         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6668         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6669         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6670         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6671         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6672         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6673         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6674         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6675         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6676         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6677         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6678
6679 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6680
6681         * Rules (%.out): Define GCONV_PATH in the environment.
6682         * assert/Depend: New file.
6683         * iconvdata/Depend: New file.
6684         * intl/Depend: New file.
6685         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6686         * intl/tst-gettext.sh: Likewise.
6687         * iconv/Makefile (routines): Add gconv_trans.
6688         * iconv/gconv_trans.c: New file.
6689         * iconv/gconv.h (struct __gconv_trans_data): New type.
6690         (__gconv_fct): New parameter with starting position in output buffer.
6691         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6692         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6693         (struct __gconv_step): Add new member __trans.
6694         * iconv/gconv_int.h: Pretty print prototypes.
6695         (gconv_transliterate): New prototype.
6696         (__BUILTIN_TRANS): Update for new conversion function interface.
6697         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6698         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6699         in names, find appropriate function, and install in the conversion
6700         steps it can be used.
6701         * iconv/skeleton.c: Add additional parameter for beginning of output
6702         buffer.  Change calls of downstream functions.
6703         * iconv/loop.c: Change loop function interface completely.  Pass in
6704         step and step_data structure.  Remove optimization for BODY with
6705         NEED_LENGTH_TEST == 0.
6706         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6707         appropriate error handling code to use transliteration steps.  Remove
6708         optimization for BODY with NEED_LENGTH_TEST == 0.
6709         * iconvdata/8bit-gap.c: Likewise.
6710         * iconvdata/8bit-generic.c: Likewise.
6711         * iconvdata/ansi_x3.110.c: Likewise.
6712         * iconvdata/big5.c: Likewise.
6713         * iconvdata/big5hkscs.c: Likewise.
6714         * iconvdata/euc-cn.c: Likewise.
6715         * iconvdata/euc-jp.c: Likewise.
6716         * iconvdata/euc-kr.c: Likewise.
6717         * iconvdata/euc-tw.c: Likewise.
6718         * iconvdata/gbgbk.c: Likewise.
6719         * iconvdata/gbk.c: Likewise.
6720         * iconvdata/iso-2022-cn.c: Likewise.
6721         * iconvdata/iso-2022-jp.c: Likewise.
6722         * iconvdata/iso-2022-kr.c: Likewise.
6723         * iconvdata/iso646.c: Likewise.
6724         * iconvdata/iso8859-1.c: Likewise.
6725         * iconvdata/iso_6937-2.c: Likewise.
6726         * iconvdata/iso_6937.c: Likewise.
6727         * iconvdata/johab.c: Likewise.
6728         * iconvdata/sjis.c: Likewise.
6729         * iconvdata/t.61.c: Likewise.
6730         * iconvdata/uhc.c: Likewise.
6731         * iconvdata/unicode.c: Likewise.
6732         * iconvdata/utf-16.c: Likewise.
6733         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6734         DL_CALL_FCT.
6735         * wcsmbs/btowc.c: Likewise.
6736         * wcsmbs/mbrtowc.c: Likewise.
6737         * wcsmbs/mbsnrtowcs.c: Likewise.
6738         * wcsmbs/mbsrtowcs.c: Likewise.
6739         * wcsmbs/wcrtomb.c: Likewise.
6740         * wcsmbs/wcsnrtombs.c: Likewise.
6741         * wcsmbs/wcsrtombs.c: Likewise.
6742         * wcsmbs/wctob.c: Likewise.
6743
6744 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6745
6746         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6747         other header files.  Mention about 128-byte cache line sizes.
6748         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6749         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6750         for current calling sequence.
6751         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6752
6753         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6754         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6755
6756         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6757         and setrlimit syscalls for backwards compatibility.
6758
6759 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6760
6761         * iconv/skeleton.c:  Rename converted written to correcter name
6762         irreversible.
6763         * iconv/gconv.c: Rename converted variable to correcter name
6764         irreversible.
6765         * iconv/gconv_int.h: Likewise.
6766         * iconv/gconv_simple.c: Likewise.
6767         * iconv/iconv.c: Likewise.
6768         * iconv/loop.c: Likewise.
6769         * iconvdata/8bit-gap.c: Likewise.
6770         * iconvdata/8bit-generic.c: Likewise.
6771         * iconvdata/ansi_x3.110.c: Likewise.
6772         * iconvdata/big5.c: Likewise.
6773         * iconvdata/big5hkscs.c: Likewise.
6774         * iconvdata/euc-cn.c: Likewise.
6775         * iconvdata/euc-jp.c: Likewise.
6776         * iconvdata/euc-kr.c: Likewise.
6777         * iconvdata/gbgbk.c: Likewise.
6778         * iconvdata/gbk.c: Likewise.
6779         * iconvdata/iso-2022-cn.c: Likewise.
6780         * iconvdata/iso-2022-jp.c: Likewise.
6781         * iconvdata/iso-2022-kr.c: Likewise.
6782         * iconvdata/iso646.c: Likewise.
6783         * iconvdata/iso8859-1.c: Likewise.
6784         * iconvdata/iso_6937-2.c: Likewise.
6785         * iconvdata/iso_6937.c: Likewise.
6786         * iconvdata/johab.c: Likewise.
6787         * iconvdata/sjis.c: Likewise.
6788         * iconvdata/t.61.c: Likewise.
6789         * iconvdata/uhc.c: Likewise.
6790         * iconvdata/unicode.c: Likewise.
6791         * iconvdata/utf-16.c: Likewise.
6792
6793         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6794         __cmsg_data field with __extension__.
6795
6796 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6797
6798         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6799
6800 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6801
6802         * iconv/gconv_simple.c: Fix various small bugs in several
6803         functions.
6804
6805         * iconv/loop.c: Fix comment.
6806
6807 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6808
6809         * elf/link.h: Remove libc internal declarations.
6810         * include/link.h: Move them here.
6811
6812 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6813
6814         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6815         Patch by Dan Pop <Dan.Pop@cern.ch>.
6816
6817         Rewrite error message handling.
6818         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6819         _dl_catch_error.
6820         * elf/dl-error (struct catch): Add objname member.
6821         (_dl_signal_error): Take new parameter with object name.  When
6822         passing message on simply store object name and duplicate error
6823         message.
6824         (_dl_catch_error): Take new parameter.  Store object name in the
6825         place pointed to.
6826         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6827         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6828         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6829         (dlerror): Add objname to asprintf() parameters.
6830         (_dl_error_run): Pass new parameter to _dl_catch_error.
6831         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6832         * elf/dl-open.c (_dl_open): Likewise.
6833         * elf/rtld.c (dl_main): Likewise.
6834         * elf/dl-close.c: Mark error messages with N_().
6835         * elf/dl-deps.c: Likewise.
6836         * elf/dl-error.c: Likewise.
6837         * elf/dl-load.c: Likewise.
6838         * elf/dl-open.c: Likewise.
6839         * elf/dl-reloc.c: Likewise.
6840         * elf/dl-support.c: Likewise.
6841         * elf/dl-sym.c: Likewise.
6842         * elf/dl-version.c: Likewise.
6843         * elf/dl-lookup.c: Add comments about problems with error message
6844         translations.
6845         * elf/dl-reloc.c: Likewise.
6846         * elf/dl-version.c: Likewise.
6847
6848 2000-06-09  H.J. Lu  <hjl@gnu.org>
6849
6850         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6851         after freeing it.
6852
6853         * dlfcn/Makefile (distribute): Add failtestmod.c.
6854         (tests): Add failtest.
6855         Add rules to build and run failtest.
6856         * dlfcn/failtest.c: New file.
6857         * dlfcn/failtestmod.c: New file.
6858
6859 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6860
6861         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6862         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6863         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6864         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6865         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6866
6867 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6868
6869         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6870         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6871
6872 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6873             Ulrich Drepper  <drepper@redhat.com>
6874
6875         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6876         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6877         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6878         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6879         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6880         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6881
6882 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6883
6884         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6885         to find correct mount point despite wrong information from the
6886         kernel.
6887
6888 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6889
6890         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6891         the address of a symbol so function pointers are handled properly.
6892
6893 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6894
6895         * sysdeps/i386/Dist: Add bp-asm.h.
6896
6897         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6898         defaultdir variable instead of "/var/shm" everywhere.
6899         (defaultdir): Change to /dev/shm/.
6900
6901 2000-06-08  Greg McGary  <greg@mcgary.org>
6902
6903         * sysdeps/i386/bp-asm.h: New file.
6904         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6905         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6906         frame-pointer chain when debugging.
6907         * sysdeps/i386/add_n.S: Likewise.
6908         * sysdeps/i386/addmul_1.S: Likewise.
6909         * sysdeps/i386/lshift.S: Likewise.
6910         * sysdeps/i386/memchr.S: Likewise.
6911         * sysdeps/i386/memcmp.S: Likewise.
6912         * sysdeps/i386/mul_1.S: Likewise.
6913         * sysdeps/i386/rawmemchr.S: Likewise.
6914         * sysdeps/i386/rshift.S: Likewise.
6915         * sysdeps/i386/stpcpy.S: Likewise.
6916         * sysdeps/i386/stpncpy.S: Likewise.
6917         * sysdeps/i386/strchr.S: Likewise.
6918         * sysdeps/i386/strchrnul.S: Likewise.
6919         * sysdeps/i386/strcspn.S: Likewise.
6920         * sysdeps/i386/strpbrk.S: Likewise.
6921         * sysdeps/i386/strrchr.S: Likewise.
6922         * sysdeps/i386/strspn.S: Likewise.
6923         * sysdeps/i386/strtok.S: Likewise.
6924         * sysdeps/i386/sub_n.S: Likewise.
6925         * sysdeps/i386/submul_1.S: Likewise.
6926         * sysdeps/i386/elf/setjmp.S: Likewise.
6927         * sysdeps/i386/i486/strcat.S: Likewise.
6928         * sysdeps/i386/i486/strlen.S: Likewise.
6929         * sysdeps/i386/i586/add_n.S: Likewise.
6930         * sysdeps/i386/i586/lshift.S: Likewise.
6931         * sysdeps/i386/i586/memcpy.S: Likewise.
6932         * sysdeps/i386/i586/memset.S: Likewise.
6933         * sysdeps/i386/i586/rshift.S: Likewise.
6934         * sysdeps/i386/i586/strchr.S: Likewise.
6935         * sysdeps/i386/i586/strcpy.S: Likewise.
6936         * sysdeps/i386/i586/strlen.S: Likewise.
6937         * sysdeps/i386/i586/sub_n.S: Likewise.
6938         * sysdeps/i386/i686/add_n.S: Likewise.
6939         * sysdeps/i386/i686/memcpy.S: Likewise.
6940         * sysdeps/i386/i686/mempcpy.S: Likewise.
6941         * sysdeps/i386/i686/memset.S: Likewise.
6942         * sysdeps/i386/i686/strcmp.S: Likewise.
6943
6944 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6945
6946         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6947
6948         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6949         256 and don't use OPEN_MAX.
6950
6951         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6952         use it instead of LINK_MAX.
6953         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6954
6955 2000-06-08  Andreas Jaeger  <aj@suse.de>
6956
6957         * libio/genops.c (_IO_list_lock): Only compile body if we're
6958         thread safe.
6959         (_IO_list_unlock): Likewise.
6960         (_IO_list_resetlock): Likewise.
6961
6962 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6963
6964         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6965         unless user defined it.
6966
6967         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6968         if not defined by the user.
6969
6970         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6971         * libio/iofwrite.c (_IO_fwrite): Likewise.
6972
6973         * time/time.h: Add missing __THROW for clock_getcpuclockid
6974         prototype.
6975
6976         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6977         * include/elf.h: Include also <dl-dtprocnum.h>.
6978         * elf/dl-deps.c: Likewise.
6979         * elf/dl-lookup.c: Likewise.
6980         * elf/dl-runtime.c: Likewise.
6981         * elf/dl-version.c: Likewise.
6982         * elf/do-rel.h: Likewise.
6983         * elf/dynamic-link.h: Likewise.
6984         * elf/link.h: Likewise.
6985         * elf/rtld.c: Likewise.
6986         * sysdeps/generic/dl-dtprocnum.h: New file.
6987         * sysdeps/ia64/dl-dtprocnum.h: New file.
6988         * sysdeps/mips/dl-dtprocnum.h: New file.
6989         * sysdeps/sparc/dl-dtprocnum.h: New file.
6990
6991         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6992
6993         * elf/do-lookup.h: Add some __builtin_expect.
6994
6995         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6996
6997         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6998         (_dl_dynamic_weak): New variable.
6999         * elf/dl-support.c: Likewise.
7000         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7001         * elf/do-lookup.h: If we find a weak definition treat it like a
7002         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7003         case treat it like before.
7004
7005         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7006         is in main program.
7007         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7008
7009         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7010         using l_map_start and l_map_end.
7011
7012         * elf/dl-version.c: Add __builtin_expect in many places.
7013
7014         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7015         Update.
7016
7017 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7018
7019         Lock for stdio stream list becomes global, for use in LinuxThreads.
7020
7021         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7022         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7023         _IO_list_resetlock): New interface for iterating global list of
7024         streams without accessing the _IO_list_all global variable,
7025         and for manipulating the lock which protects this list.
7026         * libio/libioP.h: Likewise.
7027         * libio/Version: Add entries for the new functions.
7028
7029         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7030         pointer to _IO_FILE.
7031
7032 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7033
7034         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7035         BIT() must actually be BITw().
7036
7037         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7038
7039         * locale/programs/charmap.c: Allow string arguments for
7040         code_set_name and repertoiremap.
7041
7042 2000-06-07  Andreas Jaeger  <aj@suse.de>
7043
7044         * elf/Makefile: Build ldconfig only when building shared libraries.
7045
7046 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7047
7048         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7049         __USE_ISOC99.
7050         (fdimf, __fdim, fdim): Likewise.
7051
7052 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7053
7054         * locale/findlocale.c: Add __builtin_expect in many places.
7055         * locale/loadlocale.c: Likewise.
7056
7057 2000-06-06  Greg McGary  <greg@mcgary.org>
7058
7059         * sysdeps/mips/elf/start.S: Trim redundant code.
7060
7061         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7062         Use C comments throughout.  Line up operands column with tabs.
7063         * sysdeps/powerpc/strchr.S: Likewise.
7064         * sysdeps/powerpc/strcmp.S: Likewise.
7065         * sysdeps/powerpc/strcpy.S: Likewise.
7066         * sysdeps/powerpc/strlen.S: Likewise.
7067
7068         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7069         Get low part of &__curbrk with @l.
7070
7071 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7072
7073         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7074         * iconvdata/unicode.c: Likewise.
7075         * iconvdata/uhc.c: Likewise.
7076         * iconvdata/t.61.c: Likewise.
7077         * iconvdata/sjis.c: Likewise.
7078         * iconvdata/johab.c: Likewise.
7079         * iconvdata/iso_6937.c: Likewise.
7080         * iconvdata/iso_6937-2.c: Likewise.
7081         * iconvdata/iso8859-1.c: Likewise.
7082         * iconvdata/iso646.c: Likewise.
7083         * iconvdata/iso-2022-kr.c: Likewise.
7084         * iconvdata/iso-2022-jp.c: Likewise.
7085         * iconvdata/iso-2022-cn.c: Likewise.
7086         * iconvdata/gbgbk.c: Likewise.
7087         * iconvdata/gbk.c: Likewise.
7088         * iconvdata/euc-kr.c: Likewise.
7089         * iconvdata/euc-jp.c: Likewise.
7090         * iconvdata/euc-cn.c: Likewise.
7091
7092 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7093
7094         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7095         * iconvdata/big5.c: Likewise.
7096         * iconvdata/ansi_x3.110.c: Likewise.
7097         * iconvdata/8bit-generic.c: Likewise.
7098         * iconvdata/8bit-gap.c: Likewise.
7099         * iconv/loop.c: Likewise.
7100         * iconv/gconv_db.c: Likewise.
7101         * iconv/gconv_dl.c: Likewise.
7102         * iconv/gconv_simple.c: Likewise.
7103         * iconv/skeleton.c: Likewise.
7104
7105         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7106         (struct __gconv_step_data): Rename __is_last to __flags.
7107         * iconv/gconv_close.c: Change all uses of __is_last.
7108         * iconv/skeleton.c: Likewise.
7109         * iconvdata/iso-2022-cn.c: Likewise.
7110         * iconvdata/iso-2022-jp.c: Likewise.
7111         * iconvdata/iso-2022-kr.c: Likewise.
7112         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7113         Recognize IGNORE error handling, set flag, and remove from name.
7114         * iconv/loop.c (ignore_errors_p): Define.
7115         Add flags parameter to both functions.
7116         * iconv/skeleton.c: Pass flags to all conversion functions.
7117         * iconv/gconv_simple.c: Add flags parameter to all functions.
7118         Don't return error for invald error if ignore flag is set.
7119         (ucs4_internal_loop_single): Add missing pointer increment.
7120         (internal_ucs4le_loop_single): Likewise.
7121         * iconv/iconv_prog.c: Implement handling of -c parameter.
7122         * iconvdata/8bit-gap.c: Don't return error for invald error if
7123         ignore flag is set.
7124         * iconvdata/8bit-generic.c: Likewise.
7125         * iconvdata/ansi_x3.110.c: Likewise.
7126         * iconvdata/big5.c: Likewise.
7127         * iconvdata/big5hkscs.c: Likewise.
7128         * iconvdata/euc-cn.c: Likewise.
7129         * iconvdata/euc-jp.c: Likewise.
7130         * iconvdata/euc-kr.c: Likewise.
7131         * iconvdata/gbgbk.c: Likewise.
7132         * iconvdata/gbk.c: Likewise.
7133         * iconvdata/iso-2022-cn.c: Likewise.
7134         * iconvdata/iso-2022-jp.c: Likewise.
7135         * iconvdata/iso-2022-kr.c: Likewise.
7136         * iconvdata/iso646.c: Likewise.
7137         * iconvdata/iso8859-1.c: Likewise.
7138         * iconvdata/iso_6937-2.c: Likewise.
7139         * iconvdata/iso_6937.c: Likewise.
7140         * iconvdata/johab.c: Likewise.
7141         * iconvdata/sjis.c: Likewise.
7142         * iconvdata/t.61.c: Likewise.
7143         * iconvdata/uhc.c: Likewise.
7144         * iconvdata/unicode.c: Likewise.
7145         * iconvdata/utf-16.c: Likewise.
7146         * libio/fileops.c: Likewise.
7147         * libio/iofwide.c: Likewise.
7148         * wcsmbs/btowc.c: Likewise.
7149         * wcsmbs/mbrtowc.c: Likewise.
7150         * wcsmbs/mbsnrtowcs.c: Likewise.
7151         * wcsmbs/mbsrtowcs.c: Likewise.
7152         * wcsmbs/wcrtomb.c: Likewise.
7153         * wcsmbs/wcsnrtombs.c: Likewise.
7154         * wcsmbs/wcsrtombs.c: Likewise.
7155         * wcsmbs/wctob.c: Likewise.
7156
7157         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7158         an error.
7159
7160 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7161
7162         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7163         counter for the object we are releasing, just decrement it.
7164         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7165
7166 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7167
7168         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7169         if -ffast-math.
7170
7171 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7172
7173         * iconvdata/big5hkscs.c: New file.
7174         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7175
7176         * iconvdata/gconv-modules: Add entry for new module.
7177         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7178         (distribute): Add big5hkscs.c.
7179
7180 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7181
7182         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7183         inlines to match prototypes in mathcalls.h.
7184         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7185         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7186         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7187         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7188
7189 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7190
7191         * elf/elf.h (SHT_SUNW_move): Define.
7192
7193         * elf/elf.h: Add more Solaris compatiblity definitions.
7194
7195 2000-06-03  Andreas Jaeger  <aj@suse.de>
7196
7197         * sysdeps/powerpc/dl-start.S: Close open comment.
7198
7199 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7200
7201         * inet/Versions: Fix typo in rresvport_af export.
7202
7203 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7204
7205         * math/tgmath.h: Pretty print.
7206
7207 2000-06-02  Andreas Jaeger  <aj@suse.de>
7208
7209         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7210         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7211
7212 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7213
7214         * elf/rtld.c (process_envvars): Test for = after variable name.
7215
7216 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7217
7218         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7219         have extra call to __gmon_start__, use the pointer we already have.
7220
7221         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7222         shifting.
7223
7224         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7225         binutils.  gas now emits a jump through the PLT instead of a
7226         relative jump if the jump target is an exported symbol.
7227
7228 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7229
7230         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7231
7232 2000-05-31  Andreas Jaeger  <aj@suse.de>
7233
7234         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7235         gregset_t.
7236
7237         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7238         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7239
7240         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7241         syscall.
7242         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7243
7244 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7245
7246         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7247
7248         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7249         * locale/localeconv.c: Make function versioned (with same definition).
7250
7251         * elf/Makefile (modules-names): Strip before using it.
7252
7253 2000-05-30  Andreas Jaeger  <aj@suse.de>
7254
7255         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7256         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7257         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7258         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7259         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7260         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7261
7262 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7263
7264         * Makefile: Add GNU make magic.
7265
7266         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7267         Removed.
7268         * inet/rcmd.c: Remove __P.  Remove unused variables.
7269         (iruserfopen): Make first parameter const.
7270         (ruserok_sa): Return result of ruserok2_sa.
7271         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7272         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7273         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7274         (ruserpass): Check results of memory allocation.
7275         * include/netdb.h: Add prototype for ruserpass.
7276
7277 2000-05-29  Andreas Jaeger  <aj@suse.de>
7278
7279         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7280         for all platforms.
7281
7282 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7283
7284         * inet/rcmd.c (rresvport_af): Use correct port number.
7285
7286 2000-05-26  Andreas Schwab  <schwab@suse.de>
7287
7288         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7289         entries in all-sonames.
7290         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7291         preserving the old name if different for compatibility.
7292
7293 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7294
7295         * posix/Makefile (tests): Add tst-spawn.
7296         (tst-spawn-ARGS): New variable.
7297         * posix/tst-spawn.c: New file.
7298
7299         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7300         * posix/spawn_faction_adddup2.c: Likewise.
7301         * posix/spawn_faction_addopen.c: Likewise.
7302         * posix/spawni.c: Correctly test for success of dup2 calls.
7303
7304         * posix/tst-preadwrite.c: Check success of malloc call.
7305
7306 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7307
7308         * posix/Makefile (tests): Add tst-exec.
7309         (tst-exec-ARGS): New variable.
7310         * posix/tst-exec.c: New file.
7311
7312         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7313
7314 2000-05-04  Andreas Jaeger  <aj@suse.de>
7315
7316         * string/string.h: Remove __strdup prototype, it's not needed in
7317         this file anymore.
7318
7319 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7320
7321         * posix/Makefile (tests): Add tst-fork.
7322         * posix/tst-fork.c: New file.
7323
7324         * resolv/inet_pton.c: Loose __P.
7325
7326 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7327
7328         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7329         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7330         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7331         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7332         _IO_CHECK_WIDE fails.
7333
7334 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7335
7336         * po/da.po: New file.
7337
7338         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7339         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7340
7341         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7342         (Other iconv Implementations): Fix typo.
7343         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7344
7345 2000-05-27  Andreas Jaeger  <aj@suse.de>
7346
7347         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7348         normal version now.
7349         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7350         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7351         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7352         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7353         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7354         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7355
7356         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7357         endianness to decide how to pass arguments.
7358         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7359
7360         * elf/vismain.c: Use test-skeleton interface.
7361         (TEST_FUNCTION): New macro.
7362         (do_test): Renamed from main.
7363
7364 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7365
7366         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7367         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7368
7369         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7370         handling of AI_V4MAPPED flag.
7371
7372         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7373         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7374         perform lookup for T_A type and tell getanswer_r to convert the
7375         result with new argument.
7376         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7377         Don't convert addresses from IPv4 to IPv6 here.
7378         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7379         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7380         IPv4 mapping has to be done.  Perform mappings if required by the
7381         caller and not if RES_USE_INET6 bit in _res.options is set.
7382         Add several __builtin_expect.
7383
7384 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7385
7386         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7387
7388         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7389         NULL.
7390
7391         * posix/tst-preadwrite.c: Allow parallel execution of
7392         tst-preadwrite and tst-preadwrite64.
7393
7394         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7395         * posix/tst-truncate.c: New file.
7396         * posix/tst-truncate64.c: New file.
7397
7398         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7399         was switched.
7400
7401         * posix/Makefile (tests): Add tst-preadwrite64.
7402         * posix/tst-preadwrite.c: Alloc file being used also for testing
7403         pread64 and pwrite64.
7404         * posix/tst-preadwrite64.c: New file.
7405
7406 2000-05-26  Andreas Jaeger  <aj@suse.de>
7407
7408         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7409         of arguments dependend on endianness.
7410         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7411
7412         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7413         normal version now.
7414         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7415         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7416         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7417         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7418
7419         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7420         endianness to check how to pass argument.
7421         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7422
7423         * elf/ldconfig.h: Update parameter list for process_elf_file.
7424
7425         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7426         Add parameter file_length and pass it ot process_elf*file.
7427
7428         * sysdeps/generic/readelflib.c (check_ptr): New.
7429         (process_elf_file): Use check_ptr to check all accesses to the
7430         mmapped file. Add parameter file_length.
7431
7432         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7433         library names.
7434
7435         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7436         Closes PR libc/1573, reported by Bradley White
7437         <bww@laurelnetworks.com>.
7438
7439 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7440
7441         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7442         __FAST_MATH__ is defined.
7443
7444 2000-05-22  Andreas Jaeger  <aj@suse.de>
7445
7446         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7447         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7448
7449         * manual/math.texi (FP Function Optimizations): Document gcc
7450         -ffast-math behaviour with mathinlines.
7451
7452         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7453         functions unless -ffast-math is given to gcc.
7454
7455 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7456
7457         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7458         __sincosl): Guard with __USE_GNU.
7459
7460 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7461
7462         * csu/Makefile (routines): Add check_fds.
7463         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7464         binaries.  Add various __builtin_expect.
7465         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7466         * sysdeps/generic/check_fds.c: ...here.  New file.
7467
7468         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7469         binaries if file /etc/suid-debug is available.
7470
7471         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7472         and wcseqorder members.
7473         (struct locale_collate_t): Likewise.
7474         (collate_finish): Assign collation sequence value to each character.
7475         Create tables for output.
7476         (collate_output): Write out tables with collation sequence information.
7477         * locale/C-collate.c: Provide C locale data for collation sequence
7478         table.
7479         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7480         _NL_COLLATE_COLLSEQWC.
7481         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7482         _NL_COLLATE_COLLSEQWC.
7483         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7484         include fnmatch_loop.c.
7485         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7486         character is matched by range expression.  Use collation sequence
7487         table.  Outside glibc fall back on simple character value comparison.
7488
7489 2000-05-24  Andreas Jaeger  <aj@suse.de>
7490
7491         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7492         words.
7493
7494         * intl/Makefile: Run gettext-test only if msgfmt is available.
7495
7496         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7497         Define it for newer kernels.
7498
7499 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7500
7501         * elf/dl-sym.c: Minor cleanups.
7502
7503         * configure.in: Add test for .protected.
7504         * config.make.in: Add have-protected variable.
7505         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7506         (tests-vis-yes): Add vismain.
7507         (modules-names): Add $(modules-vis-$(have-protected)).
7508         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7509         Add rules to generate and run vismain.
7510         * elf/vismain.c: New file.
7511         * elf/vismod1.c: New file.
7512         * elf/vismod2.c: New file.
7513         * elf/vismod3.c: New file.
7514
7515 2000-05-23  Andreas Jaeger  <aj@suse.de>
7516
7517         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7518
7519         * manual/search.texi (Array Sort Function): Document that qsort is
7520         not necessarily in-place.
7521
7522         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7523         Closes PR libc/1731.
7524
7525         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7526         * dirent/scandir64.c: Likewise.
7527         * pwd/getpw.c: Likewise.
7528         * stdlib/bsearch.c (bsearch): Likewise.
7529         * stdlib/tst-strtoll.c: Likewise.
7530         * localedata/collate-test.c: Likewise.
7531         * localedata/xfrm-test.c: Likewise.
7532         * posix/bsd-getpgrp.c: Likewise.
7533         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7534         * sysdeps/generic/bits/siginfo.h: Likewise.
7535         * sysdeps/generic/bits/sockaddr.h: Likewise.
7536         * sysdeps/generic/sys/swap.h: Likewise.
7537         * sysdeps/generic/sys/sysinfo.h: Likewise.
7538         * sysdeps/generic/vfork.c: Likewise.
7539         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7540         * sysdeps/mach/hurd/fdopen.c: Likewise.
7541         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7542         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7543         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7544         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7545         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7546         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7547         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7548
7549         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7550         * shadow/lckpwdf.c: Likewise.
7551         * stdlib/tst-strtol.c: Likewise.
7552         * sysdeps/generic/tcsetattr.c: Likewise.
7553         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7554         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7555
7556 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7557
7558         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7559         free it and set to (void *) -1.
7560
7561 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7562
7563         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7564         not the second character in the range.
7565         * stdio-common/tstscanf.c (main): Add testcase for the above.
7566         Reported by jik@kamens.brookline.ma.us.
7567
7568 2000-05-21  H.J. Lu  <hjl@gnu.org>
7569
7570         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7571         with noexec and noplt parameter.
7572         (do_lookup): Likewise.
7573
7574         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7575         do_lookup.  Support STV_PROTECTED.
7576         (_dl_lookup_symbol_skip): Likewise.
7577         (_dl_lookup_versioned_symbol): Likewise.
7578         (_dl_lookup_versioned_symbol_skip): Likewise.
7579
7580         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7581
7582         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7583
7584 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7585
7586         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7587         * sysdeps/i386/bits/huge_val.h: Likewise.
7588         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7589         * sysdeps/m68k/bits/huge_val.h: Likewise.
7590         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7591         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7592
7593 2000-05-22  Andreas Jaeger  <aj@suse.de>
7594
7595         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7596         change in iconv.h.
7597
7598 2000-05-19  Andreas Jaeger  <aj@suse.de>
7599
7600         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7601         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7602         breaks compilation without linuxthreads.
7603
7604 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7605
7606         * sysdeps/ia64/memccpy.S: New file.
7607         * sysdeps/ia64/memchr.S: New file.
7608         * sysdeps/ia64/memcmp.S: New file.
7609         * sysdeps/ia64/memcpy.S: New file.
7610         * sysdeps/ia64/memmove.S: New file.
7611         * sysdeps/ia64/memset.S: New file.
7612         * sysdeps/ia64/strcat.S: New file.
7613         * sysdeps/ia64/strchr.S: New file.
7614         * sysdeps/ia64/strcmp.S: New file.
7615         * sysdeps/ia64/strcpy.S: New file.
7616         * sysdeps/ia64/strlen.S: New file.
7617         * sysdeps/ia64/strncmp.S: New file.
7618         * sysdeps/ia64/strncpy.S: New file.
7619         * sysdeps/ia64/softpipe.h: New file.
7620         Patches by Dan Pop <Dan.Pop@cern.ch>.
7621
7622         * manual/memory.texi: Document memory handling functions (mlock,
7623         munlock, mlockall, munlockall, brk, and sbrk)
7624         * manual/time.texi: Document timespec and friends.
7625         * manual/conf.texi: Fix references.
7626         * manual/ctype.texi: Likewise.
7627         * manual/errno.texi: Likewise.
7628         * manual/intro.texi: Likewise.
7629         * manual/locale.texi: Likewise.
7630         * manual/sysinfo.texi: Likewise.
7631         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7632
7633 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7634
7635         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7636         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7637
7638 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7639
7640         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7641         dxfer_direction.
7642
7643 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7644
7645         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7646         * locale/localeconv.c: Initialize new elements from ISO C99.
7647         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7648         new standard elements.
7649         * locale/categories.def: Adjust accordingly.
7650
7651         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7652         * iconv/iconv.c: Likewise.
7653         * conform/data/iconv.h-data: Likewise.
7654         * iconv/iconv_prog.c (process_block): Remove const from second
7655         parameter.
7656         (main): Remove const from addr definition.
7657         * manual/charset.texi (Generic Conversion Interface): Remove from
7658         inbuf parameter of iconv.
7659
7660         * intl/dcigettext.c: Fix typo in comment.
7661
7662 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7663
7664         * resolv/res_libc.c (_res): Initialize _sock to -1.
7665
7666 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7667
7668         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7669         (fopencookie@@GLIBC_2.2): New.
7670         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7671         (fopencookie@GLIBC_2.0): New.
7672         * libio/Versions: Add fopencookie to GLIBC_2.2.
7673
7674 2000-05-18  Andreas Jaeger  <aj@suse.de>
7675
7676         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7677         Closes PR libc/1731.
7678
7679         * manual/arith.texi (Parsing of Integers): Fix typo.
7680         Closes PR libc/1744, reported by blp@gnu.org.
7681
7682 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7683
7684         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7685         __extension__ to hexadecimal floating constant notation.
7686         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7687         Likewise.
7688         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7689         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7690         Likewise.
7691         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7692         HUGE_VALL): Likewise.
7693         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7694         HUGE_VALL): Likewise.
7695         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7696
7697 2000-05-17  Andreas Jaeger  <aj@suse.de>
7698
7699         * string/envz.h: Add pure attributes if possible.
7700
7701         * string/argz.h: argz_count is a pure function.
7702
7703         * string/strings.h: Add pure and const attributes if possible.
7704
7705         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7706         possibly searching through the whole memory.
7707         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7708
7709 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7710
7711         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7712         not yet defined.
7713         (_dl_cache_check_flags): Likewise.
7714         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7715         dl-cache.h.
7716
7717 2000-05-17  Andreas Jaeger  <aj@suse.de>
7718
7719         * manual/creature.texi (Feature Test Macros): Remove paragraph
7720         since the description is wrong.
7721         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7722
7723         * scripts/config.sub: New version.
7724         * scripts/config.guess: Likewise.
7725         * manual/texinfo.tex: Likewise.
7726
7727         * time/test_time.args: Removed.
7728         * time/Makefile (test_time-ARGS): Added contents here instead.
7729
7730         * posix/tstgetopt.args: Removed.
7731         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7732
7733         * Rules: Allow arguments for test files to be specified in
7734         Makefile with testname-ARGS; remove rules with .args in it.
7735
7736         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7737         remove old bogus rule for opendir-tst1.args.
7738
7739         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7740
7741         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7742         into objdir.  This allows a readonly sourcetree.
7743         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7744
7745 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7746             David Huggins-Daines <dhd@linuxcare.com>
7747
7748         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7749         cache_data in case of only new cache format correctly.
7750
7751         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7752         cache_file_new.
7753
7754         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7755         struct cache_file_new.
7756
7757         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7758         present.
7759
7760         * elf/cache.c (save_cache): Align struct new_file_cache.
7761         (print_cache): Likewise.
7762
7763 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7764
7765         * elf/soinit.c (__libc_global_ctors): Move
7766         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7767         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7768         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7769         variable, don't define it to __res_state call.
7770
7771 2000-05-13  Andreas Jaeger  <aj@suse.de>
7772
7773         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7774         Linux 2.3.99pre7.
7775         (AF_PPPOX): Likewise.
7776         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7777         (AF_PPPOX): Likewise.
7778
7779 2000-05-12  Andreas Jaeger  <aj@suse.de>
7780
7781         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7782         Reported by tmoestl@gmx.net, closes PR libc/1732.
7783
7784 2000-05-11  Jan Hubicka  <jh@suse.cz>
7785
7786         * misc/sys/cdefs.h: Add support for pure attribute.
7787
7788         * include/string.h: Add __attribute_pure__ to various functions.
7789         * string/string.h: Likewise.
7790
7791 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7792
7793         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7794         argument.
7795         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7796         R_SPARC_UA64.
7797         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7798
7799 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7802         at proper place.  Compute the high nibble correctly.
7803
7804 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7805
7806         * elf/ldconfig.c: Include elf.h.
7807
7808         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7809         (_dl_vsym): Likewise.
7810         Reported by Owen Taylor <otaylor@redhat.com>.
7811
7812         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7813         always.
7814
7815 2000-05-08  Andreas Jaeger  <aj@suse.de>
7816
7817         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7818
7819         * intl/bindtextdom.c (set_binding_values): Add prototype.
7820
7821 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7822
7823         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7824         call to elf_machine_fixup_plt.
7825         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7826         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7827
7828 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7831         they are not dlclose'd from underneath us.
7832
7833 2000-05-08  Andreas Schwab  <schwab@suse.de>
7834
7835         * posix/execle.c: Fix size parameter of memcpy.
7836
7837 2000-05-08  Andreas Schwab  <schwab@suse.de>
7838
7839         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7840         getpagesize syscall if available.
7841
7842 2000-05-08  Andreas Jaeger  <aj@suse.de>
7843
7844         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7845         set errno.
7846
7847 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7848
7849         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7850         sizeof(struct link_map *) chunks, not in bytes.
7851
7852 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7853
7854         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7855         only needed for locale.
7856         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7857         It's only needed for catgets.
7858         Patches by Greg McGary <gkm@eng.ascend.com>.
7859
7860 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7861
7862         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7863         Remove duplicate <errno.h> include.  Remove inclusion of
7864         <libintl.h> and "nsswitch.h".
7865         (set_cloexec_flag): New function, broken out of dbopen.
7866         (dbopen): Changed return type to `enum
7867         nss_status'.  Mostly rewritten to make sure that we do not report
7868         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7869         (internal_setent): Change return type to nss_status.
7870         Document, and make sure that the function
7871         behaves accordingly.  Make dynamically loading the database
7872         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7873         failed.
7874         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7875         unecessary casts.
7876         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7877         documentation.
7878         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7879         c_get function member.
7880         * nss/nss_db/nss_db.h: Add and tweak some comments.
7881         (DBT): Move typedef before NSS_DBC typedef.
7882         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7883
7884 2000-05-07  H.J. Lu  <hjl@gnu.org>
7885
7886         * csu/initfini.c: Moved to ....
7887         * sysdeps/generic/initfini.c: ...here.
7888
7889         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7890
7891 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7892
7893         * manual/resource.texi: Document POSIX scheduling functions.
7894         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7895
7896         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7897         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7898
7899         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7900         for x since promotion in comparison might leads to unexpected
7901         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7902
7903         * iconv/Makefile (tests): Add tst-iconv1.
7904         * iconv/tst-iconv1.c: New file.
7905         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7906         empty input buffer over full output buffer.
7907         (ucs4_internal_loop): Likewise.
7908         (ucs4_internal_loop_unaligned): Likewise.
7909         (internal_ucs4le_loop): Likewise.
7910         (internal_ucs4le_loop_unaligned): Likewise.
7911         (ucs4le_internal_loop): Likewise.
7912         (ucs4le_internal_loop_unaligned): Likewise.
7913         Reported by yaoz@nih.gov.
7914
7915 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7916
7917         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7918         returned != __GCONV_OK, there is nothing to clean up.
7919
7920 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7921
7922         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7923         OUTPUT_CHARSET environment variables.
7924
7925 2000-05-06  Andreas Jaeger  <aj@suse.de>
7926
7927         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7928         (struct cache_file_new): New.
7929         (struct file_entry): New (moved from cache.c).
7930         (struct cache_file): New (moved from cache.c).
7931
7932         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7933         from _dl_load_cache_lookup.
7934         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7935         the different cache formats.
7936         New variable cache_new for new format.
7937
7938         * elf/ldconfig.h: Change according to changes in cache.c and
7939         ldconfig.c; remove cache_libcmp; add opt_format.
7940
7941         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7942         stuff that's defined in those headers.
7943         Add hwcap to struct lib_entry.
7944         (opt_format): New variable to select cache format.
7945         (options): Add format parameter.
7946         (is_hwcap): New function.
7947         (path_hwcap): New function.
7948         (parse_opt): Handle new format parameter.
7949         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7950
7951         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7952         ldconfig is part of glibc.
7953         Include dl-cache.h and remove stuff that's defined there.
7954         (struct cache_entry): Add new member hwcap.
7955         (print_entry): Print hwcap, cleanup a bit.
7956         (print_cache): Print new and old formats.
7957         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7958         (save_cache): Save new and old formats.
7959         (add_to_cache): Handle hwcap.
7960
7961         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7962         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7963         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7964         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7965         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7966         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7967
7968 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7969
7970         * intl/dcigettext.c (alignof): New macro.
7971         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7972         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7973         freemem_size to 0.
7974
7975 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7976
7977         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7978         return value.
7979
7980 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7981
7982         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7983         (mempcpy): Correct typo is parameter list.
7984
7985 2000-05-06  Andreas Jaeger  <aj@suse.de>
7986
7987         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7988         functions unless -ffast-math is given to gcc.
7989
7990 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7991
7992         * po/ko.po: Update from translation team.
7993
7994 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7995
7996         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7997         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7998         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7999         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8000         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8001         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8002
8003         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8004         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8005         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8006
8007         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8008         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8009         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8010         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8011
8012         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8013         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8014
8015 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8016
8017         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8018         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8019
8020         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8021         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8022
8023         * sysdeps/ia64/Implies: New file.
8024         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8025         * sysdeps/ia64/Makefile: New file.
8026         * sysdeps/ia64/gmp-mparam.h: New file,
8027
8028         * sysdeps/ia64/elf/start.S: New file.
8029
8030         * sysdeps/ia64/bits/fenv.h: New file.
8031
8032 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8033
8034         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8035
8036 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8037
8038         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8039         ia64 has 64 bit .hash entries just as the Alpha.
8040
8041 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8042
8043         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8044
8045 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8046
8047         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8048         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8049         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8050         * sysdeps/ia64/fpu/fegetenv.c: New file.
8051         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8052         * sysdeps/ia64/fpu/fegetround.c: New file.
8053         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8054         * sysdeps/ia64/fpu/fesetenv.c: New file.
8055         * sysdeps/ia64/fpu/fesetround.c: New file.
8056         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8057         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8058         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8059         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8060         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8061
8062 2000-05-05  Andreas Jaeger  <aj@suse.de>
8063
8064         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8065
8066         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8067         (_dl_string_hwcap): New, does nothing.
8068
8069         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8070         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8071         (_dl_string_hwcap): New function, converts from string to hwcap
8072         encoding.
8073         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
8074         (_DL_HWCAP_COUNT): New.
8075         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8076         (_dl_string_hwcap): New function, converts from string to hwcap
8077         encoding.
8078         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8079         (_DL_HWCAP_COUNT): New.
8080         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8081         (_dl_string_hwcap): New function, converts from string to hwcap
8082         encoding.
8083
8084 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8085
8086         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8087         * sysdeps/ia64/Dist: New file.
8088
8089         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8090         parameter to mprotect and for variable assignments.
8091
8092 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8093
8094         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8095         validity of map before dereferencing it.
8096
8097         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8098
8099 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8100
8101         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8102         lookup to the arguments to elf_machine_fixup_plt().
8103
8104         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8105         of the symbol being resolved to input argument list and make the
8106         function return the pointer to the reloc.
8107
8108         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8109         return valuie to lookup_t and return the value.
8110         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8111         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8112         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8113         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8114         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8115         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8116
8117         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8118         Make it an inline function returning value after calling
8119         __elf_machine_fixup_plt().
8120
8121         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8122         symbol address.
8123
8124         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8125         obtain the symbol address.
8126
8127         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8128         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8129
8130         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8131         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8132         inline on non ia64.
8133
8134 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8135
8136         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8137         symbol address of an object.
8138
8139         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8140         the symbol address of an object.
8141
8142         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8143         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8144         (_dl_lookup_symbol_skip): Likewise.
8145         (_dl_lookup_versioned_symbol): Likewise.
8146         (_dl_lookup_versioned_symbol_skip): Likewise.
8147
8148 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8149
8150         * elf/rtld.c (_dl_start): Get the function pointer return address
8151         via _dl_start_address for architectures that need a function
8152         pointer descriptor rather than just a pointer (ia64).
8153
8154         * sysdeps/generic/dl-lookupcfg.h: New file.
8155         * sysdeps/ia64/dl-lookupcfg.h: New file.
8156         * sysdeps/ia64/dl-machine.h: New file.
8157         * sysdeps/ia64/dl-symaddr.c: New file.
8158         * sysdeps/ia64/dl-fptr.c: New file.
8159
8160         * elf/elf.h: Add IA-64 specific definitions.
8161
8162 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8163
8164         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8165         end of enum.
8166
8167 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8168
8169         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8170         happy.
8171
8172 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8173
8174         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8175         symbol.  Call _dl_init rather than the old way.
8176
8177 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8178
8179         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8180         test for pointer in range of DSO address space.
8181
8182 2000-05-04  Andreas Jaeger  <aj@suse.de>
8183
8184         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8185
8186 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8187
8188         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8189         calls of _nl_make_l10nflist.
8190
8191         * libio/stdio.h: Make fseeko and ftello prototypes available is
8192         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8193
8194         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8195         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8196
8197 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8198
8199         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8200         before calling tfind.
8201
8202 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8203
8204         * resolv/resolv.h (res_querydomain): Remove redefinition to
8205         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8206
8207 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8208
8209         * po/gl.po: Update from translation team.
8210
8211         * manual/intro.texi (Program Basics): Change section title.
8212         * manual/process.texi: Fix reference.
8213         (Executing a File): Add reference exec in other section.
8214         * manual/signal.texi: Fix reference.
8215         * manual/startup.texi: Document syscall function.
8216         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8217
8218 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8219
8220         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8221         * intl/bindtextdom.c (set_binding_values): New function.
8222         (bindtextdomain): Call it.
8223         (bind_textdomain_codeset): New function.
8224         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8225         (free_mem): Free each binding's codeset.
8226         * intl/gettextP.h (struct binding): Add codeset field.
8227         (_nl_find_domain): Add domainbinding argument.
8228         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8229         Pass it to _nl_make_l10nflist.
8230         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8231         (_nl_make_l10nflist): Add domainbinding argument.
8232         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8233         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8234         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8235         locale_charset().
8236         * manual/message.texi: New node "Charset conversion in gettext".
8237
8238 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8239
8240         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8241         appropriate.  Handle possible __read error.
8242
8243 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8244
8245         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8246         compiler builtin.
8247         * intl/loadinfo.h (__builtin_expect): Likewise.
8248         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8249         __builtin_expect where appropriate.
8250         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8251         * intl/localealias.c (extend_alias_table): Return an error indicator.
8252         (read_alias_file): Bail out if extend_alias_table fails.
8253
8254 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8255
8256         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8257         * intl/localealias.c: Likewise.
8258
8259 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8260
8261         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8262         Initialize domain->plural and domain->nplurals even if there is no
8263         nullentry.
8264
8265 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8266
8267         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8268         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8269         In case of failure, goto converted.
8270
8271 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8272
8273         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8274         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8275         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8276         __gconv_open.
8277
8278 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8279
8280         * intl/dcigettext.c (transcmp): Compare the domains as well.
8281         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8282         not before.
8283         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8284         <errno.h>.
8285
8286 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8287
8288         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8289         Reported by Bruno Haible.
8290
8291 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8292
8293         * manual/arith.texi: Remove @w from @itemize.
8294
8295 2000-05-02  Andreas Jaeger  <aj@suse.de>
8296
8297         * conform/data/tar.h-data: Add some checks for specific values.
8298
8299         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8300         and RAND_MAX.
8301
8302         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8303         FOPEN_MAX.
8304
8305         * conform/data/netinet/in.h-data: Add exact checks for the values
8306         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8307
8308         * conform/data/float.h-data: Add some minimal values.
8309
8310         * conform/conformtest.pl: Test for macros with string constants,
8311         check for minimum and maximum values.
8312         Add limits.h to headers.
8313
8314         * conform/data/cpio.h-data: Test for value of MAGIC.
8315
8316         * conform/data/limits.h-data: New file.
8317
8318 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8319
8320         * math/Makefile (headers): Add bits/fenvinline.h.
8321
8322 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8323
8324         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8325         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8326
8327         * posix/Versions: Change posix_spawnattr_getdefault and
8328         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8329         and posix_spawnattr_setsigdefault respectively.
8330         * posix/spawn.h: Likewise.
8331         * posix/spawnattr_getdefault.h: Likewise.
8332         * posix/spawnattr_setdefault.h: Likewise.
8333         * conform/data/spawn.h-data: Likewise.
8334
8335 2000-05-01  Andreas Jaeger  <aj@suse.de>
8336
8337         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8338
8339 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8340
8341         * manual/sysinfo.texi: Document getdomainname, setdomainname
8342         and sysctl.
8343         * manual/string.texi: Fix typo.
8344         * manual/terminal.texi: Document gtty and stty.
8345         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8346
8347 2000-04-30  Andreas Jaeger  <aj@suse.de>
8348
8349         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8350         accordance with Austin Draft.
8351
8352 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8353
8354         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8355         to recognize second character in comment line.
8356
8357         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8358         ENOBUFS if we are out of memory.
8359
8360         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8361         available if __USE_XOPEN2K.
8362         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8363         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8364         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8365         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8366         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8367         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8368         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8369         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8370
8371 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8372
8373         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8374         Recognize option -s, -c, and -l.
8375
8376 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8377
8378         * nscd/nscd.c: Start new session for nscd, drop privilegs
8379         to configured user if requested and no -S parameter are used.
8380         * nscd/nscd.conf: Add new option "server-user".
8381         * nscd/nscd_conf.c: Add support for new "server-user" option.
8382         * nscd/nscd.h: Add declaration for server_user variable.
8383         Based on patch by Chris Wing <wingc@engin.umich.edu>
8384
8385 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8386
8387         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8388         that changing the __restore and __restore_rt signal return code
8389         will break GDB.
8390
8391 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8392
8393         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8394         <sys/user.h>.
8395
8396 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8397
8398         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8399
8400 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8401
8402         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8403         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8404         arpa/inet.h.
8405         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8406         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8407         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8408         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8409         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8410         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8411         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8412         posix_fallocate, and posix_madvise.
8413         * conform/data/netdb.h-data: New file.
8414         * conform/data/pthread.h-data: Add pthread_barrier_t,
8415         pthread_barrierattr_t, pthread_barrier_destroy,
8416         pthread_barrier_init, pthread_barrier_wait,
8417         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8418         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8419         pthread_condattr_getclock, pthread_condattr_setclock,
8420         pthread_getcpuclockid, pthread_mutex_timedlock,
8421         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8422         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8423         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8424         * conform/data/sched.h-data: Add sched_ss_low_priority,
8425         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8426         SCHED_SPORADIC.
8427         * conform/data/semaphore.h-data: Add sem_timedwait.
8428         * conform/data/signal.h-data: Add SIGIO.
8429         * conform/data/spawn.h-data: New file.
8430         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8431         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8432         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8433         Fix typo in gmtime_r definition.
8434         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8435         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8436         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8437         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8438         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8439         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8440         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8441         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8442         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8443         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8444         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8445         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8446         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8447         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8448         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8449         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8450         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8451         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8452         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8453         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8454         typo in off_t definition.
8455         * conform/data/net/if.h-data: New file.
8456         * conform/data/netinet/in.h-data: New file.
8457         * conform/data/netinet/tcp.h-data: New file.
8458         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8459         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8460         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8461         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8462         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8463         and posix_typed_mem_open.
8464         * conform/data/sys/socket.h-data: New file.
8465         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8466         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8467         pthread_barrierattr_t, and pthread_spinlock_t.
8468         * conform/data/sys/un.h-data: New file.
8469         * conform/data/sys/utsname.h-data: New file.
8470
8471         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8472         parameter.
8473         * inet/gethstbyad.c (gethostbyname): Likewise.
8474         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8475         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8476         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8477         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8478         Likewise.
8479         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8480         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8481         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8482         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8483         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8484         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8485         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8486         and second parameter.
8487
8488         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8489         == NULL.
8490
8491 2000-04-29  Andreas Jaeger  <aj@suse.de>
8492
8493         * conform/data/arpa/inet.h-data: New file.
8494
8495 2000-04-28  Geoff Clare <gwc@unisoft.com>
8496
8497         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8498         path passed to ftw() or nftw() is an empty string.
8499         Closes PR libc/1710.
8500
8501 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8502
8503         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8504         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8505         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8506         * localedata/tst-mbswcs4.c: New file.
8507         * localedata/tst-mbswcs5.c: New file.
8508
8509         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8510         == NULL.  Little optimization.
8511
8512         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8513         DT_PREINIT_ARRAYSZ).
8514         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8515
8516         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8517         overflows in conversion from ASCII.
8518
8519 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8520
8521         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8522         * Makerules (full_config_sysdirs): Likewise.
8523         * MakeTAGS (full_config_sysdirs): Likewise.
8524
8525 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8526
8527         * .cvsignore: Remove linuxthreads.
8528         * po/.cvsignore: Remove *.pot.
8529         * posix/glob/.cvsignore: Removed.
8530         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8531
8532 2000-04-25  Andreas Jaeger  <aj@suse.de>
8533
8534         * conform/Makefile (distribute): Also distribute contents of
8535         subdirectories.
8536
8537         * Makerules (no_deps): Remove abi-versions.h.
8538
8539         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8540
8541 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8542
8543         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8544         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8545         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8546         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8547         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8548         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8549         objects.
8550
8551 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8552
8553         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8554
8555 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8556
8557         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8558         * intl/l10nflist.c: Likewise.
8559
8560 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8561
8562         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8563         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8564         * intl/textdomain.c [!_LIBC]: Likewise.
8565         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8566         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8567         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8568         syntax error.
8569
8570 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8571
8572         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8573         character set conversion also in the case the translation was found
8574         after a hash collision or through binary search.  Store the maximum
8575         index together with the converted message.  Use iconv() when available.
8576         In case of out of memory during conversion, return the unconverted
8577         translated string, not NULL.
8578
8579 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8580
8581         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8582         to avoid name clashes with the ia32 linker.
8583
8584 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8585
8586         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8587         handling.
8588
8589 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8590
8591         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8592         strtoumax, strfry, and memfrob.
8593         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8594         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8595
8596         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8597         if this function is available.
8598
8599         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8600         all values.
8601
8602 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8603
8604         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8605
8606 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8607
8608         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8609         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8610         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8611         * localedata/tst-mbswcs3.c: New file.
8612
8613 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8614
8615         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8616         characters.  Don't handle incomplete characters as errors.
8617         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8618         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8619         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8620         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8621         * localedata/tst-mbswcs2.c: New file.
8622
8623         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8624         stored character in state in UNPACK_BYTES macro.
8625         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8626         test for available characters, handle result of BODY code correctly.
8627         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8628         (distribute): Add tst-mbswcs.sh.
8629         Add rule to run tst-mbswcs.sh.
8630         * localedata/tst-mbswcs.sh: New file.
8631         * localedata/tst-mbswcs1.c: New file.
8632
8633 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8634
8635         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8636         allocation fixups centrally, fix __builtin_expect call, return NULL
8637         on failure, not NIS_NOMEMORY.
8638
8639 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8640
8641         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8642
8643         * intl/loadinfo.h (internal_function): Define if not already defined.
8644
8645 2000-04-27  Andreas Jaeger  <aj@suse.de>
8646
8647         * intl/libintl.h: Fix typo, reported by Bruno Haible
8648         <haible@clisp.cons.org>.
8649
8650 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8651
8652         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8653         setting the state to GMON_PROF_BUSY.
8654
8655 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8656
8657         * elf/dl-profile.c (_dl_start_profile): define all variables which
8658         do not have to be global as local variables.
8659
8660         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8661         patch.  Keep needed tests for failed memory allocation.
8662
8663         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8664         __builtin_expect saying that we don't normally expect to profile.
8665
8666         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8667         __builtin_expect where desirable.
8668
8669 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8670
8671         * manual/Makefile (chapters): Add syslog.
8672         * manual/syslog.texi: New file.
8673         * manual/math.texi: Fix references.
8674         * manual/terminal.texi: Likewise.
8675         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8676
8677 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8678
8679         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8680         stdlib.h was not included or __USE_XOPEN not defined.
8681
8682 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8683
8684         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8685         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8686
8687 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8688
8689         * manual/examples/subopt.c (mount_opts): Add missing terminating
8690         entry.
8691         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8692
8693         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8694         * libio/ftello.c: Likewise.
8695         * libio/ftello64.c: Likewise.
8696         * libio/ioftell.c: Likewise.
8697         * sysdeps/generic/memrchr.c: Likewise.
8698         * sysdeps/posix/libc_fatal.c: Likewise.
8699         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8700         * misc/fstab.c: Include <string.h> for strcmp prototype.
8701         * sysdeps/generic/ldsodefs.h: Likewise.
8702         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8703         Patch by Kurt Roeckx <Q@ping.be>.
8704
8705         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8706         Remove db-open.  Change all uses.
8707         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8708
8709 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8710
8711         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8712         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8713         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8714         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8715         with .set noat/at to shut up warnings.
8716         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8717         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8718         compilation if __NR_pciconfig_iobase is not defined.
8719         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8720         Add alias.
8721
8722 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8723
8724         * manual/sysinfo.texi: Fix typo.
8725         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8726         Replace "high precision time" with "high accuracy clock".
8727         Fix language.
8728         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8729
8730         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8731         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8732         instead of malloc.
8733         * nis/nis_subr.c: Use __builtin_expect.
8734         * nis/ypclnt.c: Likewise.
8735         * nis/nis_getservlist.c: Likewise.
8736         * nis/nis_creategroup.c: Likewise.
8737
8738         * nis/nis_callback.c (__nis_create_callback): Check result of
8739         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8740         (__nis_destroy_callback): Fix memory leaks.
8741
8742 2000-04-21  Andreas Jaeger  <aj@suse.de>
8743
8744         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8745         * sysdeps/mips/mips64/add_n.S: Likewise.
8746         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8747         * sysdeps/mips/mips64/lshift.S: Likewise.
8748         * sysdeps/mips/mips64/mul_1.S: Likewise.
8749         * sysdeps/mips/mips64/rshift.S: Likewise.
8750         * sysdeps/mips/mips64/setjmp.S: Likewise.
8751         * sysdeps/mips/mips64/sub_n.S: Likewise.
8752         * sysdeps/mips/mips64/submul_1.S: Likewise
8753         * sysdeps/unix/mips/sysdep.S: Likewise.
8754
8755         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8756         and update comment.  The strtab from _dl_relocate_object can be
8757         used.
8758
8759 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8760
8761         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8762         * iconv/iconv_close.c (iconv_close): Likewise.
8763         * iconv/iconv_open.c (iconv_open): Likewise.
8764
8765         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8766         __builtin_expect where useful.
8767
8768         * grp/initgroups.c (initgroups): Test for result of memory
8769         allocation and punt if it fails.
8770
8771         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8772         * grp/fgetgrent.c (fgetfrent): Likewise.
8773         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8774
8775 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8776
8777         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8778
8779 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8780
8781         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8782         don't search for NUL byte to decrement counter.
8783         Reported by Ulrich.Brink@sap.com.
8784
8785         * iconv/gconv_simple.c: Define separate functions to convert from
8786         UCS4/UCS4-LE to the internal encoding.
8787         * iconv/gconv_builtin.h: Use separate functions to convert from
8788         UCS4/UCS4-LE to the internal encoding.
8789         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8790         __gconv_transform_ucs4le_internal.
8791
8792         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8793         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8794
8795         * iconv/skeleton.c: Add some more __builtin_expect.
8796         * iconv/loop.c: Likewise.
8797
8798 2000-03-08  H.J. Lu  <hjl@gnu.org>
8799
8800         * posix/regex.c (regex_compile): Correctly handle "\{" when
8801         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8802
8803 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8804
8805         * manual/stdio.texi: Give advise about handling error when using
8806         stream functions.
8807         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8808
8809 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8810
8811         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8812         field to nelems * sizeof (uint32_t).
8813         * locale/programs/ld-address.c (address_output): Align word fields
8814         properly.
8815         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8816         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8817         field.
8818         Avoid giving arbitrary garbage in the crncystr field.
8819         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8820         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8821         fields.
8822         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8823         Don't restart idx pointers to idx end at the decimal_point_wc field.
8824         * locale/programs/ld-time.c (time_output): week_1stday should be
8825         word, not byte.  Align it properly.
8826
8827 2000-04-19  H.J. Lu  <hjl@gnu.org>
8828
8829         * csu/gmon-start.c (_start): Declared as "extern void".
8830         (etext): Likewise.
8831
8832 2000-04-18  Andreas Jaeger  <aj@suse.de>
8833
8834         * manual/install.texi (Running make install): Don't mention utmpd
8835         anymore.
8836
8837 2000-04-18  Andreas Jaeger  <aj@suse.de>
8838
8839         * linuxthreads/Versions: Use ld instead of ld.so.
8840
8841         * elf/Makefile (ld-map): Use ld.map.
8842
8843         * Versions.def: Use ld instead of ld.so.
8844         * elf/Versions: Likewise.
8845         * sysdeps/mach/hurd/Versions: Likewise.
8846
8847 2000-04-20  Andreas Jaeger  <aj@suse.de>
8848
8849         * elf/rtld.c (print_statistics): Move ifndef further up.
8850         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8851         (dl_main): Likewise.
8852
8853 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8854
8855         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8856         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8857
8858         * po/cs.po: Update from translation team.
8859
8860         * sysdeps/generic/updwtmp.c: Remove daemon support.
8861
8862         * login/Makefile (routines): Remove utmp_daemon.
8863
8864         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8865         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8866         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8867         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8868
8869         * elf/rtld.c: Display statitics option also if hp timing is not
8870         available.
8871
8872         * login/programs/connection.c: Removed.
8873         * login/programs/database.c Removed.
8874         * login/programs/error.c: Removed.
8875         * login/programs/request.c: Removed.
8876         * login/programs/xtmp.c: Removed.
8877         * login/programs/xtmp.h: Removed.
8878         * login/Makefile: Remove rules for utmpd.
8879         * login/README.utmpd: Removed.
8880         * login/utmp_daemon.c: Removed.
8881         * login/getutent_r.c: Remove references to daemon functions.
8882         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8883         declaration.
8884
8885 2000-04-18  Andreas Jaeger  <aj@suse.de>
8886
8887         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8888         2.2 for libnsl, libresolv, librt, libnss_*.
8889
8890         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8891
8892         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8893
8894 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8895
8896         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8897         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8898         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8899         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8900         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8901         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8902         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8903         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8904         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8905         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8906         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8907         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8908         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8909         it here.
8910         * sysdeps/unix/sysv/aix/msync.c: New file.
8911         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8912         * sysdeps/unix/sysv/aix/net/if.h: New file.
8913         * sysdeps/unix/sysv/aix/pipe.c: New file.
8914         * sysdeps/unix/sysv/aix/poll.c: New file.
8915         * sysdeps/unix/sysv/aix/rename.c: New file.
8916         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8917         * sysdeps/unix/sysv/aix/select.c: New file.
8918         * sysdeps/unix/sysv/aix/semctl.c: New file.
8919         * sysdeps/unix/sysv/aix/semget.c: New file.
8920         * sysdeps/unix/sysv/aix/semop.c: New file.
8921         * sysdeps/unix/sysv/aix/sendto.c: New file.
8922         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8923         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8924         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8925         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8926         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8927         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8928         * sysdeps/unix/sysv/aix/setsid.c: New file.
8929         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8930         * sysdeps/unix/sysv/aix/shmat.c: New file.
8931         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8932         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8933         * sysdeps/unix/sysv/aix/shmget.c: New file.
8934         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8935         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8936         * sysdeps/unix/sysv/aix/socket.c: New file.
8937         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8938         * sysdeps/unix/sysv/aix/speed.c: New file.
8939         * sysdeps/unix/sysv/aix/symlink.c: New file.
8940         * sysdeps/unix/sysv/aix/sync.c: New file.
8941         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8942         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8943         * sysdeps/unix/sysv/aix/times.c: New file.
8944         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8945         * sysdeps/unix/sysv/aix/umask.c: New file.
8946         * sysdeps/unix/sysv/aix/unlink.c: New file.
8947         * sysdeps/unix/sysv/aix/ustat.c: New file.
8948         * sysdeps/unix/sysv/aix/utimes.c: New file.
8949
8950 2000-04-18  Andreas Jaeger  <aj@suse.de>
8951
8952         * manual/startup.texi (Environment Access): Fix putenv prototype
8953         according to recent changes.
8954         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8955         PR libc/1692.
8956
8957         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8958         needed.
8959
8960 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8961
8962         * posix/Makefile (tests): Add tst-getaddrinfo.
8963         * posix/tst-getaddrinfo.c: New file.
8964
8965 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8966
8967         * manual/sysinfo.texi: Document that umount2 is not widely available.
8968
8969         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8970         signal timing is not really implemented.
8971
8972 2000-04-17  Andreas Jaeger  <aj@suse.de>
8973
8974         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8975
8976 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8977
8978         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8979         and inst_libdir.
8980
8981 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8982
8983         * manual/intro.texi: Change reference from System Information to
8984         System Management.
8985         * manual/users.texi: Likewise.
8986         * manual/conf.texi: Likewise.
8987         * manual/sysinfo.texi: Document mount, umount, and umount2.
8988         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8989
8990 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8991
8992         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8993         Create wnumstr as well as numstr to support wide character output
8994         correctly.
8995
8996 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8997
8998         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8999         modification and move it...
9000         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9001         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9002         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9003         switch to $(LD) on sparc-linux.
9004
9005 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9006
9007         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9008         and setresuid from sysdep_routines.
9009
9010 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9011
9012         * manual/Makefile (chapters): Add resource.
9013
9014         * manual/time.texi: Move section on resources to...
9015         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9016         and vtimes.
9017         * manual/setjmp.texi: Adjust back reference.
9018         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9019
9020         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9021         definition.
9022         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9023         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9024         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9025         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9026         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9027         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9028         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9029         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9030         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9031         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9032         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9033         * sysdeps/unix/sysv/aix/Implies: New file.
9034         * sysdeps/unix/sysv/aix/Versions: New file.
9035         * sysdeps/unix/sysv/aix/bind.c: New file.
9036         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9037         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9038         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9039         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9040         * sysdeps/unix/sysv/aix/chdir.c: New file.
9041         * sysdeps/unix/sysv/aix/chmod.c: New file.
9042         * sysdeps/unix/sysv/aix/chroot.c: New file.
9043         * sysdeps/unix/sysv/aix/creat.c: New file.
9044         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9045         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9046         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9047         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9048         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9049         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9050         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9051         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9052         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9053         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9054         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9055         * sysdeps/unix/sysv/aix/link.c: New file.
9056         * sysdeps/unix/sysv/aix/madvise.c: New file.
9057         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9058         * sysdeps/unix/sysv/aix/mknod.c: New file.
9059         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9060         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9061         * sysdeps/unix/sysv/aix/msgget.c: New file.
9062         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9063
9064 2000-04-17  Andreas Jaeger  <aj@suse.de>
9065
9066         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9067         as suggested by Ulrich Drepper.
9068         (__dl_runtime_resolve): Remove unused variable, initialize sym
9069         directly.
9070         (RTLD_START): Document OFFSET_GP_GOT.
9071         (OFFSET_GP_GOT): New magic value.
9072         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9073         (elf_machine_got_rel): Only declare strtab if needed.
9074         (elf_machine_relplt): Removed, it's not needed.
9075         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9076
9077         * sysdeps/mips/add_n.S: Add newline at EOF.
9078         * sysdeps/mips/rshift.S: Likewise.
9079         * sysdeps/mips/mul_1.S: Likewise.
9080         * sysdeps/mips/lshift.S: Likewise.
9081         * sysdeps/mips/addmul_1.S: Likewise.
9082
9083 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9084
9085         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9086
9087         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9088         * elf/dl-lookup.c: Likewise.
9089         * elf/dl-init.c (_dl_init): Likewise.
9090         * elf/dl-fini.c (_dl_fini): Likewise.
9091         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9092         * elf/dl-close.c (_dl_close): Likewise.
9093         * elf/rtld.c (_dl_start_final): Likewise.
9094
9095         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9096
9097 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9098
9099         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9100         only fall back on using Linux.
9101
9102         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9103         Before testing versions check that we actually loaded the object
9104         and whether we are in trace mode.  If not loaded during tracing don't
9105         test versions in this object.
9106         (_dl_check_all_versions): Take new parameter and pass to
9107         _dl_check_map_versions.
9108         * sysdeps/generic/ldsodefs.h: Update prototypes for
9109         _dl_check_all_versions and _dl_check_map_versions.
9110         * elf/rtld.c (struct version_check_args): Add dotrace.
9111         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9112         (dl_main): Pass info about trace mode to version_check_doit.
9113         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9114         _dl_check_all_versions.
9115
9116         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9117         and getutmpx.
9118         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9119
9120         * manual/argp.texi: Document index parameter of argp_parse.
9121         Fix typo.
9122         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9123
9124 2000-04-14  Andreas Jaeger  <aj@suse.de>
9125
9126         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9127         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9128
9129         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9130
9131 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9132
9133         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9134         compat_symbol call for old adjtime.
9135
9136         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9137         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9138
9139         * posix/Makefile (headers): Add spawn.h.
9140         (distribute): Add spawn_int.h.
9141         (routines): Add spawn_faction_init, spawn_faction_destroy,
9142         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9143         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9144         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9145         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9146         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9147         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9148         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9149         posix_spawnattr_init, posix_spawnattr_destroy,
9150         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9151         posix_spawnattr_getflags, posix_spawnattr_setflags,
9152         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9153         and posix_spawnp.
9154         * posix/spawn.c: New file.
9155         * posix/spawn.h: New file.
9156         * posix/spawn_faction_addclose.c: New file.
9157         * posix/spawn_faction_adddup2.c: New file.
9158         * posix/spawn_faction_addopen.c: New file.
9159         * posix/spawn_faction_destroy.c: New file.
9160         * posix/spawn_faction_init.c: New file.
9161         * posix/spawn_int.h: New file.
9162         * posix/spawnattr_destroy.c: New file.
9163         * posix/spawnattr_getdefault.c: New file.
9164         * posix/spawnattr_getflags.c: New file.
9165         * posix/spawnattr_getpgroup.c: New file.
9166         * posix/spawnattr_getschedparam.c: New file.
9167         * posix/spawnattr_getschedpolicy.c: New file.
9168         * posix/spawnattr_getsigmask.c: New file.
9169         * posix/spawnattr_init.c: New file.
9170         * posix/spawnattr_setdefault.c: New file.
9171         * posix/spawnattr_setflags.c: New file.
9172         * posix/spawnattr_setpgroup.c: New file.
9173         * posix/spawnattr_setschedparam.c: New file.
9174         * posix/spawnattr_setschedpolicy.c: New file.
9175         * posix/spawnattr_setsigmask.c: New file.
9176         * posix/spawni.c: New file.
9177         * posix/spawnp.c: New file.
9178
9179         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9180         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9181
9182 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9183
9184         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9185         * malloc/malloc.c: Implement posix_memalign for glibc.
9186         * include/stdlib.h: Add prototype for __posix_memalign.
9187         * stdlib/stdlib.h: Add prototype for posix_memalign.
9188
9189 2000-04-14  Andreas Jaeger  <aj@suse.de>
9190
9191         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9192         symidx correctly.
9193         (elf_machine_got_rel): Cast sym correctly.
9194
9195         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9196         * sysdeps/mips/addmul_1.S: Likewise.
9197         * sysdeps/mips/lshift.S: Likewise.
9198         * sysdeps/mips/mul_1.S: Likewise.
9199         * sysdeps/mips/rshift.S: Likewise.
9200         * sysdeps/mips/sub_n.S: Likewise.
9201         * sysdeps/mips/submul_1.S: Likewise.
9202
9203         * stdlib/stdlib.h: Fix typo in comment.
9204
9205         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9206         2.2 for libdl, ld and libm.
9207
9208         * sysdeps/generic/madvise.c: Fix typos.
9209
9210         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9211
9212         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9213
9214         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9215         warnings.
9216
9217 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9218
9219         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9220         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9221         Make old name weak alias.
9222         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9223         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9224         Make old name weak alias.
9225         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9226
9227         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9228         posix_fallocate, and posix_fallocate64.
9229         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9230         posix_fallocate, and posix_fallocate64.
9231         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9232         posix_fallocate, and posix_fallocate64.
9233         * sysdeps/generic/fadvise.c: New file.
9234         * sysdeps/generic/fadvise64.c: New file.
9235         * sysdeps/generic/fallocate.c: New file.
9236         * sysdeps/generic/fallocate64.c: New file.
9237         * sysdeps/posix/fallocate.c: New file.
9238         * sysdeps/posix/fallocate64.c: New file.
9239         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9240         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9241         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9242         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9243         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9244         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9245         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9246         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9247         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9248
9249         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9250         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9251
9252 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9253
9254         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9255         * misc/sys/mman.h (posix_madvise): Add prototype.
9256         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9257         old name and posix_madvise weak aliases.
9258         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9259         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9260         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9261         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9262         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9263         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9264         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9265
9266 2000-04-13  Andreas Jaeger  <aj@suse.de>
9267
9268         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9269         versioning.
9270         (elf_machine_got_rel): Only add runtime display if needed.
9271         (elf_machine_got_rel): Handle symbol versioning.
9272
9273 2000-04-13  Andreas Jaeger  <aj@suse.de>
9274
9275         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9276
9277         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9278         default.
9279
9280         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9281         with some applications.
9282         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9283
9284         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9285         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9286         * sysdeps/mips/setjmp.S: Likewise.
9287
9288         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9289
9290 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9291
9292         * posix/globtest.sh: Work around inconsistency with expanding ~/
9293         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9294
9295 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9296
9297         * posix/getconf.c: Add support for many more POSIX options.
9298         * sysdeps/posix/sysconf.c: Likewise.
9299         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9300         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9301         _POSIX_SHELL.
9302         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9303         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9304         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9305         CLOCK_THREAD_CPUTIME_ID.
9306         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9307         CLOCK_PROCESS_CPUTIME_ID.
9308         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9309         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9310         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9311         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9312
9313         * malloc/Makefile (tests): Add tst-calloc.
9314         * malloc/tst-calloc.c: New file.
9315
9316         * sysdeps/arm/libm-test-ulps: New file.
9317
9318         * malloc/malloc.c: Undo all of today's changes.
9319
9320         * locale/programs/locale.c (show_info): Don't try to look into
9321         data for LC_ALL (there is none).
9322
9323         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9324         avoid writing over boundary.
9325         Patch by Greg McGary <gkm@eng.ascend.com>.
9326
9327         * sysdeps/arm/memprof.h: New file.
9328
9329 2000-04-12  Andreas Jaeger  <aj@suse.de>
9330
9331         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9332
9333         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9334         for memmem declaration.
9335
9336 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9337
9338         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9339         to -1.
9340         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9341
9342         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9343         mode is invalid.
9344         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9345         Patch by Bart Veer <bartv@redhat.com>.
9346
9347         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9348         function interface.
9349
9350 2000-04-11  Andreas Jaeger  <aj@suse.de>
9351
9352         * sysdeps/mips/dl-machine.h: Update some comments.
9353         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9354
9355 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9356
9357         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9358         _POSIX_SHARED_MEMORY_OBJECTS.
9359
9360         * rt/Makefile (tests): Add tst-shm.
9361         Add rules to generate tst-shm.
9362         * rt/tst-shm.c: New file.
9363
9364         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9365         for descriptor.
9366
9367         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9368         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9369         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9370         * sysdeps/generic/shm_open.c: New file.
9371         * sysdeps/generic/shm_unlink.c: New file.
9372         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9373         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9374         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9375          __endmntent, __getmntent_r, __setmntent, and __statfs.
9376
9377         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9378         fragmentation by allocating new memory at the end instead of
9379         reallocating.
9380
9381         * posix/globtest.sh: Fix last change.
9382
9383 2000-04-10  Philip Blundell  <philb@gnu.org>
9384
9385         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9386         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9387         IPV6_DROP_MEMBERSHIP.
9388         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9389         Likewise.
9390
9391 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9392
9393         * elf/readlib (process_file): Close streams in case of an error.
9394
9395 2000-04-09  Andreas Jaeger  <aj@suse.de>
9396
9397         * elf/readlib.c (process_file): Check if file is big enough to
9398         contain aout and ELF headers.
9399         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9400
9401 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9402
9403         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9404
9405 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9406
9407         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9408         stream unbuffered.
9409         * rt/Makefile (tests): Add tst-clock.
9410         Add rules to build tst-clock.
9411         * rt/tst-clock.c: New file.
9412         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9413         about initialization of nsec.
9414         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9415         about initialization of freq.  Set retval to zero if successful.
9416         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9417
9418 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9419
9420         * Versions.def (librt): Add GLIBC_2.2.
9421         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9422         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9423         timer_getoverr, timer_gettime, and timer_settime.
9424         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9425         clock_settime, timer_create, timer_delete, timer_getoverrun,
9426         timer_gettime, and timer_settime.
9427         * sysdeps/generic/clock_getcpuclockid.c: New file.
9428         * sysdeps/generic/get_clockfreq.c: New file.
9429         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9430         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9431         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9432         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9433         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9434         * sysdeps/unix/i386/i686/Implies: New file.
9435         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9436         * time/Makefile (routines): Move clock_getres, clock_gettime,
9437         clock_settime, timer_create, timer_delete, timer_getoverr,
9438         timer_gettime, and timer_settime to rt/Makefile.
9439         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9440         clock_settime, timer_create, timer_delete, timer_getoverrun,
9441         timer_gettime, and timer_settime.
9442         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9443
9444         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9445         and not const as attribute name.
9446
9447 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9448
9449         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9450
9451 2000-04-10  Andreas Schwab  <schwab@suse.de>
9452
9453         * posix/globtest.sh: Skip tests that depend on unreadable
9454         directories if run as root.
9455
9456 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9457
9458         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9459         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9460
9461 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9462
9463         * sysdeps/unix/clock_gettime.c: New file.
9464         * sysdeps/unix/clock_settime.c: New file.
9465         * sysdeps/posix/clock_getres.c: New file.
9466
9467         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9468
9469         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9470         lseek call be passing in a buffer which never allow a successful
9471         first getdents syscall if not at leas the initial entry can be
9472         stored in the user buffer.
9473
9474         * localedata/Makefile: Add rules to clean up directories created by
9475         new strfmon tests.
9476
9477 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9478
9479         * localedata/tst-fmon.data: Added new tests for strfmon()
9480         using test locales with all combinations of cs_precedes,
9481         sign_posn and sep_by_space.
9482         * localedata/tst-fmon.sh: Updated to support the new tests.
9483         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9484         the localedef source for the new strfmon() test locale.
9485         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9486         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9487         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9488         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9489         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9490         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9491         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9492         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9493         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9494         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9495         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9496         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9497         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9498         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9499
9500         * stdlib/strfmon.c: Correct problems with missing or extra
9501         spaces for unusual combinations of sign_posn and sep_by_space.
9502         Improved left-precision alignment code.
9503
9504 2000-04-07  Andreas Jaeger  <aj@suse.de>
9505
9506         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9507
9508 2000-04-10  Andreas Jaeger  <aj@suse.de>
9509
9510         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9511
9512 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9513
9514         Implement handling of restartable conversion functions according to
9515         ISO C.
9516         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9517         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9518         * iconv/gconv.c: Pass additional parameter to conversion function.
9519         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9520         (internal_ucs4le_loop_single): New function.
9521         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9522         (__gconv_transform_internal_ascii): Likewise.
9523         (__gconv_transform_internal_utf8): Likewise.
9524         (__gconv_transform_utf8_internal): Likewise.
9525         (__gconv_transform_ucs2_internal): Likewise.
9526         (__gconv_transform_internal_ucs2): Likewise.
9527         (__gconv_transform_ucs2reverse_internal): Likewise.
9528         (__gconv_transform_internal_ucs2reverse): Likewise.
9529         (internal_ucs4le_loop_unaligned): Before return
9530         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9531         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9532         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9533         * iconv/loop.c: Fit in definition of function to convert one character
9534         for processing of left-over bytes from the state object.
9535         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9536         inend to match names in loop functions.
9537         (RESET_INPUT_BUFFER): Change apprpriately.
9538         (gconv): If needed, call function to process bytes from the state
9539         object.  Similar at the end: store left over bytes if input is
9540         incomplete.
9541         Take extra argument and add new argument to all calls of the
9542         conversion function.
9543         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9544         information in the state object to not conflict with length count.
9545         * iconvdata/iso-2022-jp.c: Likewise.
9546         * iconvdata/iso-2022-kr.c: Likewise.
9547         * iconvdata/unicode.c: Adjust for change change in parameters of
9548         skeleton function.
9549         * iconvdata/utf-16.c: Likewise.
9550         * libio/iofwide.c: Add new parameter to all calls of conversion
9551         function.
9552         * wcsmbs/btowc.c: Likewise.
9553         * wcsmbs/mbrtowc.c: Likewise.
9554         * wcsmbs/mbsnrtowcs.c: Likewise.
9555         * wcsmbs/mbsrtowcs.c: Likewise.
9556         * wcsmbs/wcrtomb.c: Likewise.
9557         * wcsmbs/wcsnrtombs.c: Likewise.
9558         * wcsmbs/wcsrtombs.c: Likewise.
9559         * wcsmbs/wctob.c: Likewise.
9560
9561         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9562         MAX_NEEDED_INPUT.
9563
9564 2000-04-07  Andreas Jaeger  <aj@suse.de>
9565
9566         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9567         newer kernels.
9568
9569 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9570
9571         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9572         element a union to allow byte access.
9573         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9574         mbstate_t.
9575         * iconvdata/iso-2022-jp.c: Likewise.
9576         * iconvdata/iso-2022-kr.c: Likewise.
9577         * wcsmbs/mbsinit.c: Likewise.
9578         * stdlib/mblen.c: Likewise.
9579         * stdio-common/printf-parse.h: Likewise.
9580
9581 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9582
9583         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9584         kernel does not allow relative seeks on descriptors associated
9585         with directories.  Go back to get the position in the directory
9586         every time we enter the function.  Return -1 and set errno if one
9587         entry could be read from the kernel but does not fit into the
9588         buffer passed in by the user.
9589
9590         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9591         Support ..(2).. ellipsis.
9592         (parse_charmap): Recognize ..(2).. etc and pass step down.
9593         Correctly generate names for UCS4 characters.
9594
9595         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9596         (ctype_finish): We know the wide character value for <SP>,
9597         don't search.
9598         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9599         (charclass_ucs4_ellipsis): Likewise.
9600         (read_translit_ignore_entry): Store ellipsis step.
9601         (ctype_read): Recognize ..(2).. etc and pass step down.
9602
9603         * locale/programs/linereader.c (lr_token): When seeing comment
9604         character ignore only rest of line in sources but stop at escaped
9605         newline.
9606         Recognize ..(2).. and ....(2).....
9607
9608         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9609         and tok_ellipsis4_2.
9610
9611 2000-04-06  Andreas Jaeger  <aj@suse.de>
9612
9613         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9614         removed, remove it here also.
9615         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9616         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9617         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9618         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9619
9620 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9621
9622         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9623         include bits/sigcontext.h.
9624         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9625
9626 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9627
9628         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9629         collation symbol definition.  Value in quivalence definition must
9630         be defined, don't check that it is not.
9631
9632         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9633         values as character names.
9634
9635         * locale/programs/ld-ctype.c (get_character): Handle missing
9636         repertoire map correctly.
9637
9638 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9639
9640         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9641         because it is used in generic code.
9642         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9643         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9644         * intl/gettext.c: Include <locale.h>.
9645         * intl/ngettext.c: Likewise.
9646
9647 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9648
9649         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9650         socklen_t type for size.
9651         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9652         init function interface.
9653         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9654         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9655         sys/ucontext.h.
9656         (__jmp_buf): Declare the whole type structure here, don't use
9657         ucontext.
9658
9659 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9660
9661         * iconv/skeleton.c (put16u): Fix typo.
9662         Reported by Bruno Haible <haible@ilog.fr>.
9663
9664         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9665         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9666         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9667         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9668         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9669         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9670
9671         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9672         * Makefile (distribute): Add abi-versions.awk and
9673         firstversions.awk.
9674         Patches by Torsten Duwe <duwe@caldera.de>.
9675
9676 2000-04-05  Andreas Schwab  <schwab@suse.de>
9677
9678         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9679
9680 2000-04-05  Andreas Schwab  <schwab@suse.de>
9681
9682         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9683         entry point, used on Hurd.
9684
9685 2000-04-04  Andreas Jaeger  <aj@suse.de>
9686
9687         * intl/Makefile: Only run the gettext test with shared libraries.
9688
9689 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9690
9691         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9692         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9693
9694 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9695
9696         * Makeconfig: Undo last change.
9697         * configure.in: If --disable-shared was given, don't set VERSIONING,
9698         don't define DO_VERSIONING, and don't give scare warning for no
9699         versioning.
9700         * configure: Regenerated.
9701
9702 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9703
9704         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9705
9706 2000-04-04  Andreas Jaeger  <aj@suse.de>
9707
9708         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9709
9710 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9711
9712         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9713         STV_HIDDEN and STV_INTERNAL during lookup.
9714         (profile_fixup): Likewise.
9715         * elf/dl-reloc.c (RESOLVE): Likewise.
9716
9717         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9718         unaligned so that it compiles for system which need unaligned
9719         access handling.
9720
9721 2000-04-04  Andreas Schwab  <schwab@suse.de>
9722
9723         * elf/cache.c (print_entry): Only look at the type field when
9724         printing the type.
9725
9726 2000-04-04  Andreas Schwab  <schwab@suse.de>
9727
9728         * iconvdata/big5.c (BODY): Fix typo.
9729
9730 2000-04-04  Andreas Schwab  <schwab@suse.de>
9731
9732         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9733         function interface.  Remove unused _dl_start_user entry point.
9734
9735 2000-04-03  Andreas Jaeger  <aj@suse.de>
9736
9737         * include/arpa/inet.h (__inet_aton): Add protoype.
9738
9739 2000-04-01  Andreas Jaeger  <aj@suse.de>
9740
9741         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9742
9743         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9744         * sysdeps/mach/mips/thread_state.h: Likewise.
9745
9746         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9747         * sysdeps/generic/fegetenv.c: Likewise.
9748         * sysdeps/generic/fesetenv.c: Likewise.
9749         * sysdeps/generic/feupdateenv.c: Likewise.
9750         * sysdeps/generic/fraiseexcpt.c: Likewise.
9751         * sysdeps/generic/fsetexcptflg.c: Likewise.
9752         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9753         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9754         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9755         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9756
9757 2000-04-02  H.J. Lu  <hjl@gnu.org>
9758
9759         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9760
9761 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9762
9763         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9764         (add_name_to_object): Add cast in malloc call.
9765         (fillin_rpath): Optimize loop to initialize ->status a bit.
9766
9767         * sysdeps/i386/dl-machine.h: Undo last change.
9768         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9769         Restore %edx register after call here.
9770
9771         * sysdeps/arm/atomicity.h: New file.
9772         Contributed by Jesper Skov <jskov@redhat.com>.
9773
9774 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9775
9776         * Makeconfig (preprocess-versions): Undo last change.
9777         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9778
9779         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9780         here, before we might move the stack.
9781         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9782         (init1): And not here.
9783
9784         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9785         change, to restore argc value in call-clobbered register after
9786         RTLD_START_SPECIAL_INIT, which will contain a call.
9787
9788         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9789         allocating and initializing L->l_initfini.
9790
9791         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9792
9793 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9794
9795         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9796         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9797         (open_path): Change type of fourth parameter.  Make pointer to array
9798         of pointers.  Create variable dirs with original type.
9799         Track whether any directory for the object exists and if not,
9800         change *DIRSP to (void*) -1 to signal there is no such search path.
9801         (_dl_map_object): Change all calls of open_path.
9802         Rewrite decompose_rpath calls.
9803
9804 2000-03-31  Andreas Schwab  <schwab@suse.de>
9805
9806         * string/strfry.c: Declare STATE as array of char instead of int
9807         and do not initialize it (done by initstate_r).  Pass correct
9808         size.
9809
9810 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9811
9812         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9813
9814         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9815         instruction out of the code.
9816
9817 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9818
9819         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9820         element at this position.
9821
9822         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9823         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9824         l_reldeps elements.
9825         * elf/dl-lookup.c (add_dependency): New function.
9826         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9827         dynamically loaded object.
9828         (_dl_lookup_symbol_skip): Likewise.
9829         (_dl_lookup_versioned_symbol): Likewise.
9830         (_dl_lookup_versioned_symbol_skip): Likewise.
9831         * elf/dl-open.c: Don't define _dl_load_lock here...
9832         * elf/rtld.c: ...but here...
9833         * elf/dl-support.c: ...and here.
9834         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9835         through relocation.
9836         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9837         relocations.
9838         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9839         anymore.
9840         * dlfcn/glrefmain.c: Add one more debug message.
9841
9842         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9843         command line.
9844         * Makerules (sysd-versions): Use ( ) instead of { }.
9845
9846         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9847         optimize for the non-debugging case.
9848         * elf/dl-lookup.c: Likewise.
9849         * sysdeps/generic/libc-start.c: Likewise.
9850
9851 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9852
9853         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9854         (init1): Don't initialize __environ here, since init already does it.
9855         (first_init): New function, broken out of _init.
9856         (_hurd_stack_setup): Use it.
9857         [SHARED] (_dl_init_first): New function, renamed from old _init.
9858         (init1) [SHARED]: Don't call posixland_init here.
9859         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9860         [SHARED] (_init): Define as alias for posixland_init.
9861         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9862         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9863         RTLD_START_SPECIAL_INIT before calling initializers.
9864         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9865         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9866         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9867         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9868
9869         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9870         since we define the function with the name `tmpfile'.
9871
9872         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9873         * hurd/Versions: Likewise.
9874
9875 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9876
9877         * elf/dl-runtime.c (fixup): Fix typo in comment.
9878
9879         * resolv/netdb.h (getnameinfo): All length parameters are of type
9880         socklen_t.
9881         * inet/getnameinfo.c: Likewise.
9882
9883 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9884
9885         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9886         (gethostname): Change type of second parameter to socklen_t.
9887         * include/unistd.h (__gethostname): Change type of second
9888         parameter to socklen_t.
9889         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9890         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9891         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9892         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9893         Likewise.
9894         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9895         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9896         Allow definition elsewhere.
9897         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9898         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9899         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9900         * sysdeps/generic/bits/types.h: Define __socklen_t.
9901         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9902         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9903         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9904         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9905         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9906         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9907         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9908
9909         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9910         (inet_lnaof): Likewise.
9911         (inet_netof): Likewise.
9912         (inet_network): Likewise.
9913         (inet_aton): Likewise.
9914         (inet_makeaddr): Change parameter types to in_addr_t.
9915         (inet_neta): Likewise.
9916         (inet_ntop): Change type of last parameter to socklen_t.
9917         (inet_aton): Only make available if __USE_MISC.
9918         (inet_neta): Likewise.
9919         (inet_net_ntop): Likewise.
9920         (inet_net_pton): Likewise.
9921         (inet_nsap_ntoa): Likewise.
9922
9923         * inet/in.h: Define in_port_t type.
9924         Define in_addr_t type.
9925         (struct in_addr): Use in_addr_t in definition.
9926         (IN_CLASSA): Use cast to in_addr_t.
9927         (IN_CLASSB): Likewise.
9928         (IN_CLASSC): Likewise.
9929         (IN_CLASSD): Likewise.
9930         (IN_EXPERIMENTAL): Likewise.
9931         (IN_BADCLASS): Likewise.
9932         (INADDR_ANY): Likewise.
9933         (INADDR_BROADCAST): Likewise.
9934         (INADDR_NONE): Likewise.
9935         (INADDR_LOOPBACK): Likewise.
9936         (INADDR_UNSPEC_GROUP): Likewise.
9937         (INADDR_ALLHOSTS_GROUP): Likewise.
9938         (INADDR_ALLRTRS_GROUP): Likewise.
9939         (INADDR_MAX_LOCAL_GROUP): Likewise.
9940         (struct sockaddr_in): Use in_port_t for sin_port element.
9941         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9942         Use uint8_t instead of u_int8_t.
9943
9944         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9945         Call __inet_aton instead of inet_aton.
9946         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9947
9948         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9949         (innetgr): Likewise.
9950         (struct addrinfo): Use socklen_t for ai_addrlen element.
9951
9952         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9953         IPV6_RECVERR): New defines.
9954
9955         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9956         * inet/getnetbyad.c: Likewise.
9957         * inet/getnetbyad_r.c: Likewise.
9958         * nis/nss_nis/nis-network.c: Likewise.
9959         * nis/nssplus_nis/nisplus-network.c: Likewise.
9960         * nss/nss_files/files-network.c: Likewise.
9961         * resolv/netdb.h: Define uint32_t if not already happened.
9962         Include bits/netdb.h.  Remove definition of struct netent.
9963         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9964         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9965         * sysdeps/generic/bits/netdb.h: New file.
9966         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9967
9968         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9969         (tests): Add glrefmain.
9970         Add rules to build modules and run tests.  Ignore result of glrefmain
9971         for now since it fails.
9972         * dlfcn/glrefmain.c: New file.
9973         * dlfcn/glreflib1.c: New file.
9974         * dlfcn/glreflib2.c: New file.
9975
9976         * test-skeleton.c: Include <string.h> for strsignal prototype.
9977
9978         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9979         to be missing.
9980
9981         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9982         former init-first.h.  Initialize __libc_multiple_libcs.
9983
9984 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9985
9986         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9987         #if expression for use of unaligned function to the one used in
9988         the definition of these functions.
9989         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9990         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9991         (internal_ucs4le_loop_unaligned): New function.
9992
9993         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9994         (tests): Add order.
9995         (module-names): Add dep1, dep2, dep3, and dep4.
9996         Add dependencies for dep* modules and order.
9997         Define rule for order.out which checks the result.
9998         * elf/dep1.c: New file.
9999         * elf/dep2.c: New file.
10000         * elf/dep3.c: New file.
10001         * elf/dep4.c: New file.
10002         * elf/order.c: New file.
10003
10004         * elf/dl-init.c: Fix typo in comment.
10005
10006 2000-03-31  Andreas Jaeger  <aj@suse.de>
10007
10008         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10009         init function interface.
10010         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10011
10012 2000-03-31  Andreas Jaeger  <aj@suse.de>
10013
10014         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10015         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10016         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10017         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10018         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10019
10020         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10021         anymore, update comment.
10022
10023         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10024
10025         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10026         SHLIB_COMPAT - the struct is always needed.
10027
10028 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10029
10030         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10031         * elf/dl-support.c: Define _dl_starting_up.
10032
10033 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10034
10035         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10036         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10037
10038         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10039
10040         * elf/Makefile (dl-routines): Remove preinit.
10041         * elf/Versions: Remove _dl_preinit.
10042         * elf/dl-preinit.c: Removed.  Move content into...
10043         * elf/dl-init.c: ...here.
10044         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10045
10046         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10047         elements.
10048
10049 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10050
10051         * stdlib/strfmon.c: Corrected problems with the code that
10052         sets default values for [np]_sep_by_space and
10053         [np]_sign_posn; also the new positive/negative alignment
10054         code from the previous patch was not quite right for
10055         [np]_sign_posn = 0.
10056
10057         * localedata/tst-fmon.data: Changes corresponding to the
10058         two sets of fixes made to stdlib/strfmon.c.
10059
10060 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10061
10062         * malloc/malloc.c: Declare bit flags UL so that they will not
10063         default to int size when being inverted.
10064
10065 2000-03-29  Andreas Jaeger  <aj@suse.de>
10066
10067         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10068         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10069
10070 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10071             Ralf Baechle <ralf@uni-koblenz.de>
10072
10073         * Makeconfig: Introduce new variable SHARED to mark code used in
10074         the shared library.
10075         * elf/dl-close.c: Use it instead of PIC.
10076         * elf/dl-load.c: Likewise.
10077         * elf/dl-open.c: Likewise.
10078         * hurd/geteuids.c: Likewise.
10079         * include/libc-symbols.h: Likewise.
10080         * include/shlib-compat.h: Likewise.
10081         * libio/freopen.c: Likewise.
10082         * linuxthreads/cancel.c: Likewise.
10083         * linuxthreads/pthread.c: Likewise.
10084         * linuxthreads/wrapsyscall.c: Likewise.
10085         * nss/nsswitch.c: Likewise.
10086         * stdio-common/vfprintf.c: Likewise.
10087         * sysdeps/arm/init-first.c: Likewise.
10088         * sysdeps/i386/init-first.c: Likewise
10089         * sysdeps/generic/init-first.c: Likewise.
10090         * sysdeps/generic/libc-start.c: Likewise.
10091         * sysdeps/mips/init-first.c: Likewise.
10092         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10093         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10094         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10095         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10096         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10097
10098         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10099
10100 2000-03-29  Andreas Jaeger  <aj@suse.de>
10101
10102         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10103         Use D_PTR to access relocated entries in l_info.
10104         (elf_machine_rela): Likewise.
10105
10106         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10107         Likewise.
10108         (elf_machine_rela): Likewise.
10109
10110         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10111         Likewise.
10112         (__elf_machine_fixup_plt): Likewise.
10113         (__process_machine_rela): Likewise.
10114
10115         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10116         (elf_machine_rela): Likewise.
10117
10118         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10119         (elf_machine_rel): Likewise.
10120
10121         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10122         (elf_machine_fixup_plt): Likewise.
10123         (elf_machine_rela): Likewise.
10124
10125 2000-03-29  Andreas Jaeger  <aj@suse.de>
10126
10127         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10128         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10129         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10130         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10131         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10132         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10133         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10134         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10135         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10136         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10137         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10138         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10139         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10140         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10141         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10142
10143         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10144         macros, remove K&R prototypes.
10145
10146 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10147
10148         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10149         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10150         (PR libc/1677).
10151
10152 2000-03-30  Andreas Jaeger  <aj@suse.de>
10153
10154         * misc/sys/cdefs.h: Remove K&R support.
10155
10156 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10157
10158         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10159         more cases.
10160         * iconv/loop.c: Likewise.
10161
10162 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10163
10164         * iconv/loop.c (put16): Remove __const. Fix access index.
10165         (put32): Remove __const. Use uint32_t instead of uint16_t.
10166         * iconv/skeleton.c: Likewise.
10167
10168 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10169
10170         * mach/Versions (libc: GLIBC_2.0)
10171         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10172         __vm_allocate on this.
10173         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10174         mutex- and spinlock-related symbols on this.
10175         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10176         New version set.  Lock-related symbols go here instead in this case.
10177         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10178         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10179         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10180         * hurd/Versions
10181         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10182         Put them here instead.
10183         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10184         New version set.  Those cthreads symbols go here instead in this case.
10185         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10186
10187 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10188
10189         * elf/dl-init.c (_dl_init): We don't need to call constructors
10190         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10191
10192         Implement dynamic determination of constructor/destructor order in
10193         the dynamic linker.
10194         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10195         (GLIBC_2.2): Add _dl_init.
10196         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10197         r_duplist is not anymore allocated separately.  l_initfini is and
10198         therefore free it if necessary.
10199         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10200         malloc block.  Otherwise allocate l_initfini list only.
10201         Put dependencies for the object in l_initfini list.
10202         Sort dependencies for the object to be loaded topologically.
10203         * elf/dl-fini.c: Before running the destructors sort the topologically.
10204         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10205         call constructors instead of iterating over the pointers.  Get list of
10206         objects for which to run constructors from l_initfini element. Accept
10207         argc, argv, and env as parameters and pass them to the constructors.
10208         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10209         with size of dynamic section.
10210         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10211         _dl_init_next and calling constructors ourself.
10212         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10213         Take argc, argv, and env as parameters and pass them to the
10214         constructors.  Rewrite to call all constructors and not iterate over
10215         the pointers.
10216         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10217         precompute l_initcount and l_preinitcount.
10218         * elf/link.h (struct link_map): Add l_ldnum member.
10219         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10220         l_initcount, and l_preinitcount.  Add l_initfini.
10221         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10222         one for _dl_init.
10223         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10224         function interface.
10225         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10226         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10227         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10228         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10229         conventions now match.
10230
10231         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10232         effect for shared objects.  Don't emit message and call only for
10233         static library.
10234
10235 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10236
10237         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10238         CSA_Z243.4-1985-1..UCS2.
10239         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10240         ISO-8859-10..UCS2.
10241
10242 2000-03-29  Andreas Jaeger  <aj@suse.de>
10243
10244         * include/unistd.h: Remove duplicate entry for __rmdir.
10245         Remove declaration of __mkdir since __mkdir is declared in
10246         sys/stat.h.
10247
10248         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10249         by Michael Deutschmann <michael@talamasca.ocis.net>.
10250
10251         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10252         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10253         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10254         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10255         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10256
10257 2000-03-28  Andreas Jaeger  <aj@suse.de>
10258
10259         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10260         declaration, the prototype is defined via bits/mathcalls.h.
10261         (__sincosf): Likewise.
10262         (__sincosl): Likewise.
10263         (ldexp): Likewise.
10264         (ldexpf): Likewise.
10265         (ldexpl): Likewise.
10266         (__finite): Likewise.
10267         (__inline_mathcodeNP): New macro without prototype
10268         declarations.
10269         (__inline_mathcodeNP2): Likewise.
10270         (__inline_mathcodeNP3): Likewise.
10271         (__inline_mathcodeNP_): Likewise.
10272         (__inline_mathcodeNP2_): Likewise.
10273         (__inline_mathcodeNP3_): Likewise.
10274         (__inline_mathopNP): Likewise.
10275         (__inline_mathop_declNP): Likewise.
10276         (__inline_mathop_declNP_): Likewise.
10277         (__inline_mathcode_): Use __inline_mathcodeNP_.
10278         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10279         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10280         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10281         (__expm1l): Don't define prototype, the prototype is defined via
10282         bits/mathcalls.h.
10283         (exp): Likewise.
10284         (__expl): Likewise.
10285         (tan): Likewise.
10286         (atan2): Likewise.
10287         (__atan2l): Likewise.
10288         (fmod): Likewise.
10289         (pow): Likewise.
10290         (fabsf): Likewise.
10291         (fabsl): Likewise.
10292         (__fabsl): Likewise.
10293         (asin): Likewise.
10294         (acos): Likewise.
10295         (sinh): Likewise.
10296         (cosh): Likewise.
10297         (tanh): Likewise.
10298         (floor): Likewise.
10299         (ceil): Likewise.
10300         (expm1): Likewise.
10301         (log1p): Likewise.
10302         (asinh): Likewise.
10303         (acosh): Likewise.
10304         (atanh): Likewise.
10305         (hypot): Likewise.
10306         (logb): Likewise.
10307         (fma): Likewise.
10308         (drem): Likewise.
10309         (sqrt): Likewise.
10310         (__sqrtl): Likewise.
10311         (sin): Likewise.
10312         (cos): Likewise.
10313         (atan): Likewise.
10314         (log): Likewise.
10315         (log10): Likewise.
10316         (asinh): Likewise.
10317         (log2): Likewise.
10318         (rint): Likewise.
10319
10320 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10321
10322         * Makerules: If make variable md5 is defined to yes after
10323         generating dependencies generate MD5 sum for the object.
10324
10325         * iconv/gconv_builtin.h: Fix length in transformation definition
10326         for UNICODEBIG.
10327
10328         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10329
10330         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10331         allow as well reading from/writing to unaligned addresses on machines
10332         which don't support this in hardware.  Use FCTNAME macro to define
10333         function name.  Include the file a second time for platforms which
10334         need special unaligned handling.
10335         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10336         to access potentially unaligned addresses.  These macros are intended
10337         to be used only outside the loops.
10338         (unaligned): New definition.  In case the machine can handle unaligned
10339         access define as zero.  Otherwise as a variable which is initialized
10340         as nonzero in case the buffer passed in at runtime is unaligned with
10341         respect to the character set encoding involved.
10342         Call aligned or unaligned looop functions according to unaligned
10343         variable.
10344         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10345         of direct casting pointer to potentially handle unaligned memory
10346         accesses.
10347         * iconvdata/8bit-generic.c: Likewise.
10348         * iconvdata/ansi_x3.110.c: Likewise.
10349         * iconvdata/big5.c: Likewise.
10350         * iconvdata/euc-cn.c: Likewise.
10351         * iconvdata/euc-jp.c: Likewise.
10352         * iconvdata/euc-kr.c: Likewise.
10353         * iconvdata/euc-tw.c: Likewise.
10354         * iconvdata/gbk.c: Likewise.
10355         * iconvdata/iso-2022-cn.c: Likewise.
10356         * iconvdata/iso-2022-jp.c: Likewise.
10357         * iconvdata/iso-2022-kr.c: Likewise.
10358         * iconvdata/iso646.c: Likewise.
10359         * iconvdata/iso_6937-2.c: Likewise.
10360         * iconvdata/iso_6937.c: Likewise.
10361         * iconvdata/johab.c: Likewise.
10362         * iconvdata/sjis.c: Likewise.
10363         * iconvdata/t.61.c: Likewise.
10364         * iconvdata/uhc.c: Likewise.
10365         * iconvdata/unicode.c: Likewise.
10366         * iconvdata/utf-16.c: Likewise.
10367
10368         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10369         prototypes.
10370
10371         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10372         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10373         public.
10374         * malloc/mcheck.h (mcheck_check_all): Declare.
10375
10376         * stdio-common/Makefile (tests): Add tst-obprintf.
10377
10378 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10379
10380         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10381         Declare pthread_sigmask.
10382
10383         * csu/version.c: Add 2000 to copyright years.
10384         Remove Emacs local variables section.
10385
10386 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10387
10388         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10389         __gconv_transform_internal_ucs2little): Remove declarations.
10390         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10391         __gconv_transform_internal_ucs2): Never need to bswap_16.
10392         (__gconv_transform_ucs2reverse_internal,
10393         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10394
10395 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10396
10397         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10398         obsoleting version not being defined at all, in which case the
10399         result is always true.
10400
10401         * Makeconfig (preprocess-versions): New canned sequence for running
10402         cpp on shlib-versions and the like.
10403         (soversions.i): Use it.
10404         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10405         Versions.def and Versions files.
10406
10407 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10408
10409         * stdio-common/tst-obprintf.c (main): Add another check to see
10410         obstack_printf handling all possible beginnings of the block
10411         inside an obstack chunk.
10412
10413         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10414         install mcheck handler.
10415
10416         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10417         handling problem.
10418
10419 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10420
10421         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10422
10423         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10424         on [HAVE_ELF && DO_VERSIONING].
10425
10426 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10427
10428         * stdio-common/tst-obprintf.c: New file.
10429
10430 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10431
10432         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10433         _IO_OVERFLOW directly instead through __overflow.
10434
10435         * locale/programs/localedef.c (construct_output_path): If path
10436         contains a / compute the end of the directory name correctly.
10437
10438         * include/features.h: Undef and document __USE_XOPEN2K.
10439
10440         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10441         whenever a function is called.  Initiated by calling mcheck_pedantic
10442         instead of mcheck.
10443         * malloc/mcheck.h: Declare mcheck_pedantic.
10444         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10445         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10446         for now.
10447
10448 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10449
10450         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10451         * dlfcn/dlopenold.c: Likewise.
10452         * nss/getXXbyYY_r.c: Likewise.
10453         * nss/getXXent_r.c: Likewise.
10454         * hurd/hurdinit.c: Likewise.
10455         * hurd/compat-20.c: Likewise.
10456         * libio/oldiofopen.c: Likewise.
10457         * libio/oldiofclose.c: Likewise.
10458         * libio/oldiofdopen.c: Likewise.
10459         * libio/oldfileops.c: Likewise.
10460         * libio/oldstdfiles.c: Likewise.
10461         * libio/oldiofsetpos.c: Likewise.
10462         * libio/oldiofgetpos.c: Likewise.
10463         * libio/oldiofgetpos64.c: Likewise.
10464         * libio/oldiofsetpos64.c: Likewise.
10465         * libio/oldiopopen.c: Likewise.
10466         * libio/oldpclose.c: Likewise.
10467         * libio/oldtmpfile.c: Likewise.
10468         * libio/freopen.c (freopen): Likewise.
10469         * libio/iofclose.c (_IO_new_fclose): Likewise.
10470
10471         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10472         (reboot): Declare it.
10473
10474         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10475
10476         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10477
10478         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10479
10480         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10481         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10482         We need this for the sbrk decl, which can be included without Unix98.
10483
10484 2000-03-20  Richard Henderson  <rth@cygnus.com>
10485
10486         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10487         argument to yperr2nss is an int, not size_t.
10488         * posix/regex.c (print_partial_compiled_pattern): Cast all
10489         ptrdiff_t to long for printing.
10490         (print_compiled_pattern): Use Z for printing size_t.
10491         * posix/testfnm.c (tests): Avoid trigraphs.
10492         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10493         Use a C comment, not an assembly comment.
10494
10495         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10496         of __ASSUME_32BITUIDS.
10497
10498 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10499
10500         * libio/iofopncook.c: Remove K&R prototypes.
10501
10502 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10503
10504         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10505         an initial value of 1024 instead of RLIM_INFINITY.
10506
10507         * Versions.def (libmachuser, libhurduser): Remove these sections,
10508         since these libraries do not presently use symbol versions.
10509
10510         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10511         is RLIM_INFINITY, return -1 instead.
10512
10513 2000-03-24  Andreas Jaeger  <aj@suse.de>
10514
10515         * Makefile (postclean): Added soversions.i.
10516
10517 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10518
10519         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10520         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10521         and _FPU_IEEE.  Change _FPU_RESERVED.
10522
10523 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10524
10525         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10526
10527 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10528
10529         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10530         (gaih_inet): Remove unused duplicate variable.
10531
10532         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10533         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10534         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10535         only flavors supported by this function anyway.
10536
10537 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10538
10539         * stdlib/strfmon.c: Corrected problems with missing signs and
10540         missing or extra spaces; allow for sign strings longer than
10541         one character; add padding to ensure positive and negative
10542         formats are aligned when a left precision is used.
10543
10544 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10545
10546         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10547         Patch by John Mizel <John.Mizel@msdw.com>.
10548
10549 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10550
10551         * manual/install.texi: Remove references to crypt add-on.
10552
10553 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10554
10555         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10556         section while taking the _hurd_rlimit_lock.
10557         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10558
10559 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10560
10561         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10562         using $(LN_S).
10563
10564         * sysdeps/mach/hurd/if_index.c: New file.
10565
10566         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10567         * sysdeps/gnu/net/if.h: here.
10568         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10569         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10570         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10571         functions and `struct if_nameindex' type.
10572         * socket/Makefile (headers): Add net/if.h here.
10573         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10574         * sysdeps/mach/hurd/Dist: Remove it here.
10575         * sysdeps/unix/sysv/linux/Dist: And here.
10576         * sysdeps/generic/if_index.c: Include <net/if.h>.
10577
10578 2000-03-24  Andreas Jaeger  <aj@suse.de>
10579
10580         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10581         access relocated entries in l_info.
10582         (elf_machine_got_rel): Likewise.
10583         (elf_machine_runtime_setup): Likewise.
10584         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10585         (elf_machine_runtime_setup): Likewise.
10586         (__dl_runtime_resolve): Likewise.
10587
10588 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10589
10590         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10591         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10592         according to RFC 2553.
10593         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10594         * inet/getnameinfo.c: Likewise.
10595         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10596
10597 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10598
10599         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10600         Remove no-op pointer increment.
10601
10602 2000-03-23  Andreas Jaeger  <aj@suse.de>
10603
10604         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10605         follow change for libio.h from 2000-03-10.
10606
10607 2000-03-23  Andreas Jaeger  <aj@suse.de>
10608
10609         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10610         change.
10611         * elf/dl-debug.c: Likewise.
10612         * elf/dl-deps.c: Likewise.
10613         * elf/dl-error.c: Likewise.
10614         * elf/dl-fini.c: Likewise.
10615         * elf/dl-init.c: Likewise.
10616         * elf/dl-load.c: Likewise.
10617         * elf/dl-lookup.c: Likewise.
10618         * elf/dl-minimal.c: Likewise.
10619         * elf/dl-object.c: Likewise.
10620         * elf/dl-open.c: Likewise.
10621         * elf/dl-preinit.c: Likewise.
10622         * elf/dl-profile.c: Likewise.
10623         * elf/dl-profstub.c: Likewise.
10624         * elf/dl-reloc.c: Likewise.
10625         * elf/dl-runtime.c: Likewise.
10626         * elf/dl-support.c: Likewise.
10627         * elf/dl-symbol.c: Likewise.
10628         * elf/dl-version.c: Likewise.
10629         * elf/rtld.c: Likewise.
10630         * elf/sprof.c: Likewise.
10631         * sysdeps/generic/dl-cache.c: Likewise.
10632         * sysdeps/generic/dl-origin.c: Likewise.
10633         * sysdeps/generic/dl-sysdep.c: Likewise.
10634         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10635         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10636         * sysdeps/generic/libc-start.c: Likewise.
10637         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10638         * sysdeps/powerpc/dl-machine.c: Likewise.
10639         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10640         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10641         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10642         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10643
10644         * elf/ldsodefs.h: Move file to ...
10645         * sysdeps/generic/ldsodefs.h: ... here.
10646
10647         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10648
10649         * sysdeps/mips/elf/ldsodefs.h: New file.
10650
10651         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10652         entries in l_info.
10653         (_dl_check_map_versions): Likewise.
10654         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10655         * elf/dl-load.c (_dl_init_paths): Likewise.
10656         (_dl_map_object): Likewise.
10657         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10658         (elf_get_dynamic_info): Likewise.
10659         * elf/do-lookup.h (FCT): Likewise.
10660         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10661         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10662         * elf/dl-addr.c (_dl_addr): Likewise.
10663         * elf/dl-runtime.c (profile_fixup): Likewise.
10664         (fixup): Likewise.
10665         * elf/dl-init.c (_dl_init_next): Likewise.
10666         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10667         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10668         (DISTINGUISH_LIB_VERSIONS): Likewise.
10669         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10670         (elf_machine_rel): Likewise.
10671
10672         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10673         for writable dynamic section.
10674
10675 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10676
10677         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10678         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10679
10680 2000-03-22  Andreas Jaeger  <aj@suse.de>
10681
10682         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10683         from latest Linux kernel.
10684
10685 2000-03-21  Andreas Jaeger  <aj@suse.de>
10686
10687         * Versions.def: Add version 2.1.4.
10688
10689 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10690
10691         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10692         * libio/oldiofopen.c: Likewise.
10693         * libio/oldiofclose.c: Likewise.
10694         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10695
10696 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10697
10698         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10699         indicating the first version set to obsolete the conditionalized code.
10700         (compat_symbol): New macro.
10701         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10702         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10703         integer values to the ABI_* macros for supported versions.
10704         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10705         compat_symbol macro.
10706
10707 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10708
10709         * nscd/connections.c (nscd_run): Pretty print.
10710         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10711
10712         * manual/charset.texi: Fix typos.  Rephrase.
10713         * manual/process.texi: Likewise.
10714         * manual/signal.texi: Likewise.
10715         Patches by Mike Coleman <mkc@kc.net>.
10716
10717         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10718         versions.
10719         * libio/iofdopen.c: Likewise.
10720         * libio/iofgetpos.c: Likewise.
10721         * libio/iofgetpos64.c: Likewise.
10722         * libio/iofopen.c: Likewise.
10723         * libio/iofsetpos.c: Likewise.
10724         * libio/iofsetpos64.c: Likewise.
10725         * libio/iopopen.c: Likewise.
10726         * libio/oldiofopen.c: Likewise.
10727         * libio/pclose.c: Likewise.
10728         * sysdeps/gnu/siglist.c: Likewise.
10729         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10730
10731         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10732         chance to expand VERSION_##lib##_##version.
10733
10734         * libio/fileops.c: Use new macros from shlib-compat.h to define
10735         versions.
10736         * libio/iofclose.c: Likewise.
10737         * libio/oldiofclose.c: Likewise.
10738         Patch by Roland McGrath <roland@frob.com>.
10739
10740 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10741
10742         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10743         Lay out struct sigcontext according to what really gets passed on
10744         the stack.
10745         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10746         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10747         (prgregset_t, prfpregset_t): Define to elf_* types.
10748         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10749         Define to correct value.
10750         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10751         sigcontext.
10752         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10753
10754 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10755
10756         * scripts/firstversions.awk: Allow multiple version sets in the
10757         "earliest version" specification, meaning that version sets in the
10758         gaps between listed versions should be folded into the earliest later
10759         version that is explicitly listed.
10760         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10761         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10762
10763 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10764
10765         * iconv/gconv_builtin.c: Include <endian.h>.
10766         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10767         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10768         according to current platform.
10769         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10770         __gconv_transform_internal_ucs2reverse, and
10771         __gconv_transform_internal_ucs4le.
10772         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10773         __gconv_transform_ucs2reverse_internal and
10774         __gconv_transform_internal_ucs2reverse.
10775         * iconvdata/Makefile (modules): Add UNICODE.
10776         (distribute): Add unicode.c.
10777         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10778         * iconvdata/unicode.c: New file.
10779
10780         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10781         determine byte order of input and convert accordingly.
10782
10783         * iconvdata/utf-16.c (gconv_init): Fix typo.
10784
10785 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10786
10787         * iconvdata/gconv-modules: Fix typo.
10788
10789         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10790         more messages.
10791
10792         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10793
10794 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10795
10796         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10797
10798 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10799
10800         * misc/Makefile (routines): Add mincore.
10801
10802 2000-03-20  Andreas Jaeger  <aj@suse.de>
10803
10804         * sysdeps/generic/mincore.c: New stub file.
10805
10806         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10807         from latest Linux kernel.
10808
10809 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10810
10811         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10812         _SC_GETPW_R_SIZE_MAX.
10813
10814 2000-03-20  Richard Henderson  <rth@cygnus.com>
10815
10816         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10817         in GLIBC_2.1.4.
10818
10819 2000-03-20  Richard Henderson  <rth@cygnus.com>
10820
10821         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10822         of arithmetic instructions.
10823
10824         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10825         with the fpcr.  Protect from INV exception.
10826         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10827         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10828         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10829
10830         * sysdeps/alpha/fpu/s_copysign.c: New.
10831         * sysdeps/alpha/fpu/s_copysignf.c: New.
10832         * sysdeps/alpha/fpu/s_fabs.c: New.
10833         * sysdeps/alpha/fpu/s_fabsf.c: New.
10834         * sysdeps/alpha/fpu/s_rint.c: New.
10835         * sysdeps/alpha/fpu/s_rintf.c: New.
10836
10837         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10838
10839         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10840         Kill sethae.
10841         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10842         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10843         Use physical addresses not KSEG addresses.
10844         (io_system): Add PYXIS.
10845         (io): Remove hae.reg, sys, hae_shift.
10846         (stb_mb, stw_mb, stl_mb, __sethae): New.
10847         (inline_outb, inline_outw, inline_outl): Don't set hae.
10848         (inline_inb, inline_inw, inline_inl): Likewise.
10849         (dense_sethae): New null function.
10850         (struct cpuinfo_data): New.
10851         (process_cpuinfo): Use local and stack variables, not static.
10852         Move readlink check here from init_iosys.
10853         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10854         (_iopl): Simplify.
10855         (_hae_shift): Calculate it here.
10856         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10857         add pciconfig_iobase.
10858
10859 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10860
10861         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10862         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10863
10864         * scripts/versions.awk: Fixed version renaming code to distinguish
10865         libraries properly.
10866
10867 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10868
10869         * include/stdlib.h: Add prototype for __cxa_atexit.
10870
10871         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10872         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10873
10874 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10875
10876         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10877         existing rtld-installed-name.
10878         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10879         replace existing rtld-installed-name using $(symbolic-link-prog).
10880
10881 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10882
10883         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10884         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10885         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10886         but not the former.
10887
10888 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10889
10890         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10891         glob64.  Since there is no glob64 in the LFS proposal applications
10892         can assume that glob handles LFS situations.  glob64 is only needed
10893         if alternative filesystem functions are used.
10894
10895 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10896
10897         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10898         when GLOB_DOOFFS is set; correct handling of patterns
10899         containing escaped wildcards (and no unescaped ones);
10900         GLOB_ERR flag was being ignored in some situations.
10901
10902         * posix/globtest.c, posix/globtest.sh: Updated to include
10903         tests for the problems fixed by the above changes to glob.c.
10904
10905         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10906
10907 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10908
10909         * Makeconfig (soversion.i): Use only first match for each lib.
10910
10911         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10912
10913         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10914         rather than $(sysd-dirs-done) to protect these rules.
10915
10916         * Makerules (version-renames.def): Target removed.
10917         (Versions.all): Depend on soversions.i directly and parse it.
10918
10919         * Makeconfig (soversions.i): New target, input-reading parts of
10920         soversions.mk generation moved here; result is a canonicalized
10921         list "LIB VERSION [SET]" for this configuration.
10922         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10923         * Makerules (version-renames.def): New target, generated from
10924         soversions.i with contents that was in $(map-firstversions).
10925         (Versions.all): Don't depend on soversions.mk, depend on
10926         version-renames.def instead; just cat it into the input.
10927
10928         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10929         for $(map-firstversions), which better handles it being empty.
10930
10931         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10932         supported version for libc 0.2.90.libio to GLIBC_2.2.
10933
10934         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10935         and use it to emit new variable `map-firstversions'.
10936         * scripts/firstversions.awk: New file.
10937         * Makerules (Versions.all): Use scripts/firstversions.awk and
10938         the $(map-firstversions) value to generate a modified versions list
10939         that includes renames in "A = B" syntax for each version set earlier
10940         than the "earliest symbol version" named in shlib-versions.
10941         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10942         rename version set A to B in the output to the intermediate file.
10943         * scripts/abi-versions.awk: New file.
10944         * Makerules (abi-versions.h): New target, generated by that script.
10945         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10946         * include/shlib-compat.h: New file, uses that generated header.
10947
10948 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10949
10950         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10951         after stripping # comments, and then run it through cpp.
10952         This allows things like "%ifdef FOO" based on config.h settings.
10953         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10954
10955         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10956         and other errors that indicate a pseudo-receive happened, grok through
10957         the message buffer for port rights that need references fixed up.
10958
10959 2000-03-16  Andreas Jaeger  <aj@suse.de>
10960
10961         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10962
10963         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10964
10965         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10966         from latest Linux kernel.
10967         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10968
10969         * misc/sys/mman.h: Add prototype for mincore.
10970
10971 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10972
10973         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10974         entry for GLIBC_2.0 version of setrlimit.
10975         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10976
10977 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10978
10979         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10980         * nis/nss_compat/compat-initgroups.c: Likewise.
10981         * nis/nss_nis/nis-initgroups.c: Likewise.
10982         * nis/nss_nis/nis-netgrp.c: Likewise.
10983         * nis/nss_nis/nis-proto.c: Likewise.
10984         * nis/nss_nis/nis-rpc.c: Likewise.
10985         * nis/nss_nis/nis-service.c: Likewise.
10986         * nis/ypclnt.c: Likewise.
10987
10988 2000-03-16  Andreas Jaeger  <aj@suse.de>
10989
10990         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10991         doesn't exist, correct checks.  Fixes PR libc/1649.
10992
10993 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10994
10995         * nscd/hstcache.c: Restore correct UID.
10996         * nscd/pwdcache.c: Likewise.
10997         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10998
10999 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11000
11001         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11002         macros for register names, in line with 2000-03-14 linux change.
11003
11004         * sysdeps/mach/sched_yield.c: New file.
11005
11006 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11007
11008         * sysdeps/generic/lockfile.c: Include <stdio.h>
11009         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11010         case <libio.h> defined them.
11011         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11012         from __internal_*.
11013         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11014         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11015
11016         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11017         for more pleasing parse error.
11018
11019 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11020
11021         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11022         memory for eras.
11023         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11024
11025         * elf/Makefile: Add rules to compile and run constload1 test.
11026         * elf/constload1.c: New file.
11027         * elf/constload2.c: New file.
11028         * elf/constload3.c: New file.
11029
11030 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11031
11032         * sysdeps/posix/open64.c: Make __open64 weak alias.
11033         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11034         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11035         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11036         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11037         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11038         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11039         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11040         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11041         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11042         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11043
11044 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11045
11046         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11047         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11048
11049 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11050
11051         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11052         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11053
11054 2000-03-08  Andreas Jaeger  <aj@suse.de>
11055
11056         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11057
11058 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11059
11060         * timezone/africa: Update from tzdata2000d.
11061         * timezone/asia: Likewise.
11062         * timezone/australasia: Likewise.
11063         * timezone/europe: Likewise.
11064         * timezone/northamerica: Likewise.
11065         * timezone/southamerica: Likewise.
11066
11067         * po/fr.po: Update from translation team.
11068         * po/de.po: Likewise.
11069
11070         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11071         last parameter.  Move code to add map to global scope from here...
11072         * elf/dl-open.c (dl_open_worker): ...here.
11073         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11074         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11075
11076         * locale/programs/ld-collate.c (collate_read): Fix warning.
11077
11078         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11079         values and macros for register names.
11080
11081         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11082         returned by seek cookie function is -1.
11083
11084 2000-03-14  Andreas Jaeger  <aj@suse.de>
11085
11086         * locale/localeconv.c (localeconv): Fix typo.
11087         Reported by Andre Charbonneau <andrec@corel.com>.
11088
11089 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11090
11091         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11092         since modules depend on it counting the number of times the conversion
11093         function got called.
11094
11095         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11096
11097         * iconv/gconv.h: Pretty print.
11098
11099 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11100
11101         * posix/wordexp-test.c: Correct one of the tests added in the last
11102         change.  Really get the root passwd entry to check again ~root.
11103
11104 2000-03-10  Andreas Jaeger  <aj@suse.de>
11105
11106         * manual/filesys.texi (Working Directory): Fix last patch.
11107         Patch by Martin Buchholz  <martin@xemacs.org>.
11108
11109 2000-03-10  Andreas Jaeger  <aj@suse.de>
11110
11111         * manual/creature.texi (Feature Test Macros): Fix language.
11112
11113 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11114
11115         * mach/devstream.c (devstream_write, devstream_read): New functions.
11116         (input, output): Functions removed.
11117         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11118         using only the vanilla fopencookie interface.
11119
11120         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11121         as macro for __io_functions.
11122         (funcsio): Use cookie_io_functions_t type name.
11123         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11124
11125         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11126         fopencookie.
11127         (fopencookie): Use it.
11128         * libio/libio.h: Declare _IO_cookie_init.
11129         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11130         _IO_cookie_init.
11131
11132         * libio/libio.h (__io_seek_fn): Fix second argument type
11133         to be a pointer, in line with the manual and the old stdio.
11134         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11135
11136         * sysdeps/generic/bits/stdio-lock.h: New file.
11137         This is a stub with #error, but that's better than no file at all.
11138
11139 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11140
11141         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11142         * manual/message.texi (Using gettextized software): Doc Fixes.
11143         * manual/message.texi (Message Translation): Doc Fixes.
11144         * manual/filesys.texi (File Size): Doc Fixes.
11145         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11146         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11147         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11148         * manual/install.texi: Doc Fixes.
11149         * manual/search.texi (Hash Search Function): Doc Fixes.
11150         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11151         * FAQ.in: Doc Fixes.
11152         * config.h.in: Doc Fixes.
11153         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11154         Doc Fixes.  `allows to' is not correct English.
11155
11156         * elf/rtld.c: Doc fixes.
11157         * manual/creature.texi (Feature Test Macros): Doc fixes.
11158         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11159
11160         * manual/filesys.texi (Working Directory): Check for ERANGE to
11161         avoid infloop.
11162
11163 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11164
11165         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11166         conditions so as not to clobber the final '\0' when there is only one
11167         element in the vector.
11168
11169 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11170
11171         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11172         broken by 2000-02-27 change.
11173
11174         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11175
11176 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11177
11178         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11179         argument type, for 2000-02-22 change in signal/signal.h declaration.
11180
11181 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11182
11183         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11184         to getdirentries64 (no __), since the Linux implementation
11185         has no __ name, and there is no declaration for the __ name.
11186
11187         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11188
11189         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11190         sed regexp so as not to break directory names including /../ within.
11191
11192         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11193         The sysdeps/generic file is right for BSD.  This file was in fact the
11194         Hurd file, but the only difference was the WNOREAP flag that was never
11195         actually implemented or used anywhere.
11196
11197         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11198         since AC_PATH_PROG already does it for us.
11199         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11200         correctness and sh portability.  I replaced the broken check
11201         with a more sensible implementation of the apparently intended
11202         semantics, which might still be questionable.  Using expr causes
11203         a non-numeric value for `perl -V:apiversion` to be accepted,
11204         refusing to use only a perl that reports a number less than 5;
11205         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11206         * configure: Regenerated.
11207
11208 2000-03-08  Andreas Jaeger  <aj@suse.de>
11209
11210         * manual/crypt.texi: Fix paths.
11211
11212 2000-03-07  Andreas Jaeger  <aj@suse.de>
11213
11214         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11215         were swapped.
11216         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11217         libc/1636.
11218
11219 2000-03-06  Andreas Jaeger  <aj@suse.de>
11220
11221         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11222         in __sgn1l, otherwise g++ fails to parse this.
11223         Reported by Sean Chen <sean.chen@turbolinux.com>.
11224
11225 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11226
11227         * configure.in: Compute sizeof-long-double.
11228         * configure: Regenerated.
11229         * config.make.in: Make sizeof-long-double available to sub-makes.
11230
11231 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11232
11233         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11234         call.
11235
11236 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11237
11238         * Makeconfig (rpath-dirs): Add crypt.
11239         (all-subdirs): Remove md5crypt.
11240         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11241         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11242         * sysdeps/generic/crypt-entry.c: Delete.
11243         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11244         * sysdeps/generic/crypt.h: Delete.
11245         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11246         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11247         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11248         * sysdeps/generic/des_impl.c: Delete.
11249         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11250         * crypt/sysdeps: Delete.
11251         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11252         * md5-crypt/Versions: Move to crypt/.
11253         * md5-crypt/md5-crypt.c: Move to crypt/.
11254         * md5-crypt/md5.c: Move to crypt/.
11255         * md5-crypt/md5c-test.c: Move to crypt/.
11256         * md5-crypt/md5test.c: Move to crypt/.
11257         * md5-crypt: Delete.
11258         * crypt/Makefile: Adjust for new structure.
11259
11260 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11261
11262         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11263         define to 1 if not defined.
11264
11265 2000-03-03  Andreas Jaeger  <aj@suse.de>
11266
11267         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11268
11269 2000-03-03  Andreas Jaeger  <aj@suse.de>
11270
11271         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11272         cases.
11273         (xdr_int64_t): Correctly handle lower half.
11274         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11275
11276 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11277
11278         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11279         call.
11280
11281 2000-03-02  Andreas Jaeger  <aj@suse.de>
11282
11283         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11284         2.3.43.
11285
11286 2000-03-02  Andreas Jaeger  <aj@suse.de>
11287
11288         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11289
11290 2000-03-01  Andreas Jaeger  <aj@suse.de>
11291
11292         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11293         (tests): Added tst-getdate.
11294
11295         * time/tst-getdate.c: New file.
11296
11297         * time/datemsk: New file, needed for tst-getdate.
11298
11299 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11300
11301         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11302
11303 2000-02-17  H.J. Lu  <hjl@gnu.org>
11304
11305         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11306
11307         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11308         available.
11309         (svcudp_recv): Set up message with the new "xp_pad" field for
11310         IP_PKTINFO.
11311         (svcudp_reply): Support IP_PKTINFO if available.
11312
11313 2000-03-01  Andreas Jaeger  <aj@suse.de>
11314
11315         * time/getdate.c (check_mday): Fix check for february.
11316         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11317         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11318
11319 2000-03-02  Andreas Jaeger  <aj@suse.de>
11320
11321         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11322         g++ fails to parse this.
11323         Reported by Sean Chen <sean.chen@turbolinux.com>.
11324
11325 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11326
11327         * io/creat.c: Moved to...
11328         * sysdeps/generic/creat.c: ...here.
11329         * io/creat64.c: Moved to...
11330         * sysdeps/generic/creat64.c: ...here.
11331         * io/lockf.c: Moved to...
11332         * sysdeps/generic/lockf.c: ...here.
11333
11334         * crypt/crypt.texi: Moved to...
11335         * manual/crypt.texi: ...here.
11336         * crypt/examples/genpass.c: Moved to...
11337         * manual/examples/genpass.c: ...here.
11338         * crypt/examples/mygenpass.c: Moved to...
11339         * manual/examples/mygenpass.c: ...here.
11340         * crypt/examples/testpass.c: Moved to...
11341         * manual/examples/testpass.c: ...here.
11342
11343         * manual/Makefile (chapters): Add crypt.
11344         * manual/conf.texi: Add usual header for not-last chapter.
11345         * manual/crypt.texi: Add special header for last chapter.
11346
11347 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11348
11349         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11350         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11351         complain if there is no crypt add-on.
11352         * crypt/configure: Removed.
11353
11354         * crypt/crypt.texi: Update documentation of US export restrictions
11355         to match the 14 Jan 2000 regulations.
11356
11357 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11358
11359         * crypt: New subdirectory, merged in from the crypt add-on.
11360
11361 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11362
11363         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11364
11365
11366 See ChangeLog.10 for earlier changes.