Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
2
3         * stdio-common/vfscanf.c (__vfscanf, _IO_vfscanf): Fix bugs in
4         reallocation logic for MALLOC (%as, %aS formats).
5
6 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
7
8         * stdio-common/vfprintf.c (process_arg): Handle %hhn.
9         Add missing case in va_arg handling for numbers.
10         * stdio-common/tst-printf.c (main): Add tests for %hhu and %hhn
11         handling.  Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
12
13 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
14
15         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Reject 0x80.
16         (BODY for TO_LOOP): Clear bit 7 when outputting ISO-8859-1 upper half
17         characters.
18         * iconvdata/gen-8bit-gap-1.sh: Recognize lowercase hexadecimal digits
19         as equivalent to uppercase hexadecimal digits.
20
21 2000-09-20  Bruno Haible  <haible@clisp.cons.org>
22
23         * iconvdata/testdata/EUC-KR..UTF8: New file.
24         * iconvdata/testdata/EUC-TW: New file.
25         * iconvdata/testdata/EUC-TW..UTF8: New file.
26         * iconvdata/testdata/EUC-JP: New file.
27         * iconvdata/testdata/EUC-JP..UTF8: New file.
28         * iconvdata/testdata/ISO-2022-JP: New file.
29         * iconvdata/testdata/ISO-2022-JP..UTF8: New file.
30         * iconvdata/testdata/ISO-2022-JP-2: New file.
31         * iconvdata/testdata/ISO-2022-JP-2..UTF8: New file.
32         * iconvdata/testdata/ISO-2022-KR: Add a few more lines.
33         * iconvdata/testdata/ISO-2022-KR..UTF8: New file.
34         * iconvdata/testdata/ISO-2022-CN: New file.
35         * iconvdata/testdata/ISO-2022-CN..UTF8: New file.
36         * iconvdata/testdata/ISO-2022-CN-EXT: New file.
37         * iconvdata/testdata/ISO-2022-CN-EXT..UTF8: New file.
38         * iconvdata/TESTS: Enable tests for ISO-2022-JP, ISO-2022-JP-2,
39         ISO-2022-CN, ISO-2022-CN-EXT, EUC-JP, EUC-TW.
40
41 2000-09-24  Andreas Jaeger  <aj@suse.de>
42
43         * elf/ldconfig.c (add_dir): Move logic to add entry to list to new
44         function add_single_dir.
45         (add_single_dir): New function.
46         (search_dir): Use add_single_dir instead of recursing.
47
48         * sysdeps/generic/dl-cache.h: Include stdint.h.
49         (struct file_entry_new): Use fixed sizes for interoperability
50         between 32bit and 64bit systems, add __unused to make alignment
51         explicit.
52         (CACHE_VERSION): Increment.
53         (struct cache_file_new): Use fixed sizes, add one more unused
54         entry to make alignment explicit.
55
56 2000-09-24  Ulrich Drepper  <drepper@redhat.com>
57
58         * elf/ldconfig.c (search_dir): Make more use of d_type information.
59
60 2000-09-23  Ulrich Drepper  <drepper@redhat.com>
61
62         * stdio-common/printf-parse.h (parse_one_spec): Clear
63         spec->info.i18n.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
64
65 2000-09-18  Mark Kettenis  <kettenis@gnu.org>
66
67         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_SYNCHRONIZED_IO):
68         #undef since we don't have msync.
69
70         * sysdeps/mach/hurd/bits/time.h: (CLOCKS_PER_SEC): Make a long int
71         constant since that is what clock_t is.
72         * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
73
74 2000-09-11  Mark Kettenis  <kettenis@gnu.org>
75
76         * sysdeps/mach/getloadavg.c (getloadavg): Divide instead of
77         multiply by LOAD_SCALE.
78
79 2000-09-22  Jakub Jelinek  <jakub@redhat.com>
80
81         * crypt/crypt.h (crypt, setkey, encrypt): Add __THROW.
82         (crypt_r, setkey_r, encrypt_r): Likewise.
83
84 2000-09-22  Andreas Jaeger  <aj@suse.de>
85
86         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
87         array size.
88
89         * sysdeps/alpha/fpu/libm-test-ulps: New file.
90         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
91
92 2000-09-21  Andreas Jaeger  <aj@suse.de>
93
94         * math/libm-test.inc (atan_test): Test for existence of function.
95         (expm1_test): Likewise.
96         (acos_test): Likewise.
97         (asin_test): Likewise.
98         (exp_test): Likewise.
99         (log10_test): Likewise.
100         (log_test): Likewise.
101         (pow_test): Likewise.
102         (sqrt_test): Likewise.
103         (cos_test): Likewise.
104         (sin_test): Likewise.
105         (tan_test): Likewise.
106         (log1p_test): Likewise.
107         (log2_test): Likewise.
108
109         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
110
111         * libio/oldiofsetpos64.c: Fix alias names.
112
113 2000-09-21  Martin Buchholz  <martin@xemacs.org>
114
115         * manual/terminal.texi (Allocation): Sample code correction.
116
117 2000-09-20  Andreas Jaeger  <aj@suse.de>
118
119         * iconvdata/Makefile (generated): Add tst-tables.out.
120
121         * intl/Makefile (generated): Add test output.
122
123 2000-09-19  Andreas Jaeger  <aj@suse.de>
124
125         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
126         Reported by Jens-Uwe Mager <jum@helios.de>.
127
128 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
129
130         * version.h (VERSION): Bump to 2.1.94.
131
132         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
133         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
134         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
135         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
136
137         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
138
139 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
140
141         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
142         range 0xD800..0xDFFF.
143         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
144         (BODY for FROM_LOOP): Likewise.
145         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
146         (internal_ucs2_loop): Likewise.
147         (ucs2reverse_internal_loop): Likewise.
148         (internal_ucs2reverse_loop): Likewise.
149
150 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
151
152         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
153         names.
154
155 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
156
157         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
158         * iconvdata/tst-table-to.c (main): Likewise.
159
160 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
161
162         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
163         __isoir165_tab.
164         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
165         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
166         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
167         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
168         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
169         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
170         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
171         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
172         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
173         encodings when needed.  When outputting an announcement, don't clear
174         most other announcements.
175
176 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
177
178         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
179         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
180
181 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
182
183         * intl/Versions: Add bind_textdomain_codeset.
184
185 2000-09-16  Ralf Baechle  <ralf@gnu.org>
186
187         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
188         as function.
189         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
190         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
191         it will even work when not loaded to the standard address.
192         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
193         before the dynamic linker itself is relocated.
194
195 2000-09-18  Andreas Jaeger  <aj@suse.de>
196
197         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
198         __ASSUME_32BITUIDS for MIPS.
199         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
200         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
201
202 2000-09-17  H.J. Lu  <hjl@gnu.org>
203
204         * catgets/Makefile ($(objpfx)de/libc.cat): Use
205         $(make-target-directory) instead of mkdir.
206
207 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
208
209         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
210         __ASSUME_32BITUIDS for __powerpc__.
211         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
212         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
213
214 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
215
216         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
217         patch.
218         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
219
220 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
221
222         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
223         first.
224         * sysdeps/m68k/Implies: Likewise.
225         * sysdeps/sparc/sparc64/Implies: Likewise.
226
227 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
228
229         * elf/readlib.c (process_file): Don't error for stale .so links either.
230
231 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
232
233         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
234         __builtin_expect.
235
236         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
237         Patch by Thorsten Kukuk <kukuk@suse.de>.
238
239         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
240         (test): Add default.
241         (modules-names): Add defaultmod1 and defaultmod2.
242         Add rules to build test objects.
243
244 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
245
246         * wctype/wctype.h: Always include <bits/types.h>.
247         Reported by Jim Meyering <meyering@ascend.com>.
248
249         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
250         * elf/dl-support.c: Likewise.
251
252         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
253         st_blocks member in stat and stat64 structs.
254         Patch by Bill Nottingham <notting@redhat.com>.
255
256         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
257         take longer.
258
259         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
260         __extension__ to _Complex_I definition since gcc warns if -pedantic.
261         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
262         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
263
264         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
265         necessary.  Move includes of POSIX and Unix limits files to the end.
266         * stdlib/Makefile (tests): Add tst-limits.
267         * stdlib/tst-limits.h: New file.
268
269 2000-09-15  Andreas Jaeger  <aj@suse.de>
270
271         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
272
273         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
274
275 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
276
277         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
278         clobber.
279         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
280         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
281
282 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
283
284         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
285         (tests): Add next.
286         (modules-names): Add nextmod1 and nextmod2.
287         Add rules to build and run next.
288         * elf/next.c: New file.
289         * elf/nextmod1.c: New file.
290         * elf/nextmod2.c: New file.
291
292 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
293
294         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
295
296 2000-09-15  Andreas Jaeger  <aj@suse.de>
297
298         * sysdeps/mips/fpu/fenv_libc.h: New file.
299         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
300         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
301         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
302
303         * sysdeps/mips/fpu/feenablxcpt.c: New file.
304         * sysdeps/mips/fpu/fegetexcept.c: New file.
305         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
306
307 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
308
309         * intl/Makefile: Avoid unnecessary test reruns.
310
311         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
312
313         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
314         to not use sysctl().  Too many architectures have problems with it.
315
316 2000-09-14  Andreas Jaeger  <aj@suse.de>
317
318         * scripts/config.sub: New version from subversions.gnu.org.
319
320         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
321         long.
322
323 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
324
325         * posix/regex.c (compile_range): Cast collseq index to unsigned char
326         to avoid accessing data before collseq.
327
328         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
329         pasting strings together.
330
331 2000-09-14  Greg McGary  <greg@mcgary.org>
332
333         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
334         copyright notice.
335         * sysdeps/generic/bp-semctl.h: Likewise.
336         * sysdeps/generic/bp-start.h: Likewise.
337         * sysdeps/generic/bp-sym.h: Likewise.
338         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
339         rename prototype.
340
341 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
342
343         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
344         don't fail.
345
346         * elf/elf.h: Add missing official relocations.
347
348         * libio/stdio.h: Define __FILE if __need___FILE is defined.
349         * stdio/stdio.h: Likewise.
350         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
351         * include/stdio.h: Handle __need___FILE like __need_FILE.
352         * include/wchar.h: Use __FILE instead of FILE.
353         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
354         * libio/fwscanf.c: Likewise.
355         * libio/getwc.c: Likewise.
356
357         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
358         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
359         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
360
361         * assert/assert.h: Update comment header about ISO C section.
362         * math/complex.h: Likewise.
363         * ctype/ctype.h: Likewise.
364         * include/errno.h: Likewise.
365         * include/limits.h: Likewise.
366         * locale/locale.h: Likewise.
367         * math/math.h: Likewise.
368         * setjmp/setjmp.h: Likewise.
369         * signal/signal.h: Likewise.
370         * stdio/stdio.h: Likewise.
371         * libio/stdio.h: Likewise.
372         * stdlib/stdlib.h: Likewise.
373         * string/string.h: Likewise.
374         * time/time.h: Likewise.
375         * wcsmbs/wchar.h: Likewise.
376         * wctype/wctype.h: Likewise.
377         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
378
379 2000-09-13  Andreas Jaeger  <aj@suse.de>
380
381         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
382         for no more entries.
383         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
384         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
385         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
386
387 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
388
389         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
390         constant since this is what clock_t is.
391         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
392         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
393         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
394         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
395
396         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
397         definitions are requested.
398
399 2000-09-13  Andreas Jaeger  <aj@suse.de>
400
401         * shlib-versions: libBrokenLocale needs minimal version for ia64,
402         sparc64 and sh to synch with libc.
403
404 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
405
406         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
407         (distribute): Add iso-2022-cn-ext.c.
408         Add definitions to compile the new module.
409         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
410         * iconvdata/iso-2022-cn-ext.c: New file.
411         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
412         ucs4_from_isoir165.  Increment input pointer if successful.
413
414         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
415
416         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
417
418 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
419
420         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
421         __syscall_getdents64 wrapper.
422
423         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
424
425 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
426
427         * iconvdata/gb18030.c: Many many changes.  Make consistent with
428         charmap and with itself.
429         * iconvdata/tst-tables.sh: Test GB18030.
430
431 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
432
433         * iconv/skeleton.c: Fix last patch, add missing parameter to
434         unaligned function call.
435
436 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
437
438         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
439         of decimal ellipsis.
440
441 2000-09-11  Bruno Haible <haible@clisp.cons.org>
442
443         * locale/programs/ld-collate.c (collate_read): Always initialize
444         error_section.next.
445
446 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
447
448         * locale/programs/ld-collate.c (collate_finish): Upper bound for
449         ruleidx is 128, not 256.
450
451 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
452
453         * locale/programs/ld-collate.c (collate_read): Correct check for
454         already inserted entries.
455
456 2000-09-10  Bruno Haible <haible@clisp.cons.org>
457
458         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
459         second try as well.
460
461 2000-09-10  Bruno Haible <haible@clisp.cons.org>
462
463         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
464         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
465
466 2000-09-10  Bruno Haible <haible@clisp.cons.org>
467
468         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
469         SAVE_RESET_STATE.
470
471 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
472
473         * iconvdata/utf-7.c: New file.
474         * iconvdata/gconv-modules (UTF-7): New module entries.
475         * iconvdata/Makefile (modules): Add UTF-7.
476         (distribute): Add utf-7.c.
477         * iconvdata/testdata/UTF-7: New file.
478         * iconvdata/testdata/UTF-7..UTF8: New file.
479         * iconvdata/TESTS (UTF-7): New entry.
480         * iconvdata/run-iconv-test.sh: Fix confusing output.
481
482 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
483
484         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
485
486 2000-09-10  David S. Miller  <davem@redhat.com>
487
488         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
489         frame pointer offset for non-fast path.
490
491 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
492
493         * locale/programs/3level.h (*_init): Initialize level1, level2,
494         and level3 as well.
495         (*_add): Remove a few unnecessary conditionals.
496
497 2000-09-05  Wolfram Gloger  <wg@malloc.de>
498
499         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
500         ensure usability of mutex as an `in use' flag.
501
502 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
503
504         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
505
506         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
507         ugly GMON_WEAK_START hack.
508         Patch by Philip Blundell <philb@gnu.org>.
509
510         * sysdeps/i386/i486/bits/string.h: Pretty printing.
511
512 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
513
514         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
515         and PPC_ICBI asm for broken compilers.
516         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
517
518 2000-09-09  Andreas Jaeger  <aj@suse.de>
519
520         * manual/message.texi (Advanced gettext functions): Fix typo.
521
522         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
523         strncpy prototype.
524
525 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
526
527         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
528         warnings.
529         * sysdeps/ia64/memccpy.S: Likewise.
530         Patches by Jim Wilson <wilson@redhat.com>.
531
532         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
533         before trying to read /proc.
534         Patch by Matt Wilson <msw@redhat.com>.
535         * include/sys/utsname.h: Declare __uname.
536         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
537         * sysdeps/mach/hurd/uname.c: Likewise.
538         * sysdeps/unix/syscalls.list: Likewise.
539
540         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
541         unloading a bit.
542
543 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
544
545         * posix/getopt.c (_getopt_internal): When long_only is set always
546         recognize conflicts just like before.
547
548 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
549
550         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
551
552 2000-09-08  Greg McGary  <greg@mcgary.org>
553
554         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
555         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
556         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
557
558 2000-09-08  Andreas Jaeger  <aj@suse.de>
559
560         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
561
562         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
563
564         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
565         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
566         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
567
568 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
569
570         * iconvdata/tst-tables.sh: Enable EUC-KR test.
571
572         * elf/dl-load.c (lose): Decrement _nl_loaded.
573         (_dl_map_object_from_fd): Don't try to dlopen executables.
574
575         * iconvdata/tst-tables.sh: Actually return with an error if
576         something goes wrong.
577         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
578         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
579
580         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
581
582         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
583         * iconvdata/tst-table-from.c: Include <string.h>.
584         (try): Correct cast in iconv call.
585
586         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
587         too.
588         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
589         (sysdep_routines): Remove dl-start.
590         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
591
592         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
593
594         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
595         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
596
597 2000-09-06  Andreas Schwab  <schwab@suse.de>
598
599         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
600
601 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
602
603         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
604
605         * scripts/config.sub: Strip out -unknown for Linux targets.
606         Patch by Scott Bambrough <scottb@netwinder.org>.
607
608         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
609         add one more test.
610
611 2000-09-07  Andreas Jaeger  <aj@suse.de>
612
613         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
614
615         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
616         syscalls.
617
618         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
619
620         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
621         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
622
623         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
624
625         * stdlib/tst-bsearch.c (main): Add more test cases.
626
627         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
628         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
629         Reported by GOTO Masanori <gotom@debian.or.jp>.
630
631 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
632
633         * posix/Makefile (tests): Add tst-dir.
634         (tst-dir-ARGS): New variable.
635         * posix/tst-dir.c: New file.
636
637 2000-09-07  Andreas Jaeger  <aj@suse.de>
638
639         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
640         (SYS_fcntl64): New.
641
642         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
643
644 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
645
646         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
647         use the hack with tryopen_o_directory to determine at runtime
648         whether it works.
649         * sysdeps/unix/sysv/linux/opendir.c: New file.
650         * sysdeps/unix/sysv/linux/kernel-features.h: Define
651         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
652
653         * catgets/Depend: New file.  Add intl.
654         * catgets/Makefile (tests): Add tst-catgets.
655         (generated): Remove de.msg.
656         (generated-dirs): Add de.
657         Add dependency if tst-catgets output on de/libc.cat.
658         * catgets/tst-catgets.c: New file.
659
660         * po/ja.po: New file.
661         * po/el.po: Update from translation team.
662
663         * wcsmbs/Depend: New file.
664         * wcsmbs/Makefile (tests): Add tst-btowc.
665         (tst-btowc-ENV): Define.
666         * wcsmbs/tst-btowc.c: New file.
667
668         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
669         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
670
671         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
672
673         * stdlib/Makefile (tests): Add tst-bsearch.
674         * stdlib/tst-bsearch.c: New file.
675
676         * posix/getopt.c (_getopt_internal): Don't recognize an option
677         name as ambiguous if it's a prefix for more than one name but the
678         other struct option values are identical.
679
680         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
681         Don't depend on visual inspection of the output file to recognize
682         errors.
683         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
684
685 2000-09-06  Andreas Jaeger  <aj@suse.de>
686
687         * sysdeps/alpha/soft-fp/Dist: New file.
688         * sysdeps/i386/soft-fp/Dist: New file.
689         * sysdeps/mips/mips64/soft-fp/Dist: New file.
690         * sysdeps/mips/soft-fp/Dist: New file.
691         * sysdeps/powerpc/soft-fp/Dist: New file.
692         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
693         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
694
695         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
696         Use sysdep_routines instead of routines to fix make dist failure.
697         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
698         out code).
699         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
700
701         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
702         sysdep_headers instead of headers for make dist.
703
704         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
705         Likewise.
706
707 2000-09-06  Andreas Schwab  <schwab@suse.de>
708
709         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
710
711 2000-09-06  Andreas Jaeger  <aj@suse.de>
712
713         * soft-fp/Makefile (distribute): Remove ChangeLog.
714
715         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
716         sysdep_routines instead of routines for make dist.
717
718 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
719
720         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
721         compatibility check for old stream and call _IO_wide in doubt.
722         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
723         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
724         needed tst for such an old structure and don't do anything.
725         * libio/freopen.c: Remove declaration of _IO_stdin_used.
726
727 2000-09-06  Andreas Jaeger  <aj@suse.de>
728
729         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
730         sysdep-dl-routines and sysdep_routines instead of rtld-routines
731         and dl-routines.
732
733         * soft-fp/ChangeLog: Merged with this file.
734
735 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
736
737         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
738
739         * soft-fp/Makefile (distribute): Add the math functions, too.
740
741         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
742
743 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
744
745         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
746         as a statement.
747
748         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
749         * soft-fp/sysdeps/powerpc/q_*: New files.
750
751 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
752
753         * stdio-common/vfprintf.c (process_string_arg): Handle precision
754         in wide char case correctly.  Don't allocate too long temporary
755         strings with alloca.
756
757         * stdio-common/Makefile (tests): Add tst-swprintf.
758         (tst-swprintf-ENV): New variable.
759         * stdio-common/tst-swprintf.c: New file.
760
761 2000-09-05  Andreas Jaeger  <aj@suse.de>
762
763         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
764         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
765         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
766
767 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
768
769         * configure.in: Strip out "unknown" from configuration names.
770
771 2000-09-05  Andreas Jaeger  <aj@suse.de>
772
773         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
774
775         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
776         * sysdeps/sparc/sparc32/Implies: Likewise.
777         * sysdeps/powerpc/Implies: Likewise.
778
779         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
780         * libio/oldiofgetpos64.c: Likewise.
781
782         * soft-fp/Makefile (distribute): Remove configure.
783
784         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
785
786         * soft-fp/configure: Remove.
787
788         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
789         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
790
791         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
792         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
793
794         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
795         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
796
797         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
798         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
799
800         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
801         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
802
803         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
804         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
805
806         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
807         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
808
809         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
810         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
811
812         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
813         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
814
815         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
816         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
817
818         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
819         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
820
821         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
822         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
823
824         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
825         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
826
827         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
828         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
829
830         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
831         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
832
833         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
834         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
835
836         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
837         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
838
839         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
840         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
841
842         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
843         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
844
845         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
846         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
847
848         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
849         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
850
851         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
852         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
853
854         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
855         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
856
857         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
858         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
859
860         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
861         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
862
863         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
864         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
865
866         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
867         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
868
869         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
870         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
871
872         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
873         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
874
875         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
876         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
877
878         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
879         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
880
881         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
882         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
883
884         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
885         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
886
887         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
888         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
889
890         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
891         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
892
893         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
894         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
895
896         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
897         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
898
899         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
900         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
901
902         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
903         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
904
905         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
906         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
907
908         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
909         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
910
911         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
912         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
913
914         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
915         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
916
917         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
918         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
919
920         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
921         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
922
923         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
924         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
925
926         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
927         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
928
929         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
930         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
931
932         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
933         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
934
935         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
936         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
937
938         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
939         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
940
941         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
942         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
943
944         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
945         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
946
947         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
948         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
949
950         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
951         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
952
953         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
954         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
955
956         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
957         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
958
959         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
960         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
961
962         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
963         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
964
965         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
966         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
967
968         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
969         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
970
971         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
972         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
973
974         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
975         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
976
977         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
978         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
979
980         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
981         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
982
983         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
984         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
985
986         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
987         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
988
989         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
990         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
991
992         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
993         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
994
995         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
996         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
997
998         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
999         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
1000
1001         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
1002         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
1003
1004         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
1005         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
1006
1007         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
1008         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
1009
1010         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
1011         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
1012
1013         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
1014         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
1015
1016         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
1017         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
1018
1019         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
1020         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
1021
1022         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
1023         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
1024
1025         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
1026         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
1027
1028         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
1029         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
1030
1031         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
1032         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
1033
1034         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
1035         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
1036
1037         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
1038         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
1039
1040         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
1041         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
1042
1043         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
1044         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
1045
1046         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
1047         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
1048
1049         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
1050         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
1051
1052         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
1053         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
1054
1055         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
1056         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
1057
1058         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
1059         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
1060
1061         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
1062         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
1063
1064         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
1065         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
1066
1067         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
1068         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
1069
1070         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
1071         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
1072
1073         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
1074         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
1075
1076         * soft-fp/sysdeps/powerpc/Versions: Move from here...
1077         * sysdeps/powerpc/soft-fp/Versions: ... to here.
1078
1079         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
1080         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
1081
1082         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1083         change symbol version.
1084         * libio/oldiofgetpos64.c: Likewise.
1085         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1086
1087         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1088         typo.
1089         Reported by dyky@kondara.org, closes PR libc/1886.
1090
1091         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1092         libc/1880.
1093
1094 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1095
1096         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1097         script when ^C is hit.
1098
1099         * locale/programs/localedef.c (construct_output_path): Correct
1100         computation of endp after asprintf.
1101         * locale/programs/locfile.c (write_locale_data): Don't add extra
1102         slash in filename.
1103
1104 2000-09-05  Andreas Jaeger  <aj@suse.de>
1105
1106         * scripts/config.guess: New upstream version.
1107         * scripts/config.sub: Likewise.
1108         * manual/texinfo.tex: Likewise.
1109
1110 2000-09-04  Andreas Schwab  <schwab@suse.de>
1111
1112         * elf/Makefile (all-dl-routines): New variable.
1113         (elide-routines.os): Use it instead of $(dl-routines).
1114         (all-rtld-routines): New variable.
1115         (extra-objs): Use it instead of $(rtld-routines).
1116         ($(objpfx)dl-allobjs.os): Likewise.
1117         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1118         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1119         and dl-routines.
1120
1121 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1122
1123         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1124         Set fname to NULL if the module wasn't found.
1125
1126 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1127
1128         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1129         true if trans->name already ends in ".so".
1130
1131 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1132
1133         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1134         void.
1135         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1136         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1137         (__gconv_release_shlib): Change return type to void.
1138         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1139         step->__counter here.
1140         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1141         if the reference is zero.
1142         (release_step): New function.
1143         (gen_steps): Always initialize the __counter to 1. Use release_step.
1144         Don't call the destructor on the step whose initializer failed.
1145         (increment_counter): Use release_step. Don't normally run destructors
1146         here.
1147         (__gconv_close_transform): Use release_step.
1148
1149 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1150
1151         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1152         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1153
1154 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1155
1156         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1157         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1158         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1159         to check for incomplete input.
1160         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1161         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1162         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1163         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1164         0x9f9d..0x9fa5.
1165         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1166         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1167         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1168         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1169         upto index 0x0052.
1170
1171 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1172
1173         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1174         solution.
1175
1176 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1177
1178         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1179         are invalid.
1180
1181 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1182
1183         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1184         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1185         U+007E.
1186
1187 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1188
1189         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1190
1191 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1192
1193         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1194
1195 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1196
1197         * iconvdata/tst-tables.sh: New file.
1198         * iconvdata/tst-table.sh: New file.
1199         * iconvdata/tst-table-from.c: New file.
1200         * iconvdata/tst-table-to.c: New file.
1201         * iconvdata/tst-table-charmap.sh: New file.
1202         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1203         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1204         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1205         ISIRI-3342.irreversible, SJIS.irreversible.
1206         (tests): Add dependency on tst-tables.out.
1207         (tst-tables.out, tst-tables-clean): New rules.
1208         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1209         * iconvdata/ISIRI-3342.irreversible: New file.
1210         * iconvdata/EUC-JP.irreversible: New file.
1211         * iconvdata/SJIS.irreversible: New file.
1212
1213 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1214
1215         * manual/locale.texi (General Numeric): Update description of
1216         representation of the grouping information in the locale data.
1217         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1218
1219 2000-09-04  Andreas Jaeger  <aj@suse.de>
1220
1221         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1222         * iconv/iconv_prog.c (options): Fix typo.
1223         Reported by dyky@kondara.org, closes PR libc/1885.
1224
1225 2000-09-04  Andreas Jaeger  <aj@suse.de>
1226
1227         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1228         Reported by Rob Levin <lilo@transvirtual.com>.
1229
1230 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1231
1232         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1233         to the typedefs of __timezone_ptr_t.
1234         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1235
1236 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1237
1238         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1239         the loop.
1240
1241 2000-09-01  H.J. Lu  <hjl@gnu.org>
1242
1243         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1244         to run a binary if it is in $(tests-static).
1245
1246         * Rules (binaries-static): Add $(tests-static).
1247
1248 2000-09-02  Andreas Jaeger  <aj@suse.de>
1249
1250         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1251
1252         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1253         patch.
1254
1255 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1256
1257         * iconvdata/big5hkscs.c: Regenerated from charmap.
1258         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1259         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1260
1261         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1262         statement.  General cleanup.
1263
1264 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1265
1266         * wctype/wcfuncs.c (iswblank): New function.
1267         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1268         * wctype/wcextra.c: Remove file.
1269         * wctype/wcextra_l.c: Remove file.
1270         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1271
1272 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1273
1274         * locale/programs/ld-collate.c (collate_output): Remove redundant
1275         assert call.
1276         * string/strcoll.c: Likewise.
1277         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1278         string/strcoll.c.
1279
1280 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1281
1282         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1283         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1284         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1285         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1286         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1287         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1288         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1289         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1290         _NL_CTYPE_GAP5/6 respectively.
1291
1292         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1293         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1294         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1295         Don't initialize __ctype_names and __ctype_width.
1296         * wctype/cname-lookup.h: Remove file.
1297         * wctype/Makefile (distribute): Remove cname-lookup.h.
1298         * wctype/wchar-lookup.h: Include stdint.h.
1299         * wctype/wctype.c (__wctype): Assume new locale format.
1300         * wctype/wctype_l.c (__wctype_l): Likewise.
1301         * wctype/iswctype.c: Don't include cname-lookup.h.
1302         (__iswctype): Assume new locale format.
1303         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1304         (__iswctype_l): Assume new locale format.
1305         * wctype/wctrans.c: Don't include ctype.h.
1306         (wctrans): Assume new locale format.
1307         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1308         * wctype/towctrans.c: Don't include cname-lookup.h.
1309         (__towctrans): Assume new locale format.
1310         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1311         (__towctrans_l): Assume new locale format.
1312         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1313         localeinfo.h instead.
1314         (__NO_WCTYPE): Remove unused macro.
1315         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1316         declarations.
1317         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1318         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1319         (towlower, towupper): Likewise.
1320         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1321         localeinfo.h instead.
1322         (__NO_WCTYPE): Remove unused macro.
1323         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1324         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1325         __iswxdigit_l): Assume new locale format.
1326         (__towlower_l, __towupper_l): Likewise.
1327         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1328         (__ctype32_b): Remove declaration.
1329         (internal_wcwidth): Assume new locale format.
1330         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1331         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1332         to map32_b, rename width_3level to width.
1333         (ctype_output): Always create new locale format. Don't emit
1334         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1335         (allocate_arrays): Always create new locale format.
1336
1337         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1338         * locale/weightwc.h (findidx): Assume new locale format.
1339         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1340         names.
1341         * string/strxfrm.c (wcsxfrm): Likewise.
1342         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1343         local variable collseq to 'const char *'.
1344         (SUFFIX): Don't use, don't undefine.
1345         * posix/fnmatch.c: Remove SUFFIX definition.
1346         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1347         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1348         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1349         (collate_finish): Always create new locale format. Remove local
1350         variables min_total, act_size.
1351         (collate_output): Always create new locale format. Remove local
1352         variables table_size, names, tablewc. Rename tablewc_3level to
1353         tablewc.
1354
1355 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1356
1357         * locale/programs/ld-collate.c (obstack_int32_grow,
1358         obstack_int32_grow_fast): New inline functions.
1359         (output_weightwc, collate_output): Use them where possible.
1360
1361 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1362
1363         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1364         patch (_mode -> _flags).
1365
1366         * libio/Makefile (headers): Add stdio_ext.h.
1367         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1368         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1369         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1370         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1371         __fsetlocking, and _flushlbf.
1372         * libio/__fbufsize.c: New file.
1373         * libio/__flbf.c: New file.
1374         * libio/__fpending.c: New file.
1375         * libio/__fpurge.c: New file.
1376         * libio/__freadable.c: New file.
1377         * libio/__freading.c: New file.
1378         * libio/__fsetlocking.c: New file.
1379         * libio/__fwritable.c: New file.
1380         * libio/__fwriting.c: New file.
1381         * libio/stdio_ext.h: New file.
1382         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1383         * libio/libio.h (_IO_USER_LOCK): Define.
1384         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1385         test _IO_USER_LOCK flag first.
1386
1387         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1388         malloc fails.
1389
1390 2000-09-01  Andreas Jaeger  <aj@suse.de>
1391
1392         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1393
1394         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1395
1396 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1397
1398         * math/Makefile (tests): Add tst-defintions.
1399         * math/tst-definitions.c: New file.
1400
1401         * stdlib/Makefile (headers): Add bits/wchar.h.
1402         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1403         * sysdeps/generic/bits/wchar.h: New file.
1404         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1405         file to define WCHAR_MIN and WCHAR_MAX.
1406         Change UINT*8_MAX and UIN*16_MAX value to type int.
1407         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1408         file to define WCHAR_MIN and WCHAR_MAX.
1409         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1410         int values.
1411         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1412         * sysdeps/generic/bits/mathdef.h: Likewise.
1413         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1414         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1415         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1416         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1417         * locale/locale.h (struct lconv): Add __ prefix to the new members
1418         if not C99.
1419         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1420         imaxdiv optimizations.
1421         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1422         * sysdeps/wordsize-64/ldiv.c: Likewise.
1423         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1424         const fenv_t*.
1425         * sysdeps/generic/bits/fenv.h: Likewise.
1426         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1427         * sysdeps/ia64/bits/fenv.h: Likewise.
1428         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1429         * sysdeps/mips/bits/fenv.h: Likewise.
1430         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1431         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1432         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1433
1434         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1435         * inet/ruserpass.c: Likewise.
1436         * catgets/open_catalog.c: Likewise.
1437         * intl/loadmsgcat.c: Likewise.
1438         * io/getdirname.c: Likewise.
1439         * locale/loadlocale.c: Likewise.
1440         * misc/getusershell.c: Likewise.
1441         * stdlib/canonicalize.c: Likewise.
1442         * sysdeps/posix/euidaccess.c: Likewise.
1443         * sysdeps/posix/isfdtype.c: Likewise.
1444         * sysdeps/posix/posix_fallocate.c: Likewise.
1445         * sysdeps/posix/tempname.c: Likewise.
1446         * sysdeps/unix/grantpt.c: Likewise.
1447         * sysdeps/unix/opendir.c: Likewise.
1448         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1449         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1450         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1451         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1452         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1453         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1454         * sysvipc/ftok.c: Likewise.
1455         * time/getdate.c: Likewise.
1456
1457         * time/getdate.c: Add extra access test.
1458
1459 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1460
1461         * version.h (VERSION): Bump to 2.1.93.
1462
1463         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1464         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1465
1466         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1467         Make this a new rule depending on tst-gettext.out and run mtrace.
1468         * intl/tst-gettext.c: Call mtrace.
1469         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1470
1471         * elf/dl-reloc.c: Add a few more __builtin_expect.
1472
1473         * configure.in: Remove --with-gettext option.
1474
1475         * intl/dcigettext.c (free_mem): Correct freeing of
1476         _nl_domain_bindings list.
1477
1478         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1479         allocated memory.
1480
1481         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1482
1483         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1484
1485         * stdio-common/itoa-digits.c: Move upper digits to...
1486         * stdio-common/itoa-udigits.c: ...here.  New file.
1487         * stdio-common/Makefile (routines): Add itoa-udigits.
1488
1489         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1490         relocate ld.so don't add supprt for relocations which should not
1491         appear in ld.so.
1492
1493         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1494         __secure_getenv.  Instead test __libc_enable_secure once.
1495
1496         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1497
1498 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1499
1500         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1501         whether the new record should be freed if it's a duplicate.
1502         (add_module): Adjust insert_module call.
1503         (__gconv_read_conf): Likewise.
1504         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1505         mtrace-tst-loading.
1506         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1507
1508         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1509         _dl_all_init_dirs.
1510         * include/link.h (struct r_search_path_struct): New.
1511         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1512         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1513         _dl_all_init_dirs.
1514         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1515         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1516         added at startup time.
1517         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1518         contains element to remember fact that we can free memory.
1519         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1520         (_dl_init_all_dirs): New variable.
1521         (fillin_rpath): Save one malloc call.
1522         (decompose_rpath): Change interface.  New first parameter points to
1523         r_search_path_struct.
1524         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1525         deletable.  Set _dl_init_all_paths value.
1526         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1527         parameter replaced with r_search_path_struct *.  Information about
1528         freeing now contained in r_search_path_struct.
1529         (_dl_map_object): Adjust for above changes.
1530
1531         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1532
1533         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1534         when adding new entries.
1535
1536         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1537         since the object being loaded can be unloaded.
1538
1539         * iconvdata/Makefile (tests): Add tst-loading.
1540         * iconvdata/tst-loading.c: New file.
1541
1542 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1543
1544         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1545         When comparing a char with an int, always cast the char to
1546         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1547         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1548
1549 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1550
1551         * time/strftime.c (my_strftime): Add compatibility code for use
1552         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1553
1554         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1555         return 0 for success but always < 0 on failure.
1556
1557         * nss/getXXbyYY_r.c: Define result to *result before including
1558         digits_dots.c.
1559
1560 2000-08-30  Andreas Jaeger  <aj@suse.de>
1561
1562         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1563
1564 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1565
1566         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1567         official file.
1568         * iconvdata/TESTS: Add BIG5HKSCS entry.
1569         * iconvdata/testdata/BIG5HKSCS: New file.
1570         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1571
1572         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1573         always true.
1574
1575         * libio/iogetline.c: Set mode before the loop in case n==0.
1576         * libio/iogetwline.c: Likewise.
1577
1578 2000-08-29  H.J. Lu  <hjl@gnu.org>
1579
1580         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1581         of fp->_mode < 0.
1582         (_IO_new_file_overflow): Likewise.
1583         * libio/genops.c (_IO_flush_all): Likewise.
1584         * libio/ioftell.c (_IO_ftell): Likewise.
1585
1586 2000-08-29  Akira Higuchi  <a@kondara.org>
1587
1588         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1589         and __end_fct fields of struct __gconv_step.
1590         * iconv/Makefile (tests): Add iconv-bug2.
1591         * iconv/iconv-bug2.c: New file.
1592
1593         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1594         instead of 'inptr - inend' to ksc5601_to_ucs4.
1595
1596         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1597
1598         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1599         character or shift sequence is found at the end of the input
1600         string, return__GCONV_INCOMPLETE_INPUT instead of
1601         __GCONV_EMPTY_INPUT.
1602         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1603         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1604
1605         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1606         __GCONV_ILLEGAL_INPUT for 8bit characters.
1607
1608 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1609
1610         * signal/signal.h (sigpause): Move __THROW before __asm__.
1611
1612         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1613         names don't match don't return.
1614         Patch by Olaf Kirch <okir@flash.lst.de>.
1615
1616 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1617
1618         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1619
1620 2000-08-27  H.J. Lu  <hjl@gnu.org>
1621
1622         * posix/Makefile (otherlibs): Add for building with static-nss
1623         for "make check".
1624
1625 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1626
1627         * libio/stdio.h: Add fmemopen prototype.
1628
1629 2000-08-25  Andreas Jaeger  <aj@suse.de>
1630
1631         * libio/Makefile (routines): Add fmemopen.
1632         (tests): Add test-fmemopen.
1633         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1634         * libio/test-fmemopen.c: New file.
1635         * libio/fmemopen.c: New file.
1636         Patches by Hanno Mueller <kontakt@hanno.de>.
1637
1638 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1639
1640         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1641         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1642
1643         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1644         to avoid crashing statically linked applications.
1645
1646 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1647
1648         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1649         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1650
1651         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1652         If the result is fits in the buffer, copy only as many bytes as needed.
1653
1654         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1655         buffer after copying numbuf into it.
1656         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1657
1658 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1659
1660         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1661         the result.  When string_len < len, don't clear the rest of the buffer.
1662
1663 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1664
1665         Support for new LC_COLLATE format.
1666         * locale/coll-lookup.h: New file.
1667         * locale/weightwc.h (findidx): When size == 0, call
1668         collidx_table_lookup.
1669         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1670         * wcsmbs/wcsxfrm.c: Likewise.
1671         * posix/fnmatch.c: Likewise.
1672         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1673         collseq_table_lookup.
1674         * locale/programs/3level.h: New file.
1675         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1676         by including "3level.h".
1677         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1678         collseq_table): New types, defined by including "3level.h".
1679         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1680         (encoding_mask, encoding_byte): Remove.
1681         (utf8_encode): Use simple shifts instead.
1682         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1683         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1684         (collate_output): New local variable tablewc_3level. When
1685         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1686         tablewc_3level instead of tablewc. Change format of TABLEWC and
1687         COLLSEQWC entries written to the file.
1688         * locale/C-collate.c (collseqwc): Change format.
1689         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1690         of COLLSEQWC.
1691         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1692
1693 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1694
1695         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1696         (locale_ctype_t): New charnames_idx field.
1697         (ctype_startup): Initialize charnames_idx field.
1698         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1699
1700 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1701
1702         * locale/C-ctype.c: Switch to new locale format.
1703         (_nl_C_LC_CTYPE_names): Remove array.
1704         (STRUCT_CTYPE_CLASS): New macro.
1705         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1706         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1707         New three-level tables.
1708         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1709         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1710         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1711         12 class tables and 2 map tables at the end.
1712         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1713         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1714         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1715         New declarations.
1716         (b): Remove trailing semicolon.
1717         (__ctype_names, __ctype_width): Don't initialize.
1718         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1719
1720 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1721
1722         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1723         is guaranteed to be allocated with the same malloc() and may be
1724         passed to free().
1725         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1726         been set to empty by an earlier open_path call, don't pass it again.
1727
1728 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1729
1730         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1731         we are not optimizing.
1732
1733         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1734         inclusion.
1735
1736         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1737         really match EOF.
1738         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1739
1740 2000-08-28  Andreas Jaeger  <aj@suse.de>
1741
1742         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1743
1744 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1745
1746         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1747         getpeername.  Use ISO C style function definition.
1748         (getpeername): Provide weak alias.
1749         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1750         setrlimit.  Use ISO C style function definition.
1751         (setrlimit): Provide weak alias.
1752
1753 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1754
1755         * shlib-versions: Add a rule for S/390 to the libm version list.
1756         * sysdeps/s390/Versions: New file.
1757         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1758         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1759         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1760         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1761         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1762         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1763         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1764         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1765         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1766         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1767         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1768         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1769         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1770         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1771         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1772         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1773         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1774         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1775
1776 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1777
1778         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1779         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1780
1781         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1782         * elf/dl-close.c (_dl_close): Print debug message if object is not
1783         unloaded.
1784         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1785         returning to caller.
1786
1787         * po/zh.po: Renamed to...
1788         * po/zh_TW.po: ...this.
1789
1790 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1791
1792         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1793
1794         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1795         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1796         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1797         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1798
1799 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1800
1801         * locale/programs/ld-collate.c (insert_weights): Also update
1802         backpointer of next element.
1803         (collate_read): Allow definition of new collation symbols in stage 2.
1804         Symbol after reorder-after can be UCS4 value.
1805         Allow reordering of collation symbols and elements.
1806         Do not only move reorder entry in new position.  Instead call
1807         insert_weight to do this and read the weights.
1808
1809         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1810
1811         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1812         to determine invalid locale name.
1813         * locale/findlocale.c (_nl_find_locale): Likewise.
1814
1815         * posix/annexc.c: Correct test for unavailable feature.
1816
1817         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1818         __inline.
1819
1820 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1821
1822         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1823         syscall.
1824
1825         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1826         (sysdep_routines): Add oldgetrlimit64.
1827
1828         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1829         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1830         (tests): Add unload, reldep, reldep2, and reldep3.
1831         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1832         and reldepmod4.
1833         Add rules to build and run unload, reldep, reldep2, and reldep3.
1834         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1835         Don't create relocation dependency if it is nonzero.
1836         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1837         can never happen here.
1838         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1839         Don't create relocation dependency if it is nonzero.
1840         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1841         stuff.  This can never happen here.
1842         * sysdeps/generic/ldsodefs.h: Change prototypes.
1843         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1844         _dl_lookup_up and _dl_lookup_versioned_symbol.
1845         (RESOLV): Likewise.
1846         * elf/dl-runtime.c (fixup): Likewise.
1847         (profile_fixup): Likewise.
1848         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1849         _dl_lookup_symbol.
1850         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1851         * elf/rtld.c (dl_main): Likewise.
1852         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1853         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1854         and pass down the caller map.
1855         (_dl_vsym): Likewise.
1856         * elf/reldep.c: New file.
1857         * elf/reldep2.c: New file.
1858         * elf/reldep3.c: New file.
1859         * elf/reldepmod1.c: New file.
1860         * elf/reldepmod2.c: New file.
1861         * elf/reldepmod3.c: New file.
1862         * elf/reldepmod4.c: New file.
1863         * elf/unload.c: New file.
1864         * elf/unloadmod.c: New file.
1865
1866         * elf/do-lookup.h: Remove unused undef_name parameter.
1867         * elf/dl-lookup.c: Adjust callers.
1868
1869 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1870
1871         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1872         irreversible in recursive call of conversion function to signal that
1873         no error handling is wanted.
1874         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1875         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1876         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1877         recursive error handling call, otherwise to &lirreversible.  Use it
1878         for calls to conversion functions.
1879         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1880         transliterating.
1881         (ucs4_internal_loop_unaligned): Likewise.
1882         (ucs4le_internal_loop): Likewise.
1883         (ucs4le_internal_loop_unaligned): Likewise.
1884
1885 2000-08-25  Greg McGary  <greg@mcgary.org>
1886
1887         * sysdeps/i386/memchr.S: Check high bound against chars
1888         actually scanned.
1889         * sysdeps/i386/memcmp.S: Likewise.
1890         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1891         account for pointers that lie one beyond end-of-buffer.
1892
1893 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1894
1895         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1896         * elf/nodelete.c (fini_ran): New global variable.
1897         (do_test): Before every dlclose call clear fini_ran and test
1898         afterwards that it is not set by the destructors.
1899         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1900         * elf/nodelmod2.c: Likewise.
1901         * elf/nodelmod4.c: Likewise.
1902
1903 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1904
1905         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1906         getrlimit to the list.
1907
1908 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1909
1910         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1911         long double format so use ldbl-96 instead of ldbl-128.
1912
1913 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1914
1915         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1916         even if bits 10 a 11 are non-zero.
1917         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1918
1919         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1920         included before building gnu/lib-names.h
1921         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1922
1923         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1924         marked DF_1_NODELETE.
1925
1926         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1927         since we call sigaction in the child.
1928
1929 2000-08-25  Andreas Jaeger  <aj@suse.de>
1930
1931         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1932         gconv-modules.
1933
1934 2000-08-25  Andreas Jaeger  <aj@suse.de>
1935
1936         * manual/arith.texi (Control Functions): Clarify possible
1937         arguments.  Closes PR libc/1856.
1938
1939 2000-08-24  H.J. Lu  <hjl@gnu.org>
1940
1941         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1942         * malloc/Makefile (tests): Likewise.
1943
1944 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1945
1946         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1947
1948 2000-08-24  Andreas Jaeger  <aj@suse.de>
1949
1950         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1951         only if LIBGD is available.
1952
1953 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1956         problems with now restrict parameter types.
1957         (convaddr4to6): Likewise.
1958
1959 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1960
1961         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1962         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1963         * sysdeps/s390/fpu/fegetexcept.c: New file.
1964         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1965         FPC_VALID_MASK.
1966
1967 2000-08-24  Andreas Jaeger  <aj@suse.de>
1968
1969         * malloc/Makefile (extra-objs): Add memusagestat.o.
1970         (generated): Added memusage and memusagestat for make clean.
1971
1972         * libio/tst_putwc.c (do_test): Delete temporary file.
1973         Move inclusion of test-skeleton to front to have prototype for
1974         add_temp_file.
1975
1976         * posix/Makefile (generated): Add wordexp-tst.out.
1977
1978 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1979
1980         * resolv/res_hconf.c (free_mem): Remove not needed if.
1981
1982         * time/tzset.c (free_mem): New function.
1983         * string/strsignal.c (free_mem): New function.
1984         * inet/inet_ntoa.c (free_mem): New function.
1985         * sunrpc/clnt_perr.c (free_mem): New function.
1986
1987 2000-08-24  Andreas Jaeger  <aj@suse.de>
1988
1989         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1990         * sysdeps/unix/sysv/syscalls.list: Likewise.
1991
1992         * posix/unistd.h: Move internal prototypes from here ...
1993         * include/unistd.h: ... to here.
1994
1995         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1996
1997 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1998
1999         * grp/initgroups.c (initgroups): Deallocate groups array.
2000         Reported by jani.raiha@sonera.com [PR libc/1868].
2001
2002         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
2003         * sysdeps/alpha/Dist: Likewise.
2004
2005 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2006
2007         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
2008         destructor).  Reported by Solar Designer <solar@false.com>.
2009
2010         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
2011         avoid adding double slashes.
2012
2013 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2014
2015         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
2016         out of the __REDIRECT macro.
2017
2018 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2019
2020         * stdio-common/vfscanf.c: Add %F format support.
2021
2022         * locale/programs/ld-ctype.c (ctype_output): Make sure
2023         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
2024         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
2025         (ctype_read): Enable returning of wide character strings for reading
2026         transliteration information.
2027
2028 2000-08-23  Andreas Jaeger  <aj@suse.de>
2029
2030         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
2031         Use static __inline instead of _EXTERN_INLINE.
2032
2033         * misc/sys/select.h: Move prototypes of __select from here ...
2034         * include/sys/select.h: ... to here.
2035
2036         * socket/sys/socket.h: Move prototypes of __send and __connect
2037         from here....
2038         * include/sys/socket.h: ... to here.
2039
2040         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
2041         lr_error.
2042
2043 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2044
2045         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
2046         __setrlimit as strong name. Takes only 2 arguments.
2047
2048         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
2049         takes only 2 arguments.
2050
2051 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2052
2053         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
2054
2055         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
2056
2057 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
2058
2059         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
2060         default_missing character being specified, pick the first
2061         representable.
2062
2063 2000-08-23  Andreas Jaeger  <aj@suse.de>
2064
2065         * include/wchar.h: Add some pure attributes.
2066
2067         * time/time.h: Add const attribute for dysize.
2068
2069         * include/stdlib.h: Add malloc attribute to __posix memalign.
2070
2071         * stdlib/stdlib.h: Add some pure and malloc attributes.
2072         * wcsmbs/wchar.h: Likewise.
2073
2074         * dirent/dirent.h: Add some pure attributes.
2075         * include/dirent.h: Likewise.
2076
2077 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
2078
2079         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
2080         on 64bit arches.
2081
2082 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2083
2084         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2085         missing buffer size checks.
2086
2087 2000-08-23  Andreas Jaeger  <aj@suse.de>
2088
2089         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2090         strong name.
2091         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2092
2093         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2094         otherwise __LINUX_KERNEL_VERSION might not be defined.
2095         (MIN): Define if not already defined.
2096
2097 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2098
2099         * stdio-common/vfprintf.c: Handle %F format.
2100         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2101         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2102
2103         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2104
2105         * po/zh.po: New file.
2106
2107         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2108         enough room in target buffer.
2109         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2110         * iconvdata/bug-iconv1.c: New file.
2111         * iconvdata/Makefile (tests): Add bug-iconv1.
2112
2113         * locale/iso-4217.def: Update entry for Nicaragua.
2114
2115 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2116
2117         * hurd/hurdsig.c: Rearrange headers a bit.
2118         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2119         when cthreads is being used.
2120
2121 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2122
2123         * elf/Makefile (distribute): Add dl-osinfo.h.
2124         * sysdeps/generic/dl-osinfo.h: New file.
2125         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2126         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2127         if defined.
2128         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2129         only for !SHARED case.  Get the code from dl-osinfo.h.
2130
2131         * stdlib/random_r.c: Cleanups.
2132         * stdlib/tst-random.c: New file.
2133         * stdlib/Makefile (tests): Add tst-random.
2134         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2135
2136 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2137
2138         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2139         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2140         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2141         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2142
2143 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2144
2145         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2146         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2147         (__syscall__sysctl): Add.
2148
2149 2000-08-21  Andreas Jaeger  <aj@suse.de>
2150
2151         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2152         libc/1864).
2153         * stdlib/tst-strtoll.c: Likewise.
2154
2155 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2156
2157         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2158         correctly.
2159         (__initstate_r): Set errno on error.
2160         (__random_r): Likewise.
2161         (__setstate_r): Correct offset when computing
2162         new rptr and fptr.  Test for arg_state being NULL.
2163         Reported by Michael Fischer <fischer@cs.yale.edu>.
2164
2165         * posix/regex.h: Add macro definitions to allow compiling outside
2166         glibc.
2167
2168         * sysdeps/i370/Implies: Removed.
2169         * sysdeps/mvs/Implies: Removed.
2170
2171         * catgets/catgets.c (catopen): Filter out env_var values with / if
2172         necessary.
2173
2174         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2175         locale name after all getenvs.
2176
2177         * configure.in: Allow sed versions like 3.02.8.
2178         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2179
2180 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2181
2182         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2183
2184 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2185
2186         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2187         of gethostbyname2_r call.
2188
2189         * intl/locale.alias: Add aliases for Korean.
2190
2191 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2192
2193         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2194         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2195         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2196         * sysdeps/s390/fpu/fegetenv.c: New file.
2197         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2198         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2199         * sysdeps/s390/fpu/fenv_libc.h: New file.
2200         * sysdeps/s390/fpu/fesetenv.c: New file.
2201         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2202         * sysdeps/s390/fpu/feupdateenv.c: New file.
2203         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2204         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2205         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2206         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2207         * sysdeps/s390/fpu/ftestexcept.c: New file.
2208         * sysdeps/s390/fpu/libm-test-ulps: New file.
2209         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2210         * sysdeps/s390/initfini.c: New file.
2211         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2212         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2213         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2214         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2215         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2216         sys/procfs.h as proposed by Mark Kettenis.
2217         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2218
2219 2000-08-21  Andreas Jaeger  <aj@suse.de>
2220
2221         * include/poll.h: Include include/sys/poll.h to get __poll
2222         declaration.
2223
2224         * io/sys/poll.h: Move __poll declaration from here...
2225         * include/sys/poll.h: ...to here.
2226
2227         * include/sys/socket.h (__getpeername): Add declaration.
2228
2229         * include/wchar.h (__vswprintf): Add declaration.
2230
2231         * include/stdio.h (__flockfile): Add declaration.
2232         (__funlockfile): Likewise.
2233
2234 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2235
2236         * misc/sys/cdefs.h: Define __restrict_arr.
2237         * include/sys/time.h: Add restrict where required by AGd4.
2238         * inet/arpa/inet.h: Likewise.
2239         * io/sys/stat.h: Likewise.
2240         * io/sys/statvfs.h: Likewise.
2241         * misc/search.h: Likewise.
2242         * misc/sys/select.h: Likewise.
2243         * posix/glob.h: Likewise.
2244         * posix/regex.h: Likewise.
2245         * posix/spawn.h: Likewise.
2246         * posix/unistd.h: Likewise.
2247         * rt/aio.h: Likewise.
2248         * signal/signal.h: Likewise.
2249         * socket/sys/socket.h: Likewise.
2250         * stdlib/ucontext.h: Likewise.
2251         * streams/stropts.h: Likewise.
2252         * string/string.h: Likewise.
2253         * time/time.h: Likewise.
2254         * time/sys/time.h: Likewise.
2255
2256         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2257         and posix_spawnattr_setscheparam.
2258
2259         * libio/stdio.h: Make cuserid prototype again available for all
2260         XPG versions.
2261
2262         * argp/argp-help.c: Unify use of function aliases to make more compact
2263         PLT.
2264         * include/libintl.h: Likewise.
2265         * inet/rcmd.c: Likewise.
2266         * intl/dcigettext.c: Likewise.
2267         * libio/iofputws.c: Likewise.
2268         * libio/iofputws_u.c: Likewise.
2269         * libio/iogetwline.c: Likewise.
2270         * libio/swprintf.c: Likewise.
2271         * malloc/malloc.c: Likewise.
2272         * nss/digits_dots.c: Likewise.
2273         * posix/fnmatch.c: Likewise.
2274         * posix/spawn_faction_addclose.c: Likewise.
2275         * posix/spawn_faction_adddup2.c: Likewise.
2276         * posix/spawn_faction_addopen.c: Likewise.
2277         * posix/spawni.c: Likewise.
2278         * posix/wordexp.c: Likewise.
2279         * posix/spawni.c: Likewise.
2280         * resolv/res_hconf.c: Likewise.
2281         * resolv/res_init.c: Likewise.
2282         * shadow/lckpwdf.c: Likewise.
2283         * signal/sighold.c: Likewise.
2284         * signal/sigrelse.c: Likewise.
2285         * stdio-common/printf-parse.h: Likewise.
2286         * stdio-common/printf-prs.c: Likewise.
2287         * stdio-common/printf_fp.c: Likewise.
2288         * stdio-common/vfprintf.c: Likewise.
2289         * stdio-common/vfscanf.c: Likewise.
2290         * stdlib/rpmatch.c: Likewise.
2291         * sunrpc/create_xid.c: Likewise.
2292         * sunrpc/key_call.c: Likewise.
2293         * sysdeps/generic/setrlimit64.c: Likewise.
2294         * sysdeps/generic/utmp_file.c: Likewise.
2295         * sysdeps/generic/vlimit.c: Likewise.
2296         * sysdeps/posix/posix_fallocate.c: Likewise.
2297         * sysdeps/posix/posix_fallocate64.c: Likewise.
2298         * sysdeps/posix/sigpause.c: Likewise.
2299         * sysdeps/posix/sigset.c: Likewise.
2300         * sysdeps/unix/grantpt.c: Likewise.
2301         * sysdeps/unix/bsd/ualarm.c: Likewise.
2302         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2303         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2304         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2305         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2306         * time/strftime.c: Likewise.
2307         * wcsmbs/wcscoll.c: Likewise.
2308         * wcsmbs/wcsxfrm.c: Likewise.
2309
2310         * time/tst-getdate.c (main): Make error messages more human readable.
2311
2312         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2313         postinc/predec instruction.
2314         (_FPU_SETCW): Likewise.
2315         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2316
2317 2000-08-20  Andreas Jaeger  <aj@suse.de>
2318
2319         * time/tst-getdate.c (main): Increase error in case of wrong
2320         conversion.
2321         Fix typo in test case.
2322
2323 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2324
2325         * ctype/ctype.h (isblank): Make available if ISO C99.
2326         * wctype/wctype.h (iswblank): Make available if ISO C99.
2327         * math/math.h (signgam): Don't make available if ISO C99.
2328         * math/tgmath.h (tgamma): Renamed from gamma.
2329         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2330
2331         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2332         Pretty printing.
2333         * intl/plural.y (new_exp): Take number of optional parameters in
2334         second parameter.  Test for correct number of parameters and free
2335         correctly in case of failure.  Adjust all callers.
2336         (yylex): Allow ';' as terminator character.
2337
2338 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2339
2340         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2341         walt_digits.
2342
2343         * locale/findlocale.c (free_mem): Also free here->filename.
2344
2345         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2346
2347         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2348         first test.
2349         (feexcp_nomask_test): Correct printf args.
2350         (feexcp_mask_test): Likewise.
2351
2352 2000-08-19  Andreas Jaeger  <aj@suse.de>
2353
2354         * inet/tst-gethnm.c: Include string.h to provide prototype for
2355         strcmp.
2356
2357         * malloc/mtrace.pl (usage): Inform about --help.
2358
2359 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2360
2361         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2362         size HEAP_MAX_SIZE.
2363
2364 2000-08-19  Andreas Jaeger  <aj@suse.de>
2365
2366         * shlib-versions: Remove libnss_db, libdb and libdb1.
2367
2368 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2369
2370         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2371         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2372         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2373         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2374         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2375         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2376         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2377         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2378         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2379         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2380         getdents.
2381         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2382         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2383
2384 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2385
2386         * include/glob.h (__glob64): Add prototype.
2387         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2388         define glob and glob_in_dir.
2389         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2390         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2391         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2392         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2393         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2394         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2395         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2396         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2397
2398 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2399
2400         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2401
2402 2000-08-17  Andreas Jaeger  <aj@suse.de>
2403
2404         * math/test-fenv.c (fe_single_test): New function.
2405         (fe_env_tests): Use fe_single_test.
2406         (feenable_test): New tests for feenable/fedisable and
2407         fegetexcpetions.
2408         (feexcp_mask_test): New function.
2409         (feexcp_nomask_test): New function.
2410
2411 2000-08-19  Richard Henderson  <rth@cygnus.com>
2412
2413         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2414         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2415         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2416         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2417         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2418         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2419         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2420         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2421         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2422         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2423         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2424         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2425         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2426         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2427         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2428         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2429         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2430
2431 2000-08-19  Andreas Jaeger  <aj@suse.de>
2432
2433         * elf/constload1.c: Include <stdio.h> for puts prototype.
2434
2435 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2436
2437         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2438         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2439         a dynamically loaded object remove old l_initfini list.
2440         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2441         remove some dynamically allocated memory blocks in the dynamic
2442         loading data structures.
2443         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2444         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2445         Instead call _dl_check_map_versions only for the dependencies.
2446         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2447         information of initial objects as not free-able.
2448         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2449         element.
2450
2451         * elf/filter.c: Call mtrace.
2452         * elf/restest1.c: Likewise.  Close the objects.
2453         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2454         debug information.
2455
2456         * elf/constload1.c: Add comment explaining not freed memory.
2457
2458 2000-08-18  Andreas Jaeger  <aj@suse.de>
2459
2460         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2461         alignment for structs stat and stat64.
2462         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2463
2464 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2465
2466         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2467         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2468
2469         * nss/Versions: Remove libnss_db information.
2470
2471 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2472
2473         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2474         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2475         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2476         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2477
2478         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2479         to match Solaris.
2480
2481 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2482
2483         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2484         (_FPU_SETCW): Likewise.
2485         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2486
2487         * stdio-common/printf_fp.c: Fix chars_needed computation.
2488         Patch by Greg McGary <greg@mcgary.org>.
2489
2490 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2491
2492         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2493         _dl_loaded are NULL.
2494
2495 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2496
2497         * manual/arith.texi (feholdexcept): Returns 0 on success.
2498
2499 2000-08-17  Andreas Jaeger  <aj@suse.de>
2500
2501         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2502         (ifr_newname): New.
2503         Reported by Andi Kleen <ak@suse.de>.
2504
2505 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2506
2507         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2508         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2509         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2510
2511 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2512
2513         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2514         of buf->st_ino and kbuf->st_ino, not __st_ino.
2515         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2516         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2517         directive so that only linux/getdents.c is used, not some
2518         architecture specific one.
2519
2520 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2521
2522         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2523         enabled, not disabled exceptions.
2524         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2525         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2526
2527 2000-08-17  Greg McGary  <greg@mcgary.org>
2528
2529         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2530         from test program name when constructing suffix for $(LDLIBS-*).
2531         (bounded-thread-library): New variable.
2532         * crypt/Makefile
2533         [build-shared, build-static] (libcrypt-dep): Remove variable.
2534         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2535         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2536         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2537         (librt-tests): Add variable.  (tests): Use it.
2538         [build-shared, build-static]
2539         ($(addprefix $(objpfx),$(tests)),
2540         $(addprefix $(objpfx),$(librt-tests))):
2541         Consolidate individual dependencies.
2542         [build-bounded]
2543         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2544         Add dependencies.
2545         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2546         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2547         * misc/Makefile
2548         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2549         * rt/Makefile
2550         [build-shared, build-static]
2551         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2552         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2553
2554 2000-08-17  Greg McGary  <greg@mcgary.org>
2555
2556         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2557         * sysdeps/unix/make-syscalls.sh: Likewise.
2558         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2559         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2560         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2561         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2562         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2563
2564 2000-08-17  Greg McGary  <greg@mcgary.org>
2565
2566         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2567         Wrap extern symbols in BP_SYM ().
2568         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2569         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2570         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2571         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2572         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2573         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2574         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2575         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2576         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2577         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2578
2579 2000-08-16  Andreas Schwab  <schwab@suse.de>
2580
2581         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2582         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2583         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2584
2585 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2586
2587         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2588         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2589         * elf/dl-support.c: Define _nl_nloaded.
2590         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2591         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2592         object to global list.
2593         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2594         from _dl_loaded list.
2595         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2596         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2597         number here.
2598
2599         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2600         unmask, exceptions.
2601         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2602         exceptions.
2603         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2604
2605 2000-08-16  Andreas Jaeger  <aj@suse.de>
2606
2607         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2608
2609 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2610
2611         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2612
2613 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2614
2615         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2616         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2617         (sysdep_routines): Add oldgetrlimit64.
2618         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2619         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2620
2621         * include/link.h: Undo last patches.  Hurd now has stat64.
2622         * elf/Makefile: Likewise.
2623         * elf/dl-load.c: Likewise.
2624         * elf/dl-misc.c: Likewise.
2625         * elf/dl-profile.c: Likewise.
2626         * sysdeps/generic/sysd-link.h: Removed.
2627         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2628
2629         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2630         thread event callback function.
2631         (__aio_notify_only): Use function above.
2632         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2633
2634 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2635
2636         * sysdeps/mach/hurd/lseek64.c: New file.
2637
2638 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2639
2640         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2641         Remove typedefs.
2642         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2643         typedefs.
2644         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2645         typedefs.
2646         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2647
2648 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2649
2650         * sysdeps/mach/hurd/xstatconv.c: New file.
2651         * sysdeps/mach/hurd/fxstat64.c: New file.
2652         * sysdeps/mach/hurd/lxstat64.c: New file.
2653         * sysdeps/mach/hurd/xstat64.c: New file.
2654         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2655
2656 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2657
2658         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2659         Initialize, needed for change in common symbol handling in newer
2660         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2661
2662 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2663
2664         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2665         * elf/constload2.c: Add destructor to unload constload3.
2666
2667         * include/link.h: Include sysd-link.h.
2668         * sysdeps/generic/sysd-link.h: New file.
2669         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2670         * elf/Makefile (distribute): Add sysd-link.h.
2671         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2672         types and functions directly.
2673         * elf/dl-misc.c: Likewise.
2674         * elf/dl-profile.c: Likewise.
2675
2676         * elf/loadfail.c (main): Close all successfully loaded objects.
2677
2678         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2679         free wd.
2680         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2681         there is already one.
2682
2683         * elf/dl-close.c: Pretty print.
2684
2685 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2686
2687         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2688         global (with file scope).  Add __libc_subfreeres function to free the
2689         string.
2690         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2691         in ttyname function.
2692
2693         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2694
2695         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2696
2697         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2698         mapping them to /x5c and /x7e respectively.
2699
2700         * locale/programs/ld-ctype.c: Add support for more definitions after
2701         copy statement.
2702
2703 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2704
2705         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2706         * sysdeps/unix/sysv/linux/kernel-features.h
2707         (__ASSUME_GETDENTS64_SYSCALL): Define.
2708         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2709         syscall if available to get d_type fields.
2710         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2711         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2712         __lxstat64): Export at GLIBC_2.2.
2713         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2714         Likewise.
2715         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2716         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2717         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2718         getdirentries64, versionsort64): Remove.
2719         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2720         getdirentries64, versionsort64): Remove.
2721
2722 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2723
2724         * posix/Makefile: Remove rules to generate glob package.
2725
2726         * posix/Makefile (tests): Add tst-regexloc.
2727         (tst-regexloc-ENV): Add LOCPATH.
2728         * posix/tst-regexloc.c: New file.
2729
2730 2000-08-12  Andreas Jaeger  <aj@suse.de>
2731
2732         * include/features.h (__STDC_ISO_10646__): Define.
2733         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2734
2735 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2736
2737         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2738
2739         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2740         for revision 6 and up).
2741
2742         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2743         including <time.h>.
2744         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2745         to get definitions of just these types.
2746
2747         * signal/signal.h: Define thread signal handling functions also for
2748         POSIX95.
2749
2750         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2751         POSIX95.
2752         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2753         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2754         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2755         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2756
2757         * sysvipc/sys/shm.h: Define pid_t for XPG.
2758
2759         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2760         they are not anymore required here.
2761
2762         * wcsmbs/wchar.h: Make the various wide char string and stream
2763         functions available for the respective XPG versions.
2764
2765         * nss/Makefile: Remove rules to build and distribute nss_db.
2766
2767         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2768         * sysdeps/generic/scandir64.c: Likewise.
2769         * sysdeps/generic/versionsort64.c: Likewise.
2770
2771 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2772             Benjamin Koznik  <bkoz@redhat.com>
2773
2774         * libio/fileops.c: Merge with libstdc++-v3.
2775         * libio/genops.c: Likewise.
2776         * libio/iofclose.c: Likewise.
2777         * libio/iofopen.c: Likewise.
2778         * libio/iofwide.c: Likewise.
2779         * libio/libio.h: Likewise.
2780         * libio/libioP.h: Likewise.
2781         * libio/stdfiles.c: Likewise.
2782         * libio/stdio.c: Likewise.
2783         * libio/wfileops.c: Likewise.
2784         * libio/wgenops.c: Likewise.
2785
2786         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2787
2788 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2789
2790         * locale/programs/localedef.c: Implement --prefix option to allow
2791         writing in standard places of alternative install directories.
2792
2793         * posix/regex.c (compile_range): Implement collation sequence
2794         handling for glibc.  Use simple character ordering otherwise and
2795         not strcoll.
2796
2797 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2798
2799         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2800
2801 2000-08-12  Andreas Jaeger  <aj@suse.de>
2802
2803         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2804         __USE_FILE_OFFSET64 correctly for locking.
2805         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2806
2807 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2808
2809         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2810         Define for 2.4.1 on sparc as well.
2811         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2812         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2813         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2814         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2815
2816 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2817
2818         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2819         defined.
2820
2821 2000-08-12  Andreas Jaeger  <aj@suse.de>
2822
2823         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2824         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2825
2826         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2827         mips2 for assembler.
2828
2829         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2830         if fnctl64 is not available for F_*LK*64.
2831
2832         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2833
2834 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2835
2836         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2837         Define for 2.4.1 on x86.
2838         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2839         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2840         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2841
2842         * dirent/dirent.h: Define DT_WHT.
2843
2844         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2845         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2846         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2847         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2848         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2849         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2850
2851 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2852
2853         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2854         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2855         * inet/Makefile (tests): Add tst-gethnm.
2856         * inet/tst-gethnm.c: New file.
2857
2858         * rt/aio_cancel.c: If canceling a specific request which is running
2859         *really* do nothing.
2860         * rt/aio_misc.h: Add `done' to states of a request.
2861         * rt/aio_misc.c: Add several tests for the correct state.
2862         Simplify request table memory handling.
2863
2864 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2865
2866         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2867         * dirent/scandir64.c: Move...
2868         * sysdeps/generic/scandir64.c: ...here.
2869         * dirent/alphasort64.c: Move...
2870         * sysdeps/generic/alphasort64.c: ...here.
2871         * dirent/versionsort64.c: Move...
2872         * sysdeps/generic/versionsort64.c: ...here.
2873         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2874         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2875         Export symbols at GLIBC_2.2.
2876         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2877         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2878         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2879         __versionsort64): Add prototypes.
2880         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2881         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2882         unused prototype.
2883         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2884         and GLIBC_2.2.
2885         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2886         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2887         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2888         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2889         __u_quad_t.
2890         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2891         Adjust for kernel-2.4.0-test6 layout.
2892         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2893         GLIBC_2.1 and GLIBC_2.2.
2894         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2895         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2896         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2897         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2898         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2899         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2900         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2901         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2902         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2903         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2904         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2905         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2906         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2907         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2908         __u_quad_t.
2909         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2910         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2911         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2912         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2913         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2914         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2915         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2916         __u_quad_t.
2917         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2918         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2919         Define.
2920         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2921         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2922         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2923         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2924         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2925         Define.
2926         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2927         alpha/readdir.c.
2928         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2929         alpha/readdir_r.c
2930         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2931         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2932         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2933         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2934         st_ino from __st_ino.
2935         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2936         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2937         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2938         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2939         set __st_ino in addition to st_ino.
2940         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2941         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2942         __old_getdents64 as well.
2943         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2944         getdirentries64 and old_getdirentries64 as well.
2945         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2946         __GETDENTS): Define.
2947         (GETDENTS64): Remove.
2948         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2949         Define.
2950         (GETDENTS64): Remove.
2951         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2952         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2953         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2954         as well.
2955         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2956         __old_readdir64_r as well.
2957         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2958         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2959
2960 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2961
2962         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2963         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2964         define of the kernel.
2965         Add missing __SEG_PSTKOVF definition.
2966         Adjust the padding of struct siginfo and struct sigevent to
2967         match the fact that sigval_t is 64 bit.
2968
2969 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2970
2971         * timezone/zic.c: Update from tzcode2000f.
2972         * timezone/australasia: Update from tzdata2000f.
2973         * timezone/europe: Likewise.
2974         * timezone/southamerica: Likewise.
2975         * timezone/yearistype: Likewise.
2976
2977 2000-08-10  Andreas Jaeger  <aj@suse.de>
2978
2979         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2980         stat with current MIPS kernel.
2981
2982 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2983
2984         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2985         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2986         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2987         Remove the junk that's only relevant in the Linux kernel itself.
2988         Add a warning saying that this file is now obsolete, and include
2989         <sys/procfs.h>.
2990         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2991         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2992         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2993         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2994         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2995         and add the notice that the file is primarily there for GDB.
2996         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2997
2998 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2999
3000         * time/tzfile.c (__tzfile_compute): __tzstring zones
3001         from zone_names.
3002
3003 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
3004
3005         * resolv/resolv.h (__res_state): Surround prototype with
3006         __BEGIN_DECLS/__END_DECLS.
3007         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
3008
3009 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
3010
3011         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
3012         Make independant of asm/resource.h from the Linux kernel.
3013
3014 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3015
3016         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
3017
3018 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
3019
3020         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
3021         * locale/Makefile (locale-CPPFLAGS): Likewise.
3022
3023 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
3024
3025         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
3026         for AMD processors.
3027
3028 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
3029
3030         * misc/Versions (mincore): Export at GLIBC_2.2.
3031
3032 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
3033
3034         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
3035
3036 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
3037
3038         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
3039         socketpair.  Made socketpair a weak alias.
3040         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
3041         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
3042         conforming, but fall back on the old protocol if the socket server
3043         doesn't support it.
3044         * include/sys/socket.h: Add prototype for __socketpair.
3045
3046 2000-08-09  Andreas Schwab  <schwab@suse.de>
3047
3048         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
3049         long long modifier is seen.
3050
3051         * elf/nodelete.c (do_test): Remove reference to undefined member
3052         sa_restorer.
3053         * rt/tst-aio4.c (do_test): Likewise.
3054
3055         * configure.in: Add `-lm' when checking for libgd.
3056         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
3057         linking.
3058
3059 2000-08-09  Andreas Jaeger  <aj@suse.de>
3060
3061         * configure.in: Change required make versions.
3062
3063         * manual/install.texi (Tools for Compilation): Document required
3064         make version.
3065         (Supported Configurations): Update list of supported
3066         configurations.
3067
3068 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
3069
3070         * locale/linereader.c (get_string): Don't print an error is a string
3071         contains an unknown character.
3072
3073 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
3074
3075         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
3076         (new_symbol): Take new parameters with name of the symbol.
3077         Adjust callers.
3078         (handle_ellipsis): Don't only allow character symbols.
3079         (collate_read): Allow string of collating elements contain invalid
3080         characters; ignore entry in this case.
3081         Handle ellipsis of collating symbols before first order_start.
3082         Allow ellipsis in state 0.
3083
3084 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3085
3086         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3087         error message.
3088         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3089
3090 2000-08-04  Greg McGary  <greg@mcgary.org>
3091
3092         * posix/regex.c (SET_HIGH_BOUND): New macro.
3093         (MOVE_BUFFER_POINTER): Use it.
3094         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3095         (EXTEND_BUFFER): Use it.
3096
3097 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3098
3099         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3100         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3101         _wide_data but from _IO_FILE directly.
3102         * libio/iofclose.c: Likewise.
3103         * libio/wfileops.c: Likewise.
3104
3105         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3106         * libio/libioP.h: Change prototypes.
3107
3108 2000-08-03  Greg McGary  <greg@mcgary.org>
3109
3110         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3111         frame pointer early so that we save caller's frame pointer.
3112         * sysdeps/i386/elf/setjmp.S: Likewise.
3113
3114         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3115         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3116
3117         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3118         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3119         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3120
3121 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3122
3123         * iconvdata/big5.c: Updated.
3124         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3125
3126 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3127
3128         * Makeconfig (all-subdirs): Add conform.
3129         * conform/Makefile: Include ../Rules.
3130
3131         * Makefile (README): Add rules to generate here as well.
3132
3133 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3134
3135         * version.h (VERSION): Bump to 2.1.92.
3136
3137         * sysdeps/ia64/Dist: Add _mcount.S.
3138
3139         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3140
3141         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3142
3143         * elf/Makefile (distribute): Add missing modules.
3144
3145         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3146
3147         * posix/regex.c (compile_range): Translate range start and end
3148         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3149
3150         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3151         asm/resource.h.
3152
3153         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3154
3155 2000-08-02  Andreas Jaeger  <aj@suse.de>
3156
3157         * elf/elf.h (EM_S390): Added.
3158         (R_390_*): New relocs for S390.
3159
3160         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3161         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3162         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3163         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3164         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3165         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3166         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3167         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3168         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3169         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3170         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3171         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3172         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3173         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3174         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3175         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3176         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3177         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3178         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3179         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3180         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3181         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3182         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3183         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3184         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3185         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3186         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3187         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3188         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3189         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3190         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3191         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3192         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3193         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3194         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3195         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3196         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3197         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3198         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3199         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3200         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3201         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3202         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3203         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3204         * sysdeps/s390/sysdep.h: New file.
3205         * sysdeps/s390/sys/ucontext.h: New file.
3206         * sysdeps/s390/sub_n.S: New file.
3207         * sysdeps/s390/strncpy.S: New file.
3208         * sysdeps/s390/strcpy.S: New file.
3209         * sysdeps/s390/stackinfo.h: New file.
3210         * sysdeps/s390/setjmp.S: New file.
3211         * sysdeps/s390/s390-mcount.S: New file.
3212         * sysdeps/s390/mul_1.S: New file.
3213         * sysdeps/s390/memusage.h: New file.
3214         * sysdeps/s390/memset.S: New file.
3215         * sysdeps/s390/memcpy.S: New file.
3216         * sysdeps/s390/memchr.S: New file.
3217         * sysdeps/s390/machine-gmon.h: New file.
3218         * sysdeps/s390/ldbl2mpn.c: New file.
3219         * sysdeps/s390/gmp-mparam.h: New file.
3220         * sysdeps/s390/fpu/fpu_control.h: New file.
3221         * sysdeps/s390/fpu/fesetround.c: New file.
3222         * sysdeps/s390/fpu/fegetround.c: New file.
3223         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3224         * sysdeps/s390/fpu/bits/fenv.h: New file.
3225         * sysdeps/s390/ffs.c: New file.
3226         * sysdeps/s390/elf/start.S: New file.
3227         * sysdeps/s390/elf/setjmp.S: New file.
3228         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3229         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3230         * sysdeps/s390/dl-machine.h: New file.
3231         * sysdeps/s390/bzero.S: New file.
3232         * sysdeps/s390/bsd-setjmp.S: New file.
3233         * sysdeps/s390/bsd-_setjmp.S: New file.
3234         * sysdeps/s390/bits/string.h: New file.
3235         * sysdeps/s390/bits/setjmp.h: New file.
3236         * sysdeps/s390/bits/huge_val.h: New file.
3237         * sysdeps/s390/bits/endian.h: New file.
3238         * sysdeps/s390/bits/byteswap.h: New file.
3239         * sysdeps/s390/bcopy.S: New file.
3240         * sysdeps/s390/backtrace.c: New file.
3241         * sysdeps/s390/atomicity.h: New file.
3242         * sysdeps/s390/asm-syntax.h: New file.
3243         * sysdeps/s390/addmul_1.S: New file.
3244         * sysdeps/s390/add_n.S: New file.
3245         * sysdeps/s390/abort-instr.h: New file.
3246         * sysdeps/s390/__longjmp.c: New file.
3247         * sysdeps/s390/Makefile: New file.
3248         * sysdeps/s390/Implies: New file.
3249         * sysdeps/s390/Dist: New file.
3250         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3251
3252 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3253
3254         Remove incompatible IPv6 extension of RPC.
3255         * sunrpc/Makefile: Undo changes.
3256         * sunrpc/rpc_main.c: Likewise.
3257         * sunrpc/rpc/clnt.h: Likewise.
3258         * sunrpc/rpc/svc.h: Likewise.
3259         * sunrpc/bindrsvprt6.c: Removed.
3260         * sunrpc/clnt_tcp6.c: Removed.
3261         * sunrpc/clnt_udp6.c: Removed.
3262         * sunrpc/svc_tcp6.c: Removed.
3263         * sunrpc/svc_udp6.c: Removed.
3264
3265         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3266         dgettext, and dcgettetxt.
3267
3268         * intl/locale.alias: Update japanese aliases.
3269
3270         * sysdeps/ia64/bits/byteswap.h: New file.
3271         Patch by Dan Pop <Dan.Pop@cern.ch>.
3272
3273         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3274         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3275
3276 2000-07-13  H.J. Lu  <hjl@gnu.org>
3277
3278         * posix/regex.c (re_max_failures): Set to 4000.
3279
3280 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3281
3282         * gnulib/Makefile (tests): Add tst-gcc.
3283         * gnulib/tst-gcc.c: New file.
3284
3285         * assert/Makefile (routines): Add __assert.
3286         * assert/Versions: Export __assert for glibc 2.2.
3287         * assert/__assert.c: New file.
3288         * assert/assert.h: Declare __assert.
3289
3290 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3291
3292         * locale/localeinfo.h (_ISCTYPE): New macro.
3293         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3294         LC_CTYPE locale format.
3295         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3296         (ctype_output): Output class_b[nr] right before class_3level[nr].
3297         (allocate_arrays): Fill class_b, similarly to class_3level.
3298
3299 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3300             Joseph S. Myers  <jsm28@cam.ac.uk>
3301
3302         * math/tgmath.h: Make standard compliant.  Don't ask how.
3303
3304 2000-07-04  H.J. Lu  <hjl@gnu.org>
3305
3306         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3307         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3308         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3309
3310 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3311
3312         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3313         (__USE_LARGEFILE): Add an explanation.
3314         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3315         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3316
3317 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3318
3319         * libio/Makefile: Enable exception handling for genops, wgenops,
3320         fileops, and wfileops.
3321
3322 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3323
3324         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3325         acount that elf/rtld's main program might remove some varibales
3326         from the environment if we're trying to be secure.  Move the Hurd
3327         startup data if necessary, or, if we there is no startup data,
3328         make sure the magical convention that ARGV[0] is stored just after
3329         the environment list.
3330
3331 2000-08-01  Philip Blundell  <philb@gnu.org>
3332
3333         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3334         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3335         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3336         oldsetrlimit for GLIBC_2.0.
3337
3338 2000-08-01  Andreas Jaeger  <aj@suse.de>
3339
3340         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3341         (LINE_PARSER): Allow any number of spaces between ip address and
3342         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3343
3344         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3345
3346         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3347         constants in.
3348
3349         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3350         _nss_nisplus_getipnodebyname_r.
3351
3352         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3353         now, getipnodebyname is deprecated.
3354         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3355         Likewise.
3356
3357         * inet/Makefile (routines): Don't build getipnodebyaddr and
3358         friends.
3359
3360         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3361
3362         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3363
3364         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3365
3366         * wctype/Makefile (distribute): Add wchar-lookup.h.
3367
3368         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3369
3370         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3371
3372 2000-08-01  Andreas Schwab  <schwab@suse.de>
3373
3374         * Make-dist (dist): Resolve `..' in file names.
3375
3376 2000-08-01  Andreas Jaeger  <aj@suse.de>
3377
3378         * stdio-common/Makefile (distribute): Remove removed files, add
3379         new files.
3380
3381         * Makefile (distribute): Remove include/db_185.h and db.h.
3382
3383         * include/db_185.h: Remove, it's not needed anymore.
3384         * include/db.h: Likewise.
3385
3386 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3387
3388         * inet/Makefile (tests): Remove tst-ipnode.
3389         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3390         now.
3391
3392 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3393
3394         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3395         endp statements have already been added.
3396
3397 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3398
3399         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3400         <sysdeps/ia64/sysdep.h>.
3401
3402         * sysdeps/ia64/_mcount.S: New file.
3403
3404         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3405         __gmon_start__.  Fix up extraneous whitespace.
3406
3407 2000-01-12  H.J. Lu  <hjl@gnu.org>
3408
3409         * sysdeps/ia64/elf/initfini.c: New file.
3410
3411 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3412
3413         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3414         dependency between branch and ar.pfs write.
3415
3416 2000-07-31  H.J. Lu  <hjl@gnu.org>
3417
3418         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3419         handle the wchar_t array.
3420
3421 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3422
3423         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3424         10646 which are not yet assigned.
3425         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3426
3427 2000-07-31  Andreas Jaeger  <aj@suse.de>
3428
3429         * inet/Versions: Remove getipnodebyaddr and friends from
3430         GLIBC_2.2.
3431
3432         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3433
3434 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3435
3436         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3437         ch >= 0x81 && ch2 < 0x40 as invalid.
3438
3439 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3440
3441         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3442         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3443
3444 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3445
3446         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3447         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3448
3449 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3450
3451         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3452         0xb8.
3453         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3454
3455 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3456
3457         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3458
3459 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3460
3461         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3462         (from_ucs4): Change values of U+00A4 and U+00ED.
3463         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3464
3465 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3466
3467         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3468         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3469
3470 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3471
3472         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3473         * iconvdata/isiri-3342.h: New file.
3474         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3475         treat 0x80 as a gap.
3476
3477 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3478
3479         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3480         (utf8_encode): Use simple shifts instead.  Fix return value.
3481
3482 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3483
3484         * timezone/private.h: Update from tzcode2000e.
3485         * timezone/asia: Update from tzdata2000e.
3486         * timezone/australasia: Likewise.
3487         * timezone/europe: Likewise.
3488         * timezone/northamerica: Likewise.
3489         * timezone/zone-tab: Likewise.
3490
3491 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3492
3493         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3494         the order of struct sigaltstack members is different.
3495
3496 2000-07-26  Philip Blundell  <philb@gnu.org>
3497
3498         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3499
3500 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3501
3502         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3503         * locale/programs/ld-ctype.c: Adjust for this.
3504
3505         * locale/programs/ld-collate.c: Add more alignment checks.
3506         * locale/string/strcoll.c: Likewise.
3507
3508 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3509
3510         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3511         outside USE_IN_LIBIO block.
3512
3513 2000-07-26  Philip Blundell  <philb@gnu.org>
3514
3515         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3516         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3517
3518 2000-07-28  Philip Blundell  <philb@gnu.org>
3519
3520         * math/test-fpucw.c: Ignore reserved bits in control word.
3521
3522 2000-07-28  Philip Blundell  <philb@gnu.org>
3523
3524         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3525         (ret): Redefine to PSEUDO_RET.
3526         (PSEUDO): Remove jump to syscall_error.
3527
3528 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3529
3530         * resolv/README: Add some information about using the resolver in
3531         multi-threaded code and with C++.  Spelling fixes.
3532
3533 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3534
3535         * resolv/resolv.h (struct __sockaddr_in): Remove.
3536         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3537
3538 2000-07-29  Greg McGary  <greg@mcgary.org>
3539
3540         * Rules (test-bp-inputs, make-test-out): New variables.
3541         ($(objpfx)%-bp.out): New rule.
3542         ($(objpfx)%.out): Rewrite in terms of new variables.
3543
3544         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3545         internal function that uses vtable.
3546         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3547         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3548
3549         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3550         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3551         (chunk_align): Likewise.
3552
3553         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3554         in a way that conforms to decl, and avoids spurious bounds violation.
3555
3556         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3557         * sysdeps/generic/frame.h: Likewise.
3558         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3559         around return value.
3560         (__backtrace): Qualify frame-pointer chain and return address
3561         pointers as __unbounded.  Wrap bounds around variable `current'.
3562         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3563         around return value.
3564         (catch_segfault): Qualify frame-pointer chain and return address
3565         pointers as __unbounded.  Wrap bounds around variable `current'.
3566         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3567         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3568         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3569         __unbounded.
3570         (__backtrace): Qualify frame-pointer chain and return address
3571         pointers as __unbounded.  Wrap bounds around variable `current'.
3572
3573         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3574         * sysdeps/i386/mul_1.S: Likewise.
3575         * sysdeps/i386/submul_1.S: Likewise.
3576         * sysdeps/i386/i586/addmul_1.S: Likewise.
3577         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3578         * sysdeps/i386/i586/submul_1.S: Likewise.
3579
3580 2000-07-27  Andreas Jaeger  <aj@suse.de>
3581
3582         * libio/Depend: New file, libio needs localedata for tests.
3583         * posix/Depend: Likewise.
3584
3585 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3586
3587         * stdio-common/_i18n_itoa.c: Removed.
3588         * stdio-common/_i18n_itoa.h: Removed.
3589         * stdio-common/_i18n_itowa.c: Removed.
3590         * stdio-common/_i18n_itowa.h: Removed.
3591         * stdio-common/_i18n_number.h: New file.
3592         * stdio-common/Depend: New file.
3593         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3594         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3595         printing.  Change printing of numbers with locale specific digits to
3596         use new code in _i18n_number.h.
3597         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3598         _i18n_itowa.
3599
3600         * stdio-common/bug13.c: Improve messages.
3601
3602         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3603         (set_class_defaults): Always search also for Uxxxx names.
3604         Detect insufficient number of outdigits.
3605
3606         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3607
3608 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3609
3610         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3611         _NL_CTYPE_MAP_NAMES.
3612         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3613         * wctype/wcfuncs.c (towlower, towupper): Use them.
3614         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3615         * wctype/wctrans.c (wctrans): Likewise.
3616         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3617
3618 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3619
3620         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3621         Use the optimized version of this function outside glibc as well.
3622
3623 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3624
3625         * locale/indigits.h (indigit_value): Correct.
3626         * locale/indigitswc.h (indigitwc_value): Correct.
3627         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3628         conversion, add GROUP checking for it, fix GROUP number
3629         conversion with strlen(thousands) > 1.
3630         Honour width correctly in the presence of floating
3631         decimal points and thousands separators.
3632         * stdio-common/tst-sscanf.c: New test.
3633         * stdio-common/Makefile: Add it to tests.
3634         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3635         thousands separators and group argument is non-zero.
3636
3637 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3638
3639         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3640         starts at GLIBC_2.2.
3641
3642 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3643
3644         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3645         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3646         _test_and_set.
3647         (headers): Add sys/tas.h.
3648         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3649         GLIBC_2.2 from libc.
3650         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3651         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3652         _test_and_set.
3653
3654 2000-07-28  Andreas Jaeger  <aj@suse.de>
3655
3656         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3657
3658         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3659         ($(objpfx)tst-dladdr.out): new.
3660         (tests): Add tst-dladdr.
3661         ($(objpfx)glrefmain): Use libdl.
3662
3663         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3664         <vs@caldera.de>.
3665
3666 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3667
3668         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3669         ftruncate(64) calls.
3670
3671 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3672
3673         * intl/tst-translit.c: Include string.h to get prototype for
3674         strcmp().
3675
3676 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3677
3678         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3679         name and add weak alias for __fork.
3680
3681         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3682         & pwrite to use __libc_<name> as strong names instead of
3683         __syscall_<name>.
3684
3685         * include/sched.h: Add clone2 prototype.
3686
3687 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3688
3689         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3690         procedure name twice.
3691
3692 2000-07-27  Philip Blundell  <philb@gnu.org>
3693
3694         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3695
3696 2000-07-27  Andreas Jaeger  <aj@suse.de>
3697
3698         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3699         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3700         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3701         Reported by Andi Kleen <ak@suse.de>.
3702
3703         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3704         (do_wait): Test requests with aio_return64.
3705         (do_test): Change callers of do_wait.
3706
3707 2000-07-26  Andreas Jaeger  <aj@suse.de>
3708
3709         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3710         (do_wait): Test requests with aio_return.
3711         (do_test): Change callers of do_wait.
3712
3713 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3714
3715         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3716         from request list.  Don't do the list handling here, call
3717         __aio_remove_request.
3718         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3719         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3720         request might already be processed.  Don't do the list handling
3721         here, call __aio_remove_request.
3722
3723         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3724         LIO_DSYNC.
3725
3726         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3727         are missing.
3728
3729 2000-07-27  Greg McGary  <greg@mcgary.org>
3730
3731         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3732         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3733         in union init.  Pass zero for ignored semnum arg to semctl.
3734         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3735
3736 2000-07-26  Greg McGary  <greg@mcgary.org>
3737
3738         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3739         data structure pointers as __unbounded.
3740         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3741         * sysdeps/generic/bp-semctl.h: New file.
3742         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3743         pointers as __unbounded.  Check bounds of syscall args.
3744         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3745         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3746         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3747         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3748         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3749         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3750         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3751         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3752         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3753         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3754         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3755         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3756         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3757         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3758         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3759         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3760
3761 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3762
3763         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3764         by default.
3765         * locale/C-ctype.c: Likewise.
3766         * wcsmbs/wcsmbsload.c: Likewise.
3767
3768 2000-07-26  Greg McGary  <greg@mcgary.org>
3769
3770         * Makeconfig (+link-bounded, link-libc-bounded,
3771         link-extra-libs-bounded): New variables.
3772         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3773         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3774         * Rules (tests-bp.out): New variable.
3775         (tests): Conditionally add BP tests.
3776         (binaries-bounded): Add variable and associated rule.
3777         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3778         Move conditional stuff after place where condition is defined.
3779
3780         * malloc/malloc.c (bp-checks.h): Add #include.
3781         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3782         (_bin_at): Add unbounded version of bin_at.
3783         (IAV, chunk_alloc): Use unbounded _bin_at.
3784         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3785         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3786         Wrap BOUNDED_N around return value.
3787         (chunk_realloc): Adjust oldsize once.
3788
3789         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3790         (__ubp_memchr): Add correct decl.
3791         (_CHECK_STRING): Use __ubp_memchr.
3792         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3793         New alias for unbounded-pointer __memchr.
3794         * sysdeps/i386/memchr.S: Likewise.
3795         * sysdeps/ia64/memchr.S: Likewise.
3796         * sysdeps/m68k/memchr.S: Likewise.
3797         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3798         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3799         * sysdeps/vax/memchr.s: Likewise.
3800
3801         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3802         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3803         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3804         * sysdeps/i386/i686/strtok.S: Likewise.
3805         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3806         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3807
3808         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3809         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3810
3811         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3812         bounds of copy_result to mount_proc.
3813
3814 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3815
3816         * wctype/wctype.h (__wctrans_l): New declaration.
3817         * wctype/wctrans_l.c: New file.
3818         * wctype/Makefile (routines): Add wctrans_l.
3819
3820 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3821
3822         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3823         Patch by MacGyver <macgyver@tos.net>.
3824
3825 2000-07-26  Andreas Jaeger  <aj@suse.de>
3826
3827         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3828         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3829         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3830
3831         * rt/tst-aio.c (test_file): Fix typo.
3832         * rt/tst-aio64.c (test_file): Likewise.
3833
3834         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3835         * rt/Makefile: Add rules to build and run tst-aio3.
3836
3837         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3838         it's not needed and confuses only.
3839
3840 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3841
3842         * resolv/res_init.c: Add support for nameserver communication with
3843         IPv6.
3844         * resolv/res_send.c: Likewise.
3845         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3846         in nsaddrs field.
3847         Patch by <venaas@nvg.ntnu.no>.
3848
3849 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3850
3851         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3852         (wcwidth_table_get): New function.
3853         (wcwidth_table_add): Call it.
3854         (wctrans_table_get): New function.
3855         (wctrans_table_add): Call it.
3856
3857 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3858
3859         * rt/lio_listio.c (lio_listio): Always disable individual
3860         notification.
3861         * rt/Makefile: Add rules to build and run tst-aio2.
3862         * rt/tst-aio2.c: New file.
3863
3864         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3865         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3866
3867 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3868
3869         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3870         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3871         leading and trailing spaces from host, user and domain name.
3872
3873 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3874
3875         * csu/defs.awk: Add support for need_endp.
3876
3877 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3878
3879         * resolv/resolv.h: Remove __P from res_send_qhook and
3880         res_send_rhook typedefs.
3881
3882 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3883
3884         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3885
3886 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3887
3888         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3889
3890 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3891
3892         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3893         calling thread, set the cancellation flag and return success
3894         instead of EINTR.
3895
3896 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3897
3898         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3899         * libio/tst-widetext.c: New file.
3900         * libio/tst-widetext.input: New file.
3901
3902         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3903
3904         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3905         empty external buffer correctly.
3906
3907 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3908
3909         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3910         __STRING(entry) and not #entry.
3911         (_RTLD_EPILOGUE): Likewise.
3912         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3913
3914 2000-07-25  Andreas Jaeger  <aj@suse.de>
3915
3916         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3917         according to changes in test program, run also with static only
3918         builds.
3919         ($(objpfx)tst-printf.out): Likewise.
3920
3921         * stdio-common/tst-unbputc.sh: Likewise.
3922         * stdio-common/tst-printf.sh: Likewise.
3923
3924 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3925
3926         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3927
3928         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3929         loop.
3930
3931         * libio/fileops.c: Pretty print.
3932
3933 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3934
3935         * wctype/wchar-lookup.h: New file.
3936         * wctype/iswctype.c: Include "wchar-lookup.h".
3937         (__iswctype): Support alternate locale format with 3-level tables.
3938         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3939         * wctype/towctrans.c (__towctrans): Likewise.
3940         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3941         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3942         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3943         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3944         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3945         __iswxdigit, towlower, towupper): Support alternate locale format
3946         with 3-level tables.
3947         * wctype/wcextra.c (iswblank): Likewise.
3948         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3949         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3950         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3951         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3952         format with 3-level tables.
3953         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3954         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3955         format, return a 3-level table pointer.
3956         * wctype/wctype_l.c (__wctype_l): Likewise.
3957         * wctype/wctrans.c (wctrans): Likewise.
3958         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3959         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3960         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3961         (iswctype): Remove macro definition.
3962         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3963         (internal_wcwidth): Support alternate locale format with 3-level
3964         tables.
3965         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3966         New nl_items.
3967         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3968         Define them as being type "word".
3969         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3970         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3971         __ctype32_width): New exported variables.
3972         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3973         alternate locale format. Don't initialize __ctype_names and
3974         __ctype_width in the alternate locale format.
3975         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3976         * locale/programs/localedef.c (oldstyle_tables): New variable.
3977         (OPT_OLDSTYLE): New macro.
3978         (options): Add --old-style option.
3979         (parse_opt): Handle --old-style option.
3980         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3981         map_offset, class_3level, map_3level, width_3level members.
3982         (ctype_output): Support for alternate locale format: Computation of
3983         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3984         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3985         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3986         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3987         now contain both class and map tables.
3988         (struct wctype_table): New type.
3989         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3990         functions.
3991         (struct wcwidth_table): New type.
3992         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3993         functions.
3994         (struct wctrans_table): New type.
3995         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3996         functions.
3997         (allocate_arrays): Support for alternate locale format: Set
3998         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3999         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
4000         to the first 256 characters. Compute ctype->map_3level. Set
4001         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
4002         instead of ctype->width.
4003
4004 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
4005
4006         * libio/iogetwline.c (_IO_getwline_info): Use wide character
4007         string functions.
4008
4009 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
4010
4011         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
4012         in wide characters, not bytes.
4013         * libio/tst_putwc.c (do_test): Add test for writing lots of data
4014         into file.
4015
4016 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4017
4018         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
4019         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
4020         LC_MEASUREMENT, LC_IDENTIFICATION.
4021
4022         * locale/xlocale.h (struct __locale_struct): Increase size of
4023         __locales array.
4024         * locale/duplocale.c (__duplocale): Copy newly added categories as
4025         well.
4026         * locale/freelocale.c (__freelocale): Free newly added categories.
4027         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
4028         If a base is given, use it, don't simply return it.
4029
4030 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
4031
4032         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
4033         variables, copied_key and copied_salt, instead of boolean variables.
4034
4035 2000-07-24  Andreas Jaeger  <aj@suse.de>
4036
4037         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
4038         check for offset.
4039
4040         * grp/initgroups.c (initgroups_dyn_function): Renamed from
4041         initgroups_function, adopted prototype for change from 2000-07-23.
4042         (initgroups): Follow type change.
4043
4044         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
4045         & PAGE_MASK case, reformat.
4046
4047         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
4048         from stdin and setup environment.
4049
4050 2000-07-24  Andreas Schwab  <schwab@suse.de>
4051
4052         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
4053
4054 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4055
4056         * string/endian.h: Explain the _*_ENDIAN constant values a bit
4057         more.  Patch by scarlet@mit.edu [PR libc/1799].
4058
4059         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
4060         [PR libc/1792].
4061
4062         * argp/argp-parse.c (parser_finalize): Reverse order in which
4063         parsers are run for ARGP_KEY_END.  [PR libc/1755].
4064
4065         * grp/initgroups.c (initgroups): Don't limit the possible number
4066         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
4067         the setgroups call while the call fails and descrease the number
4068         of groups each round.
4069         The name of the initgroups function in the NSS modules changed.
4070         (compat_call): Adapt for dynamic resizing.
4071         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4072         Implement dynamic resizing.
4073         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
4074         Likewise.
4075         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
4076         * hesiod/Versions: Change exported interface name.
4077         * nis/Versions: Change exported interface name.
4078
4079 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4080
4081         * locale/iso-639.def: Some errors corrected.
4082         Patch by Keld Simonsen.
4083
4084         * include/limits.h: Update non-gcc portion.
4085         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4086
4087 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4088
4089         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4090         program's data space, reallocate only the space that was just
4091         deallocated to release its backing space.
4092
4093 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4094
4095         * stdio-common/vfprintf.c (process_string_arg): For wide character
4096         version, handle precision also correctly.
4097
4098         * nss/nss_files/files-hosts.c: Correct problem with three or more
4099         entries with the same name.
4100
4101         * nss/nss_files/files-hosts.c: Implement multi handling.
4102         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4103
4104 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4105
4106         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4107         strcasecmp.
4108
4109         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4110         * malloc/Makefile: Likewise.
4111         * malloc/tst-mtrace.sh: Likewise.
4112         * posix/Makefile: Likewise.
4113         * posix/globtest.sh: Likewise.
4114         * posix/wordexp-tst.sh: Likewise.
4115         * string/Makefile: Likewise.
4116
4117 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4118
4119         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4120         size instead of LC_ALL to take into account the new locale
4121         categories.
4122
4123 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4124
4125         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4126         remainders of hash table.
4127         * locale/categories.def: Remove remainders of transliteration
4128         hash table.
4129         * locale/langinfo.h: Likewise.
4130         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4131         transliteration tables.
4132
4133         * locale/gen-translit.pl: New file.
4134         * locale/C-translit.h.in: New file.
4135         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4136         data pointers with data from this file.
4137         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4138         and gen-translit.pl.
4139         Add rule to generate C-translit.h.
4140         * intl/tst-translit.c (main): Update for now performed
4141         transliteration.
4142
4143         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4144         (it's no input error).
4145         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4146         * stdio-common/scanf12.c: Correct expected result for first scanf.
4147
4148         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4149         of multibyte character strings in %s format with precision.
4150
4151 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4152
4153         * locale/programs/ld-collate.c (collate_read): Allow collating
4154         symbols and elements be named in reorder-after instructions.
4155         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4156
4157         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4158         duplication with generated name, not the name of the first
4159         character.
4160         Patch by Yong Li <yong.li@asu.edu>.
4161
4162         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4163         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4164
4165 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4166
4167         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4168         allocations only if a non-main arena cannot be extended.
4169
4170 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4171
4172         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4173         in DF_1_NODEFLIB handling.
4174
4175 2000-07-21  Andreas Jaeger  <aj@suse.de>
4176
4177         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4178         own rule.
4179
4180         * libio/fwide.c: Include <wchar.h> for prototype.
4181
4182 2000-07-21  Greg McGary  <greg@mcgary.org>
4183
4184         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4185         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4186         Define in terms of chunk_at_offset.
4187         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4188         (next_bin, prev_bin): offset by size of real array elements.
4189         (chunk_align): Make `m' a scalar, since that's how it's used.
4190
4191 2000-07-21  Greg McGary  <greg@mcgary.org>
4192
4193         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4194         UNCHECK_BOUNDS.
4195         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4196         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4197         Wrap bounds around argv & envp and each of their string members.
4198         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4199         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4200         symbol in BP_SYM ().  Discard bounds of address arg.
4201         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4202         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4203         Discard bounds on address arg, add bounds to return value.
4204
4205 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4206
4207         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4208         * elf/filter.c: New file.
4209         * elf/filtmod1.c: New file.
4210         * elf/filtmod2.c: New file.
4211
4212         * elf/rtld.c: Define _dl_bind_not variable.
4213         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4214         * elf/dl-support.c: Likewise.
4215         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4216         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4217         _dl_bind_not.
4218         (profile_fixup): Likewise.
4219
4220         * libio/Makefile (routines): Add fwide.
4221         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4222         fwide now.  Internal calls to _IO_fwide must do locking themselves
4223         or don't need locking.
4224         * libio/fwide.c: New file.
4225
4226         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4227
4228         * elf/Makefile: Add no modules for nodelete test.
4229         * elf/nodelmod3.c: New file.
4230         * elf/nodelmod4.c: New file.
4231         * elf/nodelete.c: Also test case where dependency of dlopen() object
4232         is marked nodelete.
4233
4234         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4235         * elf/nodlopen.c: New file.
4236         * elf/nodlopenmod.c: New file.
4237         * include/dlfcn.h: Define __RTLD_DLOPEN.
4238         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4239         and this is a dlopen() call, do not load the binary.
4240         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4241         * dlfcn/dlopenold.c: Likewise.
4242         * configure.in: Add test for -z nodelete option.
4243         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4244
4245 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4246
4247         Make Hesiod NSS module thread-safe.
4248
4249         * hesiod/README.hesiod: Update.
4250
4251         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4252         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4253         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4254         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4255         hesiod-proto.
4256         * hesiod/nss_hesiod/hesiod-init.c: New file.
4257         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4258         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4259         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4260         * hesiod/nss_hesiod/hesiod-service.c
4261         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4262         looking up services by port number.
4263         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4264
4265         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4266         * hesiod/hesiod.h: Likewise.
4267         * hesiod/hesiod_p.h: Likewise.
4268
4269 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4270
4271         Fix problems with `struct __res_state' getting too big.
4272         * resolv/resolv.h (struct __sockaddr_in): New definition.
4273         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4274         the private parts of the structure to save some space.
4275         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4276         (struct sockaddr_in *) in call to sock_eq.
4277         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4278
4279 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4280
4281         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4282         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4283         with nodelete.
4284         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4285         to _dl_map_object.  Return immediately if no object loaded.
4286         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4287         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4288         if it exists into l_flags_1 word.
4289         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4290         it to determine whether loading is wanted or not.
4291         (_dl_map_object): Likewise.
4292         Call _dl_map_object_from_fd with new parameter.
4293         * sysdeps/generic/ldsodefs.h: Update prototype.
4294         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4295         * elf/rtld.c: Likewise.
4296         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4297         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4298         * elf/noload.c: New file.
4299         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4300         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4301         * sysdeps/mips/bits/dlfcn.h: Likewise.
4302         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4303         (tests-nodelete-yes): Define.
4304         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4305         Add rules to build nodelete and modules.
4306         * elf/nodelete.c: New file.
4307         * elf/nodelmod1.c: New file.
4308         * elf/nodelmod2.c: New file.
4309         * configure.in: Add test for -z nodelete option.
4310         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4311
4312         * libio/Makefile (tests): Add tst_wprintf2.
4313         (tst_wprintf2-ARGS): Define.
4314         * libio/tst_wprintf2.c: New file.
4315         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4316
4317         * libio/wfiledoalloc.c: Only allocate external buffer if this
4318         hasn't happened yet.
4319
4320         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4321         something in the buffer.  gconv call can write up to end of the
4322         buffer, not only _IO_write_end.
4323         (_IO_wfile_overflow): Allocate also external buffer.
4324
4325 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4326
4327         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4328         strings with precision in vfwprintf correctly.
4329         * stdio-common/vfprintf.c: Fix completely broken handling of
4330         unbuffered wide character streams.
4331         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4332
4333         * resolv/Makefile (distribute): Add README.
4334
4335         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4336
4337 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4338
4339         Update resolver code to BIND 8.2.3-T5B.
4340
4341         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4342         __res_nclose.
4343         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4344         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4345         __res_search.
4346         * resolv/Banner: BIND-8.2.3-T5B.
4347
4348         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4349         * resolv/herror.c: Likewise.
4350         * resolv/inet_addr.c: Likewise.
4351         * resolv/inet_net_ntop.c: Likewise.
4352         * resolv/inet_net_pton.c: Likewise.
4353         * resolv/inet_neta.c: Likewise.
4354         * resolv/inet_ntop.c: Likewise.
4355         * resolv/nsap_addr.c: Likewise.
4356         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4357         IPv6 addresses (ISC bug #520).
4358
4359         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4360         * resolv/ns_parse.c: Likewise.
4361         * resolv/ns_netint.c: Likewise.
4362         * resolv/ns_samedomain.c: Likewise.
4363         * resolv/ns_ttl.c: Likewise.
4364         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4365         RCS ID in object file.
4366
4367         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4368         * resolv/res_mkquery.c: Likewise.
4369         * resolv/res_query.c: Likewise.
4370         * resolv/res_init.c: Likewise.
4371         (res_setoptions): Mark internal.
4372         * resolv/res_send.c: Likewise.
4373         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4374         by using poll instead.
4375         * resolv/res_comp.c: Likewise.
4376         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4377         weak alias for __dn_expand.
4378         * resolv/res_data.c: Likewise.
4379         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4380         in _res.options.  Avoids a potential security risk by avoiding a
4381         close (0).
4382         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4383         res_mkquery, res_query, res_querydomain adn res_search weak
4384         aliases for __res_mkquery, __res_query, __res_querydomain and
4385         __res_search.
4386         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4387         instead to avoid close(0).
4388         (res_init): Always use the static resolver context.
4389         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4390         alias for __res_init.
4391
4392         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4393         RES_SET_H_ERRNO and accompanying comment to...
4394         * include/resolv.h: ... here.
4395
4396         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4397         * resolv/arpa/nameser_compat.h: Likewise.
4398
4399 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4400
4401         * nss/makedb.c (main): Compare result of load_db with
4402         NSS_STATUS_SUCCESS and not 0.
4403         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4404
4405         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4406
4407 2000-07-18  Greg McGary  <greg@mcgary.org>
4408
4409         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4410         (EXTEND_BUFFER): Use it.
4411
4412 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4413
4414         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4415         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4416         __builtin_return_address.
4417         * dlfcn/dlopenold.c: Likewise.
4418         * dlfcn/dlsym.c: Likewise.
4419         * dlfcn/dlvsym.c: Likewise.
4420         * elf/dl-profstub.c: Likewise.
4421         * malloc/malloc.c: Likewise.
4422         * sysdeps/generic/machine-gmon.h: Likewise.
4423         Based on a patch by schwidefsky@de.ibm.com.
4424
4425 2000-07-18  Andreas Jaeger  <aj@suse.de>
4426
4427         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4428         NULL to elf_machine_fixup_plt t argument to silence GCC.
4429
4430         * include/string.h: Add prototype for __memchr.
4431
4432         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4433
4434         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4435         instead of memrchr.
4436
4437 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4438
4439         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4440
4441         * locale/C-ctype.c: Add initializers for gap elements.
4442         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4443         for gap elements.
4444
4445 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4446
4447         * nscd/nscd.c (print_version): Update copyright year.
4448
4449 2000-07-17  Greg McGary  <greg@mcgary.org>
4450
4451         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4452         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4453         signature argnames with angle-brackets for use as word delimiters,
4454         and to induce syntax errors for any args not handled.  Split
4455         multi-echo echoes and comment each stage.
4456         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4457         * sysdeps/unix/inet/syscalls.list: Likewise.
4458         * sysdeps/unix/mman/syscalls.list: Likewise.
4459         * sysdeps/unix/syscalls.list: Likewise.
4460         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4461         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4462         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4463         * sysdeps/unix/sysv/syscalls.list: Likewise.
4464         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4465
4466         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4467         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4468         qualifiers.  Don't check NULL-terminator of argv & envp.
4469         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4470         unbounded pointer type in word-size assertion.
4471         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4472         cases to stifle warnings.
4473
4474         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4475         _IO_file_attach.
4476         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4477
4478         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4479         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4480         ptr as __unbouned.
4481
4482         * Makerules (o-objects): Supplement with $(o-objects$o).
4483         * string/Makefile (o-objects.ob): Add variable to pull
4484         unbounded versions of memcpy, memset and memchr into libc_b.
4485
4486         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4487         rather than non-existent __ubp_memchr.
4488         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4489         (_CHECK_STRING, _CHECK_N): New macros.
4490         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4491         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4492         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4493         Add weak alias "memchr".
4494         * sysdeps/generic/memchr.c: Likewise.
4495         * sysdeps/i386/memchr.S: Likewise.
4496         * sysdeps/ia64/memchr.S: Likewise.
4497         * sysdeps/m68k/memchr.S: Likewise.
4498         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4499         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4500         * sysdeps/vax/memchr.s: Likewise.
4501
4502         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4503
4504         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4505         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4506         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4507         __BOUNDED_POINTERS__.
4508         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4509         for __BOUNDED_POINTERS__.
4510
4511 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4512
4513         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4514         field of struct __gconv_trans_data differently.  Don't pass NULL to
4515         trans_init_fct.  Simplify list append operation.
4516
4517 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4518
4519         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4520         not only those having tsearch.
4521
4522 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4523
4524         * locale/langinfo.h: Add placeholder values in enum for removed
4525         LC_CTYPE entries.
4526
4527 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4528
4529         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4530         chain if the PHDR check fails.
4531
4532 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4533
4534         * nss/getent.c (print_hosts): Make sure we always print a space
4535         between numeric addresses and hostnames.
4536
4537 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4538
4539         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4540         i.e. if n_mmaps_max>0.
4541
4542 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4543
4544         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4545         values to remove possible clash with other AI_* constants.
4546         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4547         hexadecimal constants to stress the fact they're in fact
4548         bit flags.
4549
4550 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4551
4552         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4553         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4554         instead of res_init.
4555
4556 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4557
4558         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4559         parameters of memset calls to avoid warnings.
4560
4561 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4562
4563         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4564         necessary.
4565
4566         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4567         Patch by Greg McGary <greg@mcgary.org>.
4568
4569         * io/Makefile (tests): Add tst-getcwd.
4570         * io/tst-getcwd.c: New file.
4571
4572         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4573
4574 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4575
4576         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4577         structure.
4578
4579 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4580
4581         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4582         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4583
4584 2000-07-12  H.J. Lu  <hjl@gnu.org>
4585
4586         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4587         GLIBC_2.2.
4588         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4589         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4590         (sysdep-routines): Add clone2.
4591         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4592
4593 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4594
4595         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4596         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4597
4598 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4599
4600         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4601         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4602         Change type of si_band from "int" to "long".
4603         (si_imm) [USE_GNU]: Define
4604         (si_isr) [USE_GNU]: Ditto.
4605         (ILL_BREAK) [USE_GNU]: Ditto.
4606         (FPE_DECOVF) [USE_GNU]: Ditto.
4607         (FPE_DECDIV) [USE_GNU]: Ditto.
4608         (FPE_DECERR) [USE_GNU]: Ditto.
4609         (FPE_INVASC) [USE_GNU]: Ditto.
4610         (FPE_INVDEC) [USE_GNU]: Ditto.
4611         (TRAP_BRANCH) [USE_GNU]: Ditto.
4612         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4613
4614 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4615
4616         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4617         bits/sigcontext as struct mcontext does not depend on it.
4618
4619         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4620
4621 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4622
4623         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4624
4625 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4626
4627         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4628
4629 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4630
4631         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4632
4633 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4634
4635         * intl/Makefile (test-srcs): Add tst-translit.
4636         (tests): Likewise.
4637         Add rules to build and run tst-translit.
4638         * intl/tst-translit.c: New file.
4639         * intl/tst-translit.sh: New file.
4640         * intl/translit.po: New file.
4641
4642 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4643
4644         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4645         transliteration function did its job, continue, don't stop.
4646
4647         * iconvdata/iso646.c: Little optimizations in body for conversion
4648         from UCS4.
4649
4650 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4651
4652         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4653
4654 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4655
4656         * configure.in: Check for pwd binary.
4657         * config.make.in: Add PWD_P to be subsituted.
4658         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4659
4660 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4661
4662         * iconvdata/Makefile (modules): Add GB18030.
4663         (distribute): Add gb18030.c.
4664         * iconvdata/gconv-modules: Add entries for GB18030 module.
4665         * iconvdata/gb18030.c: New file.
4666         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4667         and Wu Jian.
4668
4669 2000-07-13  Andreas Jaeger  <aj@suse.de>
4670
4671         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4672         patch.
4673
4674         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4675         * inet/getnetgrent.c (free_mem): Likewise.
4676         * misc/mntent.c (free_mem): Likewise.
4677         * nss/getXXbyYY.c (free_mem): Likewise.
4678         * nss/getXXent.c (free_mem): Likewise.
4679         * pwd/fgetpwent.c (free_mem): Likewise.
4680         * shadow/fgetspent.c (free_mem): Likewise.
4681
4682 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4683
4684         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4685         64-bit architecture correctly [PR libc/1794].
4686
4687 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4688
4689         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4690         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4691         report that we are out of memory.
4692         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4693         * elf/dl-libc.c (dlerror_run): Likewise.
4694         * elf/dl-open.c (_dl_open): Likewise.
4695         * elf/rtld.c (dl_main): Likewise.
4696         * elf/dl-error.c: Define _dl_out_of_memory.
4697         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4698         the error string.
4699         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4700         [PR libc/1813].
4701
4702         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4703
4704         * iconv/loop.c: Fix comment.
4705
4706         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4707
4708 2000-07-13  Andreas Jaeger  <aj@suse.de>
4709
4710         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4711         getcwd (NULL, size) with size > 0.
4712         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4713
4714 2000-07-13  Andreas Jaeger  <aj@suse.de>
4715
4716         * posix/Makefile: Remove build rules for libposix.
4717
4718 2000-07-13  Andreas Schwab  <schwab@suse.de>
4719
4720         * sysdeps/generic/glob.c (glob): Fix memory leak.
4721         [SHELL]: Remove reference to undefined variable `files'.
4722         Fixes PR libc/1782.
4723
4724 2000-07-13  Andreas Jaeger  <aj@suse.de>
4725
4726         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4727         functions.
4728
4729         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4730         memory if it was allocated.
4731
4732 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4733
4734         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4735         step.
4736
4737         * iconv/gconv_open.c (__gconv_open): Reapply
4738         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4739
4740                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4741
4742         * iconv/gconv_open.c: Undo last two changes for now.  They break
4743         everything.
4744
4745 2000-07-12  Andreas Jaeger  <aj@suse.de>
4746
4747         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4748         compiler.
4749         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4750         (CFLAGS-dl-cache.c): Likewise.
4751         (CFLAGS-ldconfig.c): Added, passes directory locations.
4752
4753         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4754         locate cache.
4755         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4756         (main): Use configured LIBDIR and SLIBDIR.
4757
4758 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4759
4760         * math/bits/cmathcalls.h (cimag): Add __THROW.
4761         (creal, conj): Likewise.
4762         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4763         by negative value.
4764
4765 2000-07-12  H.J. Lu  <hjl@gnu.org>
4766
4767         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4768         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4769
4770 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4771
4772         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4773         it is wrong.
4774
4775 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4776
4777         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4778
4779 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4780
4781         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4782         __modname.
4783
4784 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4785
4786         * iconv/gconv_open.c (__gconv_open): Initialize
4787         result->__steps[cnt].__data.
4788
4789 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4790
4791         * nss/getent.c (services_keys): Pass port number in network byte
4792         order in call to getservbyport.
4793
4794 2000-07-11  Andreas Jaeger  <aj@suse.de>
4795
4796         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4797         source dir.
4798         * intl/Makefile (do-gettext-test): Likewise.
4799         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4800
4801 2000-07-11  Andreas Schwab  <schwab@suse.de>
4802
4803         * Makeconfig (run-program-prefix): New rule.
4804         (built-program-cmd): Use run-program-prefix.
4805
4806 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4807
4808         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4809         and NOEXPR unconditionally available.
4810
4811 2000-07-12  Greg McGary  <greg@mcgary.org>
4812
4813         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4814         * sysdeps/posix/open64.c: Likewise.
4815         * sysdeps/generic/fegetenv.c: Likewise.
4816         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4817         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4818         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4819         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4820         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4821         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4822
4823 2000-07-11  Greg McGary  <greg@mcgary.org>
4824
4825         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4826         Add extra level of macro expansion.
4827         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4828         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4829         is available at the time `select' prototype is declared.
4830         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4831         Collect non-versioned weak aliases.  Consider only non-versioned
4832         aliases for the user-visible systemcall name.  Do checks inline with
4833         call to primitive system call.
4834         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4835         stand-alone bounds checks to suppress unused value warnings.
4836         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4837
4838 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4839
4840         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4841         file descriptor checking in SUID programs for the Hurd.
4842
4843         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4844         res_hostalias instead of __hostalias for thread-safety.
4845
4846 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4847
4848         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4849         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4850
4851 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4852
4853         * include/features.h: Include ISO C99 features if the compiler used
4854         is an ISO C99 compiler.
4855         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4856
4857 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4858
4859         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4860
4861 2000-07-10  Andreas Jaeger  <aj@suse.de>
4862
4863         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4864         it's overridden by libpthreads.
4865         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4866         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4867         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4868         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4869         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4870
4871         * malloc/Makefile: Run tst-mtrace only with shared libs.
4872
4873         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4874         with shared libs.
4875
4876 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4877
4878         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4879         that gpreg really points to the GOT section of the calling object.
4880         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4881         checking a start address of first one.
4882         Fix typos.
4883         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4884         Likewise.
4885
4886         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4887
4888 2000-07-10  Andreas Jaeger  <aj@suse.de>
4889
4890         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4891         (string_alias->strong_alias).
4892
4893 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4894
4895         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4896
4897 2000-07-07  Greg McGary  <greg@mcgary.org>
4898
4899         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4900         have no names without leading underscores.
4901
4902 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4903
4904         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4905         U007E.
4906
4907         * stdio-common/Makefile (tests): Remove tst-printf here...
4908         (tests-srcs): ...and add it here.
4909         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4910         Add rules to run tst-printf.sh.
4911         * stdio-common/tst-printf.c: Move code around so that there is really
4912         no further output where it's stated.
4913         * stdio-common/tst-printf.sh: New file.
4914
4915 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4916
4917         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4918         (do_write): Renamed from pwrite.
4919         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4920         `struct _IO_cookie_file'.
4921
4922 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4923
4924         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4925         detected.
4926         * malloc/tst-mtrace.sh: Run mtrace script.
4927
4928 2000-07-07  Greg McGary  <greg@mcgary.org>
4929
4930         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4931         Move all three components of a bounded pointer.
4932
4933 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4934
4935         * locale/programs/locale.c (write_locales): Don't simply add all
4936         directories found in the subdir, test whether at least the
4937         LC_CTYPE file is in there.
4938
4939 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4940
4941         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4942         * iconvdata/euc-kr.c: Likewise.
4943
4944         * stdio-common/vfprintf.c (process_string_arg): Check result of
4945         wcrtomb call and bail out if it failed.
4946
4947         * malloc/Makefile (test-srcs): Add tst-mtrace.
4948         (distribute): Add tst-mtrace.sh.
4949         Add rule to run tst-mtrace.sh.
4950         * malloc/tst-mtrace.c: New file.
4951         * malloc/tst-mtrace.sh: New file.
4952
4953         * include/signal.h: Declare __libc_sigaction.
4954         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4955         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4956         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4957         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4958         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4959         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4960         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4961
4962         * configure.in: Fix CFLAGS-memprofstat.c definition after
4963         2000-06-19 change.
4964         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4965
4966 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4967
4968         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4969         instead of NULL to elf_machine_fixup_plt t argument.
4970         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4971         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4972         cast.
4973
4974 2000-07-06  Andreas Jaeger  <aj@suse.de>
4975
4976         * crypt/Makefile (LDLIBS-cert): Removed.
4977         (LDLIBS-md5c-test): Removed.
4978         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4979         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4980
4981 2000-07-06  Andreas Jaeger  <aj@suse.de>
4982
4983         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4984         of the proc system is "proc".
4985
4986         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4987         thread library for static programs.
4988
4989 2000-07-06  Greg McGary  <greg@mcgary.org>
4990
4991         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4992         New macros.
4993         * sysdeps/generic/strcpy.c: Add bounds checks.
4994         * sysdeps/unix/fxstat.c: Likewise.
4995         * sysdeps/unix/xstat.c: Likewise.
4996         * sysdeps/unix/common/lxstat.c: Likewise.
4997         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4998         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4999         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
5000         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
5001         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
5002         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
5003         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
5004         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
5005         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
5006         * sysdeps/unix/sysv/linux/poll.c: Likewise.
5007         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5008         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5009         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5010         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5011         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5012         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5013         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
5014         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
5015         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
5016         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
5017         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
5018         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
5019         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5020         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
5021         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5022         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
5023         * sysdeps/unix/sysv/linux/writev.c: Likewise.
5024         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
5025         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
5026         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
5027         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5028         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5029         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
5030         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
5031         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
5032         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
5033         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
5034         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
5035         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
5036         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
5037         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
5038         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
5039         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5040         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
5041         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
5042         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
5043         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5044         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
5045         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
5046         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
5047         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
5048         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
5049         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5050         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5051         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5052         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5053         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5054         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
5055         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
5056         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
5057         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5058         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
5059         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
5060         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
5061
5062         * string/endian.h (__LONG_LONG_PAIR): New macro.
5063         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
5064         * sysdeps/unix/sysv/linux/pread.c: Likewise.
5065         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
5066         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
5067         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
5068         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
5069         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
5070         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
5071         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
5072         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
5073         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
5074         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
5075
5076         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
5077
5078 2000-07-06  Andreas Jaeger  <aj@suse.de>
5079
5080         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5081         Initialize result.
5082
5083         * math/test-fpucw.c: Include <stdio.h> for printf.
5084
5085 2000-07-05  Greg McGary  <greg@mcgary.org>
5086
5087         * sysdeps/generic/bp-checks.h: New file.
5088         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5089         with list of #include files.
5090         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5091         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5092         Don't generate BP thunk if `V' appears in signature.
5093         Generate thunks with complete bounds checks.
5094         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5095         * sysdeps/unix/inet/syscalls.list: Likewise.
5096         * sysdeps/unix/mman/syscalls.list: Likewise.
5097         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5098         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5099         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5100         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5101
5102 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5103
5104         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5105         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5106         If mount not in the file fall back on /proc.
5107
5108         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5109         string got copied in.
5110         Patch by Solar Designer <solar@false.com>.
5111
5112 2000-07-05  Andreas Jaeger  <aj@suse.de>
5113
5114         * manual/install.texi (Installation): Update information about
5115         add-ons.
5116         (Configuring and compiling): Update for glibc 2.2.
5117
5118 2000-07-04  Andreas Jaeger  <aj@suse.de>
5119
5120         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5121         (_FPU_IEEE): Likewise.
5122
5123         * math/Makefile (tests): Add test-fpucw.
5124
5125         * math/test-fpucw.c (main): New file.
5126
5127 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5128
5129         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5130
5131         * locale/programs/ld-collate.c (collate_output): Also write out the
5132         collation sequence values and the wide character string for the
5133         collation symbol table.
5134
5135         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5136         * posix/fnmatch_loop.c: Implement collating symbol handling.
5137         * posix/tst-fnmatch.input: Add more tests, especially for collating
5138         symbol handling.
5139
5140         * posix/regex.c: Fix comment.
5141
5142 2000-07-05  Andreas Jaeger  <aj@suse.de>
5143
5144         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5145         (_FPU_GETCW): Remove extra colon.
5146         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5147
5148         * posix/fnmatch_loop.c (FCT): Only declare len if
5149         !WIDE_CHAR_VERSION to silence GCC.
5150
5151         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5152         prototype.
5153         * sysdeps/generic/strchrnul.c: Likewise.
5154         * sysdeps/generic/strlen.c: Likewise.
5155         * sysdeps/generic/strchr.c: Likewise.
5156         * sysdeps/generic/memchr.c: Likewise.
5157
5158 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5159
5160         * posix/fnmatch_loop.c: Implement equivalence class handling.
5161         * posix/tst-fnmatch.input: Add tests for equivalence class
5162         handling.
5163
5164         * posix/fnmatch_loop.c: Improve performance for single-byte
5165         character sets by not using btowc.
5166
5167         * posix/tst-fnmatch.input: Add tests for locale dependent
5168         behaviour.
5169         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5170
5171         * posix/tst-fnmatch.input: Add more test cases.
5172
5173         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5174         are not aligned to alignof(md5_uint32) do it before calling
5175         __md5_process_bytes.
5176         * crypt/md5.c: Make sure buffers are aligned.
5177         * crypt/md5.h: Likewise.
5178         Reported by Solar Designer <solar@false.com>.
5179
5180         * crypt/Makefile: Add dependencies for test programs.
5181
5182         * Rules: Define LC_ALL=C in environments of all programs we run.
5183
5184         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5185
5186 2000-07-03  H.J. Lu  <hjl@gnu.org>
5187
5188         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5189         is 2 + elem + offset, not 2 + elem + offset + 2.
5190
5191 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5192
5193         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5194         suite.
5195         * posix/Makefile (tests): Add tst-fnmatch.
5196         (tst-fnmatch-ENV): Define.
5197         * posix/tst-fnmatch.c: New file.
5198         * posix/tst-fnmatch.sh: New file.
5199
5200 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5201
5202         * locale/programs/charmap.c (charmap_read): Prepend
5203         the condition filename == NULL.
5204
5205 2000-07-03  Greg McGary  <greg@mcgary.org>
5206
5207         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5208
5209         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5210         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5211
5212         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5213         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5214         (FILEBUF_LITERAL): Add cast for CHAIN init.
5215         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5216         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5217         Revert type of `fp' to _IO_FILE*.
5218         (_IO_iter_file): Remove cast.
5219         (_IO_iter_next): Elide intermediate member reference.
5220
5221         * sysdeps/powerpc/strchr.S:  Check bounds.
5222         Wrap extern symbols in BP_SYM ().
5223
5224 2000-07-03  Andreas Jaeger  <aj@suse.de>
5225
5226         * dlfcn/Makefile (generated): New.
5227
5228 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5229
5230         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5231         (__uflow): Likewise.
5232         (__underflow): Likewise.
5233         * libio/wgenops.c (__wunderflow): Likewise.
5234         * stdio-common/tst-unbputc.c: New file.
5235         * stdio-common/tst-unbputc.sh: New file.
5236         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5237
5238         * po/en_GB.po: New file.
5239         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5240
5241 2000-07-01  Andreas Jaeger  <aj@suse.de>
5242
5243         * intl/Makefile (generated-dirs): New.
5244
5245         * elf/Makefile (generated): trusted-dirs.h is always generated,
5246         move out of build-shared condition.
5247         (generated): Merge the two entries for build-shared.
5248
5249 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * debug/Makefile (distribute): Add xtrace.sh.
5252
5253 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5254
5255         * version.h (VERSION): Bump to 2.1.91.
5256
5257         * configure.in: Update warning comment.  glibc should not be
5258         broken anymore.
5259
5260         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5261         ioperm.c, sys/procfs.h, and sys/io.h.
5262
5263         * sysdeps/powerpc/Dist: Add bp-asm.h.
5264
5265         * assert/Depend: Add localedata.
5266         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5267         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5268
5269         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5270         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5271         relocation address to prevent unaligned trap.
5272         Suggested by Richard Henderson <rth@cygnus.com>.
5273
5274 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5275
5276         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5277         if redirecting and either redirection is done using defines or
5278         not optimizing.
5279
5280 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5281
5282         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5283         generated expressions.
5284         Patch by Darren McClelland <dmcclell@zetec.com>.
5285
5286         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5287         since zic uses setlocale and gettext but we cannot make it use the
5288         new locale data since zic calls a shell which might not use the
5289         new libc.
5290
5291         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5292         handling the internation currency symbol.  POSIX says that the
5293         fourth character is used to separate the currency symbol from the
5294         value.  Therefore it does not have to be printed.  But we cannot
5295         remove the space if the currency symbol is printed before the
5296         number since this is what many locales expect.
5297
5298         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5299         whether this information is available.
5300
5301         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5302         buffers in case the translation is too large.  Remember allocated
5303         memory blocks in a list.
5304         (free_mem): Free memory for translations.
5305
5306         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5307
5308         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5309         information is available set the string length to zero.
5310
5311         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5312
5313 2000-06-30  Greg McGary  <greg@mcgary.org>
5314
5315         * sysdeps/powerpc/bp-asm.h: New file.
5316         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5317         Wrap extern symbols in BP_SYM ().
5318         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5319         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5320         * sysdeps/powerpc/setjmp.S: Likewise.
5321         * sysdeps/powerpc/add_n.S: Likewise.
5322         * sysdeps/powerpc/addmul_1.S: Likewise.
5323         * sysdeps/powerpc/lshift.S: Likewise.
5324         * sysdeps/powerpc/rshift.S: Likewise.
5325         * sysdeps/powerpc/mul_1.S: Likewise.
5326         * sysdeps/powerpc/sub_n.S: Likewise.
5327         * sysdeps/powerpc/submul_1.S: Likewise.
5328         * sysdeps/powerpc/strlen.S: Likewise.
5329         * sysdeps/powerpc/memset.S: Likewise.
5330         * sysdeps/powerpc/stpcpy.S: Likewise.
5331         * sysdeps/powerpc/strcmp.S: Likewise.
5332         * sysdeps/powerpc/strcpy.S: Likewise.
5333         * sysdeps/powerpc/elf/bzero.S: Likewise.
5334
5335         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5336         Line up operands column with tabs.
5337
5338 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5339
5340         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5341
5342         * sysdeps/ia64/htonl.S: New file.
5343         * sysdeps/ia64/htons.S: New file.
5344         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5345         floating point registers.
5346         Patches by Dan Pop <Dan.Pop@cern.ch>.
5347
5348 2000-06-30  Andreas Jaeger  <aj@suse.de>
5349
5350         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5351         shared libraries.
5352
5353         * io/Makefile (CFLAGS-test-lfs.c): New.
5354         (tests): Add test-lfs.
5355
5356         * io/test-lfs.c: New file.
5357
5358 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5359
5360         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5361         instruction.
5362
5363 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5364
5365         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5366
5367 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5368
5369         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5370         alias to the fstatfs call.
5371
5372         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5373         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5374
5375         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5376         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5377
5378         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5379         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5380         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5381         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5382
5383         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5384         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5385
5386         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5387         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5388
5389         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5390         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5391
5392         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5393
5394 2000-06-29  Andreas Jaeger  <aj@suse.de>
5395
5396         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5397         with syslog.
5398         (print_err_message): Likewise.
5399         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5400
5401 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5402
5403         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5404         used as words is properly aligned.
5405
5406         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5407         data files.
5408
5409 2000-06-29  Greg McGary  <greg@mcgary.org>
5410
5411         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5412         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5413         length 7..9, just in case...
5414         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5415
5416         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5417         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5418         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5419         (PUSH_SIGNAL_MASK): New macro.
5420         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5421         LEAVE is unnecessary.  Check bounds of jmp_buf.
5422         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5423         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5424         immediately before tail-call.
5425         * sysdeps/i386/setjmp.S: Likewise.
5426         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5427         * sysdeps/i386/bsd-setjmp.S: Likewise.
5428
5429 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5430
5431         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5432         versioned_symbol.
5433         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5434         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5435         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5436         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5437         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5438         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5439         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5440         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5441
5442 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5443
5444         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5445         we later need to calling free().
5446         Patch by Matt Wilson <msw@redhat.com>.
5447
5448         * stdio-common/tst-printf.c: Add test for above problem.
5449
5450 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5451
5452         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5453         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5454
5455 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5456
5457         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5458         prototype for abs().
5459         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5460
5461 2000-06-23  Andreas Jaeger  <aj@suse.de>
5462
5463         * config.h.in: Don't use regparm with bounded pointers.
5464
5465 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5466
5467         * stdlib/grouping.h: Correctly handle multibyte thousands
5468         separator and decimal point.
5469         * stdlib/stdtod.c: Likewise.
5470         * sysdeps/generic/strtol.c: Likewise.
5471
5472         * locale/categories.def: Add entries for wide character decimal point
5473         and thousands separator in numeric and monetary category.
5474
5475 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5476
5477         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5478         second definition and initialization of decimal.
5479
5480 2000-06-28  Greg McGary  <greg@mcgary.org>
5481
5482         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5483         out.
5484         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5485         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5486         in.
5487         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5488         (struct _IO_FILE_plus *).
5489         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5490         THIS, since _IO_JUMPS no longer does it implicitly.
5491         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5492         arg type as (struct _IO_FILE_plus *).
5493         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5494         arg as (_IO_strfile *).
5495         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5496         Declare 1st arg as (_IO_strfile *).
5497         * libio/fileops.c (_IO_new_file_init): Declare
5498         arg type as (struct _IO_FILE_plus *).
5499         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5500         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5501         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5502         Declare iteration pointer as (struct _IO_FILE_plus *).
5503         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5504                 (struct _IO_FILE_plus *).
5505         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5506         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5507         (_IO_check_libio): Set user-visible handles to
5508         (struct _IO_FILE_plus *).
5509         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5510         to (struct _IO_FILE_plus *).
5511
5512         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5513         whose high bound includes vtable to all functions that will use
5514         vtable.  For streambufs, pass pointer whose bounds include struct
5515         _IO_strfile.
5516         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5517         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5518         * libio/iofopen.c (_IO_new_fopen): Likewise.
5519         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5520         * libio/iofopen64.c (_IO_fopen64): Likewise.
5521         * libio/iopopen.c (_IO_new_popen): Likewise.
5522         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5523         * libio/memstream.c (open_memstream): Likewise.
5524         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5525         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5526         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5527         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5528         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5529         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5530         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5531         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5532         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5533         * stdlib/strfmon.c (__strfmon_l): Likewise.
5534         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5535         (vfprintf): Qualify computed-goto targets as unbounded.
5536
5537 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5538
5539         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5540         thousands separator correctly.
5541
5542         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5543         * stdio-common/vfwscanf.c: Likewise.
5544
5545 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5546
5547         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5548         count into signatures for most calls.
5549
5550 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5551
5552         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5553         the generic parser now.
5554
5555 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5556
5557         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5558         table entries are 32 bit on the ia64 (as specified by the ABI),
5559         not 64 bit as on the Alpha.
5560
5561         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5562         change of objects to use 32 bit hash table indices (see above).
5563
5564 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5565
5566         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5567         prototype for abs().
5568
5569 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5570
5571         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5572         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5573         may have been reached.
5574
5575 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5576
5577         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5578         symbols in multi-character weights correctly.
5579
5580         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5581         depending on whether the input string is empty or not.
5582
5583         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5584         given state and not avoiding this by modifying a local object.
5585         * wcsmbs/wcrtomb.c: Likewise.
5586
5587         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5588         object since some incomplete characters might be in there.
5589
5590         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5591         sequences with first byte 0x8e correctly.
5592
5593         * iconvdata/jis0208.h: Remove redundant test.
5594
5595 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5596
5597         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5598         Add it where it is needed now.
5599
5600         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5601         the input charset into account when generating the hash table.
5602         (allocate_arrays): Correct setting default width.  Not all empty slots
5603         in the table are filled, only those not covert explicitly by the
5604         locale description and in the charset.
5605
5606         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5607         return values from the wctrans function.
5608
5609         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5610         wide character version.
5611         For %C handling, test correct pointer variable for NULL.
5612
5613         * wcsmbs/wctob.c: Handle WEOF special.
5614
5615         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5616
5617         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5618         always-true test to avoid warning.
5619
5620 2000-06-27  Greg McGary  <greg@mcgary.org>
5621
5622         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5623         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5624         (symbol_version, default_symbol_version): Factor redundant
5625         definitions out of conditional.
5626
5627 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5628
5629         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5630         not obstack_blank.
5631
5632 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5633
5634         * include/libc-symbols.h (symbol_version): Add extra level of
5635         macro expansion.
5636         (default_symbol_version): Likewise.
5637
5638 2000-06-26  Greg McGary  <greg@mcgary.org>
5639
5640         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5641         for BP return value & push implicit struct-return pointer to
5642         __errno_location.
5643         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5644         (SYSCALL_ERROR_HANDLER): Likewise.
5645         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5646         (SYSCALL_ERROR_HANDLER): Likewise.
5647
5648         * Makeconfig: Add missing comment.
5649         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5650         BP-flavored startup object.
5651         ($(objpfx)b$(start-installed-name)): New rule.
5652         * include/libc-symbols.h (symbol_set_declare): Change type
5653         of `__start_##set' and `__stop_##set' to pointer-to-function.
5654         (symbol_set_declare): Change type of `set' to array of
5655         pointer-to-function.
5656         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5657         pointer-to-function.
5658
5659         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5660
5661         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5662         Remove clock_* and timer_* entries.
5663         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5664         arg-count with signatures.
5665
5666         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5667         Check bounds of arguments.
5668         * sysdeps/i386/addmul_1.S: Likewise.
5669         * sysdeps/i386/lshift.S: Likewise.
5670         * sysdeps/i386/mul_1.S: Likewise.
5671         * sysdeps/i386/rshift.S: Likewise.
5672         * sysdeps/i386/sub_n.S: Likewise.
5673         * sysdeps/i386/submul_1.S: Likewise.
5674         * sysdeps/i386/i586/add_n.S: Likewise.
5675         * sysdeps/i386/i586/addmul_1.S: Likewise.
5676         * sysdeps/i386/i586/lshift.S: Likewise.
5677         * sysdeps/i386/i586/rshift.S: Likewise.
5678         * sysdeps/i386/i586/sub_n.S: Likewise.
5679         * sysdeps/i386/i686/add_n.S: Likewise.
5680
5681         * sysdeps/i386/memchr.S: Likewise.
5682         * sysdeps/i386/memcmp.S: Likewise.
5683         * sysdeps/i386/rawmemchr.S: Likewise.
5684         * sysdeps/i386/i586/bzero.S: Likewise.
5685         * sysdeps/i386/i586/memcpy.S: Likewise.
5686         * sysdeps/i386/i586/mempcpy.S: Likewise.
5687         * sysdeps/i386/i586/memset.S: Likewise.
5688         * sysdeps/i386/i686/bzero.S: Likewise.
5689         * sysdeps/i386/i686/memcpy.S: Likewise.
5690         * sysdeps/i386/i686/mempcpy.S: Likewise.
5691         * sysdeps/i386/i686/memset.S: Likewise.
5692
5693         * sysdeps/i386/stpcpy.S: Likewise.
5694         * sysdeps/i386/stpncpy.S: Likewise.
5695         * sysdeps/i386/strchr.S: Likewise.
5696         * sysdeps/i386/strchrnul.S: Likewise.
5697         * sysdeps/i386/strcspn.S: Likewise.
5698         * sysdeps/i386/strpbrk.S: Likewise.
5699         * sysdeps/i386/strrchr.S: Likewise.
5700         * sysdeps/i386/strspn.S: Likewise.
5701         * sysdeps/i386/strtok.S: Likewise.
5702         * sysdeps/i386/strtok_r.S: Likewise.
5703         * sysdeps/i386/i486/strcat.S: Likewise.
5704         * sysdeps/i386/i486/strlen.S: Likewise.
5705         * sysdeps/i386/i586/strchr.S: Likewise.
5706         * sysdeps/i386/i586/strcpy.S: Likewise.
5707         * sysdeps/i386/i586/strlen.S: Likewise.
5708         * sysdeps/i386/i686/strcmp.S: Likewise.
5709         * sysdeps/i386/i686/strtok.S: Likewise.
5710         * sysdeps/i386/i686/strtok_r.S: Likewise.
5711
5712         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5713         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5714         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5715         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5716         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5717
5718         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5719         * sysdeps/i386/mul_1.S: Likewise.
5720         * sysdeps/i386/submul_1.S: Likewise.
5721         * sysdeps/i386/i586/add_n.S: Likewise.
5722         * sysdeps/i386/i586/addmul_1.S: Likewise.
5723         * sysdeps/i386/i586/lshift.S: Likewise.
5724         * sysdeps/i386/i586/mul_1.S: Likewise.
5725         * sysdeps/i386/i586/rshift.S: Likewise.
5726         * sysdeps/i386/i586/sub_n.S: Likewise.
5727         * sysdeps/i386/i586/submul_1.S: Likewise.
5728
5729 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5730
5731         * rt/Makefile (librt-routines): Add clock_nanosleep.
5732         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5733         * sysdeps/generic/clock_nanosleep.c: New file.
5734         * sysdeps/unix/clock_nanosleep.c: New file.
5735         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5736         * time/time.h: Declare clock_nanosleep.
5737
5738 2000-06-26  Greg McGary  <greg@mcgary.org>
5739
5740         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5741         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5742         (ALIGN): Cleanup surrounding conditionals.
5743
5744         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5745         Call ENTER/LEAVE macros.
5746         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5747         * sysdeps/i386/submul_1.S: Likewise.
5748
5749         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5750         syntax.  Define & use symbolic argument stack offsets.  Call
5751         ENTER/LEAVE macros.
5752         * sysdeps/i386/i586/mul_1.S: Likewise.
5753         * sysdeps/i386/i586/submul_1.S: Likewise.
5754
5755 2000-06-25  Greg McGary  <greg@mcgary.org>
5756
5757         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5758         not as bcopy.
5759
5760 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5761
5762         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5763         * iconvdata/gen-8bit-gap.sh: Likewise.
5764         * iconvdata/gen-8bit.sh: Likewise.
5765
5766         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5767
5768         * locale/programs/ld-collate.c (collate_read): Don't actually read
5769         the copy locale if we are ignoring the content.
5770
5771         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5772         unknown character.
5773
5774         * locale/programs/ld-collate.c: Correct handling of different
5775         collation sections.
5776         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5777         as extra parameter from which to copy category information.
5778         Change all callers.
5779         (load_locale): Likewise.
5780         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5781         and load_locale.
5782         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5783         * locale/programs/locfile.h: Likewise.
5784         * locale/programs/locfile-kw.gperf: Add entry for script.
5785         * locale/programs/locfile-token.h: Add tok_script.
5786
5787         * locale/programs/locale.c: Update copyright year.
5788         * locale/programs/localedef.c: Likewise.
5789
5790 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5791
5792         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5793         Jens Moeller <jens.moeller@waii.com>.
5794
5795 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5796
5797         * locale/programs/ld-name.c (name_finish): Add missing format
5798         specifier to test for name_fmt.
5799
5800         * locale/programs/ld-address.c (iso639): Correct length of string
5801         elements.
5802         (iso3166): Likewise.
5803
5804         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5805
5806         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5807         Define.
5808
5809         * elf/elf.h (NT_PRFPXREG): Define.
5810
5811 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5812
5813         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5814         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5815
5816 2000-06-23  Andreas Schwab  <schwab@suse.de>
5817
5818         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5819         with signatures.
5820
5821 2000-06-23  Andreas Jaeger  <aj@suse.de>
5822
5823         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5824
5825         * io/test-stat.c: Add copyright header, mention Maciej.
5826
5827         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5828         SYS_mincore, SYS_madvise): Added.
5829
5830         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5831         execve.
5832
5833 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5834
5835         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5836         (CFLAGS-tst_putwc.c): New definition.
5837         * libio/tst_getwc.c: New file.
5838         * libio/tst_getwc.input: New file.
5839         * libio/tst_putwc.c: New file.
5840
5841         * include/string.h: Add prototype for __strdup.
5842
5843 2000-06-22  Greg McGary  <greg@mcgary.org>
5844
5845         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5846         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5847         Fix signatures.
5848
5849 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5850
5851         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5852
5853 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5854
5855         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5856
5857 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5858
5859         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5860         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5861
5862 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5863
5864         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5865         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5866         and __S_TYPEISSHM.
5867         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5868         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5869         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5870         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5871         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5872         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5873         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5874         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5875         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5876         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5877         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5878         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5879         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5880         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5881         S_TYPEISSHM.
5882
5883 2000-06-22  Andreas Jaeger  <aj@suse.de>
5884
5885         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5886         with signatures.
5887
5888         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5889
5890         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5891
5892 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5893
5894         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5895         ahead.
5896
5897 2000-06-21  Greg McGary  <greg@mcgary.org>
5898
5899         * Makerules (elide-routines.*, elide-bp-thunks):
5900         Define unconditionally.
5901
5902 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5903
5904         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5905
5906 2000-06-21  Andreas Jaeger  <aj@suse.de>
5907
5908         * io/Makefile (tests): Add test-stat.
5909         (CFLAGS-test-stat.c): New.
5910
5911         * io/test-stat.c: New file from Maciej W. Rozycki
5912         <macro@ds2.pg.gda.pl>.
5913
5914 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5915
5916         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5917         in __rlimit_resource to make them match the kernel order.
5918         rlim_t is always 64 bit, use __rlim64_t to declare it
5919         unconditionally.
5920
5921 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5922
5923         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5924         RLIM_INFINITY before defining it to avoid clash with kernel header
5925
5926 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5927
5928         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5929
5930 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5931
5932         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5933
5934 2000-06-21  Andreas Jaeger  <aj@suse.de>
5935
5936         * stdio-common/temptest.c: Include <stdlib.h>.
5937         * stdio-common/tst-fileno.c: Likewise.
5938         * stdio-common/scanf4.c: Likewise.
5939         * stdio-common/scanf5.c: Likewise.
5940         * time/clocktest.c: Likewise.
5941         * posix/test-vfork.c: Likewise.
5942         * posix/globtest.c: Likewise.
5943         * io/test-utime.c: Likewise.
5944         * wctype/test_wcfuncs.c: Likewise.
5945         * crypt/cert.c: Likewise.
5946
5947         * stdio-common/tst-printfsz.c: Include <string.h>.
5948         * libio/tst_swscanf.c: Likewise.
5949         * libio/tst_wscanf.c: Likewise.
5950         * posix/runtests.c: Likewise.
5951         * posix/tst-getaddrinfo.c: Likewise.
5952         * posix/wordexp-test.c: Likewise.
5953         * misc/tst-efgcvt.c: Likewise.
5954
5955         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5956         * nss/test-netdb.c: Likewise.
5957
5958         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5959         supported kernel for MIPS.
5960
5961         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5962         * rt/aio_suspend.c: Likewise.
5963
5964 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5965
5966         * math/libm-test.inc: Include <string.h>.
5967
5968 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5969
5970         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5971
5972 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5973
5974         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5975         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5976
5977 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5978
5979         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5980
5981 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5982
5983         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5984
5985 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5986
5987         * locale/programs/ld-collate.c (insert_value): Now take string and
5988         length instead of struct token* parameter.  Adjust use of token.
5989         (handle_ellipsis): Likewise.
5990         (collate_read): Allow <Uxxxx> names and transform them into names
5991         to be passed to insert_value and handle_ellipsis.
5992
5993         * locale/programs/ld-ctype.c (uninames): New array with names of
5994         digits in <Uxxxxxxxx> format.
5995         (ctype_finish): Correct search for space character value.  Likewise
5996         for default outdigits values.
5997
5998 2000-06-20  Greg McGary  <greg@mcgary.org>
5999
6000         * Makerules (objects): Add BP thunks.
6001
6002 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
6003
6004         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
6005         in width definitions.
6006
6007 2000-06-20  Andreas Jaeger  <aj@suse.de>
6008
6009         * sysdeps/mips/fpu/libm-test-ulps: New file.
6010
6011         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
6012         first.
6013
6014         * sysdeps/mips/fpu/feholdexcpt.c: New file.
6015
6016         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
6017
6018 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6019
6020         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
6021         change in gconv_builtin.h.
6022
6023         * malloc/Makefile: Change all references to memprof into memusage.
6024         * malloc/memprof.c: Rename to...
6025         * malloc/memusage.c: ...this.  New file.
6026         * malloc/memprof.sh: Rename to...
6027         * malloc/memusage.sh: ...this.  New file.
6028         * malloc/memprofstat.c: Rename to...
6029         * malloc/memusagestat.c: ...this.  New file.
6030         * sysdeps/alpha/memprof.h: Rename to..
6031         * sysdeps/alpha/memusage.h: ...this.  New file.
6032         * sysdeps/arm/memprof.h: Rename to..
6033         * sysdeps/arm/memusage.h: ...this.  New file.
6034         * sysdeps/generic/memprof.h: Rename to..
6035         * sysdeps/generic/memusage.h: ...this.  New file.
6036         * sysdeps/i386/memprof.h: Rename to..
6037         * sysdeps/i386/memusage.h: ...this.  New file.
6038         * sysdeps/ia64/memprof.h: Rename to..
6039         * sysdeps/ia64/memusage.h: ...this.  New file.
6040         * sysdeps/m68k/memprof.h: Rename to..
6041         * sysdeps/m68k/memusage.h: ...this.  New file.
6042         * sysdeps/mips/memprof.h: Rename to..
6043         * sysdeps/mips/memusage.h: ...this.  New file.
6044         * sysdeps/powerpc/memprof.h: Rename to..
6045         * sysdeps/powerpc/memusage.h: ...this.  New file.
6046         * sysdeps/sparc/memprof.h: Rename to..
6047         * sysdeps/sparc/memusage.h: ...this.  New file.
6048         * sysdeps/sh/memprof.h: Rename to..
6049         * sysdeps/sh/memusage.h: ...this.  New file.
6050
6051         * elf/sprof.c (print_version): Update year.
6052
6053         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
6054         table entry values.  Use D_PTR.
6055         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
6056         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
6057
6058 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
6059
6060         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
6061         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
6062         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
6063         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
6064
6065 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
6066
6067         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
6068
6069 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
6070
6071         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
6072         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
6073         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
6074
6075         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
6076
6077         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
6078         kernel change.
6079
6080         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
6081         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
6082         structure.
6083         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6084         implementation.
6085
6086 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6087
6088         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6089
6090 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6091
6092         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6093
6094 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6095
6096         * iconv/gconv_int.h (strict gconv_module): Remove all members
6097         associated with regular expressions.  Use a simple string as the
6098         from name.
6099         * iconv/gconv_db.c: Remove code handling regular expressions.
6100         * iconv/gconv_conf.c: Likewise.
6101         * iconv/iconv_prog.c: Likewise.
6102         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6103
6104         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6105         General namespace cleanup.
6106         (struct __gconv_trans_data): Add next field.
6107         (struct __gconv_step_data): Make __trans a pointer.
6108         * iconv/gconv_conf.c: Split out code to find gconv directories from
6109         __gconv_read_conf in new functions.
6110         * iconv/gconv_int.h: Define new data structure and declare new
6111         functions for handling of gconv directory list.
6112         * iconv/gconv_open.c: Allow more than one error handling step being
6113         used.  Call function to load error handling module if it is none
6114         of the builtin transformations.
6115         * iconv/gconv_close.c: Add code to free transliteration data.
6116         * iconv/gconv_trans.c: Add functions to load and unload modules
6117         implementing transliteration etc.
6118         * iconv/skeleton.c: Call all context functions now that more than
6119         one module is allowed.
6120         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6121         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6122         where the full error handling using transliteration is needed.
6123         * iconvdata/8bit-gap.c: Likewise.
6124         * iconvdata/8bit-generic.c: Likewise.
6125         * iconvdata/ansi_x3.110.c: Likewise.
6126         * iconvdata/big5.c: Likewise.
6127         * iconvdata/big5hkscs.c: Likewise.
6128         * iconvdata/euc-cn.c: Likewise.
6129         * iconvdata/euc-jp.c: Likewise.
6130         * iconvdata/euc-kr.c: Likewise.
6131         * iconvdata/euc-tw.c: Likewise.
6132         * iconvdata/gbgbk.c: Likewise.
6133         * iconvdata/gbk.c: Likewise.
6134         * iconvdata/iso-2022-cn.c: Likewise.
6135         * iconvdata/iso-2022-jp.c: Likewise.
6136         * iconvdata/iso-2022-kr.c: Likewise.
6137         * iconvdata/iso646.c: Likewise.
6138         * iconvdata/iso8859-1.c: Likewise.
6139         * iconvdata/iso_6937-2.c: Likewise.
6140         * iconvdata/iso_6937.c: Likewise.
6141         * iconvdata/johab.c: Likewise.
6142         * iconvdata/sjis.c: Likewise.
6143         * iconvdata/t.61.c: Likewise.
6144         * iconvdata/uhc.c: Likewise.
6145         * iconvdata/unicode.c: Likewise.
6146         * iconvdata/utf-16.c: Likewise.
6147         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6148         structure correctly after last change.
6149         * wcsmbs/btowc.c: Likewise.
6150         * wcsmbs/mbrtowc.c: Likewise.
6151         * wcsmbs/mbsnrtowcs.c: Likewise.
6152         * wcsmbs/mbsrtowcs.c: Likewise.
6153         * wcsmbs/wcrtomb.c: Likewise.
6154         * wcsmbs/wcsnrtombs.c: Likewise.
6155         * wcsmbs/wcsrtombs.c: Likewise.
6156         * wcsmbs/wctob.c: Likewise.
6157
6158         * localedata/Makefile: Set -Wno-format for some files since gcc does
6159         not know all the format specifiers.
6160
6161 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6162
6163         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6164         unneeded code.
6165         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6166
6167 2000-06-18  Andreas Jaeger  <aj@suse.de>
6168
6169         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6170         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6171
6172 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6173
6174         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6175         LINUX_LINK_MAX.
6176         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6177
6178         * locale/programs/ld-ctype.c (ctype_output): Really write out
6179         mboutdigits information.
6180         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6181         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6182         * localedata/tests/trans.def: Add outdigit information.
6183
6184         * localedata/tst-mbswcs3.c: Remove comment.
6185
6186         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6187         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6188         * libio/tst_wprintf.c (main): Add test for I flag.
6189
6190         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6191         * locale/langinfo.h: Add entries for translit_ignore information.
6192         * locale/categories.def: Add entries for new LC_CTYPE elements.
6193         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6194         pointer instead of "" where possible.
6195         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6196         * intl/Depend: Add localedata.
6197         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6198         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6199
6200 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6201
6202         * locale/langinfo.h: Add entries for default_missing information.
6203         * locale/C-ctype.c: Add initializers for new fields.
6204         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6205         information.
6206         * locale/categories.h: Add entries for all LC_CTYPE values.
6207         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6208         information.
6209
6210         * localedata/tst-trans.c: Write out an error message if class is
6211         not found.
6212
6213         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6214         * iconv/gconv_open.c: Remove error handling specification from `from'
6215         character set name.
6216         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6217         new parameter to always enable transliteration.
6218         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6219         change.
6220         (struct locale_data): Add new members use_translit and options.
6221         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6222         character set name contained modifier TRANSLIT.
6223         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6224         and options fields.
6225         (_nl_unload_locale): Free options string if necessary.
6226         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6227         the locale names suggested this.
6228         * locale/C-address.c: Add two new initialilzers to adjust data
6229         structure for new format.
6230         * locale/C-collate.c: Likewise.
6231         * locale/C-ctype.c: Likewise.
6232         * locale/C-identification.c: Likewise.
6233         * locale/C-measurement.c: Likewise.
6234         * locale/C-messages.c: Likewise.
6235         * locale/C-monetary.c: Likewise.
6236         * locale/C-name.c: Likewise.
6237         * locale/C-numeric.c: Likewise.
6238         * locale/C-paper.c: Likewise.
6239         * locale/C-telephone.c: Likewise.
6240         * locale/C-time.c: Likewise.
6241
6242         * locale/setlocale.c: Add some more __builtin_expect.
6243
6244 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6245
6246         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6247         unsigned char **.
6248         (__gconv_init_fct): Remove two parameters.
6249         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6250         gconv_transliterate.  Remove two parameters.
6251         Change prototypes of builtin functions according to __gconv_fct change.
6252         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6253         != NULL only during error handling.  Stop in this case after the
6254         conversion.
6255         * iconv/gconv_trans.c: Replace with real implementation for
6256         __gconv_transliterate.
6257         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6258         * iconv/gconv.c: Change calls to downstream functions once again.
6259         Use NULL for the fifth parameter instead of pointer to output buffer.
6260         * libio/iofwide.c: Likewise.
6261         * wcsmbs/btowc.c: Likewise.
6262         * wcsmbs/mbrtowc.c: Likewise.
6263         * wcsmbs/mbsnrtowcs.c: Likewise.
6264         * wcsmbs/mbsrtowcs.c: Likewise.
6265         * wcsmbs/wcrtomb.c: Likewise.
6266         * wcsmbs/wcsnrtombs.c: Likewise.
6267         * wcsmbs/wcsrtombs.c: Likewise.
6268         * wcsmbs/wctob.c: Likewise.
6269         * iconv/gconv_simple.c: Remove two parameters from error handling
6270         function call.
6271         * iconvdata/8bit-gap.c: Likewise.
6272         * iconvdata/8bit-generic.c: Likewise.
6273         * iconvdata/ansi_x3.110.c: Likewise.
6274         * iconvdata/big5.c: Likewise.
6275         * iconvdata/big5hkscs.c: Likewise.
6276         * iconvdata/euc-cn.c: Likewise.
6277         * iconvdata/euc-jp.c: Likewise.
6278         * iconvdata/euc-kr.c: Likewise.
6279         * iconvdata/euc-tw.c: Likewise.
6280         * iconvdata/gbgbk.c: Likewise.
6281         * iconvdata/gbk.c: Likewise.
6282         * iconvdata/iso-2022-cn.c: Likewise.
6283         * iconvdata/iso-2022-jp.c: Likewise.
6284         * iconvdata/iso-2022-kr.c: Likewise.
6285         * iconvdata/iso646.c: Likewise.
6286         * iconvdata/iso8859-1.c: Likewise.
6287         * iconvdata/iso_6937-2.c: Likewise.
6288         * iconvdata/iso_6937.c: Likewise.
6289         * iconvdata/johab.c: Likewise.
6290         * iconvdata/sjis.c: Likewise.
6291         * iconvdata/t.61.c: Likewise.
6292         * iconvdata/uhc.c: Likewise.
6293         * iconvdata/unicode.c: Likewise.
6294         * iconvdata/utf-16.c: Likewise.
6295
6296 2000-06-15  Greg McGary  <greg@mcgary.org>
6297
6298         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6299         of callnum assignment.  Tolerate callnum expressions containing
6300         parens.
6301
6302 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6303
6304         * login/Makefile (utmpd): Remove rule to build utmpd.
6305
6306         * csu/Versions: Move libgcc frame handling functions from here...
6307         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6308         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6309         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6310         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6311         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6312         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6313         New file.
6314         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6315
6316         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6317
6318         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6319
6320 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6321
6322         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6323         compatibility.
6324         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6325         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6326         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6327         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6328
6329 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6330
6331         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6332         defined, terminate quotes and read them after the comment char.
6333         * configure.in (HAVE_SECTION_QUOTES): Test whether
6334         __attribute__((section ("x"))) puts quotes around x or not.
6335         * config.h.in (HAVE_SECTION_QUOTES): Add.
6336         * configure: Rebuilt.
6337
6338 2000-06-14  Andreas Jaeger  <aj@suse.de>
6339
6340         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6341         depending on the configure option --sysconfdir.
6342         Closes PR libc/1762.
6343         Patch by Andreas Schwab <schwab@suse.de>.
6344
6345         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6346         entry point.
6347         Reported by Jim Pick <jim@jimpick.com>.
6348
6349 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6350
6351         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6352         crashing the application.  Emit some simple error message.
6353         Reported by mju@panasas.com [PR libc/1769].
6354
6355 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6356
6357         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6358
6359         * crypt/Makefile (distribute): Add md5.h.
6360
6361         * Makefile (distribute): Add include/shlib-compat.h.
6362
6363         * Make-dist: Search for tests also in sysdeps hierachy.
6364
6365         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6366         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6367
6368         * sysdeps/sparc/Subdirs: New file.
6369
6370         * locale/Makefile (distribute): Add weightwc.h and
6371         programs/localedef.h.
6372
6373         * time/Makefile (distribute): Add datemsk.
6374
6375         * sysdeps/ia64/Dist: Add softpipe.h.
6376
6377         * sysdeps/unix/sysv/aix/Dist: New file.
6378
6379         * posix/setpgrp.c: Moved to...
6380         * sysdeps/generic/setpgrp.c: ...here.  New file.
6381         * io/mknod.c: Moved to...
6382         * sysdeps/generic/mknod.c: ...here.  New file.
6383
6384         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6385
6386         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6387
6388         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6389
6390         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6391         gprsave0.S, gprrest1.S, and gprrest0.S.
6392
6393         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6394
6395         * posix/Makefile (routines): Add spawnattr_getsigmask,
6396         spawnattr_getschedpolicy, spawnattr_getschedparam,
6397         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6398         spawnattr_setschedparam.
6399         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6400         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6401         posix_spawnattr_setschedparam.
6402
6403         * posix/spawnattr_setschedparam.c: Fix typo.
6404
6405         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6406         Correct typo.
6407
6408         * login/programs/utmpd.c: Removed.
6409         * login/programs/utmpd.h: Removed.
6410         * login/programs/utmpd-private.h: Removed.
6411
6412         * Makefile (distribute): Add include/db_185.h and include/db.h.
6413
6414         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6415         iso-ir-165.h.
6416
6417         * elf/Makefile (distribute): Add missing files.
6418
6419         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6420         * elf/eval.c: Moved to...
6421         * dlfcn/eval.c: ...here.  New file.
6422
6423         * Makefile (distribute): Also distribute ChangeLog.1?.
6424
6425         * Make-dist (+tsrcs): Remove .args handling here as well.
6426
6427         * rt/Makefile (tests): Add tst-timer.
6428         * sysdeps/generic/tst-timer.c: New file.
6429
6430         * Makerules (sources): Don't add BP sources here.
6431
6432         * login/Makefile (distribute): Remove xtmp.h.
6433
6434         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6435         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6436
6437 2000-06-13  Andreas Jaeger  <aj@suse.de>
6438
6439         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6440         Patch by Ralf Baechle <ralf@gnu.org>.
6441
6442 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6443
6444         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6445         for mincore syscall.
6446
6447         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6448         __BOUNDED_POINTERS__ is not defined.
6449
6450 2000-06-07  Greg McGary  <greg@mcgary.org>
6451
6452         * sysdeps/generic/bp-sym.h: New file.
6453         * sysdeps/generic/bp-start.h: New file.
6454         * sysdeps/i386/elf/start.S: Designate BP symbols.
6455         * sysdeps/generic/libc-start.c: Wrap bounds around
6456         argv & envp and each of their string members.
6457
6458 2000-06-07  Greg McGary  <greg@mcgary.org>
6459
6460         * sysdeps/unix/make-syscalls.sh: Add comments to
6461         output that aid debugging & comprehension.
6462         Map simple syscall signatures to number of args.
6463         Generate BP syscall thunk definitions.
6464         * sysdeps/generic/bp-thunks.h: New file.
6465         * sysdeps/unix/syscalls.list: Replace arg-count with
6466         simple return+arg signature.
6467         * sysdeps/unix/common/syscalls.list: Likewise.
6468         * sysdeps/unix/inet/syscalls.list: Likewise.
6469         * sysdeps/unix/mman/syscalls.list: Likewise.
6470         * sysdeps/unix/sysv/syscalls.list: Likewise.
6471         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6472         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6473
6474 2000-06-07  Greg McGary  <greg@mcgary.org>
6475
6476         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6477         for all files *.[cS].
6478         (CFLAGS-.ob): Don't optimize sibling calls.
6479         (bppfx): New variable.
6480         * Makerules (elide-bp-thunks): New variable.
6481         (elide-routines.*): Elide BP-* files for all but *.ob.
6482         (sources): Include bp-thunks.
6483
6484 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6485
6486         * iconv/gconv_simple.c: Remove unnecessary prototype.
6487
6488         * iconv/gconv_trans.c: Pretty print.
6489
6490         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6491
6492         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6493         minimal kernel versions.  Add information about IA-64 kernel.
6494
6495         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6496         specific minimal supported kernel versions to be specified.
6497
6498         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6499         step data structure.
6500         * wcsmbs/btowc.c: Likewise.
6501         * wcsmbs/mbrtowc.c: Likewise.
6502         * wcsmbs/mbsnrtowcs.c: Likewise.
6503         * wcsmbs/mbsrtowcs.c: Likewise.
6504         * wcsmbs/wcrtomb.c: Likewise.
6505         * wcsmbs/wcsnrtombs.c: Likewise.
6506         * wcsmbs/wcsrtombs.c: Likewise.
6507         * wcsmbs/wctob.c: Likewise.
6508
6509         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6510         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6511
6512         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6513
6514         * misc/sys/cdefs.h: Remove one more __P.
6515
6516         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6517         Reported by HJ Lu.
6518
6519         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6520         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6521         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6522
6523 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6524             Yutaka Niibe  <gniibe@chroot.org>
6525
6526         * configure.in: Add machine sh3, sh4.
6527         * elf/elf.h: Add SH specific declarations of relocations.
6528         * shlib-versions: Add sh*-*-linux* cases.
6529
6530 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6531
6532         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6533         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6534         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6535         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6536         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6537         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6538
6539         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6540         instead of KERNEL_MATH_EMULATION.
6541         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6542         KERNEL_MATH_EMULATION.
6543
6544         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6545         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6546         * sysdeps/sh/dl-machine.h: ...here.  New file.
6547         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6548         and include generic SH version.
6549         * sysdeps/sh/sh3/bits/endian.h: Move to...
6550         * sysdeps/sh/bits/endian.h: ...here.  New file.
6551         * sysdeps/sh/sh4/bits/endian.h: Removed.
6552         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6553         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6554         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6555
6556         * include/libc-symbols.h (link_warning): Work around a change in
6557         GAS which warns about changing section attributes.
6558         Proposed by Nick Clifton <nickc@redhat.com>.
6559
6560 2000-06-12  H.J. Lu  <hjl@gnu.org>
6561
6562         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6563
6564 2000-06-11  H.J. Lu  <hjl@gnu.org>
6565
6566         * sysdeps/i386/fpu/Versions: New file.
6567
6568 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6569
6570         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6571         parameters.
6572         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6573         exists.
6574
6575 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6576
6577         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6578         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6579         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6580
6581         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6582         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6583         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6584
6585 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6586             Yutaka Niibe  <gniibe@chroot.org>
6587
6588         * sysdeps/sh/Dist: New file.
6589         * sysdeps/sh/Implies: New file.
6590         * sysdeps/sh/elf/initfini.c: New file.
6591         * sysdeps/sh/gmp-mparam.h: New file.
6592         * sysdeps/sh/init-first.c: New file.
6593         * sysdeps/sh/machine-gmon.h: New file.
6594         * sysdeps/sh/memcpy.S: New file.
6595         * sysdeps/sh/memprof.h: New file.
6596         * sysdeps/sh/memset.S: New file.
6597         * sysdeps/sh/sh3/__longjmp.S: New file.
6598         * sysdeps/sh/sh3/bits/endian.h: New file.
6599         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6600         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6601         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6602         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6603         * sysdeps/sh/sh3/dl-machine.h: New file.
6604         * sysdeps/sh/sh3/setjmp.S: New file.
6605         * sysdeps/sh/sh4/__longjmp.S: New file.
6606         * sysdeps/sh/sh4/bits/endian.h: New file.
6607         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6608         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6609         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6610         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6611         * sysdeps/sh/sh4/dl-machine.h: New file.
6612         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6613         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6614         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6615         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6616         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6617         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6618         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6619         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6620         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6621         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6622         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6623         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6624         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6625         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6626         * sysdeps/sh/sh4/setjmp.S: New file.
6627         * sysdeps/sh/elf/start.S: New file.
6628         * sysdeps/sh/sys/ucontext.h: New file.
6629         * sysdeps/sh/strlen.S: New file.
6630         * sysdeps/sh/sysdep.h: New file.
6631         * sysdeps/unix/sh/sysdep.S: New file.
6632         * sysdeps/unix/sh/sysdep.h: New file.
6633         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6634         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6635         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6636         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6637         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6638         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6639         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6640         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6641         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6642         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6643         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6644         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6645         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6646         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6647         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6648         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6649         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6650         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6651         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6652         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6653         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6654         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6655         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6656         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6657         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6658         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6659         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6660         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6661         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6662         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6663         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6664         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6665         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6666         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6667         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6668         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6669         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6670         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6671         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6672         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6673         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6674         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6675         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6676         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6677         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6678         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6679         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6680         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6681         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6682         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6683
6684 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6685
6686         * Rules (%.out): Define GCONV_PATH in the environment.
6687         * assert/Depend: New file.
6688         * iconvdata/Depend: New file.
6689         * intl/Depend: New file.
6690         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6691         * intl/tst-gettext.sh: Likewise.
6692         * iconv/Makefile (routines): Add gconv_trans.
6693         * iconv/gconv_trans.c: New file.
6694         * iconv/gconv.h (struct __gconv_trans_data): New type.
6695         (__gconv_fct): New parameter with starting position in output buffer.
6696         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6697         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6698         (struct __gconv_step): Add new member __trans.
6699         * iconv/gconv_int.h: Pretty print prototypes.
6700         (gconv_transliterate): New prototype.
6701         (__BUILTIN_TRANS): Update for new conversion function interface.
6702         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6703         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6704         in names, find appropriate function, and install in the conversion
6705         steps it can be used.
6706         * iconv/skeleton.c: Add additional parameter for beginning of output
6707         buffer.  Change calls of downstream functions.
6708         * iconv/loop.c: Change loop function interface completely.  Pass in
6709         step and step_data structure.  Remove optimization for BODY with
6710         NEED_LENGTH_TEST == 0.
6711         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6712         appropriate error handling code to use transliteration steps.  Remove
6713         optimization for BODY with NEED_LENGTH_TEST == 0.
6714         * iconvdata/8bit-gap.c: Likewise.
6715         * iconvdata/8bit-generic.c: Likewise.
6716         * iconvdata/ansi_x3.110.c: Likewise.
6717         * iconvdata/big5.c: Likewise.
6718         * iconvdata/big5hkscs.c: Likewise.
6719         * iconvdata/euc-cn.c: Likewise.
6720         * iconvdata/euc-jp.c: Likewise.
6721         * iconvdata/euc-kr.c: Likewise.
6722         * iconvdata/euc-tw.c: Likewise.
6723         * iconvdata/gbgbk.c: Likewise.
6724         * iconvdata/gbk.c: Likewise.
6725         * iconvdata/iso-2022-cn.c: Likewise.
6726         * iconvdata/iso-2022-jp.c: Likewise.
6727         * iconvdata/iso-2022-kr.c: Likewise.
6728         * iconvdata/iso646.c: Likewise.
6729         * iconvdata/iso8859-1.c: Likewise.
6730         * iconvdata/iso_6937-2.c: Likewise.
6731         * iconvdata/iso_6937.c: Likewise.
6732         * iconvdata/johab.c: Likewise.
6733         * iconvdata/sjis.c: Likewise.
6734         * iconvdata/t.61.c: Likewise.
6735         * iconvdata/uhc.c: Likewise.
6736         * iconvdata/unicode.c: Likewise.
6737         * iconvdata/utf-16.c: Likewise.
6738         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6739         DL_CALL_FCT.
6740         * wcsmbs/btowc.c: Likewise.
6741         * wcsmbs/mbrtowc.c: Likewise.
6742         * wcsmbs/mbsnrtowcs.c: Likewise.
6743         * wcsmbs/mbsrtowcs.c: Likewise.
6744         * wcsmbs/wcrtomb.c: Likewise.
6745         * wcsmbs/wcsnrtombs.c: Likewise.
6746         * wcsmbs/wcsrtombs.c: Likewise.
6747         * wcsmbs/wctob.c: Likewise.
6748
6749 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6750
6751         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6752         other header files.  Mention about 128-byte cache line sizes.
6753         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6754         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6755         for current calling sequence.
6756         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6757
6758         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6759         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6760
6761         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6762         and setrlimit syscalls for backwards compatibility.
6763
6764 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6765
6766         * iconv/skeleton.c:  Rename converted written to correcter name
6767         irreversible.
6768         * iconv/gconv.c: Rename converted variable to correcter name
6769         irreversible.
6770         * iconv/gconv_int.h: Likewise.
6771         * iconv/gconv_simple.c: Likewise.
6772         * iconv/iconv.c: Likewise.
6773         * iconv/loop.c: Likewise.
6774         * iconvdata/8bit-gap.c: Likewise.
6775         * iconvdata/8bit-generic.c: Likewise.
6776         * iconvdata/ansi_x3.110.c: Likewise.
6777         * iconvdata/big5.c: Likewise.
6778         * iconvdata/big5hkscs.c: Likewise.
6779         * iconvdata/euc-cn.c: Likewise.
6780         * iconvdata/euc-jp.c: Likewise.
6781         * iconvdata/euc-kr.c: Likewise.
6782         * iconvdata/gbgbk.c: Likewise.
6783         * iconvdata/gbk.c: Likewise.
6784         * iconvdata/iso-2022-cn.c: Likewise.
6785         * iconvdata/iso-2022-jp.c: Likewise.
6786         * iconvdata/iso-2022-kr.c: Likewise.
6787         * iconvdata/iso646.c: Likewise.
6788         * iconvdata/iso8859-1.c: Likewise.
6789         * iconvdata/iso_6937-2.c: Likewise.
6790         * iconvdata/iso_6937.c: Likewise.
6791         * iconvdata/johab.c: Likewise.
6792         * iconvdata/sjis.c: Likewise.
6793         * iconvdata/t.61.c: Likewise.
6794         * iconvdata/uhc.c: Likewise.
6795         * iconvdata/unicode.c: Likewise.
6796         * iconvdata/utf-16.c: Likewise.
6797
6798         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6799         __cmsg_data field with __extension__.
6800
6801 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6802
6803         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6804
6805 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6806
6807         * iconv/gconv_simple.c: Fix various small bugs in several
6808         functions.
6809
6810         * iconv/loop.c: Fix comment.
6811
6812 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6813
6814         * elf/link.h: Remove libc internal declarations.
6815         * include/link.h: Move them here.
6816
6817 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6818
6819         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6820         Patch by Dan Pop <Dan.Pop@cern.ch>.
6821
6822         Rewrite error message handling.
6823         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6824         _dl_catch_error.
6825         * elf/dl-error (struct catch): Add objname member.
6826         (_dl_signal_error): Take new parameter with object name.  When
6827         passing message on simply store object name and duplicate error
6828         message.
6829         (_dl_catch_error): Take new parameter.  Store object name in the
6830         place pointed to.
6831         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6832         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6833         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6834         (dlerror): Add objname to asprintf() parameters.
6835         (_dl_error_run): Pass new parameter to _dl_catch_error.
6836         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6837         * elf/dl-open.c (_dl_open): Likewise.
6838         * elf/rtld.c (dl_main): Likewise.
6839         * elf/dl-close.c: Mark error messages with N_().
6840         * elf/dl-deps.c: Likewise.
6841         * elf/dl-error.c: Likewise.
6842         * elf/dl-load.c: Likewise.
6843         * elf/dl-open.c: Likewise.
6844         * elf/dl-reloc.c: Likewise.
6845         * elf/dl-support.c: Likewise.
6846         * elf/dl-sym.c: Likewise.
6847         * elf/dl-version.c: Likewise.
6848         * elf/dl-lookup.c: Add comments about problems with error message
6849         translations.
6850         * elf/dl-reloc.c: Likewise.
6851         * elf/dl-version.c: Likewise.
6852
6853 2000-06-09  H.J. Lu  <hjl@gnu.org>
6854
6855         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6856         after freeing it.
6857
6858         * dlfcn/Makefile (distribute): Add failtestmod.c.
6859         (tests): Add failtest.
6860         Add rules to build and run failtest.
6861         * dlfcn/failtest.c: New file.
6862         * dlfcn/failtestmod.c: New file.
6863
6864 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6865
6866         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6867         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6868         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6869         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6870         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6871
6872 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6873
6874         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6875         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6876
6877 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6878             Ulrich Drepper  <drepper@redhat.com>
6879
6880         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6881         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6882         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6883         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6884         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6885         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6886
6887 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6888
6889         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6890         to find correct mount point despite wrong information from the
6891         kernel.
6892
6893 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6894
6895         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6896         the address of a symbol so function pointers are handled properly.
6897
6898 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6899
6900         * sysdeps/i386/Dist: Add bp-asm.h.
6901
6902         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6903         defaultdir variable instead of "/var/shm" everywhere.
6904         (defaultdir): Change to /dev/shm/.
6905
6906 2000-06-08  Greg McGary  <greg@mcgary.org>
6907
6908         * sysdeps/i386/bp-asm.h: New file.
6909         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6910         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6911         frame-pointer chain when debugging.
6912         * sysdeps/i386/add_n.S: Likewise.
6913         * sysdeps/i386/addmul_1.S: Likewise.
6914         * sysdeps/i386/lshift.S: Likewise.
6915         * sysdeps/i386/memchr.S: Likewise.
6916         * sysdeps/i386/memcmp.S: Likewise.
6917         * sysdeps/i386/mul_1.S: Likewise.
6918         * sysdeps/i386/rawmemchr.S: Likewise.
6919         * sysdeps/i386/rshift.S: Likewise.
6920         * sysdeps/i386/stpcpy.S: Likewise.
6921         * sysdeps/i386/stpncpy.S: Likewise.
6922         * sysdeps/i386/strchr.S: Likewise.
6923         * sysdeps/i386/strchrnul.S: Likewise.
6924         * sysdeps/i386/strcspn.S: Likewise.
6925         * sysdeps/i386/strpbrk.S: Likewise.
6926         * sysdeps/i386/strrchr.S: Likewise.
6927         * sysdeps/i386/strspn.S: Likewise.
6928         * sysdeps/i386/strtok.S: Likewise.
6929         * sysdeps/i386/sub_n.S: Likewise.
6930         * sysdeps/i386/submul_1.S: Likewise.
6931         * sysdeps/i386/elf/setjmp.S: Likewise.
6932         * sysdeps/i386/i486/strcat.S: Likewise.
6933         * sysdeps/i386/i486/strlen.S: Likewise.
6934         * sysdeps/i386/i586/add_n.S: Likewise.
6935         * sysdeps/i386/i586/lshift.S: Likewise.
6936         * sysdeps/i386/i586/memcpy.S: Likewise.
6937         * sysdeps/i386/i586/memset.S: Likewise.
6938         * sysdeps/i386/i586/rshift.S: Likewise.
6939         * sysdeps/i386/i586/strchr.S: Likewise.
6940         * sysdeps/i386/i586/strcpy.S: Likewise.
6941         * sysdeps/i386/i586/strlen.S: Likewise.
6942         * sysdeps/i386/i586/sub_n.S: Likewise.
6943         * sysdeps/i386/i686/add_n.S: Likewise.
6944         * sysdeps/i386/i686/memcpy.S: Likewise.
6945         * sysdeps/i386/i686/mempcpy.S: Likewise.
6946         * sysdeps/i386/i686/memset.S: Likewise.
6947         * sysdeps/i386/i686/strcmp.S: Likewise.
6948
6949 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6950
6951         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6952
6953         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6954         256 and don't use OPEN_MAX.
6955
6956         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6957         use it instead of LINK_MAX.
6958         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6959
6960 2000-06-08  Andreas Jaeger  <aj@suse.de>
6961
6962         * libio/genops.c (_IO_list_lock): Only compile body if we're
6963         thread safe.
6964         (_IO_list_unlock): Likewise.
6965         (_IO_list_resetlock): Likewise.
6966
6967 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6968
6969         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6970         unless user defined it.
6971
6972         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6973         if not defined by the user.
6974
6975         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6976         * libio/iofwrite.c (_IO_fwrite): Likewise.
6977
6978         * time/time.h: Add missing __THROW for clock_getcpuclockid
6979         prototype.
6980
6981         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6982         * include/elf.h: Include also <dl-dtprocnum.h>.
6983         * elf/dl-deps.c: Likewise.
6984         * elf/dl-lookup.c: Likewise.
6985         * elf/dl-runtime.c: Likewise.
6986         * elf/dl-version.c: Likewise.
6987         * elf/do-rel.h: Likewise.
6988         * elf/dynamic-link.h: Likewise.
6989         * elf/link.h: Likewise.
6990         * elf/rtld.c: Likewise.
6991         * sysdeps/generic/dl-dtprocnum.h: New file.
6992         * sysdeps/ia64/dl-dtprocnum.h: New file.
6993         * sysdeps/mips/dl-dtprocnum.h: New file.
6994         * sysdeps/sparc/dl-dtprocnum.h: New file.
6995
6996         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6997
6998         * elf/do-lookup.h: Add some __builtin_expect.
6999
7000         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
7001
7002         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
7003         (_dl_dynamic_weak): New variable.
7004         * elf/dl-support.c: Likewise.
7005         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
7006         * elf/do-lookup.h: If we find a weak definition treat it like a
7007         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
7008         case treat it like before.
7009
7010         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
7011         is in main program.
7012         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
7013
7014         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
7015         using l_map_start and l_map_end.
7016
7017         * elf/dl-version.c: Add __builtin_expect in many places.
7018
7019         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
7020         Update.
7021
7022 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
7023
7024         Lock for stdio stream list becomes global, for use in LinuxThreads.
7025
7026         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
7027         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
7028         _IO_list_resetlock): New interface for iterating global list of
7029         streams without accessing the _IO_list_all global variable,
7030         and for manipulating the lock which protects this list.
7031         * libio/libioP.h: Likewise.
7032         * libio/Version: Add entries for the new functions.
7033
7034         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
7035         pointer to _IO_FILE.
7036
7037 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7038
7039         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
7040         BIT() must actually be BITw().
7041
7042         * locale/programs/ld-ctype.c: Handle SP and space consistently.
7043
7044         * locale/programs/charmap.c: Allow string arguments for
7045         code_set_name and repertoiremap.
7046
7047 2000-06-07  Andreas Jaeger  <aj@suse.de>
7048
7049         * elf/Makefile: Build ldconfig only when building shared libraries.
7050
7051 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
7052
7053         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
7054         __USE_ISOC99.
7055         (fdimf, __fdim, fdim): Likewise.
7056
7057 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
7058
7059         * locale/findlocale.c: Add __builtin_expect in many places.
7060         * locale/loadlocale.c: Likewise.
7061
7062 2000-06-06  Greg McGary  <greg@mcgary.org>
7063
7064         * sysdeps/mips/elf/start.S: Trim redundant code.
7065
7066         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
7067         Use C comments throughout.  Line up operands column with tabs.
7068         * sysdeps/powerpc/strchr.S: Likewise.
7069         * sysdeps/powerpc/strcmp.S: Likewise.
7070         * sysdeps/powerpc/strcpy.S: Likewise.
7071         * sysdeps/powerpc/strlen.S: Likewise.
7072
7073         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
7074         Get low part of &__curbrk with @l.
7075
7076 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
7077
7078         * iconvdata/utf-16.c: Add __builtin_expect in many places.
7079         * iconvdata/unicode.c: Likewise.
7080         * iconvdata/uhc.c: Likewise.
7081         * iconvdata/t.61.c: Likewise.
7082         * iconvdata/sjis.c: Likewise.
7083         * iconvdata/johab.c: Likewise.
7084         * iconvdata/iso_6937.c: Likewise.
7085         * iconvdata/iso_6937-2.c: Likewise.
7086         * iconvdata/iso8859-1.c: Likewise.
7087         * iconvdata/iso646.c: Likewise.
7088         * iconvdata/iso-2022-kr.c: Likewise.
7089         * iconvdata/iso-2022-jp.c: Likewise.
7090         * iconvdata/iso-2022-cn.c: Likewise.
7091         * iconvdata/gbgbk.c: Likewise.
7092         * iconvdata/gbk.c: Likewise.
7093         * iconvdata/euc-kr.c: Likewise.
7094         * iconvdata/euc-jp.c: Likewise.
7095         * iconvdata/euc-cn.c: Likewise.
7096
7097 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7098
7099         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7100         * iconvdata/big5.c: Likewise.
7101         * iconvdata/ansi_x3.110.c: Likewise.
7102         * iconvdata/8bit-generic.c: Likewise.
7103         * iconvdata/8bit-gap.c: Likewise.
7104         * iconv/loop.c: Likewise.
7105         * iconv/gconv_db.c: Likewise.
7106         * iconv/gconv_dl.c: Likewise.
7107         * iconv/gconv_simple.c: Likewise.
7108         * iconv/skeleton.c: Likewise.
7109
7110         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7111         (struct __gconv_step_data): Rename __is_last to __flags.
7112         * iconv/gconv_close.c: Change all uses of __is_last.
7113         * iconv/skeleton.c: Likewise.
7114         * iconvdata/iso-2022-cn.c: Likewise.
7115         * iconvdata/iso-2022-jp.c: Likewise.
7116         * iconvdata/iso-2022-kr.c: Likewise.
7117         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7118         Recognize IGNORE error handling, set flag, and remove from name.
7119         * iconv/loop.c (ignore_errors_p): Define.
7120         Add flags parameter to both functions.
7121         * iconv/skeleton.c: Pass flags to all conversion functions.
7122         * iconv/gconv_simple.c: Add flags parameter to all functions.
7123         Don't return error for invald error if ignore flag is set.
7124         (ucs4_internal_loop_single): Add missing pointer increment.
7125         (internal_ucs4le_loop_single): Likewise.
7126         * iconv/iconv_prog.c: Implement handling of -c parameter.
7127         * iconvdata/8bit-gap.c: Don't return error for invald error if
7128         ignore flag is set.
7129         * iconvdata/8bit-generic.c: Likewise.
7130         * iconvdata/ansi_x3.110.c: Likewise.
7131         * iconvdata/big5.c: Likewise.
7132         * iconvdata/big5hkscs.c: Likewise.
7133         * iconvdata/euc-cn.c: Likewise.
7134         * iconvdata/euc-jp.c: Likewise.
7135         * iconvdata/euc-kr.c: Likewise.
7136         * iconvdata/gbgbk.c: Likewise.
7137         * iconvdata/gbk.c: Likewise.
7138         * iconvdata/iso-2022-cn.c: Likewise.
7139         * iconvdata/iso-2022-jp.c: Likewise.
7140         * iconvdata/iso-2022-kr.c: Likewise.
7141         * iconvdata/iso646.c: Likewise.
7142         * iconvdata/iso8859-1.c: Likewise.
7143         * iconvdata/iso_6937-2.c: Likewise.
7144         * iconvdata/iso_6937.c: Likewise.
7145         * iconvdata/johab.c: Likewise.
7146         * iconvdata/sjis.c: Likewise.
7147         * iconvdata/t.61.c: Likewise.
7148         * iconvdata/uhc.c: Likewise.
7149         * iconvdata/unicode.c: Likewise.
7150         * iconvdata/utf-16.c: Likewise.
7151         * libio/fileops.c: Likewise.
7152         * libio/iofwide.c: Likewise.
7153         * wcsmbs/btowc.c: Likewise.
7154         * wcsmbs/mbrtowc.c: Likewise.
7155         * wcsmbs/mbsnrtowcs.c: Likewise.
7156         * wcsmbs/mbsrtowcs.c: Likewise.
7157         * wcsmbs/wcrtomb.c: Likewise.
7158         * wcsmbs/wcsnrtombs.c: Likewise.
7159         * wcsmbs/wcsrtombs.c: Likewise.
7160         * wcsmbs/wctob.c: Likewise.
7161
7162         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7163         an error.
7164
7165 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7166
7167         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7168         counter for the object we are releasing, just decrement it.
7169         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7170
7171 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7172
7173         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7174         if -ffast-math.
7175
7176 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7177
7178         * iconvdata/big5hkscs.c: New file.
7179         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7180
7181         * iconvdata/gconv-modules: Add entry for new module.
7182         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7183         (distribute): Add big5hkscs.c.
7184
7185 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7186
7187         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7188         inlines to match prototypes in mathcalls.h.
7189         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7190         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7191         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7192         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7193
7194 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7195
7196         * elf/elf.h (SHT_SUNW_move): Define.
7197
7198         * elf/elf.h: Add more Solaris compatiblity definitions.
7199
7200 2000-06-03  Andreas Jaeger  <aj@suse.de>
7201
7202         * sysdeps/powerpc/dl-start.S: Close open comment.
7203
7204 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7205
7206         * inet/Versions: Fix typo in rresvport_af export.
7207
7208 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7209
7210         * math/tgmath.h: Pretty print.
7211
7212 2000-06-02  Andreas Jaeger  <aj@suse.de>
7213
7214         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7215         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7216
7217 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7218
7219         * elf/rtld.c (process_envvars): Test for = after variable name.
7220
7221 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7222
7223         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7224         have extra call to __gmon_start__, use the pointer we already have.
7225
7226         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7227         shifting.
7228
7229         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7230         binutils.  gas now emits a jump through the PLT instead of a
7231         relative jump if the jump target is an exported symbol.
7232
7233 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7234
7235         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7236
7237 2000-05-31  Andreas Jaeger  <aj@suse.de>
7238
7239         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7240         gregset_t.
7241
7242         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7243         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7244
7245         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7246         syscall.
7247         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7248
7249 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7250
7251         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7252
7253         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7254         * locale/localeconv.c: Make function versioned (with same definition).
7255
7256         * elf/Makefile (modules-names): Strip before using it.
7257
7258 2000-05-30  Andreas Jaeger  <aj@suse.de>
7259
7260         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7261         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7262         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7263         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7264         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7265         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7266
7267 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7268
7269         * Makefile: Add GNU make magic.
7270
7271         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7272         Removed.
7273         * inet/rcmd.c: Remove __P.  Remove unused variables.
7274         (iruserfopen): Make first parameter const.
7275         (ruserok_sa): Return result of ruserok2_sa.
7276         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7277         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7278         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7279         (ruserpass): Check results of memory allocation.
7280         * include/netdb.h: Add prototype for ruserpass.
7281
7282 2000-05-29  Andreas Jaeger  <aj@suse.de>
7283
7284         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7285         for all platforms.
7286
7287 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7288
7289         * inet/rcmd.c (rresvport_af): Use correct port number.
7290
7291 2000-05-26  Andreas Schwab  <schwab@suse.de>
7292
7293         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7294         entries in all-sonames.
7295         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7296         preserving the old name if different for compatibility.
7297
7298 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7299
7300         * posix/Makefile (tests): Add tst-spawn.
7301         (tst-spawn-ARGS): New variable.
7302         * posix/tst-spawn.c: New file.
7303
7304         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7305         * posix/spawn_faction_adddup2.c: Likewise.
7306         * posix/spawn_faction_addopen.c: Likewise.
7307         * posix/spawni.c: Correctly test for success of dup2 calls.
7308
7309         * posix/tst-preadwrite.c: Check success of malloc call.
7310
7311 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7312
7313         * posix/Makefile (tests): Add tst-exec.
7314         (tst-exec-ARGS): New variable.
7315         * posix/tst-exec.c: New file.
7316
7317         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7318
7319 2000-05-04  Andreas Jaeger  <aj@suse.de>
7320
7321         * string/string.h: Remove __strdup prototype, it's not needed in
7322         this file anymore.
7323
7324 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7325
7326         * posix/Makefile (tests): Add tst-fork.
7327         * posix/tst-fork.c: New file.
7328
7329         * resolv/inet_pton.c: Loose __P.
7330
7331 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7332
7333         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7334         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7335         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7336         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7337         _IO_CHECK_WIDE fails.
7338
7339 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7340
7341         * po/da.po: New file.
7342
7343         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7344         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7345
7346         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7347         (Other iconv Implementations): Fix typo.
7348         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7349
7350 2000-05-27  Andreas Jaeger  <aj@suse.de>
7351
7352         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7353         normal version now.
7354         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7355         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7356         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7357         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7358         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7359         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7360
7361         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7362         endianness to decide how to pass arguments.
7363         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7364
7365         * elf/vismain.c: Use test-skeleton interface.
7366         (TEST_FUNCTION): New macro.
7367         (do_test): Renamed from main.
7368
7369 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7370
7371         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7372         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7373
7374         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7375         handling of AI_V4MAPPED flag.
7376
7377         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7378         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7379         perform lookup for T_A type and tell getanswer_r to convert the
7380         result with new argument.
7381         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7382         Don't convert addresses from IPv4 to IPv6 here.
7383         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7384         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7385         IPv4 mapping has to be done.  Perform mappings if required by the
7386         caller and not if RES_USE_INET6 bit in _res.options is set.
7387         Add several __builtin_expect.
7388
7389 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7390
7391         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7392
7393         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7394         NULL.
7395
7396         * posix/tst-preadwrite.c: Allow parallel execution of
7397         tst-preadwrite and tst-preadwrite64.
7398
7399         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7400         * posix/tst-truncate.c: New file.
7401         * posix/tst-truncate64.c: New file.
7402
7403         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7404         was switched.
7405
7406         * posix/Makefile (tests): Add tst-preadwrite64.
7407         * posix/tst-preadwrite.c: Alloc file being used also for testing
7408         pread64 and pwrite64.
7409         * posix/tst-preadwrite64.c: New file.
7410
7411 2000-05-26  Andreas Jaeger  <aj@suse.de>
7412
7413         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7414         of arguments dependend on endianness.
7415         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7416
7417         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7418         normal version now.
7419         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7420         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7421         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7422         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7423
7424         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7425         endianness to check how to pass argument.
7426         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7427
7428         * elf/ldconfig.h: Update parameter list for process_elf_file.
7429
7430         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7431         Add parameter file_length and pass it ot process_elf*file.
7432
7433         * sysdeps/generic/readelflib.c (check_ptr): New.
7434         (process_elf_file): Use check_ptr to check all accesses to the
7435         mmapped file. Add parameter file_length.
7436
7437         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7438         library names.
7439
7440         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7441         Closes PR libc/1573, reported by Bradley White
7442         <bww@laurelnetworks.com>.
7443
7444 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7445
7446         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7447         __FAST_MATH__ is defined.
7448
7449 2000-05-22  Andreas Jaeger  <aj@suse.de>
7450
7451         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7452         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7453
7454         * manual/math.texi (FP Function Optimizations): Document gcc
7455         -ffast-math behaviour with mathinlines.
7456
7457         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7458         functions unless -ffast-math is given to gcc.
7459
7460 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7461
7462         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7463         __sincosl): Guard with __USE_GNU.
7464
7465 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7466
7467         * csu/Makefile (routines): Add check_fds.
7468         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7469         binaries.  Add various __builtin_expect.
7470         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7471         * sysdeps/generic/check_fds.c: ...here.  New file.
7472
7473         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7474         binaries if file /etc/suid-debug is available.
7475
7476         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7477         and wcseqorder members.
7478         (struct locale_collate_t): Likewise.
7479         (collate_finish): Assign collation sequence value to each character.
7480         Create tables for output.
7481         (collate_output): Write out tables with collation sequence information.
7482         * locale/C-collate.c: Provide C locale data for collation sequence
7483         table.
7484         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7485         _NL_COLLATE_COLLSEQWC.
7486         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7487         _NL_COLLATE_COLLSEQWC.
7488         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7489         include fnmatch_loop.c.
7490         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7491         character is matched by range expression.  Use collation sequence
7492         table.  Outside glibc fall back on simple character value comparison.
7493
7494 2000-05-24  Andreas Jaeger  <aj@suse.de>
7495
7496         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7497         words.
7498
7499         * intl/Makefile: Run gettext-test only if msgfmt is available.
7500
7501         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7502         Define it for newer kernels.
7503
7504 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7505
7506         * elf/dl-sym.c: Minor cleanups.
7507
7508         * configure.in: Add test for .protected.
7509         * config.make.in: Add have-protected variable.
7510         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7511         (tests-vis-yes): Add vismain.
7512         (modules-names): Add $(modules-vis-$(have-protected)).
7513         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7514         Add rules to generate and run vismain.
7515         * elf/vismain.c: New file.
7516         * elf/vismod1.c: New file.
7517         * elf/vismod2.c: New file.
7518         * elf/vismod3.c: New file.
7519
7520 2000-05-23  Andreas Jaeger  <aj@suse.de>
7521
7522         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7523
7524         * manual/search.texi (Array Sort Function): Document that qsort is
7525         not necessarily in-place.
7526
7527         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7528         Closes PR libc/1731.
7529
7530         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7531         * dirent/scandir64.c: Likewise.
7532         * pwd/getpw.c: Likewise.
7533         * stdlib/bsearch.c (bsearch): Likewise.
7534         * stdlib/tst-strtoll.c: Likewise.
7535         * localedata/collate-test.c: Likewise.
7536         * localedata/xfrm-test.c: Likewise.
7537         * posix/bsd-getpgrp.c: Likewise.
7538         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7539         * sysdeps/generic/bits/siginfo.h: Likewise.
7540         * sysdeps/generic/bits/sockaddr.h: Likewise.
7541         * sysdeps/generic/sys/swap.h: Likewise.
7542         * sysdeps/generic/sys/sysinfo.h: Likewise.
7543         * sysdeps/generic/vfork.c: Likewise.
7544         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7545         * sysdeps/mach/hurd/fdopen.c: Likewise.
7546         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7547         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7548         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7549         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7550         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7551         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7552         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7553
7554         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7555         * shadow/lckpwdf.c: Likewise.
7556         * stdlib/tst-strtol.c: Likewise.
7557         * sysdeps/generic/tcsetattr.c: Likewise.
7558         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7559         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7560
7561 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7562
7563         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7564         free it and set to (void *) -1.
7565
7566 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7567
7568         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7569         not the second character in the range.
7570         * stdio-common/tstscanf.c (main): Add testcase for the above.
7571         Reported by jik@kamens.brookline.ma.us.
7572
7573 2000-05-21  H.J. Lu  <hjl@gnu.org>
7574
7575         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7576         with noexec and noplt parameter.
7577         (do_lookup): Likewise.
7578
7579         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7580         do_lookup.  Support STV_PROTECTED.
7581         (_dl_lookup_symbol_skip): Likewise.
7582         (_dl_lookup_versioned_symbol): Likewise.
7583         (_dl_lookup_versioned_symbol_skip): Likewise.
7584
7585         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7586
7587         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7588
7589 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7590
7591         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7592         * sysdeps/i386/bits/huge_val.h: Likewise.
7593         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7594         * sysdeps/m68k/bits/huge_val.h: Likewise.
7595         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7596         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7597
7598 2000-05-22  Andreas Jaeger  <aj@suse.de>
7599
7600         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7601         change in iconv.h.
7602
7603 2000-05-19  Andreas Jaeger  <aj@suse.de>
7604
7605         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7606         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7607         breaks compilation without linuxthreads.
7608
7609 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7610
7611         * sysdeps/ia64/memccpy.S: New file.
7612         * sysdeps/ia64/memchr.S: New file.
7613         * sysdeps/ia64/memcmp.S: New file.
7614         * sysdeps/ia64/memcpy.S: New file.
7615         * sysdeps/ia64/memmove.S: New file.
7616         * sysdeps/ia64/memset.S: New file.
7617         * sysdeps/ia64/strcat.S: New file.
7618         * sysdeps/ia64/strchr.S: New file.
7619         * sysdeps/ia64/strcmp.S: New file.
7620         * sysdeps/ia64/strcpy.S: New file.
7621         * sysdeps/ia64/strlen.S: New file.
7622         * sysdeps/ia64/strncmp.S: New file.
7623         * sysdeps/ia64/strncpy.S: New file.
7624         * sysdeps/ia64/softpipe.h: New file.
7625         Patches by Dan Pop <Dan.Pop@cern.ch>.
7626
7627         * manual/memory.texi: Document memory handling functions (mlock,
7628         munlock, mlockall, munlockall, brk, and sbrk)
7629         * manual/time.texi: Document timespec and friends.
7630         * manual/conf.texi: Fix references.
7631         * manual/ctype.texi: Likewise.
7632         * manual/errno.texi: Likewise.
7633         * manual/intro.texi: Likewise.
7634         * manual/locale.texi: Likewise.
7635         * manual/sysinfo.texi: Likewise.
7636         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7637
7638 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7639
7640         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7641         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7642
7643 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7644
7645         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7646         dxfer_direction.
7647
7648 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7651         * locale/localeconv.c: Initialize new elements from ISO C99.
7652         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7653         new standard elements.
7654         * locale/categories.def: Adjust accordingly.
7655
7656         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7657         * iconv/iconv.c: Likewise.
7658         * conform/data/iconv.h-data: Likewise.
7659         * iconv/iconv_prog.c (process_block): Remove const from second
7660         parameter.
7661         (main): Remove const from addr definition.
7662         * manual/charset.texi (Generic Conversion Interface): Remove from
7663         inbuf parameter of iconv.
7664
7665         * intl/dcigettext.c: Fix typo in comment.
7666
7667 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7668
7669         * resolv/res_libc.c (_res): Initialize _sock to -1.
7670
7671 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7672
7673         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7674         (fopencookie@@GLIBC_2.2): New.
7675         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7676         (fopencookie@GLIBC_2.0): New.
7677         * libio/Versions: Add fopencookie to GLIBC_2.2.
7678
7679 2000-05-18  Andreas Jaeger  <aj@suse.de>
7680
7681         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7682         Closes PR libc/1731.
7683
7684         * manual/arith.texi (Parsing of Integers): Fix typo.
7685         Closes PR libc/1744, reported by blp@gnu.org.
7686
7687 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7688
7689         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7690         __extension__ to hexadecimal floating constant notation.
7691         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7692         Likewise.
7693         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7694         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7695         Likewise.
7696         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7697         HUGE_VALL): Likewise.
7698         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7699         HUGE_VALL): Likewise.
7700         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7701
7702 2000-05-17  Andreas Jaeger  <aj@suse.de>
7703
7704         * string/envz.h: Add pure attributes if possible.
7705
7706         * string/argz.h: argz_count is a pure function.
7707
7708         * string/strings.h: Add pure and const attributes if possible.
7709
7710         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7711         possibly searching through the whole memory.
7712         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7713
7714 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7715
7716         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7717         not yet defined.
7718         (_dl_cache_check_flags): Likewise.
7719         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7720         dl-cache.h.
7721
7722 2000-05-17  Andreas Jaeger  <aj@suse.de>
7723
7724         * manual/creature.texi (Feature Test Macros): Remove paragraph
7725         since the description is wrong.
7726         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7727
7728         * scripts/config.sub: New version.
7729         * scripts/config.guess: Likewise.
7730         * manual/texinfo.tex: Likewise.
7731
7732         * time/test_time.args: Removed.
7733         * time/Makefile (test_time-ARGS): Added contents here instead.
7734
7735         * posix/tstgetopt.args: Removed.
7736         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7737
7738         * Rules: Allow arguments for test files to be specified in
7739         Makefile with testname-ARGS; remove rules with .args in it.
7740
7741         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7742         remove old bogus rule for opendir-tst1.args.
7743
7744         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7745
7746         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7747         into objdir.  This allows a readonly sourcetree.
7748         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7749
7750 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7751             David Huggins-Daines <dhd@linuxcare.com>
7752
7753         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7754         cache_data in case of only new cache format correctly.
7755
7756         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7757         cache_file_new.
7758
7759         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7760         struct cache_file_new.
7761
7762         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7763         present.
7764
7765         * elf/cache.c (save_cache): Align struct new_file_cache.
7766         (print_cache): Likewise.
7767
7768 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7769
7770         * elf/soinit.c (__libc_global_ctors): Move
7771         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7772         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7773         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7774         variable, don't define it to __res_state call.
7775
7776 2000-05-13  Andreas Jaeger  <aj@suse.de>
7777
7778         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7779         Linux 2.3.99pre7.
7780         (AF_PPPOX): Likewise.
7781         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7782         (AF_PPPOX): Likewise.
7783
7784 2000-05-12  Andreas Jaeger  <aj@suse.de>
7785
7786         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7787         Reported by tmoestl@gmx.net, closes PR libc/1732.
7788
7789 2000-05-11  Jan Hubicka  <jh@suse.cz>
7790
7791         * misc/sys/cdefs.h: Add support for pure attribute.
7792
7793         * include/string.h: Add __attribute_pure__ to various functions.
7794         * string/string.h: Likewise.
7795
7796 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7797
7798         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7799         argument.
7800         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7801         R_SPARC_UA64.
7802         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7803
7804 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7805
7806         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7807         at proper place.  Compute the high nibble correctly.
7808
7809 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7810
7811         * elf/ldconfig.c: Include elf.h.
7812
7813         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7814         (_dl_vsym): Likewise.
7815         Reported by Owen Taylor <otaylor@redhat.com>.
7816
7817         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7818         always.
7819
7820 2000-05-08  Andreas Jaeger  <aj@suse.de>
7821
7822         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7823
7824         * intl/bindtextdom.c (set_binding_values): Add prototype.
7825
7826 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7827
7828         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7829         call to elf_machine_fixup_plt.
7830         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7831         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7832
7833 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7834
7835         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7836         they are not dlclose'd from underneath us.
7837
7838 2000-05-08  Andreas Schwab  <schwab@suse.de>
7839
7840         * posix/execle.c: Fix size parameter of memcpy.
7841
7842 2000-05-08  Andreas Schwab  <schwab@suse.de>
7843
7844         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7845         getpagesize syscall if available.
7846
7847 2000-05-08  Andreas Jaeger  <aj@suse.de>
7848
7849         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7850         set errno.
7851
7852 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7853
7854         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7855         sizeof(struct link_map *) chunks, not in bytes.
7856
7857 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7858
7859         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7860         only needed for locale.
7861         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7862         It's only needed for catgets.
7863         Patches by Greg McGary <gkm@eng.ascend.com>.
7864
7865 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7866
7867         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7868         Remove duplicate <errno.h> include.  Remove inclusion of
7869         <libintl.h> and "nsswitch.h".
7870         (set_cloexec_flag): New function, broken out of dbopen.
7871         (dbopen): Changed return type to `enum
7872         nss_status'.  Mostly rewritten to make sure that we do not report
7873         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7874         (internal_setent): Change return type to nss_status.
7875         Document, and make sure that the function
7876         behaves accordingly.  Make dynamically loading the database
7877         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7878         failed.
7879         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7880         unecessary casts.
7881         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7882         documentation.
7883         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7884         c_get function member.
7885         * nss/nss_db/nss_db.h: Add and tweak some comments.
7886         (DBT): Move typedef before NSS_DBC typedef.
7887         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7888
7889 2000-05-07  H.J. Lu  <hjl@gnu.org>
7890
7891         * csu/initfini.c: Moved to ....
7892         * sysdeps/generic/initfini.c: ...here.
7893
7894         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7895
7896 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7897
7898         * manual/resource.texi: Document POSIX scheduling functions.
7899         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7900
7901         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7902         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7903
7904         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7905         for x since promotion in comparison might leads to unexpected
7906         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7907
7908         * iconv/Makefile (tests): Add tst-iconv1.
7909         * iconv/tst-iconv1.c: New file.
7910         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7911         empty input buffer over full output buffer.
7912         (ucs4_internal_loop): Likewise.
7913         (ucs4_internal_loop_unaligned): Likewise.
7914         (internal_ucs4le_loop): Likewise.
7915         (internal_ucs4le_loop_unaligned): Likewise.
7916         (ucs4le_internal_loop): Likewise.
7917         (ucs4le_internal_loop_unaligned): Likewise.
7918         Reported by yaoz@nih.gov.
7919
7920 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7921
7922         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7923         returned != __GCONV_OK, there is nothing to clean up.
7924
7925 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7926
7927         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7928         OUTPUT_CHARSET environment variables.
7929
7930 2000-05-06  Andreas Jaeger  <aj@suse.de>
7931
7932         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7933         (struct cache_file_new): New.
7934         (struct file_entry): New (moved from cache.c).
7935         (struct cache_file): New (moved from cache.c).
7936
7937         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7938         from _dl_load_cache_lookup.
7939         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7940         the different cache formats.
7941         New variable cache_new for new format.
7942
7943         * elf/ldconfig.h: Change according to changes in cache.c and
7944         ldconfig.c; remove cache_libcmp; add opt_format.
7945
7946         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7947         stuff that's defined in those headers.
7948         Add hwcap to struct lib_entry.
7949         (opt_format): New variable to select cache format.
7950         (options): Add format parameter.
7951         (is_hwcap): New function.
7952         (path_hwcap): New function.
7953         (parse_opt): Handle new format parameter.
7954         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7955
7956         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7957         ldconfig is part of glibc.
7958         Include dl-cache.h and remove stuff that's defined there.
7959         (struct cache_entry): Add new member hwcap.
7960         (print_entry): Print hwcap, cleanup a bit.
7961         (print_cache): Print new and old formats.
7962         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7963         (save_cache): Save new and old formats.
7964         (add_to_cache): Handle hwcap.
7965
7966         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7967         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7968         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7969         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7970         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7971         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7972
7973 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7974
7975         * intl/dcigettext.c (alignof): New macro.
7976         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7977         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7978         freemem_size to 0.
7979
7980 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7981
7982         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7983         return value.
7984
7985 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7986
7987         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7988         (mempcpy): Correct typo is parameter list.
7989
7990 2000-05-06  Andreas Jaeger  <aj@suse.de>
7991
7992         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7993         functions unless -ffast-math is given to gcc.
7994
7995 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7996
7997         * po/ko.po: Update from translation team.
7998
7999 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8000
8001         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
8002         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
8003         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
8004         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
8005         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
8006         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
8007
8008         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
8009         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
8010         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
8011
8012         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
8013         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
8014         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
8015         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
8016
8017         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
8018         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
8019
8020 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
8021
8022         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
8023         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
8024
8025         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
8026         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
8027
8028         * sysdeps/ia64/Implies: New file.
8029         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
8030         * sysdeps/ia64/Makefile: New file.
8031         * sysdeps/ia64/gmp-mparam.h: New file,
8032
8033         * sysdeps/ia64/elf/start.S: New file.
8034
8035         * sysdeps/ia64/bits/fenv.h: New file.
8036
8037 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
8038
8039         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
8040
8041 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
8042
8043         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
8044         ia64 has 64 bit .hash entries just as the Alpha.
8045
8046 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8047
8048         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
8049
8050 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
8051
8052         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
8053         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
8054         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
8055         * sysdeps/ia64/fpu/fegetenv.c: New file.
8056         * sysdeps/ia64/fpu/fegetexcept.c: New file.
8057         * sysdeps/ia64/fpu/fegetround.c: New file.
8058         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
8059         * sysdeps/ia64/fpu/fesetenv.c: New file.
8060         * sysdeps/ia64/fpu/fesetround.c: New file.
8061         * sysdeps/ia64/fpu/feupdateenv.c: New file.
8062         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
8063         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
8064         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
8065         * sysdeps/ia64/fpu/ftestexcept.c: New file.
8066
8067 2000-05-05  Andreas Jaeger  <aj@suse.de>
8068
8069         * misc/tst-tsearch.c (main): Correct type for initstate argument.
8070
8071         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
8072         (_dl_string_hwcap): New, does nothing.
8073
8074         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_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/sparc32/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         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8084         (_DL_HWCAP_COUNT): New.
8085         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8086         (_dl_string_hwcap): New function, converts from string to hwcap
8087         encoding.
8088
8089 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8090
8091         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8092         * sysdeps/ia64/Dist: New file.
8093
8094         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8095         parameter to mprotect and for variable assignments.
8096
8097 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8098
8099         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8100         validity of map before dereferencing it.
8101
8102         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8103
8104 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8105
8106         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8107         lookup to the arguments to elf_machine_fixup_plt().
8108
8109         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8110         of the symbol being resolved to input argument list and make the
8111         function return the pointer to the reloc.
8112
8113         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8114         return valuie to lookup_t and return the value.
8115         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8116         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8117         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8118         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8119         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8120         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8121
8122         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8123         Make it an inline function returning value after calling
8124         __elf_machine_fixup_plt().
8125
8126         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8127         symbol address.
8128
8129         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8130         obtain the symbol address.
8131
8132         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8133         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8134
8135         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8136         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8137         inline on non ia64.
8138
8139 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8140
8141         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8142         symbol address of an object.
8143
8144         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8145         the symbol address of an object.
8146
8147         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8148         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8149         (_dl_lookup_symbol_skip): Likewise.
8150         (_dl_lookup_versioned_symbol): Likewise.
8151         (_dl_lookup_versioned_symbol_skip): Likewise.
8152
8153 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8154
8155         * elf/rtld.c (_dl_start): Get the function pointer return address
8156         via _dl_start_address for architectures that need a function
8157         pointer descriptor rather than just a pointer (ia64).
8158
8159         * sysdeps/generic/dl-lookupcfg.h: New file.
8160         * sysdeps/ia64/dl-lookupcfg.h: New file.
8161         * sysdeps/ia64/dl-machine.h: New file.
8162         * sysdeps/ia64/dl-symaddr.c: New file.
8163         * sysdeps/ia64/dl-fptr.c: New file.
8164
8165         * elf/elf.h: Add IA-64 specific definitions.
8166
8167 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8168
8169         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8170         end of enum.
8171
8172 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8173
8174         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8175         happy.
8176
8177 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8178
8179         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8180         symbol.  Call _dl_init rather than the old way.
8181
8182 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8183
8184         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8185         test for pointer in range of DSO address space.
8186
8187 2000-05-04  Andreas Jaeger  <aj@suse.de>
8188
8189         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8190
8191 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8192
8193         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8194         calls of _nl_make_l10nflist.
8195
8196         * libio/stdio.h: Make fseeko and ftello prototypes available is
8197         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8198
8199         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8200         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8201
8202 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8203
8204         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8205         before calling tfind.
8206
8207 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8208
8209         * resolv/resolv.h (res_querydomain): Remove redefinition to
8210         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8211
8212 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8213
8214         * po/gl.po: Update from translation team.
8215
8216         * manual/intro.texi (Program Basics): Change section title.
8217         * manual/process.texi: Fix reference.
8218         (Executing a File): Add reference exec in other section.
8219         * manual/signal.texi: Fix reference.
8220         * manual/startup.texi: Document syscall function.
8221         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8222
8223 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8224
8225         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8226         * intl/bindtextdom.c (set_binding_values): New function.
8227         (bindtextdomain): Call it.
8228         (bind_textdomain_codeset): New function.
8229         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8230         (free_mem): Free each binding's codeset.
8231         * intl/gettextP.h (struct binding): Add codeset field.
8232         (_nl_find_domain): Add domainbinding argument.
8233         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8234         Pass it to _nl_make_l10nflist.
8235         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8236         (_nl_make_l10nflist): Add domainbinding argument.
8237         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8238         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8239         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8240         locale_charset().
8241         * manual/message.texi: New node "Charset conversion in gettext".
8242
8243 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8244
8245         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8246         appropriate.  Handle possible __read error.
8247
8248 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8249
8250         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8251         compiler builtin.
8252         * intl/loadinfo.h (__builtin_expect): Likewise.
8253         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8254         __builtin_expect where appropriate.
8255         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8256         * intl/localealias.c (extend_alias_table): Return an error indicator.
8257         (read_alias_file): Bail out if extend_alias_table fails.
8258
8259 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8260
8261         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8262         * intl/localealias.c: Likewise.
8263
8264 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8265
8266         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8267         Initialize domain->plural and domain->nplurals even if there is no
8268         nullentry.
8269
8270 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8271
8272         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8273         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8274         In case of failure, goto converted.
8275
8276 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8277
8278         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8279         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8280         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8281         __gconv_open.
8282
8283 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8284
8285         * intl/dcigettext.c (transcmp): Compare the domains as well.
8286         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8287         not before.
8288         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8289         <errno.h>.
8290
8291 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8292
8293         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8294         Reported by Bruno Haible.
8295
8296 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8297
8298         * manual/arith.texi: Remove @w from @itemize.
8299
8300 2000-05-02  Andreas Jaeger  <aj@suse.de>
8301
8302         * conform/data/tar.h-data: Add some checks for specific values.
8303
8304         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8305         and RAND_MAX.
8306
8307         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8308         FOPEN_MAX.
8309
8310         * conform/data/netinet/in.h-data: Add exact checks for the values
8311         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8312
8313         * conform/data/float.h-data: Add some minimal values.
8314
8315         * conform/conformtest.pl: Test for macros with string constants,
8316         check for minimum and maximum values.
8317         Add limits.h to headers.
8318
8319         * conform/data/cpio.h-data: Test for value of MAGIC.
8320
8321         * conform/data/limits.h-data: New file.
8322
8323 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8324
8325         * math/Makefile (headers): Add bits/fenvinline.h.
8326
8327 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8328
8329         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8330         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8331
8332         * posix/Versions: Change posix_spawnattr_getdefault and
8333         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8334         and posix_spawnattr_setsigdefault respectively.
8335         * posix/spawn.h: Likewise.
8336         * posix/spawnattr_getdefault.h: Likewise.
8337         * posix/spawnattr_setdefault.h: Likewise.
8338         * conform/data/spawn.h-data: Likewise.
8339
8340 2000-05-01  Andreas Jaeger  <aj@suse.de>
8341
8342         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8343
8344 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8345
8346         * manual/sysinfo.texi: Document getdomainname, setdomainname
8347         and sysctl.
8348         * manual/string.texi: Fix typo.
8349         * manual/terminal.texi: Document gtty and stty.
8350         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8351
8352 2000-04-30  Andreas Jaeger  <aj@suse.de>
8353
8354         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8355         accordance with Austin Draft.
8356
8357 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8358
8359         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8360         to recognize second character in comment line.
8361
8362         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8363         ENOBUFS if we are out of memory.
8364
8365         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8366         available if __USE_XOPEN2K.
8367         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8368         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8369         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8370         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8371         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8372         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8373         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8374         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8375
8376 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8377
8378         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8379         Recognize option -s, -c, and -l.
8380
8381 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8382
8383         * nscd/nscd.c: Start new session for nscd, drop privilegs
8384         to configured user if requested and no -S parameter are used.
8385         * nscd/nscd.conf: Add new option "server-user".
8386         * nscd/nscd_conf.c: Add support for new "server-user" option.
8387         * nscd/nscd.h: Add declaration for server_user variable.
8388         Based on patch by Chris Wing <wingc@engin.umich.edu>
8389
8390 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8391
8392         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8393         that changing the __restore and __restore_rt signal return code
8394         will break GDB.
8395
8396 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8397
8398         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8399         <sys/user.h>.
8400
8401 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8402
8403         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8404
8405 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8406
8407         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8408         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8409         arpa/inet.h.
8410         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8411         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8412         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8413         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8414         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8415         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8416         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8417         posix_fallocate, and posix_madvise.
8418         * conform/data/netdb.h-data: New file.
8419         * conform/data/pthread.h-data: Add pthread_barrier_t,
8420         pthread_barrierattr_t, pthread_barrier_destroy,
8421         pthread_barrier_init, pthread_barrier_wait,
8422         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8423         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8424         pthread_condattr_getclock, pthread_condattr_setclock,
8425         pthread_getcpuclockid, pthread_mutex_timedlock,
8426         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8427         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8428         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8429         * conform/data/sched.h-data: Add sched_ss_low_priority,
8430         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8431         SCHED_SPORADIC.
8432         * conform/data/semaphore.h-data: Add sem_timedwait.
8433         * conform/data/signal.h-data: Add SIGIO.
8434         * conform/data/spawn.h-data: New file.
8435         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8436         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8437         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8438         Fix typo in gmtime_r definition.
8439         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8440         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8441         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8442         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8443         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8444         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8445         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8446         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8447         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8448         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8449         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8450         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8451         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8452         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8453         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8454         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8455         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8456         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8457         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8458         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8459         typo in off_t definition.
8460         * conform/data/net/if.h-data: New file.
8461         * conform/data/netinet/in.h-data: New file.
8462         * conform/data/netinet/tcp.h-data: New file.
8463         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8464         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8465         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8466         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8467         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8468         and posix_typed_mem_open.
8469         * conform/data/sys/socket.h-data: New file.
8470         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8471         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8472         pthread_barrierattr_t, and pthread_spinlock_t.
8473         * conform/data/sys/un.h-data: New file.
8474         * conform/data/sys/utsname.h-data: New file.
8475
8476         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8477         parameter.
8478         * inet/gethstbyad.c (gethostbyname): Likewise.
8479         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8480         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8481         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8482         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8483         Likewise.
8484         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8485         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8486         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8487         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8488         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8489         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8490         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8491         and second parameter.
8492
8493         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8494         == NULL.
8495
8496 2000-04-29  Andreas Jaeger  <aj@suse.de>
8497
8498         * conform/data/arpa/inet.h-data: New file.
8499
8500 2000-04-28  Geoff Clare <gwc@unisoft.com>
8501
8502         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8503         path passed to ftw() or nftw() is an empty string.
8504         Closes PR libc/1710.
8505
8506 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8507
8508         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8509         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8510         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8511         * localedata/tst-mbswcs4.c: New file.
8512         * localedata/tst-mbswcs5.c: New file.
8513
8514         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8515         == NULL.  Little optimization.
8516
8517         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8518         DT_PREINIT_ARRAYSZ).
8519         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8520
8521         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8522         overflows in conversion from ASCII.
8523
8524 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8525
8526         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8527         * Makerules (full_config_sysdirs): Likewise.
8528         * MakeTAGS (full_config_sysdirs): Likewise.
8529
8530 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8531
8532         * .cvsignore: Remove linuxthreads.
8533         * po/.cvsignore: Remove *.pot.
8534         * posix/glob/.cvsignore: Removed.
8535         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8536
8537 2000-04-25  Andreas Jaeger  <aj@suse.de>
8538
8539         * conform/Makefile (distribute): Also distribute contents of
8540         subdirectories.
8541
8542         * Makerules (no_deps): Remove abi-versions.h.
8543
8544         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8545
8546 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8547
8548         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8549         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8550         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8551         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8552         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8553         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8554         objects.
8555
8556 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8557
8558         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8559
8560 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8561
8562         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8563         * intl/l10nflist.c: Likewise.
8564
8565 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8566
8567         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8568         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8569         * intl/textdomain.c [!_LIBC]: Likewise.
8570         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8571         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8572         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8573         syntax error.
8574
8575 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8576
8577         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8578         character set conversion also in the case the translation was found
8579         after a hash collision or through binary search.  Store the maximum
8580         index together with the converted message.  Use iconv() when available.
8581         In case of out of memory during conversion, return the unconverted
8582         translated string, not NULL.
8583
8584 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8585
8586         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8587         to avoid name clashes with the ia32 linker.
8588
8589 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8590
8591         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8592         handling.
8593
8594 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8595
8596         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8597         strtoumax, strfry, and memfrob.
8598         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8599         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8600
8601         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8602         if this function is available.
8603
8604         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8605         all values.
8606
8607 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8608
8609         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8610
8611 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8612
8613         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8614         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8615         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8616         * localedata/tst-mbswcs3.c: New file.
8617
8618 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8619
8620         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8621         characters.  Don't handle incomplete characters as errors.
8622         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8623         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8624         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8625         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8626         * localedata/tst-mbswcs2.c: New file.
8627
8628         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8629         stored character in state in UNPACK_BYTES macro.
8630         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8631         test for available characters, handle result of BODY code correctly.
8632         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8633         (distribute): Add tst-mbswcs.sh.
8634         Add rule to run tst-mbswcs.sh.
8635         * localedata/tst-mbswcs.sh: New file.
8636         * localedata/tst-mbswcs1.c: New file.
8637
8638 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8639
8640         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8641         allocation fixups centrally, fix __builtin_expect call, return NULL
8642         on failure, not NIS_NOMEMORY.
8643
8644 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8645
8646         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8647
8648         * intl/loadinfo.h (internal_function): Define if not already defined.
8649
8650 2000-04-27  Andreas Jaeger  <aj@suse.de>
8651
8652         * intl/libintl.h: Fix typo, reported by Bruno Haible
8653         <haible@clisp.cons.org>.
8654
8655 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8656
8657         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8658         setting the state to GMON_PROF_BUSY.
8659
8660 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8661
8662         * elf/dl-profile.c (_dl_start_profile): define all variables which
8663         do not have to be global as local variables.
8664
8665         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8666         patch.  Keep needed tests for failed memory allocation.
8667
8668         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8669         __builtin_expect saying that we don't normally expect to profile.
8670
8671         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8672         __builtin_expect where desirable.
8673
8674 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8675
8676         * manual/Makefile (chapters): Add syslog.
8677         * manual/syslog.texi: New file.
8678         * manual/math.texi: Fix references.
8679         * manual/terminal.texi: Likewise.
8680         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8681
8682 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8683
8684         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8685         stdlib.h was not included or __USE_XOPEN not defined.
8686
8687 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8688
8689         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8690         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8691
8692 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8693
8694         * manual/examples/subopt.c (mount_opts): Add missing terminating
8695         entry.
8696         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8697
8698         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8699         * libio/ftello.c: Likewise.
8700         * libio/ftello64.c: Likewise.
8701         * libio/ioftell.c: Likewise.
8702         * sysdeps/generic/memrchr.c: Likewise.
8703         * sysdeps/posix/libc_fatal.c: Likewise.
8704         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8705         * misc/fstab.c: Include <string.h> for strcmp prototype.
8706         * sysdeps/generic/ldsodefs.h: Likewise.
8707         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8708         Patch by Kurt Roeckx <Q@ping.be>.
8709
8710         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8711         Remove db-open.  Change all uses.
8712         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8713
8714 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8715
8716         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8717         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8718         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8719         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8720         with .set noat/at to shut up warnings.
8721         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8722         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8723         compilation if __NR_pciconfig_iobase is not defined.
8724         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8725         Add alias.
8726
8727 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8728
8729         * manual/sysinfo.texi: Fix typo.
8730         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8731         Replace "high precision time" with "high accuracy clock".
8732         Fix language.
8733         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8734
8735         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8736         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8737         instead of malloc.
8738         * nis/nis_subr.c: Use __builtin_expect.
8739         * nis/ypclnt.c: Likewise.
8740         * nis/nis_getservlist.c: Likewise.
8741         * nis/nis_creategroup.c: Likewise.
8742
8743         * nis/nis_callback.c (__nis_create_callback): Check result of
8744         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8745         (__nis_destroy_callback): Fix memory leaks.
8746
8747 2000-04-21  Andreas Jaeger  <aj@suse.de>
8748
8749         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8750         * sysdeps/mips/mips64/add_n.S: Likewise.
8751         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8752         * sysdeps/mips/mips64/lshift.S: Likewise.
8753         * sysdeps/mips/mips64/mul_1.S: Likewise.
8754         * sysdeps/mips/mips64/rshift.S: Likewise.
8755         * sysdeps/mips/mips64/setjmp.S: Likewise.
8756         * sysdeps/mips/mips64/sub_n.S: Likewise.
8757         * sysdeps/mips/mips64/submul_1.S: Likewise
8758         * sysdeps/unix/mips/sysdep.S: Likewise.
8759
8760         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8761         and update comment.  The strtab from _dl_relocate_object can be
8762         used.
8763
8764 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8765
8766         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8767         * iconv/iconv_close.c (iconv_close): Likewise.
8768         * iconv/iconv_open.c (iconv_open): Likewise.
8769
8770         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8771         __builtin_expect where useful.
8772
8773         * grp/initgroups.c (initgroups): Test for result of memory
8774         allocation and punt if it fails.
8775
8776         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8777         * grp/fgetgrent.c (fgetfrent): Likewise.
8778         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8779
8780 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8781
8782         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8783
8784 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8785
8786         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8787         don't search for NUL byte to decrement counter.
8788         Reported by Ulrich.Brink@sap.com.
8789
8790         * iconv/gconv_simple.c: Define separate functions to convert from
8791         UCS4/UCS4-LE to the internal encoding.
8792         * iconv/gconv_builtin.h: Use separate functions to convert from
8793         UCS4/UCS4-LE to the internal encoding.
8794         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8795         __gconv_transform_ucs4le_internal.
8796
8797         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8798         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8799
8800         * iconv/skeleton.c: Add some more __builtin_expect.
8801         * iconv/loop.c: Likewise.
8802
8803 2000-03-08  H.J. Lu  <hjl@gnu.org>
8804
8805         * posix/regex.c (regex_compile): Correctly handle "\{" when
8806         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8807
8808 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8809
8810         * manual/stdio.texi: Give advise about handling error when using
8811         stream functions.
8812         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8813
8814 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8815
8816         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8817         field to nelems * sizeof (uint32_t).
8818         * locale/programs/ld-address.c (address_output): Align word fields
8819         properly.
8820         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8821         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8822         field.
8823         Avoid giving arbitrary garbage in the crncystr field.
8824         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8825         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8826         fields.
8827         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8828         Don't restart idx pointers to idx end at the decimal_point_wc field.
8829         * locale/programs/ld-time.c (time_output): week_1stday should be
8830         word, not byte.  Align it properly.
8831
8832 2000-04-19  H.J. Lu  <hjl@gnu.org>
8833
8834         * csu/gmon-start.c (_start): Declared as "extern void".
8835         (etext): Likewise.
8836
8837 2000-04-18  Andreas Jaeger  <aj@suse.de>
8838
8839         * manual/install.texi (Running make install): Don't mention utmpd
8840         anymore.
8841
8842 2000-04-18  Andreas Jaeger  <aj@suse.de>
8843
8844         * linuxthreads/Versions: Use ld instead of ld.so.
8845
8846         * elf/Makefile (ld-map): Use ld.map.
8847
8848         * Versions.def: Use ld instead of ld.so.
8849         * elf/Versions: Likewise.
8850         * sysdeps/mach/hurd/Versions: Likewise.
8851
8852 2000-04-20  Andreas Jaeger  <aj@suse.de>
8853
8854         * elf/rtld.c (print_statistics): Move ifndef further up.
8855         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8856         (dl_main): Likewise.
8857
8858 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8859
8860         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8861         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8862
8863         * po/cs.po: Update from translation team.
8864
8865         * sysdeps/generic/updwtmp.c: Remove daemon support.
8866
8867         * login/Makefile (routines): Remove utmp_daemon.
8868
8869         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8870         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8871         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8872         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8873
8874         * elf/rtld.c: Display statitics option also if hp timing is not
8875         available.
8876
8877         * login/programs/connection.c: Removed.
8878         * login/programs/database.c Removed.
8879         * login/programs/error.c: Removed.
8880         * login/programs/request.c: Removed.
8881         * login/programs/xtmp.c: Removed.
8882         * login/programs/xtmp.h: Removed.
8883         * login/Makefile: Remove rules for utmpd.
8884         * login/README.utmpd: Removed.
8885         * login/utmp_daemon.c: Removed.
8886         * login/getutent_r.c: Remove references to daemon functions.
8887         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8888         declaration.
8889
8890 2000-04-18  Andreas Jaeger  <aj@suse.de>
8891
8892         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8893         2.2 for libnsl, libresolv, librt, libnss_*.
8894
8895         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8896
8897         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8898
8899 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8900
8901         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8902         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8903         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8904         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8905         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8906         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8907         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8908         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8909         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8910         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8911         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8912         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8913         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8914         it here.
8915         * sysdeps/unix/sysv/aix/msync.c: New file.
8916         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8917         * sysdeps/unix/sysv/aix/net/if.h: New file.
8918         * sysdeps/unix/sysv/aix/pipe.c: New file.
8919         * sysdeps/unix/sysv/aix/poll.c: New file.
8920         * sysdeps/unix/sysv/aix/rename.c: New file.
8921         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8922         * sysdeps/unix/sysv/aix/select.c: New file.
8923         * sysdeps/unix/sysv/aix/semctl.c: New file.
8924         * sysdeps/unix/sysv/aix/semget.c: New file.
8925         * sysdeps/unix/sysv/aix/semop.c: New file.
8926         * sysdeps/unix/sysv/aix/sendto.c: New file.
8927         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8928         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8929         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8930         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8931         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8932         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8933         * sysdeps/unix/sysv/aix/setsid.c: New file.
8934         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8935         * sysdeps/unix/sysv/aix/shmat.c: New file.
8936         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8937         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8938         * sysdeps/unix/sysv/aix/shmget.c: New file.
8939         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8940         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8941         * sysdeps/unix/sysv/aix/socket.c: New file.
8942         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8943         * sysdeps/unix/sysv/aix/speed.c: New file.
8944         * sysdeps/unix/sysv/aix/symlink.c: New file.
8945         * sysdeps/unix/sysv/aix/sync.c: New file.
8946         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8947         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8948         * sysdeps/unix/sysv/aix/times.c: New file.
8949         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8950         * sysdeps/unix/sysv/aix/umask.c: New file.
8951         * sysdeps/unix/sysv/aix/unlink.c: New file.
8952         * sysdeps/unix/sysv/aix/ustat.c: New file.
8953         * sysdeps/unix/sysv/aix/utimes.c: New file.
8954
8955 2000-04-18  Andreas Jaeger  <aj@suse.de>
8956
8957         * manual/startup.texi (Environment Access): Fix putenv prototype
8958         according to recent changes.
8959         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8960         PR libc/1692.
8961
8962         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8963         needed.
8964
8965 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8966
8967         * posix/Makefile (tests): Add tst-getaddrinfo.
8968         * posix/tst-getaddrinfo.c: New file.
8969
8970 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8971
8972         * manual/sysinfo.texi: Document that umount2 is not widely available.
8973
8974         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8975         signal timing is not really implemented.
8976
8977 2000-04-17  Andreas Jaeger  <aj@suse.de>
8978
8979         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8980
8981 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8982
8983         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8984         and inst_libdir.
8985
8986 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8987
8988         * manual/intro.texi: Change reference from System Information to
8989         System Management.
8990         * manual/users.texi: Likewise.
8991         * manual/conf.texi: Likewise.
8992         * manual/sysinfo.texi: Document mount, umount, and umount2.
8993         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8994
8995 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8996
8997         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8998         Create wnumstr as well as numstr to support wide character output
8999         correctly.
9000
9001 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
9002
9003         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
9004         modification and move it...
9005         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
9006         Add -melf64_sparc switch to $(LD) on sparc64-linux.
9007         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
9008         switch to $(LD) on sparc-linux.
9009
9010 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
9011
9012         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
9013         and setresuid from sysdep_routines.
9014
9015 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9016
9017         * manual/Makefile (chapters): Add resource.
9018
9019         * manual/time.texi: Move section on resources to...
9020         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
9021         and vtimes.
9022         * manual/setjmp.texi: Adjust back reference.
9023         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9024
9025         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
9026         definition.
9027         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
9028         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
9029         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
9030         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
9031         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
9032         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
9033         * sysdeps/unix/sysv/aix/close.c: Add copyright.
9034         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
9035         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
9036         * sysdeps/unix/sysv/aix/access.c: Add copyright.
9037         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
9038         * sysdeps/unix/sysv/aix/Implies: New file.
9039         * sysdeps/unix/sysv/aix/Versions: New file.
9040         * sysdeps/unix/sysv/aix/bind.c: New file.
9041         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
9042         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
9043         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
9044         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
9045         * sysdeps/unix/sysv/aix/chdir.c: New file.
9046         * sysdeps/unix/sysv/aix/chmod.c: New file.
9047         * sysdeps/unix/sysv/aix/chroot.c: New file.
9048         * sysdeps/unix/sysv/aix/creat.c: New file.
9049         * sysdeps/unix/sysv/aix/dl-close.c: New file.
9050         * sysdeps/unix/sysv/aix/dl-open.c: New file.
9051         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
9052         * sysdeps/unix/sysv/aix/fchdir.c: New file.
9053         * sysdeps/unix/sysv/aix/fchmod.c: New file.
9054         * sysdeps/unix/sysv/aix/getgroups.c: New file.
9055         * sysdeps/unix/sysv/aix/gethostname.c: New file.
9056         * sysdeps/unix/sysv/aix/getpriority.c: New file.
9057         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
9058         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
9059         * sysdeps/unix/sysv/aix/getrusage.c: New file.
9060         * sysdeps/unix/sysv/aix/link.c: New file.
9061         * sysdeps/unix/sysv/aix/madvise.c: New file.
9062         * sysdeps/unix/sysv/aix/mkdir.c: New file.
9063         * sysdeps/unix/sysv/aix/mknod.c: New file.
9064         * sysdeps/unix/sysv/aix/mprotect.c: New file.
9065         * sysdeps/unix/sysv/aix/msgctl.c: New file.
9066         * sysdeps/unix/sysv/aix/msgget.c: New file.
9067         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
9068
9069 2000-04-17  Andreas Jaeger  <aj@suse.de>
9070
9071         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
9072         as suggested by Ulrich Drepper.
9073         (__dl_runtime_resolve): Remove unused variable, initialize sym
9074         directly.
9075         (RTLD_START): Document OFFSET_GP_GOT.
9076         (OFFSET_GP_GOT): New magic value.
9077         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
9078         (elf_machine_got_rel): Only declare strtab if needed.
9079         (elf_machine_relplt): Removed, it's not needed.
9080         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
9081
9082         * sysdeps/mips/add_n.S: Add newline at EOF.
9083         * sysdeps/mips/rshift.S: Likewise.
9084         * sysdeps/mips/mul_1.S: Likewise.
9085         * sysdeps/mips/lshift.S: Likewise.
9086         * sysdeps/mips/addmul_1.S: Likewise.
9087
9088 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9089
9090         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9091
9092         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9093         * elf/dl-lookup.c: Likewise.
9094         * elf/dl-init.c (_dl_init): Likewise.
9095         * elf/dl-fini.c (_dl_fini): Likewise.
9096         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9097         * elf/dl-close.c (_dl_close): Likewise.
9098         * elf/rtld.c (_dl_start_final): Likewise.
9099
9100         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9101
9102 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9103
9104         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9105         only fall back on using Linux.
9106
9107         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9108         Before testing versions check that we actually loaded the object
9109         and whether we are in trace mode.  If not loaded during tracing don't
9110         test versions in this object.
9111         (_dl_check_all_versions): Take new parameter and pass to
9112         _dl_check_map_versions.
9113         * sysdeps/generic/ldsodefs.h: Update prototypes for
9114         _dl_check_all_versions and _dl_check_map_versions.
9115         * elf/rtld.c (struct version_check_args): Add dotrace.
9116         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9117         (dl_main): Pass info about trace mode to version_check_doit.
9118         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9119         _dl_check_all_versions.
9120
9121         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9122         and getutmpx.
9123         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9124
9125         * manual/argp.texi: Document index parameter of argp_parse.
9126         Fix typo.
9127         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9128
9129 2000-04-14  Andreas Jaeger  <aj@suse.de>
9130
9131         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9132         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9133
9134         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9135
9136 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9137
9138         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9139         compat_symbol call for old adjtime.
9140
9141         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9142         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9143
9144         * posix/Makefile (headers): Add spawn.h.
9145         (distribute): Add spawn_int.h.
9146         (routines): Add spawn_faction_init, spawn_faction_destroy,
9147         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9148         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9149         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9150         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9151         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9152         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9153         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9154         posix_spawnattr_init, posix_spawnattr_destroy,
9155         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9156         posix_spawnattr_getflags, posix_spawnattr_setflags,
9157         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9158         and posix_spawnp.
9159         * posix/spawn.c: New file.
9160         * posix/spawn.h: New file.
9161         * posix/spawn_faction_addclose.c: New file.
9162         * posix/spawn_faction_adddup2.c: New file.
9163         * posix/spawn_faction_addopen.c: New file.
9164         * posix/spawn_faction_destroy.c: New file.
9165         * posix/spawn_faction_init.c: New file.
9166         * posix/spawn_int.h: New file.
9167         * posix/spawnattr_destroy.c: New file.
9168         * posix/spawnattr_getdefault.c: New file.
9169         * posix/spawnattr_getflags.c: New file.
9170         * posix/spawnattr_getpgroup.c: New file.
9171         * posix/spawnattr_getschedparam.c: New file.
9172         * posix/spawnattr_getschedpolicy.c: New file.
9173         * posix/spawnattr_getsigmask.c: New file.
9174         * posix/spawnattr_init.c: New file.
9175         * posix/spawnattr_setdefault.c: New file.
9176         * posix/spawnattr_setflags.c: New file.
9177         * posix/spawnattr_setpgroup.c: New file.
9178         * posix/spawnattr_setschedparam.c: New file.
9179         * posix/spawnattr_setschedpolicy.c: New file.
9180         * posix/spawnattr_setsigmask.c: New file.
9181         * posix/spawni.c: New file.
9182         * posix/spawnp.c: New file.
9183
9184         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9185         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9186
9187 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9188
9189         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9190         * malloc/malloc.c: Implement posix_memalign for glibc.
9191         * include/stdlib.h: Add prototype for __posix_memalign.
9192         * stdlib/stdlib.h: Add prototype for posix_memalign.
9193
9194 2000-04-14  Andreas Jaeger  <aj@suse.de>
9195
9196         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9197         symidx correctly.
9198         (elf_machine_got_rel): Cast sym correctly.
9199
9200         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9201         * sysdeps/mips/addmul_1.S: Likewise.
9202         * sysdeps/mips/lshift.S: Likewise.
9203         * sysdeps/mips/mul_1.S: Likewise.
9204         * sysdeps/mips/rshift.S: Likewise.
9205         * sysdeps/mips/sub_n.S: Likewise.
9206         * sysdeps/mips/submul_1.S: Likewise.
9207
9208         * stdlib/stdlib.h: Fix typo in comment.
9209
9210         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9211         2.2 for libdl, ld and libm.
9212
9213         * sysdeps/generic/madvise.c: Fix typos.
9214
9215         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9216
9217         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9218
9219         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9220         warnings.
9221
9222 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9223
9224         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9225         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9226         Make old name weak alias.
9227         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9228         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9229         Make old name weak alias.
9230         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9231
9232         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9233         posix_fallocate, and posix_fallocate64.
9234         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9235         posix_fallocate, and posix_fallocate64.
9236         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9237         posix_fallocate, and posix_fallocate64.
9238         * sysdeps/generic/fadvise.c: New file.
9239         * sysdeps/generic/fadvise64.c: New file.
9240         * sysdeps/generic/fallocate.c: New file.
9241         * sysdeps/generic/fallocate64.c: New file.
9242         * sysdeps/posix/fallocate.c: New file.
9243         * sysdeps/posix/fallocate64.c: New file.
9244         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9245         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9246         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9247         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9248         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9249         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9250         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9251         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9252         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9253
9254         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9255         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9256
9257 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9258
9259         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9260         * misc/sys/mman.h (posix_madvise): Add prototype.
9261         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9262         old name and posix_madvise weak aliases.
9263         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9264         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9265         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9266         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9267         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9268         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9269         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9270
9271 2000-04-13  Andreas Jaeger  <aj@suse.de>
9272
9273         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9274         versioning.
9275         (elf_machine_got_rel): Only add runtime display if needed.
9276         (elf_machine_got_rel): Handle symbol versioning.
9277
9278 2000-04-13  Andreas Jaeger  <aj@suse.de>
9279
9280         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9281
9282         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9283         default.
9284
9285         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9286         with some applications.
9287         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9288
9289         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9290         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9291         * sysdeps/mips/setjmp.S: Likewise.
9292
9293         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9294
9295 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9296
9297         * posix/globtest.sh: Work around inconsistency with expanding ~/
9298         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9299
9300 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9301
9302         * posix/getconf.c: Add support for many more POSIX options.
9303         * sysdeps/posix/sysconf.c: Likewise.
9304         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9305         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9306         _POSIX_SHELL.
9307         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9308         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9309         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9310         CLOCK_THREAD_CPUTIME_ID.
9311         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9312         CLOCK_PROCESS_CPUTIME_ID.
9313         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9314         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9315         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9316         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9317
9318         * malloc/Makefile (tests): Add tst-calloc.
9319         * malloc/tst-calloc.c: New file.
9320
9321         * sysdeps/arm/libm-test-ulps: New file.
9322
9323         * malloc/malloc.c: Undo all of today's changes.
9324
9325         * locale/programs/locale.c (show_info): Don't try to look into
9326         data for LC_ALL (there is none).
9327
9328         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9329         avoid writing over boundary.
9330         Patch by Greg McGary <gkm@eng.ascend.com>.
9331
9332         * sysdeps/arm/memprof.h: New file.
9333
9334 2000-04-12  Andreas Jaeger  <aj@suse.de>
9335
9336         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9337
9338         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9339         for memmem declaration.
9340
9341 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9342
9343         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9344         to -1.
9345         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9346
9347         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9348         mode is invalid.
9349         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9350         Patch by Bart Veer <bartv@redhat.com>.
9351
9352         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9353         function interface.
9354
9355 2000-04-11  Andreas Jaeger  <aj@suse.de>
9356
9357         * sysdeps/mips/dl-machine.h: Update some comments.
9358         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9359
9360 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9361
9362         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9363         _POSIX_SHARED_MEMORY_OBJECTS.
9364
9365         * rt/Makefile (tests): Add tst-shm.
9366         Add rules to generate tst-shm.
9367         * rt/tst-shm.c: New file.
9368
9369         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9370         for descriptor.
9371
9372         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9373         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9374         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9375         * sysdeps/generic/shm_open.c: New file.
9376         * sysdeps/generic/shm_unlink.c: New file.
9377         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9378         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9379         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9380          __endmntent, __getmntent_r, __setmntent, and __statfs.
9381
9382         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9383         fragmentation by allocating new memory at the end instead of
9384         reallocating.
9385
9386         * posix/globtest.sh: Fix last change.
9387
9388 2000-04-10  Philip Blundell  <philb@gnu.org>
9389
9390         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9391         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9392         IPV6_DROP_MEMBERSHIP.
9393         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9394         Likewise.
9395
9396 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9397
9398         * elf/readlib (process_file): Close streams in case of an error.
9399
9400 2000-04-09  Andreas Jaeger  <aj@suse.de>
9401
9402         * elf/readlib.c (process_file): Check if file is big enough to
9403         contain aout and ELF headers.
9404         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9405
9406 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9407
9408         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9409
9410 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9411
9412         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9413         stream unbuffered.
9414         * rt/Makefile (tests): Add tst-clock.
9415         Add rules to build tst-clock.
9416         * rt/tst-clock.c: New file.
9417         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9418         about initialization of nsec.
9419         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9420         about initialization of freq.  Set retval to zero if successful.
9421         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9422
9423 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9424
9425         * Versions.def (librt): Add GLIBC_2.2.
9426         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9427         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9428         timer_getoverr, timer_gettime, and timer_settime.
9429         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9430         clock_settime, timer_create, timer_delete, timer_getoverrun,
9431         timer_gettime, and timer_settime.
9432         * sysdeps/generic/clock_getcpuclockid.c: New file.
9433         * sysdeps/generic/get_clockfreq.c: New file.
9434         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9435         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9436         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9437         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9438         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9439         * sysdeps/unix/i386/i686/Implies: New file.
9440         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9441         * time/Makefile (routines): Move clock_getres, clock_gettime,
9442         clock_settime, timer_create, timer_delete, timer_getoverr,
9443         timer_gettime, and timer_settime to rt/Makefile.
9444         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9445         clock_settime, timer_create, timer_delete, timer_getoverrun,
9446         timer_gettime, and timer_settime.
9447         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9448
9449         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9450         and not const as attribute name.
9451
9452 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9453
9454         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9455
9456 2000-04-10  Andreas Schwab  <schwab@suse.de>
9457
9458         * posix/globtest.sh: Skip tests that depend on unreadable
9459         directories if run as root.
9460
9461 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9462
9463         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9464         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9465
9466 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9467
9468         * sysdeps/unix/clock_gettime.c: New file.
9469         * sysdeps/unix/clock_settime.c: New file.
9470         * sysdeps/posix/clock_getres.c: New file.
9471
9472         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9473
9474         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9475         lseek call be passing in a buffer which never allow a successful
9476         first getdents syscall if not at leas the initial entry can be
9477         stored in the user buffer.
9478
9479         * localedata/Makefile: Add rules to clean up directories created by
9480         new strfmon tests.
9481
9482 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9483
9484         * localedata/tst-fmon.data: Added new tests for strfmon()
9485         using test locales with all combinations of cs_precedes,
9486         sign_posn and sep_by_space.
9487         * localedata/tst-fmon.sh: Updated to support the new tests.
9488         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9489         the localedef source for the new strfmon() test locale.
9490         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9491         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9492         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9493         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9494         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9495         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9496         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9497         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9498         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9499         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9500         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9501         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9502         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9503         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9504
9505         * stdlib/strfmon.c: Correct problems with missing or extra
9506         spaces for unusual combinations of sign_posn and sep_by_space.
9507         Improved left-precision alignment code.
9508
9509 2000-04-07  Andreas Jaeger  <aj@suse.de>
9510
9511         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9512
9513 2000-04-10  Andreas Jaeger  <aj@suse.de>
9514
9515         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9516
9517 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9518
9519         Implement handling of restartable conversion functions according to
9520         ISO C.
9521         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9522         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9523         * iconv/gconv.c: Pass additional parameter to conversion function.
9524         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9525         (internal_ucs4le_loop_single): New function.
9526         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9527         (__gconv_transform_internal_ascii): Likewise.
9528         (__gconv_transform_internal_utf8): Likewise.
9529         (__gconv_transform_utf8_internal): Likewise.
9530         (__gconv_transform_ucs2_internal): Likewise.
9531         (__gconv_transform_internal_ucs2): Likewise.
9532         (__gconv_transform_ucs2reverse_internal): Likewise.
9533         (__gconv_transform_internal_ucs2reverse): Likewise.
9534         (internal_ucs4le_loop_unaligned): Before return
9535         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9536         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9537         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9538         * iconv/loop.c: Fit in definition of function to convert one character
9539         for processing of left-over bytes from the state object.
9540         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9541         inend to match names in loop functions.
9542         (RESET_INPUT_BUFFER): Change apprpriately.
9543         (gconv): If needed, call function to process bytes from the state
9544         object.  Similar at the end: store left over bytes if input is
9545         incomplete.
9546         Take extra argument and add new argument to all calls of the
9547         conversion function.
9548         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9549         information in the state object to not conflict with length count.
9550         * iconvdata/iso-2022-jp.c: Likewise.
9551         * iconvdata/iso-2022-kr.c: Likewise.
9552         * iconvdata/unicode.c: Adjust for change change in parameters of
9553         skeleton function.
9554         * iconvdata/utf-16.c: Likewise.
9555         * libio/iofwide.c: Add new parameter to all calls of conversion
9556         function.
9557         * wcsmbs/btowc.c: Likewise.
9558         * wcsmbs/mbrtowc.c: Likewise.
9559         * wcsmbs/mbsnrtowcs.c: Likewise.
9560         * wcsmbs/mbsrtowcs.c: Likewise.
9561         * wcsmbs/wcrtomb.c: Likewise.
9562         * wcsmbs/wcsnrtombs.c: Likewise.
9563         * wcsmbs/wcsrtombs.c: Likewise.
9564         * wcsmbs/wctob.c: Likewise.
9565
9566         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9567         MAX_NEEDED_INPUT.
9568
9569 2000-04-07  Andreas Jaeger  <aj@suse.de>
9570
9571         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9572         newer kernels.
9573
9574 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9575
9576         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9577         element a union to allow byte access.
9578         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9579         mbstate_t.
9580         * iconvdata/iso-2022-jp.c: Likewise.
9581         * iconvdata/iso-2022-kr.c: Likewise.
9582         * wcsmbs/mbsinit.c: Likewise.
9583         * stdlib/mblen.c: Likewise.
9584         * stdio-common/printf-parse.h: Likewise.
9585
9586 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9587
9588         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9589         kernel does not allow relative seeks on descriptors associated
9590         with directories.  Go back to get the position in the directory
9591         every time we enter the function.  Return -1 and set errno if one
9592         entry could be read from the kernel but does not fit into the
9593         buffer passed in by the user.
9594
9595         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9596         Support ..(2).. ellipsis.
9597         (parse_charmap): Recognize ..(2).. etc and pass step down.
9598         Correctly generate names for UCS4 characters.
9599
9600         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9601         (ctype_finish): We know the wide character value for <SP>,
9602         don't search.
9603         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9604         (charclass_ucs4_ellipsis): Likewise.
9605         (read_translit_ignore_entry): Store ellipsis step.
9606         (ctype_read): Recognize ..(2).. etc and pass step down.
9607
9608         * locale/programs/linereader.c (lr_token): When seeing comment
9609         character ignore only rest of line in sources but stop at escaped
9610         newline.
9611         Recognize ..(2).. and ....(2).....
9612
9613         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9614         and tok_ellipsis4_2.
9615
9616 2000-04-06  Andreas Jaeger  <aj@suse.de>
9617
9618         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9619         removed, remove it here also.
9620         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9621         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9622         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9623         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9624
9625 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9626
9627         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9628         include bits/sigcontext.h.
9629         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9630
9631 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9632
9633         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9634         collation symbol definition.  Value in quivalence definition must
9635         be defined, don't check that it is not.
9636
9637         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9638         values as character names.
9639
9640         * locale/programs/ld-ctype.c (get_character): Handle missing
9641         repertoire map correctly.
9642
9643 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9644
9645         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9646         because it is used in generic code.
9647         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9648         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9649         * intl/gettext.c: Include <locale.h>.
9650         * intl/ngettext.c: Likewise.
9651
9652 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9653
9654         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9655         socklen_t type for size.
9656         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9657         init function interface.
9658         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9659         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9660         sys/ucontext.h.
9661         (__jmp_buf): Declare the whole type structure here, don't use
9662         ucontext.
9663
9664 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9665
9666         * iconv/skeleton.c (put16u): Fix typo.
9667         Reported by Bruno Haible <haible@ilog.fr>.
9668
9669         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9670         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9671         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9672         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9673         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9674         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9675
9676         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9677         * Makefile (distribute): Add abi-versions.awk and
9678         firstversions.awk.
9679         Patches by Torsten Duwe <duwe@caldera.de>.
9680
9681 2000-04-05  Andreas Schwab  <schwab@suse.de>
9682
9683         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9684
9685 2000-04-05  Andreas Schwab  <schwab@suse.de>
9686
9687         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9688         entry point, used on Hurd.
9689
9690 2000-04-04  Andreas Jaeger  <aj@suse.de>
9691
9692         * intl/Makefile: Only run the gettext test with shared libraries.
9693
9694 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9695
9696         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9697         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9698
9699 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9700
9701         * Makeconfig: Undo last change.
9702         * configure.in: If --disable-shared was given, don't set VERSIONING,
9703         don't define DO_VERSIONING, and don't give scare warning for no
9704         versioning.
9705         * configure: Regenerated.
9706
9707 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9708
9709         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9710
9711 2000-04-04  Andreas Jaeger  <aj@suse.de>
9712
9713         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9714
9715 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9716
9717         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9718         STV_HIDDEN and STV_INTERNAL during lookup.
9719         (profile_fixup): Likewise.
9720         * elf/dl-reloc.c (RESOLVE): Likewise.
9721
9722         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9723         unaligned so that it compiles for system which need unaligned
9724         access handling.
9725
9726 2000-04-04  Andreas Schwab  <schwab@suse.de>
9727
9728         * elf/cache.c (print_entry): Only look at the type field when
9729         printing the type.
9730
9731 2000-04-04  Andreas Schwab  <schwab@suse.de>
9732
9733         * iconvdata/big5.c (BODY): Fix typo.
9734
9735 2000-04-04  Andreas Schwab  <schwab@suse.de>
9736
9737         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9738         function interface.  Remove unused _dl_start_user entry point.
9739
9740 2000-04-03  Andreas Jaeger  <aj@suse.de>
9741
9742         * include/arpa/inet.h (__inet_aton): Add protoype.
9743
9744 2000-04-01  Andreas Jaeger  <aj@suse.de>
9745
9746         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9747
9748         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9749         * sysdeps/mach/mips/thread_state.h: Likewise.
9750
9751         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9752         * sysdeps/generic/fegetenv.c: Likewise.
9753         * sysdeps/generic/fesetenv.c: Likewise.
9754         * sysdeps/generic/feupdateenv.c: Likewise.
9755         * sysdeps/generic/fraiseexcpt.c: Likewise.
9756         * sysdeps/generic/fsetexcptflg.c: Likewise.
9757         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9758         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9759         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9760         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9761
9762 2000-04-02  H.J. Lu  <hjl@gnu.org>
9763
9764         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9765
9766 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9767
9768         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9769         (add_name_to_object): Add cast in malloc call.
9770         (fillin_rpath): Optimize loop to initialize ->status a bit.
9771
9772         * sysdeps/i386/dl-machine.h: Undo last change.
9773         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9774         Restore %edx register after call here.
9775
9776         * sysdeps/arm/atomicity.h: New file.
9777         Contributed by Jesper Skov <jskov@redhat.com>.
9778
9779 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9780
9781         * Makeconfig (preprocess-versions): Undo last change.
9782         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9783
9784         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9785         here, before we might move the stack.
9786         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9787         (init1): And not here.
9788
9789         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9790         change, to restore argc value in call-clobbered register after
9791         RTLD_START_SPECIAL_INIT, which will contain a call.
9792
9793         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9794         allocating and initializing L->l_initfini.
9795
9796         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9797
9798 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9799
9800         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9801         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9802         (open_path): Change type of fourth parameter.  Make pointer to array
9803         of pointers.  Create variable dirs with original type.
9804         Track whether any directory for the object exists and if not,
9805         change *DIRSP to (void*) -1 to signal there is no such search path.
9806         (_dl_map_object): Change all calls of open_path.
9807         Rewrite decompose_rpath calls.
9808
9809 2000-03-31  Andreas Schwab  <schwab@suse.de>
9810
9811         * string/strfry.c: Declare STATE as array of char instead of int
9812         and do not initialize it (done by initstate_r).  Pass correct
9813         size.
9814
9815 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9816
9817         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9818
9819         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9820         instruction out of the code.
9821
9822 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9823
9824         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9825         element at this position.
9826
9827         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9828         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9829         l_reldeps elements.
9830         * elf/dl-lookup.c (add_dependency): New function.
9831         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9832         dynamically loaded object.
9833         (_dl_lookup_symbol_skip): Likewise.
9834         (_dl_lookup_versioned_symbol): Likewise.
9835         (_dl_lookup_versioned_symbol_skip): Likewise.
9836         * elf/dl-open.c: Don't define _dl_load_lock here...
9837         * elf/rtld.c: ...but here...
9838         * elf/dl-support.c: ...and here.
9839         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9840         through relocation.
9841         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9842         relocations.
9843         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9844         anymore.
9845         * dlfcn/glrefmain.c: Add one more debug message.
9846
9847         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9848         command line.
9849         * Makerules (sysd-versions): Use ( ) instead of { }.
9850
9851         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9852         optimize for the non-debugging case.
9853         * elf/dl-lookup.c: Likewise.
9854         * sysdeps/generic/libc-start.c: Likewise.
9855
9856 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9857
9858         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9859         (init1): Don't initialize __environ here, since init already does it.
9860         (first_init): New function, broken out of _init.
9861         (_hurd_stack_setup): Use it.
9862         [SHARED] (_dl_init_first): New function, renamed from old _init.
9863         (init1) [SHARED]: Don't call posixland_init here.
9864         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9865         [SHARED] (_init): Define as alias for posixland_init.
9866         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9867         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9868         RTLD_START_SPECIAL_INIT before calling initializers.
9869         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9870         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9871         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9872         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9873
9874         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9875         since we define the function with the name `tmpfile'.
9876
9877         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9878         * hurd/Versions: Likewise.
9879
9880 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9881
9882         * elf/dl-runtime.c (fixup): Fix typo in comment.
9883
9884         * resolv/netdb.h (getnameinfo): All length parameters are of type
9885         socklen_t.
9886         * inet/getnameinfo.c: Likewise.
9887
9888 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9889
9890         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9891         (gethostname): Change type of second parameter to socklen_t.
9892         * include/unistd.h (__gethostname): Change type of second
9893         parameter to socklen_t.
9894         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9895         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9896         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9897         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9898         Likewise.
9899         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9900         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9901         Allow definition elsewhere.
9902         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9903         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9904         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9905         * sysdeps/generic/bits/types.h: Define __socklen_t.
9906         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9907         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9908         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9909         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9910         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9911         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9912         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9913
9914         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9915         (inet_lnaof): Likewise.
9916         (inet_netof): Likewise.
9917         (inet_network): Likewise.
9918         (inet_aton): Likewise.
9919         (inet_makeaddr): Change parameter types to in_addr_t.
9920         (inet_neta): Likewise.
9921         (inet_ntop): Change type of last parameter to socklen_t.
9922         (inet_aton): Only make available if __USE_MISC.
9923         (inet_neta): Likewise.
9924         (inet_net_ntop): Likewise.
9925         (inet_net_pton): Likewise.
9926         (inet_nsap_ntoa): Likewise.
9927
9928         * inet/in.h: Define in_port_t type.
9929         Define in_addr_t type.
9930         (struct in_addr): Use in_addr_t in definition.
9931         (IN_CLASSA): Use cast to in_addr_t.
9932         (IN_CLASSB): Likewise.
9933         (IN_CLASSC): Likewise.
9934         (IN_CLASSD): Likewise.
9935         (IN_EXPERIMENTAL): Likewise.
9936         (IN_BADCLASS): Likewise.
9937         (INADDR_ANY): Likewise.
9938         (INADDR_BROADCAST): Likewise.
9939         (INADDR_NONE): Likewise.
9940         (INADDR_LOOPBACK): Likewise.
9941         (INADDR_UNSPEC_GROUP): Likewise.
9942         (INADDR_ALLHOSTS_GROUP): Likewise.
9943         (INADDR_ALLRTRS_GROUP): Likewise.
9944         (INADDR_MAX_LOCAL_GROUP): Likewise.
9945         (struct sockaddr_in): Use in_port_t for sin_port element.
9946         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9947         Use uint8_t instead of u_int8_t.
9948
9949         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9950         Call __inet_aton instead of inet_aton.
9951         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9952
9953         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9954         (innetgr): Likewise.
9955         (struct addrinfo): Use socklen_t for ai_addrlen element.
9956
9957         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9958         IPV6_RECVERR): New defines.
9959
9960         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9961         * inet/getnetbyad.c: Likewise.
9962         * inet/getnetbyad_r.c: Likewise.
9963         * nis/nss_nis/nis-network.c: Likewise.
9964         * nis/nssplus_nis/nisplus-network.c: Likewise.
9965         * nss/nss_files/files-network.c: Likewise.
9966         * resolv/netdb.h: Define uint32_t if not already happened.
9967         Include bits/netdb.h.  Remove definition of struct netent.
9968         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9969         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9970         * sysdeps/generic/bits/netdb.h: New file.
9971         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9972
9973         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9974         (tests): Add glrefmain.
9975         Add rules to build modules and run tests.  Ignore result of glrefmain
9976         for now since it fails.
9977         * dlfcn/glrefmain.c: New file.
9978         * dlfcn/glreflib1.c: New file.
9979         * dlfcn/glreflib2.c: New file.
9980
9981         * test-skeleton.c: Include <string.h> for strsignal prototype.
9982
9983         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9984         to be missing.
9985
9986         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9987         former init-first.h.  Initialize __libc_multiple_libcs.
9988
9989 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9990
9991         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9992         #if expression for use of unaligned function to the one used in
9993         the definition of these functions.
9994         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9995         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9996         (internal_ucs4le_loop_unaligned): New function.
9997
9998         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9999         (tests): Add order.
10000         (module-names): Add dep1, dep2, dep3, and dep4.
10001         Add dependencies for dep* modules and order.
10002         Define rule for order.out which checks the result.
10003         * elf/dep1.c: New file.
10004         * elf/dep2.c: New file.
10005         * elf/dep3.c: New file.
10006         * elf/dep4.c: New file.
10007         * elf/order.c: New file.
10008
10009         * elf/dl-init.c: Fix typo in comment.
10010
10011 2000-03-31  Andreas Jaeger  <aj@suse.de>
10012
10013         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
10014         init function interface.
10015         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
10016
10017 2000-03-31  Andreas Jaeger  <aj@suse.de>
10018
10019         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
10020         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10021         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10022         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
10023         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10024
10025         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
10026         anymore, update comment.
10027
10028         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10029
10030         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
10031         SHLIB_COMPAT - the struct is always needed.
10032
10033 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
10034
10035         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
10036         * elf/dl-support.c: Define _dl_starting_up.
10037
10038 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10039
10040         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
10041         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
10042
10043         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
10044
10045         * elf/Makefile (dl-routines): Remove preinit.
10046         * elf/Versions: Remove _dl_preinit.
10047         * elf/dl-preinit.c: Removed.  Move content into...
10048         * elf/dl-init.c: ...here.
10049         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
10050
10051         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
10052         elements.
10053
10054 2000-03-29  Geoff Clare  <gwc@unisoft.com>
10055
10056         * stdlib/strfmon.c: Corrected problems with the code that
10057         sets default values for [np]_sep_by_space and
10058         [np]_sign_posn; also the new positive/negative alignment
10059         code from the previous patch was not quite right for
10060         [np]_sign_posn = 0.
10061
10062         * localedata/tst-fmon.data: Changes corresponding to the
10063         two sets of fixes made to stdlib/strfmon.c.
10064
10065 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
10066
10067         * malloc/malloc.c: Declare bit flags UL so that they will not
10068         default to int size when being inverted.
10069
10070 2000-03-29  Andreas Jaeger  <aj@suse.de>
10071
10072         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
10073         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10074
10075 2000-03-29  Andreas Jaeger  <aj@suse.de>,
10076             Ralf Baechle <ralf@uni-koblenz.de>
10077
10078         * Makeconfig: Introduce new variable SHARED to mark code used in
10079         the shared library.
10080         * elf/dl-close.c: Use it instead of PIC.
10081         * elf/dl-load.c: Likewise.
10082         * elf/dl-open.c: Likewise.
10083         * hurd/geteuids.c: Likewise.
10084         * include/libc-symbols.h: Likewise.
10085         * include/shlib-compat.h: Likewise.
10086         * libio/freopen.c: Likewise.
10087         * linuxthreads/cancel.c: Likewise.
10088         * linuxthreads/pthread.c: Likewise.
10089         * linuxthreads/wrapsyscall.c: Likewise.
10090         * nss/nsswitch.c: Likewise.
10091         * stdio-common/vfprintf.c: Likewise.
10092         * sysdeps/arm/init-first.c: Likewise.
10093         * sysdeps/i386/init-first.c: Likewise
10094         * sysdeps/generic/init-first.c: Likewise.
10095         * sysdeps/generic/libc-start.c: Likewise.
10096         * sysdeps/mips/init-first.c: Likewise.
10097         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10098         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10099         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10100         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10101         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10102
10103         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10104
10105 2000-03-29  Andreas Jaeger  <aj@suse.de>
10106
10107         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10108         Use D_PTR to access relocated entries in l_info.
10109         (elf_machine_rela): Likewise.
10110
10111         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10112         Likewise.
10113         (elf_machine_rela): Likewise.
10114
10115         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10116         Likewise.
10117         (__elf_machine_fixup_plt): Likewise.
10118         (__process_machine_rela): Likewise.
10119
10120         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10121         (elf_machine_rela): Likewise.
10122
10123         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10124         (elf_machine_rel): Likewise.
10125
10126         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10127         (elf_machine_fixup_plt): Likewise.
10128         (elf_machine_rela): Likewise.
10129
10130 2000-03-29  Andreas Jaeger  <aj@suse.de>
10131
10132         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10133         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10134         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10135         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10136         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10137         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10138         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10139         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10140         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10141         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10142         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10143         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10144         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10145         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10146         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10147
10148         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10149         macros, remove K&R prototypes.
10150
10151 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10152
10153         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10154         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10155         (PR libc/1677).
10156
10157 2000-03-30  Andreas Jaeger  <aj@suse.de>
10158
10159         * misc/sys/cdefs.h: Remove K&R support.
10160
10161 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10162
10163         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10164         more cases.
10165         * iconv/loop.c: Likewise.
10166
10167 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10168
10169         * iconv/loop.c (put16): Remove __const. Fix access index.
10170         (put32): Remove __const. Use uint32_t instead of uint16_t.
10171         * iconv/skeleton.c: Likewise.
10172
10173 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10174
10175         * mach/Versions (libc: GLIBC_2.0)
10176         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10177         __vm_allocate on this.
10178         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10179         mutex- and spinlock-related symbols on this.
10180         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10181         New version set.  Lock-related symbols go here instead in this case.
10182         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10183         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10184         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10185         * hurd/Versions
10186         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10187         Put them here instead.
10188         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10189         New version set.  Those cthreads symbols go here instead in this case.
10190         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10191
10192 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10193
10194         * elf/dl-init.c (_dl_init): We don't need to call constructors
10195         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10196
10197         Implement dynamic determination of constructor/destructor order in
10198         the dynamic linker.
10199         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10200         (GLIBC_2.2): Add _dl_init.
10201         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10202         r_duplist is not anymore allocated separately.  l_initfini is and
10203         therefore free it if necessary.
10204         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10205         malloc block.  Otherwise allocate l_initfini list only.
10206         Put dependencies for the object in l_initfini list.
10207         Sort dependencies for the object to be loaded topologically.
10208         * elf/dl-fini.c: Before running the destructors sort the topologically.
10209         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10210         call constructors instead of iterating over the pointers.  Get list of
10211         objects for which to run constructors from l_initfini element. Accept
10212         argc, argv, and env as parameters and pass them to the constructors.
10213         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10214         with size of dynamic section.
10215         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10216         _dl_init_next and calling constructors ourself.
10217         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10218         Take argc, argv, and env as parameters and pass them to the
10219         constructors.  Rewrite to call all constructors and not iterate over
10220         the pointers.
10221         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10222         precompute l_initcount and l_preinitcount.
10223         * elf/link.h (struct link_map): Add l_ldnum member.
10224         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10225         l_initcount, and l_preinitcount.  Add l_initfini.
10226         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10227         one for _dl_init.
10228         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10229         function interface.
10230         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10231         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10232         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10233         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10234         conventions now match.
10235
10236         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10237         effect for shared objects.  Don't emit message and call only for
10238         static library.
10239
10240 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10241
10242         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10243         CSA_Z243.4-1985-1..UCS2.
10244         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10245         ISO-8859-10..UCS2.
10246
10247 2000-03-29  Andreas Jaeger  <aj@suse.de>
10248
10249         * include/unistd.h: Remove duplicate entry for __rmdir.
10250         Remove declaration of __mkdir since __mkdir is declared in
10251         sys/stat.h.
10252
10253         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10254         by Michael Deutschmann <michael@talamasca.ocis.net>.
10255
10256         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10257         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10258         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10259         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10260         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10261
10262 2000-03-28  Andreas Jaeger  <aj@suse.de>
10263
10264         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10265         declaration, the prototype is defined via bits/mathcalls.h.
10266         (__sincosf): Likewise.
10267         (__sincosl): Likewise.
10268         (ldexp): Likewise.
10269         (ldexpf): Likewise.
10270         (ldexpl): Likewise.
10271         (__finite): Likewise.
10272         (__inline_mathcodeNP): New macro without prototype
10273         declarations.
10274         (__inline_mathcodeNP2): Likewise.
10275         (__inline_mathcodeNP3): Likewise.
10276         (__inline_mathcodeNP_): Likewise.
10277         (__inline_mathcodeNP2_): Likewise.
10278         (__inline_mathcodeNP3_): Likewise.
10279         (__inline_mathopNP): Likewise.
10280         (__inline_mathop_declNP): Likewise.
10281         (__inline_mathop_declNP_): Likewise.
10282         (__inline_mathcode_): Use __inline_mathcodeNP_.
10283         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10284         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10285         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10286         (__expm1l): Don't define prototype, the prototype is defined via
10287         bits/mathcalls.h.
10288         (exp): Likewise.
10289         (__expl): Likewise.
10290         (tan): Likewise.
10291         (atan2): Likewise.
10292         (__atan2l): Likewise.
10293         (fmod): Likewise.
10294         (pow): Likewise.
10295         (fabsf): Likewise.
10296         (fabsl): Likewise.
10297         (__fabsl): Likewise.
10298         (asin): Likewise.
10299         (acos): Likewise.
10300         (sinh): Likewise.
10301         (cosh): Likewise.
10302         (tanh): Likewise.
10303         (floor): Likewise.
10304         (ceil): Likewise.
10305         (expm1): Likewise.
10306         (log1p): Likewise.
10307         (asinh): Likewise.
10308         (acosh): Likewise.
10309         (atanh): Likewise.
10310         (hypot): Likewise.
10311         (logb): Likewise.
10312         (fma): Likewise.
10313         (drem): Likewise.
10314         (sqrt): Likewise.
10315         (__sqrtl): Likewise.
10316         (sin): Likewise.
10317         (cos): Likewise.
10318         (atan): Likewise.
10319         (log): Likewise.
10320         (log10): Likewise.
10321         (asinh): Likewise.
10322         (log2): Likewise.
10323         (rint): Likewise.
10324
10325 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10326
10327         * Makerules: If make variable md5 is defined to yes after
10328         generating dependencies generate MD5 sum for the object.
10329
10330         * iconv/gconv_builtin.h: Fix length in transformation definition
10331         for UNICODEBIG.
10332
10333         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10334
10335         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10336         allow as well reading from/writing to unaligned addresses on machines
10337         which don't support this in hardware.  Use FCTNAME macro to define
10338         function name.  Include the file a second time for platforms which
10339         need special unaligned handling.
10340         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10341         to access potentially unaligned addresses.  These macros are intended
10342         to be used only outside the loops.
10343         (unaligned): New definition.  In case the machine can handle unaligned
10344         access define as zero.  Otherwise as a variable which is initialized
10345         as nonzero in case the buffer passed in at runtime is unaligned with
10346         respect to the character set encoding involved.
10347         Call aligned or unaligned looop functions according to unaligned
10348         variable.
10349         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10350         of direct casting pointer to potentially handle unaligned memory
10351         accesses.
10352         * iconvdata/8bit-generic.c: Likewise.
10353         * iconvdata/ansi_x3.110.c: Likewise.
10354         * iconvdata/big5.c: Likewise.
10355         * iconvdata/euc-cn.c: Likewise.
10356         * iconvdata/euc-jp.c: Likewise.
10357         * iconvdata/euc-kr.c: Likewise.
10358         * iconvdata/euc-tw.c: Likewise.
10359         * iconvdata/gbk.c: Likewise.
10360         * iconvdata/iso-2022-cn.c: Likewise.
10361         * iconvdata/iso-2022-jp.c: Likewise.
10362         * iconvdata/iso-2022-kr.c: Likewise.
10363         * iconvdata/iso646.c: Likewise.
10364         * iconvdata/iso_6937-2.c: Likewise.
10365         * iconvdata/iso_6937.c: Likewise.
10366         * iconvdata/johab.c: Likewise.
10367         * iconvdata/sjis.c: Likewise.
10368         * iconvdata/t.61.c: Likewise.
10369         * iconvdata/uhc.c: Likewise.
10370         * iconvdata/unicode.c: Likewise.
10371         * iconvdata/utf-16.c: Likewise.
10372
10373         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10374         prototypes.
10375
10376         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10377         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10378         public.
10379         * malloc/mcheck.h (mcheck_check_all): Declare.
10380
10381         * stdio-common/Makefile (tests): Add tst-obprintf.
10382
10383 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10384
10385         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10386         Declare pthread_sigmask.
10387
10388         * csu/version.c: Add 2000 to copyright years.
10389         Remove Emacs local variables section.
10390
10391 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10392
10393         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10394         __gconv_transform_internal_ucs2little): Remove declarations.
10395         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10396         __gconv_transform_internal_ucs2): Never need to bswap_16.
10397         (__gconv_transform_ucs2reverse_internal,
10398         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10399
10400 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10401
10402         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10403         obsoleting version not being defined at all, in which case the
10404         result is always true.
10405
10406         * Makeconfig (preprocess-versions): New canned sequence for running
10407         cpp on shlib-versions and the like.
10408         (soversions.i): Use it.
10409         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10410         Versions.def and Versions files.
10411
10412 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10413
10414         * stdio-common/tst-obprintf.c (main): Add another check to see
10415         obstack_printf handling all possible beginnings of the block
10416         inside an obstack chunk.
10417
10418         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10419         install mcheck handler.
10420
10421         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10422         handling problem.
10423
10424 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10425
10426         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10427
10428         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10429         on [HAVE_ELF && DO_VERSIONING].
10430
10431 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10432
10433         * stdio-common/tst-obprintf.c: New file.
10434
10435 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10436
10437         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10438         _IO_OVERFLOW directly instead through __overflow.
10439
10440         * locale/programs/localedef.c (construct_output_path): If path
10441         contains a / compute the end of the directory name correctly.
10442
10443         * include/features.h: Undef and document __USE_XOPEN2K.
10444
10445         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10446         whenever a function is called.  Initiated by calling mcheck_pedantic
10447         instead of mcheck.
10448         * malloc/mcheck.h: Declare mcheck_pedantic.
10449         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10450         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10451         for now.
10452
10453 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10454
10455         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10456         * dlfcn/dlopenold.c: Likewise.
10457         * nss/getXXbyYY_r.c: Likewise.
10458         * nss/getXXent_r.c: Likewise.
10459         * hurd/hurdinit.c: Likewise.
10460         * hurd/compat-20.c: Likewise.
10461         * libio/oldiofopen.c: Likewise.
10462         * libio/oldiofclose.c: Likewise.
10463         * libio/oldiofdopen.c: Likewise.
10464         * libio/oldfileops.c: Likewise.
10465         * libio/oldstdfiles.c: Likewise.
10466         * libio/oldiofsetpos.c: Likewise.
10467         * libio/oldiofgetpos.c: Likewise.
10468         * libio/oldiofgetpos64.c: Likewise.
10469         * libio/oldiofsetpos64.c: Likewise.
10470         * libio/oldiopopen.c: Likewise.
10471         * libio/oldpclose.c: Likewise.
10472         * libio/oldtmpfile.c: Likewise.
10473         * libio/freopen.c (freopen): Likewise.
10474         * libio/iofclose.c (_IO_new_fclose): Likewise.
10475
10476         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10477         (reboot): Declare it.
10478
10479         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10480
10481         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10482
10483         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10484
10485         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10486         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10487         We need this for the sbrk decl, which can be included without Unix98.
10488
10489 2000-03-20  Richard Henderson  <rth@cygnus.com>
10490
10491         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10492         argument to yperr2nss is an int, not size_t.
10493         * posix/regex.c (print_partial_compiled_pattern): Cast all
10494         ptrdiff_t to long for printing.
10495         (print_compiled_pattern): Use Z for printing size_t.
10496         * posix/testfnm.c (tests): Avoid trigraphs.
10497         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10498         Use a C comment, not an assembly comment.
10499
10500         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10501         of __ASSUME_32BITUIDS.
10502
10503 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10504
10505         * libio/iofopncook.c: Remove K&R prototypes.
10506
10507 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10508
10509         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10510         an initial value of 1024 instead of RLIM_INFINITY.
10511
10512         * Versions.def (libmachuser, libhurduser): Remove these sections,
10513         since these libraries do not presently use symbol versions.
10514
10515         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10516         is RLIM_INFINITY, return -1 instead.
10517
10518 2000-03-24  Andreas Jaeger  <aj@suse.de>
10519
10520         * Makefile (postclean): Added soversions.i.
10521
10522 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10523
10524         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10525         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10526         and _FPU_IEEE.  Change _FPU_RESERVED.
10527
10528 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10529
10530         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10531
10532 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10533
10534         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10535         (gaih_inet): Remove unused duplicate variable.
10536
10537         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10538         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10539         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10540         only flavors supported by this function anyway.
10541
10542 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10543
10544         * stdlib/strfmon.c: Corrected problems with missing signs and
10545         missing or extra spaces; allow for sign strings longer than
10546         one character; add padding to ensure positive and negative
10547         formats are aligned when a left precision is used.
10548
10549 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10550
10551         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10552         Patch by John Mizel <John.Mizel@msdw.com>.
10553
10554 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10555
10556         * manual/install.texi: Remove references to crypt add-on.
10557
10558 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10559
10560         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10561         section while taking the _hurd_rlimit_lock.
10562         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10563
10564 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10565
10566         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10567         using $(LN_S).
10568
10569         * sysdeps/mach/hurd/if_index.c: New file.
10570
10571         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10572         * sysdeps/gnu/net/if.h: here.
10573         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10574         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10575         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10576         functions and `struct if_nameindex' type.
10577         * socket/Makefile (headers): Add net/if.h here.
10578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10579         * sysdeps/mach/hurd/Dist: Remove it here.
10580         * sysdeps/unix/sysv/linux/Dist: And here.
10581         * sysdeps/generic/if_index.c: Include <net/if.h>.
10582
10583 2000-03-24  Andreas Jaeger  <aj@suse.de>
10584
10585         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10586         access relocated entries in l_info.
10587         (elf_machine_got_rel): Likewise.
10588         (elf_machine_runtime_setup): Likewise.
10589         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10590         (elf_machine_runtime_setup): Likewise.
10591         (__dl_runtime_resolve): Likewise.
10592
10593 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10594
10595         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10596         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10597         according to RFC 2553.
10598         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10599         * inet/getnameinfo.c: Likewise.
10600         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10601
10602 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10603
10604         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10605         Remove no-op pointer increment.
10606
10607 2000-03-23  Andreas Jaeger  <aj@suse.de>
10608
10609         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10610         follow change for libio.h from 2000-03-10.
10611
10612 2000-03-23  Andreas Jaeger  <aj@suse.de>
10613
10614         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10615         change.
10616         * elf/dl-debug.c: Likewise.
10617         * elf/dl-deps.c: Likewise.
10618         * elf/dl-error.c: Likewise.
10619         * elf/dl-fini.c: Likewise.
10620         * elf/dl-init.c: Likewise.
10621         * elf/dl-load.c: Likewise.
10622         * elf/dl-lookup.c: Likewise.
10623         * elf/dl-minimal.c: Likewise.
10624         * elf/dl-object.c: Likewise.
10625         * elf/dl-open.c: Likewise.
10626         * elf/dl-preinit.c: Likewise.
10627         * elf/dl-profile.c: Likewise.
10628         * elf/dl-profstub.c: Likewise.
10629         * elf/dl-reloc.c: Likewise.
10630         * elf/dl-runtime.c: Likewise.
10631         * elf/dl-support.c: Likewise.
10632         * elf/dl-symbol.c: Likewise.
10633         * elf/dl-version.c: Likewise.
10634         * elf/rtld.c: Likewise.
10635         * elf/sprof.c: Likewise.
10636         * sysdeps/generic/dl-cache.c: Likewise.
10637         * sysdeps/generic/dl-origin.c: Likewise.
10638         * sysdeps/generic/dl-sysdep.c: Likewise.
10639         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10640         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10641         * sysdeps/generic/libc-start.c: Likewise.
10642         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10643         * sysdeps/powerpc/dl-machine.c: Likewise.
10644         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10645         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10646         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10647         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10648
10649         * elf/ldsodefs.h: Move file to ...
10650         * sysdeps/generic/ldsodefs.h: ... here.
10651
10652         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10653
10654         * sysdeps/mips/elf/ldsodefs.h: New file.
10655
10656         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10657         entries in l_info.
10658         (_dl_check_map_versions): Likewise.
10659         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10660         * elf/dl-load.c (_dl_init_paths): Likewise.
10661         (_dl_map_object): Likewise.
10662         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10663         (elf_get_dynamic_info): Likewise.
10664         * elf/do-lookup.h (FCT): Likewise.
10665         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10666         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10667         * elf/dl-addr.c (_dl_addr): Likewise.
10668         * elf/dl-runtime.c (profile_fixup): Likewise.
10669         (fixup): Likewise.
10670         * elf/dl-init.c (_dl_init_next): Likewise.
10671         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10672         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10673         (DISTINGUISH_LIB_VERSIONS): Likewise.
10674         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10675         (elf_machine_rel): Likewise.
10676
10677         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10678         for writable dynamic section.
10679
10680 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10681
10682         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10683         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10684
10685 2000-03-22  Andreas Jaeger  <aj@suse.de>
10686
10687         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10688         from latest Linux kernel.
10689
10690 2000-03-21  Andreas Jaeger  <aj@suse.de>
10691
10692         * Versions.def: Add version 2.1.4.
10693
10694 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10695
10696         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10697         * libio/oldiofopen.c: Likewise.
10698         * libio/oldiofclose.c: Likewise.
10699         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10700
10701 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10702
10703         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10704         indicating the first version set to obsolete the conditionalized code.
10705         (compat_symbol): New macro.
10706         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10707         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10708         integer values to the ABI_* macros for supported versions.
10709         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10710         compat_symbol macro.
10711
10712 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10713
10714         * nscd/connections.c (nscd_run): Pretty print.
10715         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10716
10717         * manual/charset.texi: Fix typos.  Rephrase.
10718         * manual/process.texi: Likewise.
10719         * manual/signal.texi: Likewise.
10720         Patches by Mike Coleman <mkc@kc.net>.
10721
10722         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10723         versions.
10724         * libio/iofdopen.c: Likewise.
10725         * libio/iofgetpos.c: Likewise.
10726         * libio/iofgetpos64.c: Likewise.
10727         * libio/iofopen.c: Likewise.
10728         * libio/iofsetpos.c: Likewise.
10729         * libio/iofsetpos64.c: Likewise.
10730         * libio/iopopen.c: Likewise.
10731         * libio/oldiofopen.c: Likewise.
10732         * libio/pclose.c: Likewise.
10733         * sysdeps/gnu/siglist.c: Likewise.
10734         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10735
10736         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10737         chance to expand VERSION_##lib##_##version.
10738
10739         * libio/fileops.c: Use new macros from shlib-compat.h to define
10740         versions.
10741         * libio/iofclose.c: Likewise.
10742         * libio/oldiofclose.c: Likewise.
10743         Patch by Roland McGrath <roland@frob.com>.
10744
10745 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10746
10747         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10748         Lay out struct sigcontext according to what really gets passed on
10749         the stack.
10750         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10751         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10752         (prgregset_t, prfpregset_t): Define to elf_* types.
10753         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10754         Define to correct value.
10755         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10756         sigcontext.
10757         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10758
10759 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10760
10761         * scripts/firstversions.awk: Allow multiple version sets in the
10762         "earliest version" specification, meaning that version sets in the
10763         gaps between listed versions should be folded into the earliest later
10764         version that is explicitly listed.
10765         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10766         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10767
10768 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10769
10770         * iconv/gconv_builtin.c: Include <endian.h>.
10771         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10772         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10773         according to current platform.
10774         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10775         __gconv_transform_internal_ucs2reverse, and
10776         __gconv_transform_internal_ucs4le.
10777         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10778         __gconv_transform_ucs2reverse_internal and
10779         __gconv_transform_internal_ucs2reverse.
10780         * iconvdata/Makefile (modules): Add UNICODE.
10781         (distribute): Add unicode.c.
10782         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10783         * iconvdata/unicode.c: New file.
10784
10785         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10786         determine byte order of input and convert accordingly.
10787
10788         * iconvdata/utf-16.c (gconv_init): Fix typo.
10789
10790 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10791
10792         * iconvdata/gconv-modules: Fix typo.
10793
10794         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10795         more messages.
10796
10797         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10798
10799 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10800
10801         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10802
10803 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10804
10805         * misc/Makefile (routines): Add mincore.
10806
10807 2000-03-20  Andreas Jaeger  <aj@suse.de>
10808
10809         * sysdeps/generic/mincore.c: New stub file.
10810
10811         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10812         from latest Linux kernel.
10813
10814 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10815
10816         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10817         _SC_GETPW_R_SIZE_MAX.
10818
10819 2000-03-20  Richard Henderson  <rth@cygnus.com>
10820
10821         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10822         in GLIBC_2.1.4.
10823
10824 2000-03-20  Richard Henderson  <rth@cygnus.com>
10825
10826         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10827         of arithmetic instructions.
10828
10829         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10830         with the fpcr.  Protect from INV exception.
10831         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10832         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10833         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10834
10835         * sysdeps/alpha/fpu/s_copysign.c: New.
10836         * sysdeps/alpha/fpu/s_copysignf.c: New.
10837         * sysdeps/alpha/fpu/s_fabs.c: New.
10838         * sysdeps/alpha/fpu/s_fabsf.c: New.
10839         * sysdeps/alpha/fpu/s_rint.c: New.
10840         * sysdeps/alpha/fpu/s_rintf.c: New.
10841
10842         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10843
10844         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10845         Kill sethae.
10846         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10847         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10848         Use physical addresses not KSEG addresses.
10849         (io_system): Add PYXIS.
10850         (io): Remove hae.reg, sys, hae_shift.
10851         (stb_mb, stw_mb, stl_mb, __sethae): New.
10852         (inline_outb, inline_outw, inline_outl): Don't set hae.
10853         (inline_inb, inline_inw, inline_inl): Likewise.
10854         (dense_sethae): New null function.
10855         (struct cpuinfo_data): New.
10856         (process_cpuinfo): Use local and stack variables, not static.
10857         Move readlink check here from init_iosys.
10858         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10859         (_iopl): Simplify.
10860         (_hae_shift): Calculate it here.
10861         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10862         add pciconfig_iobase.
10863
10864 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10865
10866         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10867         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10868
10869         * scripts/versions.awk: Fixed version renaming code to distinguish
10870         libraries properly.
10871
10872 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10873
10874         * include/stdlib.h: Add prototype for __cxa_atexit.
10875
10876         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10877         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10878
10879 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10880
10881         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10882         existing rtld-installed-name.
10883         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10884         replace existing rtld-installed-name using $(symbolic-link-prog).
10885
10886 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10887
10888         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10889         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10890         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10891         but not the former.
10892
10893 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10894
10895         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10896         glob64.  Since there is no glob64 in the LFS proposal applications
10897         can assume that glob handles LFS situations.  glob64 is only needed
10898         if alternative filesystem functions are used.
10899
10900 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10901
10902         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10903         when GLOB_DOOFFS is set; correct handling of patterns
10904         containing escaped wildcards (and no unescaped ones);
10905         GLOB_ERR flag was being ignored in some situations.
10906
10907         * posix/globtest.c, posix/globtest.sh: Updated to include
10908         tests for the problems fixed by the above changes to glob.c.
10909
10910         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10911
10912 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10913
10914         * Makeconfig (soversion.i): Use only first match for each lib.
10915
10916         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10917
10918         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10919         rather than $(sysd-dirs-done) to protect these rules.
10920
10921         * Makerules (version-renames.def): Target removed.
10922         (Versions.all): Depend on soversions.i directly and parse it.
10923
10924         * Makeconfig (soversions.i): New target, input-reading parts of
10925         soversions.mk generation moved here; result is a canonicalized
10926         list "LIB VERSION [SET]" for this configuration.
10927         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10928         * Makerules (version-renames.def): New target, generated from
10929         soversions.i with contents that was in $(map-firstversions).
10930         (Versions.all): Don't depend on soversions.mk, depend on
10931         version-renames.def instead; just cat it into the input.
10932
10933         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10934         for $(map-firstversions), which better handles it being empty.
10935
10936         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10937         supported version for libc 0.2.90.libio to GLIBC_2.2.
10938
10939         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10940         and use it to emit new variable `map-firstversions'.
10941         * scripts/firstversions.awk: New file.
10942         * Makerules (Versions.all): Use scripts/firstversions.awk and
10943         the $(map-firstversions) value to generate a modified versions list
10944         that includes renames in "A = B" syntax for each version set earlier
10945         than the "earliest symbol version" named in shlib-versions.
10946         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10947         rename version set A to B in the output to the intermediate file.
10948         * scripts/abi-versions.awk: New file.
10949         * Makerules (abi-versions.h): New target, generated by that script.
10950         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10951         * include/shlib-compat.h: New file, uses that generated header.
10952
10953 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10954
10955         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10956         after stripping # comments, and then run it through cpp.
10957         This allows things like "%ifdef FOO" based on config.h settings.
10958         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10959
10960         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10961         and other errors that indicate a pseudo-receive happened, grok through
10962         the message buffer for port rights that need references fixed up.
10963
10964 2000-03-16  Andreas Jaeger  <aj@suse.de>
10965
10966         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10967
10968         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10969
10970         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10971         from latest Linux kernel.
10972         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10973
10974         * misc/sys/mman.h: Add prototype for mincore.
10975
10976 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10977
10978         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10979         entry for GLIBC_2.0 version of setrlimit.
10980         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10981
10982 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10983
10984         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10985         * nis/nss_compat/compat-initgroups.c: Likewise.
10986         * nis/nss_nis/nis-initgroups.c: Likewise.
10987         * nis/nss_nis/nis-netgrp.c: Likewise.
10988         * nis/nss_nis/nis-proto.c: Likewise.
10989         * nis/nss_nis/nis-rpc.c: Likewise.
10990         * nis/nss_nis/nis-service.c: Likewise.
10991         * nis/ypclnt.c: Likewise.
10992
10993 2000-03-16  Andreas Jaeger  <aj@suse.de>
10994
10995         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10996         doesn't exist, correct checks.  Fixes PR libc/1649.
10997
10998 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10999
11000         * nscd/hstcache.c: Restore correct UID.
11001         * nscd/pwdcache.c: Likewise.
11002         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
11003
11004 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
11005
11006         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
11007         macros for register names, in line with 2000-03-14 linux change.
11008
11009         * sysdeps/mach/sched_yield.c: New file.
11010
11011 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
11012
11013         * sysdeps/generic/lockfile.c: Include <stdio.h>
11014         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
11015         case <libio.h> defined them.
11016         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
11017         from __internal_*.
11018         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
11019         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
11020
11021         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
11022         for more pleasing parse error.
11023
11024 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
11025
11026         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
11027         memory for eras.
11028         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
11029
11030         * elf/Makefile: Add rules to compile and run constload1 test.
11031         * elf/constload1.c: New file.
11032         * elf/constload2.c: New file.
11033         * elf/constload3.c: New file.
11034
11035 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
11036
11037         * sysdeps/posix/open64.c: Make __open64 weak alias.
11038         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
11039         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
11040         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
11041         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
11042         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
11043         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
11044         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
11045         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
11046         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
11047         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
11048
11049 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11050
11051         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
11052         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
11053
11054 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
11055
11056         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
11057         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
11058
11059 2000-03-08  Andreas Jaeger  <aj@suse.de>
11060
11061         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
11062
11063 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11064
11065         * timezone/africa: Update from tzdata2000d.
11066         * timezone/asia: Likewise.
11067         * timezone/australasia: Likewise.
11068         * timezone/europe: Likewise.
11069         * timezone/northamerica: Likewise.
11070         * timezone/southamerica: Likewise.
11071
11072         * po/fr.po: Update from translation team.
11073         * po/de.po: Likewise.
11074
11075         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
11076         last parameter.  Move code to add map to global scope from here...
11077         * elf/dl-open.c (dl_open_worker): ...here.
11078         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
11079         * elf/rtld.c: Adjust call to _dl_map_object_deps.
11080
11081         * locale/programs/ld-collate.c (collate_read): Fix warning.
11082
11083         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11084         values and macros for register names.
11085
11086         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11087         returned by seek cookie function is -1.
11088
11089 2000-03-14  Andreas Jaeger  <aj@suse.de>
11090
11091         * locale/localeconv.c (localeconv): Fix typo.
11092         Reported by Andre Charbonneau <andrec@corel.com>.
11093
11094 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11095
11096         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11097         since modules depend on it counting the number of times the conversion
11098         function got called.
11099
11100         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11101
11102         * iconv/gconv.h: Pretty print.
11103
11104 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11105
11106         * posix/wordexp-test.c: Correct one of the tests added in the last
11107         change.  Really get the root passwd entry to check again ~root.
11108
11109 2000-03-10  Andreas Jaeger  <aj@suse.de>
11110
11111         * manual/filesys.texi (Working Directory): Fix last patch.
11112         Patch by Martin Buchholz  <martin@xemacs.org>.
11113
11114 2000-03-10  Andreas Jaeger  <aj@suse.de>
11115
11116         * manual/creature.texi (Feature Test Macros): Fix language.
11117
11118 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11119
11120         * mach/devstream.c (devstream_write, devstream_read): New functions.
11121         (input, output): Functions removed.
11122         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11123         using only the vanilla fopencookie interface.
11124
11125         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11126         as macro for __io_functions.
11127         (funcsio): Use cookie_io_functions_t type name.
11128         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11129
11130         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11131         fopencookie.
11132         (fopencookie): Use it.
11133         * libio/libio.h: Declare _IO_cookie_init.
11134         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11135         _IO_cookie_init.
11136
11137         * libio/libio.h (__io_seek_fn): Fix second argument type
11138         to be a pointer, in line with the manual and the old stdio.
11139         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11140
11141         * sysdeps/generic/bits/stdio-lock.h: New file.
11142         This is a stub with #error, but that's better than no file at all.
11143
11144 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11145
11146         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11147         * manual/message.texi (Using gettextized software): Doc Fixes.
11148         * manual/message.texi (Message Translation): Doc Fixes.
11149         * manual/filesys.texi (File Size): Doc Fixes.
11150         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11151         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11152         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11153         * manual/install.texi: Doc Fixes.
11154         * manual/search.texi (Hash Search Function): Doc Fixes.
11155         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11156         * FAQ.in: Doc Fixes.
11157         * config.h.in: Doc Fixes.
11158         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11159         Doc Fixes.  `allows to' is not correct English.
11160
11161         * elf/rtld.c: Doc fixes.
11162         * manual/creature.texi (Feature Test Macros): Doc fixes.
11163         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11164
11165         * manual/filesys.texi (Working Directory): Check for ERANGE to
11166         avoid infloop.
11167
11168 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11169
11170         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11171         conditions so as not to clobber the final '\0' when there is only one
11172         element in the vector.
11173
11174 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11175
11176         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11177         broken by 2000-02-27 change.
11178
11179         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11180
11181 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11182
11183         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11184         argument type, for 2000-02-22 change in signal/signal.h declaration.
11185
11186 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11187
11188         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11189         to getdirentries64 (no __), since the Linux implementation
11190         has no __ name, and there is no declaration for the __ name.
11191
11192         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11193
11194         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11195         sed regexp so as not to break directory names including /../ within.
11196
11197         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11198         The sysdeps/generic file is right for BSD.  This file was in fact the
11199         Hurd file, but the only difference was the WNOREAP flag that was never
11200         actually implemented or used anywhere.
11201
11202         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11203         since AC_PATH_PROG already does it for us.
11204         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11205         correctness and sh portability.  I replaced the broken check
11206         with a more sensible implementation of the apparently intended
11207         semantics, which might still be questionable.  Using expr causes
11208         a non-numeric value for `perl -V:apiversion` to be accepted,
11209         refusing to use only a perl that reports a number less than 5;
11210         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11211         * configure: Regenerated.
11212
11213 2000-03-08  Andreas Jaeger  <aj@suse.de>
11214
11215         * manual/crypt.texi: Fix paths.
11216
11217 2000-03-07  Andreas Jaeger  <aj@suse.de>
11218
11219         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11220         were swapped.
11221         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11222         libc/1636.
11223
11224 2000-03-06  Andreas Jaeger  <aj@suse.de>
11225
11226         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11227         in __sgn1l, otherwise g++ fails to parse this.
11228         Reported by Sean Chen <sean.chen@turbolinux.com>.
11229
11230 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11231
11232         * configure.in: Compute sizeof-long-double.
11233         * configure: Regenerated.
11234         * config.make.in: Make sizeof-long-double available to sub-makes.
11235
11236 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11237
11238         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11239         call.
11240
11241 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11242
11243         * Makeconfig (rpath-dirs): Add crypt.
11244         (all-subdirs): Remove md5crypt.
11245         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11246         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11247         * sysdeps/generic/crypt-entry.c: Delete.
11248         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11249         * sysdeps/generic/crypt.h: Delete.
11250         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11251         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11252         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11253         * sysdeps/generic/des_impl.c: Delete.
11254         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11255         * crypt/sysdeps: Delete.
11256         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11257         * md5-crypt/Versions: Move to crypt/.
11258         * md5-crypt/md5-crypt.c: Move to crypt/.
11259         * md5-crypt/md5.c: Move to crypt/.
11260         * md5-crypt/md5c-test.c: Move to crypt/.
11261         * md5-crypt/md5test.c: Move to crypt/.
11262         * md5-crypt: Delete.
11263         * crypt/Makefile: Adjust for new structure.
11264
11265 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11266
11267         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11268         define to 1 if not defined.
11269
11270 2000-03-03  Andreas Jaeger  <aj@suse.de>
11271
11272         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11273
11274 2000-03-03  Andreas Jaeger  <aj@suse.de>
11275
11276         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11277         cases.
11278         (xdr_int64_t): Correctly handle lower half.
11279         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11280
11281 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11282
11283         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11284         call.
11285
11286 2000-03-02  Andreas Jaeger  <aj@suse.de>
11287
11288         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11289         2.3.43.
11290
11291 2000-03-02  Andreas Jaeger  <aj@suse.de>
11292
11293         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11294
11295 2000-03-01  Andreas Jaeger  <aj@suse.de>
11296
11297         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11298         (tests): Added tst-getdate.
11299
11300         * time/tst-getdate.c: New file.
11301
11302         * time/datemsk: New file, needed for tst-getdate.
11303
11304 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11305
11306         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11307
11308 2000-02-17  H.J. Lu  <hjl@gnu.org>
11309
11310         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11311
11312         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11313         available.
11314         (svcudp_recv): Set up message with the new "xp_pad" field for
11315         IP_PKTINFO.
11316         (svcudp_reply): Support IP_PKTINFO if available.
11317
11318 2000-03-01  Andreas Jaeger  <aj@suse.de>
11319
11320         * time/getdate.c (check_mday): Fix check for february.
11321         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11322         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11323
11324 2000-03-02  Andreas Jaeger  <aj@suse.de>
11325
11326         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11327         g++ fails to parse this.
11328         Reported by Sean Chen <sean.chen@turbolinux.com>.
11329
11330 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11331
11332         * io/creat.c: Moved to...
11333         * sysdeps/generic/creat.c: ...here.
11334         * io/creat64.c: Moved to...
11335         * sysdeps/generic/creat64.c: ...here.
11336         * io/lockf.c: Moved to...
11337         * sysdeps/generic/lockf.c: ...here.
11338
11339         * crypt/crypt.texi: Moved to...
11340         * manual/crypt.texi: ...here.
11341         * crypt/examples/genpass.c: Moved to...
11342         * manual/examples/genpass.c: ...here.
11343         * crypt/examples/mygenpass.c: Moved to...
11344         * manual/examples/mygenpass.c: ...here.
11345         * crypt/examples/testpass.c: Moved to...
11346         * manual/examples/testpass.c: ...here.
11347
11348         * manual/Makefile (chapters): Add crypt.
11349         * manual/conf.texi: Add usual header for not-last chapter.
11350         * manual/crypt.texi: Add special header for last chapter.
11351
11352 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11353
11354         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11355         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11356         complain if there is no crypt add-on.
11357         * crypt/configure: Removed.
11358
11359         * crypt/crypt.texi: Update documentation of US export restrictions
11360         to match the 14 Jan 2000 regulations.
11361
11362 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11363
11364         * crypt: New subdirectory, merged in from the crypt add-on.
11365
11366 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11367
11368         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11369
11370
11371 See ChangeLog.10 for earlier changes.