Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-22  Andreas Jaeger  <aj@suse.de>
2
3         * locale/programs/repertoire.c (repertoiremap_hash): Don't specify
4         array size.
5
6         * sysdeps/alpha/fpu/libm-test-ulps: New file.
7         From Christian Iseli <chris@ludwig-alpha.unil.ch>.
8
9 2000-09-21  Andreas Jaeger  <aj@suse.de>
10
11         * math/libm-test.inc (atan_test): Test for existence of function.
12         (expm1_test): Likewise.
13         (acos_test): Likewise.
14         (asin_test): Likewise.
15         (exp_test): Likewise.
16         (log10_test): Likewise.
17         (log_test): Likewise.
18         (pow_test): Likewise.
19         (sqrt_test): Likewise.
20         (cos_test): Likewise.
21         (sin_test): Likewise.
22         (tan_test): Likewise.
23         (log1p_test): Likewise.
24         (log2_test): Likewise.
25
26         * sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
27
28         * libio/oldiofsetpos64.c: Fix alias names.
29
30 2000-09-21  Martin Buchholz  <martin@xemacs.org>
31
32         * manual/terminal.texi (Allocation): Sample code correction.
33
34 2000-09-20  Andreas Jaeger  <aj@suse.de>
35
36         * iconvdata/Makefile (generated): Add tst-tables.out.
37
38         * intl/Makefile (generated): Add test output.
39
40 2000-09-19  Andreas Jaeger  <aj@suse.de>
41
42         * sunrpc/clnt_simp.c (callrpc): Fix write beyond end of buffer.
43         Reported by Jens-Uwe Mager <jum@helios.de>.
44
45 2000-09-18  Ulrich Drepper  <drepper@redhat.com>
46
47         * version.h (VERSION): Bump to 2.1.94.
48
49         * sysdeps/mips/Dist: Add fpu/fenv_libc.h.
50         * sysdeps/sparc/sparc32/soft-fp/Dist: Add q_add.c.
51         * sysdeps/sparc/sparc64/soft-fp/Dist: Add qp_add.c.
52         * sysdeps/unix/sysv/linux/ia64/Dist: Add net/route.h.
53
54         * malloc/mtrace.c (mtrace): Mark stream as close on exec.
55
56 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
57
58         * iconvdata/utf-16.c (BODY for TO_LOOP): Reject UCS-4 input in the
59         range 0xD800..0xDFFF.
60         * iconvdata/unicode.c (BODY for TO_LOOP): Likewise.
61         (BODY for FROM_LOOP): Likewise.
62         * iconv/gconv_simple.c (ucs2_internal_loop): Likewise.
63         (internal_ucs2_loop): Likewise.
64         (ucs2reverse_internal_loop): Likewise.
65         (internal_ucs2reverse_loop): Likewise.
66
67 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
68
69         * iconvdata/utf-16.c (gconv_init): Add missing slashes to encoding
70         names.
71
72 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
73
74         * iconvdata/tst-table-from.c (main): Fix test for error on stdout.
75         * iconvdata/tst-table-to.c (main): Likewise.
76
77 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
78
79         * iconvdata/iso-ir-165.c (__isoir165_from_tab): Renamed from
80         __isoir165_tab.
81         * iconvdata/cns11643.h (__cns11643l1_to_ucs4_tab): New declaration.
82         * iconvdata/iso-2022-cn-ext.c: Include "cns11643.h".
83         (GB7590_set, GB13132_set, CNS11643_3_set, CNS11643_4_set,
84         CNS11643_5_set, CNS11643_6_set, CNS11643_7_set): Change enum values.
85         (BODY for FROM_LOOP): Fix buffer overrun. Treat CNS11643 plane 3.
86         Return __GCONV_INCOMPLETE_INPUT instead of __GCONV_EMPTY_INPUT.
87         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.  Fix typo that
88         caused GB2312 to be used instead of ISO-IR-165. Treat CNS11643
89         plane 3.  Fix shift sequences. Output announcement for SS2 and SS3
90         encodings when needed.  When outputting an announcement, don't clear
91         most other announcements.
92
93 2000-09-17  Bruno Haible  <haible@clisp.cons.org>
94
95         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): Fix buffer overrun.
96         (BODY for TO_LOOP): Fix usage of `set' vs. `used'.
97
98 2000-09-14  Bruno Haible  <haible@clisp.cons.org>
99
100         * intl/Versions: Add bind_textdomain_codeset.
101
102 2000-09-16  Ralf Baechle  <ralf@gnu.org>
103
104         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Reformat.  Declare
105         as function.
106         (_RTLD_EPILOGUE): Reformat.  Declare size of entry function.
107         (ELF_MACHINE_BEFORE_RTLD_RELOC): Relocate the dynamic linker itself so
108         it will even work when not loaded to the standard address.
109         (RTLD_START): Reformat.  Call _dl_start in a way that is safe even
110         before the dynamic linker itself is relocated.
111
112 2000-09-18  Andreas Jaeger  <aj@suse.de>
113
114         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
115         __ASSUME_32BITUIDS for MIPS.
116         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: New file.
117         * sysdeps/unix/sysv/linux/mips/Dist: Add ipc_priv.h.
118
119 2000-09-17  H.J. Lu  <hjl@gnu.org>
120
121         * catgets/Makefile ($(objpfx)de/libc.cat): Use
122         $(make-target-directory) instead of mkdir.
123
124 2000-09-17  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
125
126         * sysdeps/unix/sysv/linux/kernel-features.h: Always define
127         __ASSUME_32BITUIDS for __powerpc__.
128         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: New file.
129         * sysdeps/unix/sysv/linux/powerpc/Dist: Add ipc_priv.h.
130
131 2000-09-17  Ulrich Drepper  <drepper@redhat.com>
132
133         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Fix last
134         patch.
135         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
136
137 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
138
139         * sysdeps/ia64/Implies: Reorder ieee754 implies so that ldbl-* comes
140         first.
141         * sysdeps/m68k/Implies: Likewise.
142         * sysdeps/sparc/sparc64/Implies: Likewise.
143
144 2000-09-16  Jakub Jelinek  <jakub@redhat.com>
145
146         * elf/readlib.c (process_file): Don't error for stale .so links either.
147
148 2000-09-16  Ulrich Drepper  <drepper@redhat.com>
149
150         * elf/dl-load.c (_dl_map_object_from_fd): Add one more
151         __builtin_expect.
152
153         * include/bits/xopen_lim.h (LONG_BIT): Use LONG_MAX, not INT_MAX.
154         Patch by Thorsten Kukuk <kukuk@suse.de>.
155
156         * dlfcn/Makefile (distribute): Add defaultmod1.c and defaultmod2.c.
157         (test): Add default.
158         (modules-names): Add defaultmod1 and defaultmod2.
159         Add rules to build test objects.
160
161 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
162
163         * wctype/wctype.h: Always include <bits/types.h>.
164         Reported by Jim Meyering <meyering@ascend.com>.
165
166         * elf/rtld.c (_dl_dynamic_weak): Set to 1 by default for now.
167         * elf/dl-support.c: Likewise.
168
169         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Correct position of
170         st_blocks member in stat and stat64 structs.
171         Patch by Bill Nottingham <notting@redhat.com>.
172
173         * iconvdata/tst-tables.sh: Add warning that GB18030 test might
174         take longer.
175
176         * math/complex.h: Don't define _Complex macro for gcc 3.  Add
177         __extension__ to _Complex_I definition since gcc warns if -pedantic.
178         * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
179         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
180
181         * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
182         necessary.  Move includes of POSIX and Unix limits files to the end.
183         * stdlib/Makefile (tests): Add tst-limits.
184         * stdlib/tst-limits.h: New file.
185
186 2000-09-15  Andreas Jaeger  <aj@suse.de>
187
188         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Handle FE_NOMASK_ENV.
189
190         * sysdeps/mips/bits/fenv.h (FE_NOMASK_ENV): Define.
191
192 2000-09-15  Jakub Jelinek  <jakub@redhat.com>
193
194         * sysdeps/unix/alpha/sysdep.h (inline_syscall_clobbers): Add memory
195         clobber.
196         * sysdeps/unix/sysv/linux/arm/sysdep.h (INLINE_SYSCALL): Likewise.
197         * sysdeps/unix/sysv/linux/m68k/sysdep.h (INLINE_SYSCALL): Likewise.
198
199 2000-09-15  Ulrich Drepper  <drepper@redhat.com>
200
201         * elf/Makefile (distribute): Add nextmod1.c and nextmod2.c.
202         (tests): Add next.
203         (modules-names): Add nextmod1 and nextmod2.
204         Add rules to build and run next.
205         * elf/next.c: New file.
206         * elf/nextmod1.c: New file.
207         * elf/nextmod2.c: New file.
208
209 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
210
211         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Fix a typo.
212
213 2000-09-15  Andreas Jaeger  <aj@suse.de>
214
215         * sysdeps/mips/fpu/fenv_libc.h: New file.
216         * sysdeps/mips/fpu/feenablxcpt.c: Use fenv_libc.h
217         * sysdeps/mips/fpu/fegetexcept.c: Likewise.
218         * sysdeps/mips/fpu/fedisblxcpt.c: Likewise.
219
220         * sysdeps/mips/fpu/feenablxcpt.c: New file.
221         * sysdeps/mips/fpu/fegetexcept.c: New file.
222         * sysdeps/mips/fpu/fedisblxcpt.c: New file.
223
224 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
225
226         * intl/Makefile: Avoid unnecessary test reruns.
227
228         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
229
230         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
231         to not use sysctl().  Too many architectures have problems with it.
232
233 2000-09-14  Andreas Jaeger  <aj@suse.de>
234
235         * scripts/config.sub: New version from subversions.gnu.org.
236
237         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
238         long.
239
240 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
241
242         * posix/regex.c (compile_range): Cast collseq index to unsigned char
243         to avoid accessing data before collseq.
244
245         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
246         pasting strings together.
247
248 2000-09-14  Greg McGary  <greg@mcgary.org>
249
250         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
251         copyright notice.
252         * sysdeps/generic/bp-semctl.h: Likewise.
253         * sysdeps/generic/bp-start.h: Likewise.
254         * sysdeps/generic/bp-sym.h: Likewise.
255         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
256         rename prototype.
257
258 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
259
260         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
261         don't fail.
262
263         * elf/elf.h: Add missing official relocations.
264
265         * libio/stdio.h: Define __FILE if __need___FILE is defined.
266         * stdio/stdio.h: Likewise.
267         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
268         * include/stdio.h: Handle __need___FILE like __need_FILE.
269         * include/wchar.h: Use __FILE instead of FILE.
270         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
271         * libio/fwscanf.c: Likewise.
272         * libio/getwc.c: Likewise.
273
274         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
275         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
276         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
277
278         * assert/assert.h: Update comment header about ISO C section.
279         * math/complex.h: Likewise.
280         * ctype/ctype.h: Likewise.
281         * include/errno.h: Likewise.
282         * include/limits.h: Likewise.
283         * locale/locale.h: Likewise.
284         * math/math.h: Likewise.
285         * setjmp/setjmp.h: Likewise.
286         * signal/signal.h: Likewise.
287         * stdio/stdio.h: Likewise.
288         * libio/stdio.h: Likewise.
289         * stdlib/stdlib.h: Likewise.
290         * string/string.h: Likewise.
291         * time/time.h: Likewise.
292         * wcsmbs/wchar.h: Likewise.
293         * wctype/wctype.h: Likewise.
294         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
295
296 2000-09-13  Andreas Jaeger  <aj@suse.de>
297
298         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
299         for no more entries.
300         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
301         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
302         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
303
304 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
305
306         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
307         constant since this is what clock_t is.
308         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
309         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
310         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
311         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
312
313         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
314         definitions are requested.
315
316 2000-09-13  Andreas Jaeger  <aj@suse.de>
317
318         * shlib-versions: libBrokenLocale needs minimal version for ia64,
319         sparc64 and sh to synch with libc.
320
321 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
322
323         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
324         (distribute): Add iso-2022-cn-ext.c.
325         Add definitions to compile the new module.
326         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
327         * iconvdata/iso-2022-cn-ext.c: New file.
328         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
329         ucs4_from_isoir165.  Increment input pointer if successful.
330
331         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
332
333         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
334
335 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
336
337         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
338         __syscall_getdents64 wrapper.
339
340         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
341
342 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
343
344         * iconvdata/gb18030.c: Many many changes.  Make consistent with
345         charmap and with itself.
346         * iconvdata/tst-tables.sh: Test GB18030.
347
348 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
349
350         * iconv/skeleton.c: Fix last patch, add missing parameter to
351         unaligned function call.
352
353 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
354
355         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
356         of decimal ellipsis.
357
358 2000-09-11  Bruno Haible <haible@clisp.cons.org>
359
360         * locale/programs/ld-collate.c (collate_read): Always initialize
361         error_section.next.
362
363 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
364
365         * locale/programs/ld-collate.c (collate_finish): Upper bound for
366         ruleidx is 128, not 256.
367
368 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
369
370         * locale/programs/ld-collate.c (collate_read): Correct check for
371         already inserted entries.
372
373 2000-09-10  Bruno Haible <haible@clisp.cons.org>
374
375         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
376         second try as well.
377
378 2000-09-10  Bruno Haible <haible@clisp.cons.org>
379
380         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
381         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
382
383 2000-09-10  Bruno Haible <haible@clisp.cons.org>
384
385         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
386         SAVE_RESET_STATE.
387
388 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
389
390         * iconvdata/utf-7.c: New file.
391         * iconvdata/gconv-modules (UTF-7): New module entries.
392         * iconvdata/Makefile (modules): Add UTF-7.
393         (distribute): Add utf-7.c.
394         * iconvdata/testdata/UTF-7: New file.
395         * iconvdata/testdata/UTF-7..UTF8: New file.
396         * iconvdata/TESTS (UTF-7): New entry.
397         * iconvdata/run-iconv-test.sh: Fix confusing output.
398
399 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
400
401         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
402
403 2000-09-10  David S. Miller  <davem@redhat.com>
404
405         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
406         frame pointer offset for non-fast path.
407
408 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
409
410         * locale/programs/3level.h (*_init): Initialize level1, level2,
411         and level3 as well.
412         (*_add): Remove a few unnecessary conditionals.
413
414 2000-09-05  Wolfram Gloger  <wg@malloc.de>
415
416         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
417         ensure usability of mutex as an `in use' flag.
418
419 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
420
421         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
422
423         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
424         ugly GMON_WEAK_START hack.
425         Patch by Philip Blundell <philb@gnu.org>.
426
427         * sysdeps/i386/i486/bits/string.h: Pretty printing.
428
429 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
430
431         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
432         and PPC_ICBI asm for broken compilers.
433         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
434
435 2000-09-09  Andreas Jaeger  <aj@suse.de>
436
437         * manual/message.texi (Advanced gettext functions): Fix typo.
438
439         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
440         strncpy prototype.
441
442 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
443
444         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
445         warnings.
446         * sysdeps/ia64/memccpy.S: Likewise.
447         Patches by Jim Wilson <wilson@redhat.com>.
448
449         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
450         before trying to read /proc.
451         Patch by Matt Wilson <msw@redhat.com>.
452         * include/sys/utsname.h: Declare __uname.
453         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
454         * sysdeps/mach/hurd/uname.c: Likewise.
455         * sysdeps/unix/syscalls.list: Likewise.
456
457         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
458         unloading a bit.
459
460 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
461
462         * posix/getopt.c (_getopt_internal): When long_only is set always
463         recognize conflicts just like before.
464
465 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
466
467         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
468
469 2000-09-08  Greg McGary  <greg@mcgary.org>
470
471         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
472         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
473         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
474
475 2000-09-08  Andreas Jaeger  <aj@suse.de>
476
477         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
478
479         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
480
481         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
482         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
483         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
484
485 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
486
487         * iconvdata/tst-tables.sh: Enable EUC-KR test.
488
489         * elf/dl-load.c (lose): Decrement _nl_loaded.
490         (_dl_map_object_from_fd): Don't try to dlopen executables.
491
492         * iconvdata/tst-tables.sh: Actually return with an error if
493         something goes wrong.
494         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
495         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
496
497         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
498
499         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
500         * iconvdata/tst-table-from.c: Include <string.h>.
501         (try): Correct cast in iconv call.
502
503         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
504         too.
505         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
506         (sysdep_routines): Remove dl-start.
507         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
508
509         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
510
511         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
512         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
513
514 2000-09-06  Andreas Schwab  <schwab@suse.de>
515
516         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
517
518 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
519
520         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
521
522         * scripts/config.sub: Strip out -unknown for Linux targets.
523         Patch by Scott Bambrough <scottb@netwinder.org>.
524
525         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
526         add one more test.
527
528 2000-09-07  Andreas Jaeger  <aj@suse.de>
529
530         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
531
532         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
533         syscalls.
534
535         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
536
537         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
538         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
539
540         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
541
542         * stdlib/tst-bsearch.c (main): Add more test cases.
543
544         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
545         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
546         Reported by GOTO Masanori <gotom@debian.or.jp>.
547
548 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
549
550         * posix/Makefile (tests): Add tst-dir.
551         (tst-dir-ARGS): New variable.
552         * posix/tst-dir.c: New file.
553
554 2000-09-07  Andreas Jaeger  <aj@suse.de>
555
556         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
557         (SYS_fcntl64): New.
558
559         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
560
561 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
562
563         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
564         use the hack with tryopen_o_directory to determine at runtime
565         whether it works.
566         * sysdeps/unix/sysv/linux/opendir.c: New file.
567         * sysdeps/unix/sysv/linux/kernel-features.h: Define
568         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
569
570         * catgets/Depend: New file.  Add intl.
571         * catgets/Makefile (tests): Add tst-catgets.
572         (generated): Remove de.msg.
573         (generated-dirs): Add de.
574         Add dependency if tst-catgets output on de/libc.cat.
575         * catgets/tst-catgets.c: New file.
576
577         * po/ja.po: New file.
578         * po/el.po: Update from translation team.
579
580         * wcsmbs/Depend: New file.
581         * wcsmbs/Makefile (tests): Add tst-btowc.
582         (tst-btowc-ENV): Define.
583         * wcsmbs/tst-btowc.c: New file.
584
585         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
586         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
587
588         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
589
590         * stdlib/Makefile (tests): Add tst-bsearch.
591         * stdlib/tst-bsearch.c: New file.
592
593         * posix/getopt.c (_getopt_internal): Don't recognize an option
594         name as ambiguous if it's a prefix for more than one name but the
595         other struct option values are identical.
596
597         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
598         Don't depend on visual inspection of the output file to recognize
599         errors.
600         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
601
602 2000-09-06  Andreas Jaeger  <aj@suse.de>
603
604         * sysdeps/alpha/soft-fp/Dist: New file.
605         * sysdeps/i386/soft-fp/Dist: New file.
606         * sysdeps/mips/mips64/soft-fp/Dist: New file.
607         * sysdeps/mips/soft-fp/Dist: New file.
608         * sysdeps/powerpc/soft-fp/Dist: New file.
609         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
610         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
611
612         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
613         Use sysdep_routines instead of routines to fix make dist failure.
614         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
615         out code).
616         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
617
618         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
619         sysdep_headers instead of headers for make dist.
620
621         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
622         Likewise.
623
624 2000-09-06  Andreas Schwab  <schwab@suse.de>
625
626         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
627
628 2000-09-06  Andreas Jaeger  <aj@suse.de>
629
630         * soft-fp/Makefile (distribute): Remove ChangeLog.
631
632         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
633         sysdep_routines instead of routines for make dist.
634
635 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
636
637         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
638         compatibility check for old stream and call _IO_wide in doubt.
639         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
640         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
641         needed tst for such an old structure and don't do anything.
642         * libio/freopen.c: Remove declaration of _IO_stdin_used.
643
644 2000-09-06  Andreas Jaeger  <aj@suse.de>
645
646         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
647         sysdep-dl-routines and sysdep_routines instead of rtld-routines
648         and dl-routines.
649
650         * soft-fp/ChangeLog: Merged with this file.
651
652 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
653
654         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
655
656         * soft-fp/Makefile (distribute): Add the math functions, too.
657
658         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
659
660 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
661
662         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
663         as a statement.
664
665         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
666         * soft-fp/sysdeps/powerpc/q_*: New files.
667
668 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
669
670         * stdio-common/vfprintf.c (process_string_arg): Handle precision
671         in wide char case correctly.  Don't allocate too long temporary
672         strings with alloca.
673
674         * stdio-common/Makefile (tests): Add tst-swprintf.
675         (tst-swprintf-ENV): New variable.
676         * stdio-common/tst-swprintf.c: New file.
677
678 2000-09-05  Andreas Jaeger  <aj@suse.de>
679
680         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
681         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
682         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
683
684 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
685
686         * configure.in: Strip out "unknown" from configuration names.
687
688 2000-09-05  Andreas Jaeger  <aj@suse.de>
689
690         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
691
692         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
693         * sysdeps/sparc/sparc32/Implies: Likewise.
694         * sysdeps/powerpc/Implies: Likewise.
695
696         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
697         * libio/oldiofgetpos64.c: Likewise.
698
699         * soft-fp/Makefile (distribute): Remove configure.
700
701         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
702
703         * soft-fp/configure: Remove.
704
705         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
706         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
707
708         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
709         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
710
711         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
712         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
713
714         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
715         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
716
717         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
718         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
719
720         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
721         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
722
723         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
724         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
725
726         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
727         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
728
729         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
730         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
731
732         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
733         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
734
735         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
736         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
737
738         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
739         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
740
741         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
742         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
743
744         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
745         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
746
747         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
748         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
749
750         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
751         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
752
753         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
754         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
755
756         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
757         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
758
759         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
760         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
761
762         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
763         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
764
765         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
766         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
767
768         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
769         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
770
771         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
772         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
773
774         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
775         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
776
777         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
778         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
779
780         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
781         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
782
783         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
784         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
785
786         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
787         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
788
789         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
790         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
791
792         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
793         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
794
795         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
796         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
797
798         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
799         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
800
801         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
802         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
803
804         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
805         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
806
807         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
808         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
809
810         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
811         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
812
813         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
814         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
815
816         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
817         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
818
819         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
820         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
821
822         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
823         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
824
825         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
826         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
827
828         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
829         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
830
831         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
832         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
833
834         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
835         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
836
837         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
838         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
839
840         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
841         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
842
843         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
844         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
845
846         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
847         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
848
849         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
850         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
851
852         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
853         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
854
855         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
856         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
857
858         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
859         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
860
861         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
862         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
863
864         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
865         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
866
867         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
868         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
869
870         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
871         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
872
873         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
874         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
875
876         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
877         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
878
879         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
880         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
881
882         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
883         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
884
885         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
886         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
887
888         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
889         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
890
891         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
892         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
893
894         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
895         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
896
897         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
898         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
899
900         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
901         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
902
903         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
904         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
905
906         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
907         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
908
909         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
910         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
911
912         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
913         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
914
915         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
916         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
917
918         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
919         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
920
921         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
922         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
923
924         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
925         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
926
927         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
928         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
929
930         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
931         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
932
933         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
934         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
935
936         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
937         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
938
939         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
940         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
941
942         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
943         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
944
945         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
946         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
947
948         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
949         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
950
951         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
952         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
953
954         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
955         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
956
957         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
958         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
959
960         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
961         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
962
963         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
964         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
965
966         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
967         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
968
969         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
970         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
971
972         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
973         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
974
975         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
976         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
977
978         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
979         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
980
981         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
982         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
983
984         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
985         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
986
987         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
988         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
989
990         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
991         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
992
993         * soft-fp/sysdeps/powerpc/Versions: Move from here...
994         * sysdeps/powerpc/soft-fp/Versions: ... to here.
995
996         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
997         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
998
999         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
1000         change symbol version.
1001         * libio/oldiofgetpos64.c: Likewise.
1002         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
1003
1004         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
1005         typo.
1006         Reported by dyky@kondara.org, closes PR libc/1886.
1007
1008         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
1009         libc/1880.
1010
1011 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1012
1013         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
1014         script when ^C is hit.
1015
1016         * locale/programs/localedef.c (construct_output_path): Correct
1017         computation of endp after asprintf.
1018         * locale/programs/locfile.c (write_locale_data): Don't add extra
1019         slash in filename.
1020
1021 2000-09-05  Andreas Jaeger  <aj@suse.de>
1022
1023         * scripts/config.guess: New upstream version.
1024         * scripts/config.sub: Likewise.
1025         * manual/texinfo.tex: Likewise.
1026
1027 2000-09-04  Andreas Schwab  <schwab@suse.de>
1028
1029         * elf/Makefile (all-dl-routines): New variable.
1030         (elide-routines.os): Use it instead of $(dl-routines).
1031         (all-rtld-routines): New variable.
1032         (extra-objs): Use it instead of $(rtld-routines).
1033         ($(objpfx)dl-allobjs.os): Likewise.
1034         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
1035         sysdep-dl-routines and sysdep_routines instead of rtld-routines
1036         and dl-routines.
1037
1038 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1039
1040         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
1041         Set fname to NULL if the module wasn't found.
1042
1043 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1044
1045         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
1046         true if trans->name already ends in ".so".
1047
1048 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1049
1050         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
1051         void.
1052         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
1053         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
1054         (__gconv_release_shlib): Change return type to void.
1055         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
1056         step->__counter here.
1057         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
1058         if the reference is zero.
1059         (release_step): New function.
1060         (gen_steps): Always initialize the __counter to 1. Use release_step.
1061         Don't call the destructor on the step whose initializer failed.
1062         (increment_counter): Use release_step. Don't normally run destructors
1063         here.
1064         (__gconv_close_transform): Use release_step.
1065
1066 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1067
1068         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
1069         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
1070
1071 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1072
1073         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
1074         If the first byte is 0x8E, don't ask for 4 bytes until it has been
1075         verified that the second byte is valid. Leave it to cns11643_to_ucs4
1076         to check for incomplete input.
1077         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
1078         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
1079         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1080         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
1081         0x9f9d..0x9fa5.
1082         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
1083         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
1084         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
1085         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
1086         upto index 0x0052.
1087
1088 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1089
1090         * iconv/gconv_db.c (find_derivation): Always use the least-cost
1091         solution.
1092
1093 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1094
1095         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
1096         are invalid.
1097
1098 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1099
1100         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
1101         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
1102         U+007E.
1103
1104 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1105
1106         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
1107
1108 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1109
1110         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
1111
1112 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
1113
1114         * iconvdata/tst-tables.sh: New file.
1115         * iconvdata/tst-table.sh: New file.
1116         * iconvdata/tst-table-from.c: New file.
1117         * iconvdata/tst-table-to.c: New file.
1118         * iconvdata/tst-table-charmap.sh: New file.
1119         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
1120         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
1121         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
1122         ISIRI-3342.irreversible, SJIS.irreversible.
1123         (tests): Add dependency on tst-tables.out.
1124         (tst-tables.out, tst-tables-clean): New rules.
1125         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
1126         * iconvdata/ISIRI-3342.irreversible: New file.
1127         * iconvdata/EUC-JP.irreversible: New file.
1128         * iconvdata/SJIS.irreversible: New file.
1129
1130 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
1131
1132         * manual/locale.texi (General Numeric): Update description of
1133         representation of the grouping information in the locale data.
1134         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
1135
1136 2000-09-04  Andreas Jaeger  <aj@suse.de>
1137
1138         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
1139         * iconv/iconv_prog.c (options): Fix typo.
1140         Reported by dyky@kondara.org, closes PR libc/1885.
1141
1142 2000-09-04  Andreas Jaeger  <aj@suse.de>
1143
1144         * sysdeps/generic/fegetenv.c: It's __fegetenv.
1145         Reported by Rob Levin <lilo@transvirtual.com>.
1146
1147 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
1148
1149         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
1150         to the typedefs of __timezone_ptr_t.
1151         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
1152
1153 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
1154
1155         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
1156         the loop.
1157
1158 2000-09-01  H.J. Lu  <hjl@gnu.org>
1159
1160         * Makeconfig (built-program-cmd): Don't use the dynamic linker
1161         to run a binary if it is in $(tests-static).
1162
1163         * Rules (binaries-static): Add $(tests-static).
1164
1165 2000-09-02  Andreas Jaeger  <aj@suse.de>
1166
1167         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
1168
1169         * libio/fmemopen.c (fmemopen_close): Revert one part of last
1170         patch.
1171
1172 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1173
1174         * iconvdata/big5hkscs.c: Regenerated from charmap.
1175         * iconvdata/testdata/BIG5HKSCS: Regenerated.
1176         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
1177
1178         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
1179         statement.  General cleanup.
1180
1181 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1182
1183         * wctype/wcfuncs.c (iswblank): New function.
1184         * wctype/wcfuncs_l.c (__iswblank_l): New function.
1185         * wctype/wcextra.c: Remove file.
1186         * wctype/wcextra_l.c: Remove file.
1187         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
1188
1189 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1190
1191         * locale/programs/ld-collate.c (collate_output): Remove redundant
1192         assert call.
1193         * string/strcoll.c: Likewise.
1194         * string/strxfrm.c: Include assert.h.  Add assert calls like in
1195         string/strcoll.c.
1196
1197 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1198
1199         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
1200         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
1201         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
1202         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
1203         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
1204         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
1205         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
1206         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
1207         _NL_CTYPE_GAP5/6 respectively.
1208
1209         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
1210         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
1211         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
1212         Don't initialize __ctype_names and __ctype_width.
1213         * wctype/cname-lookup.h: Remove file.
1214         * wctype/Makefile (distribute): Remove cname-lookup.h.
1215         * wctype/wchar-lookup.h: Include stdint.h.
1216         * wctype/wctype.c (__wctype): Assume new locale format.
1217         * wctype/wctype_l.c (__wctype_l): Likewise.
1218         * wctype/iswctype.c: Don't include cname-lookup.h.
1219         (__iswctype): Assume new locale format.
1220         * wctype/iswctype_l.c: Don't include cname-lookup.h.
1221         (__iswctype_l): Assume new locale format.
1222         * wctype/wctrans.c: Don't include ctype.h.
1223         (wctrans): Assume new locale format.
1224         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1225         * wctype/towctrans.c: Don't include cname-lookup.h.
1226         (__towctrans): Assume new locale format.
1227         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1228         (__towctrans_l): Assume new locale format.
1229         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1230         localeinfo.h instead.
1231         (__NO_WCTYPE): Remove unused macro.
1232         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1233         declarations.
1234         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1235         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1236         (towlower, towupper): Likewise.
1237         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1238         localeinfo.h instead.
1239         (__NO_WCTYPE): Remove unused macro.
1240         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1241         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1242         __iswxdigit_l): Assume new locale format.
1243         (__towlower_l, __towupper_l): Likewise.
1244         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1245         (__ctype32_b): Remove declaration.
1246         (internal_wcwidth): Assume new locale format.
1247         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1248         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1249         to map32_b, rename width_3level to width.
1250         (ctype_output): Always create new locale format. Don't emit
1251         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1252         (allocate_arrays): Always create new locale format.
1253
1254         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1255         * locale/weightwc.h (findidx): Assume new locale format.
1256         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1257         names.
1258         * string/strxfrm.c (wcsxfrm): Likewise.
1259         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1260         local variable collseq to 'const char *'.
1261         (SUFFIX): Don't use, don't undefine.
1262         * posix/fnmatch.c: Remove SUFFIX definition.
1263         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1264         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1265         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1266         (collate_finish): Always create new locale format. Remove local
1267         variables min_total, act_size.
1268         (collate_output): Always create new locale format. Remove local
1269         variables table_size, names, tablewc. Rename tablewc_3level to
1270         tablewc.
1271
1272 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1273
1274         * locale/programs/ld-collate.c (obstack_int32_grow,
1275         obstack_int32_grow_fast): New inline functions.
1276         (output_weightwc, collate_output): Use them where possible.
1277
1278 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1279
1280         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1281         patch (_mode -> _flags).
1282
1283         * libio/Makefile (headers): Add stdio_ext.h.
1284         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1285         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1286         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1287         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1288         __fsetlocking, and _flushlbf.
1289         * libio/__fbufsize.c: New file.
1290         * libio/__flbf.c: New file.
1291         * libio/__fpending.c: New file.
1292         * libio/__fpurge.c: New file.
1293         * libio/__freadable.c: New file.
1294         * libio/__freading.c: New file.
1295         * libio/__fsetlocking.c: New file.
1296         * libio/__fwritable.c: New file.
1297         * libio/__fwriting.c: New file.
1298         * libio/stdio_ext.h: New file.
1299         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1300         * libio/libio.h (_IO_USER_LOCK): Define.
1301         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1302         test _IO_USER_LOCK flag first.
1303
1304         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1305         malloc fails.
1306
1307 2000-09-01  Andreas Jaeger  <aj@suse.de>
1308
1309         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1310
1311         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1312
1313 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1314
1315         * math/Makefile (tests): Add tst-defintions.
1316         * math/tst-definitions.c: New file.
1317
1318         * stdlib/Makefile (headers): Add bits/wchar.h.
1319         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1320         * sysdeps/generic/bits/wchar.h: New file.
1321         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1322         file to define WCHAR_MIN and WCHAR_MAX.
1323         Change UINT*8_MAX and UIN*16_MAX value to type int.
1324         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1325         file to define WCHAR_MIN and WCHAR_MAX.
1326         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1327         int values.
1328         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1329         * sysdeps/generic/bits/mathdef.h: Likewise.
1330         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1331         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1332         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1333         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1334         * locale/locale.h (struct lconv): Add __ prefix to the new members
1335         if not C99.
1336         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1337         imaxdiv optimizations.
1338         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1339         * sysdeps/wordsize-64/ldiv.c: Likewise.
1340         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1341         const fenv_t*.
1342         * sysdeps/generic/bits/fenv.h: Likewise.
1343         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1344         * sysdeps/ia64/bits/fenv.h: Likewise.
1345         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1346         * sysdeps/mips/bits/fenv.h: Likewise.
1347         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1348         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1349         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1350
1351         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1352         * inet/ruserpass.c: Likewise.
1353         * catgets/open_catalog.c: Likewise.
1354         * intl/loadmsgcat.c: Likewise.
1355         * io/getdirname.c: Likewise.
1356         * locale/loadlocale.c: Likewise.
1357         * misc/getusershell.c: Likewise.
1358         * stdlib/canonicalize.c: Likewise.
1359         * sysdeps/posix/euidaccess.c: Likewise.
1360         * sysdeps/posix/isfdtype.c: Likewise.
1361         * sysdeps/posix/posix_fallocate.c: Likewise.
1362         * sysdeps/posix/tempname.c: Likewise.
1363         * sysdeps/unix/grantpt.c: Likewise.
1364         * sysdeps/unix/opendir.c: Likewise.
1365         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1366         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1367         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1368         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1369         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1370         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1371         * sysvipc/ftok.c: Likewise.
1372         * time/getdate.c: Likewise.
1373
1374         * time/getdate.c: Add extra access test.
1375
1376 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1377
1378         * version.h (VERSION): Bump to 2.1.93.
1379
1380         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1381         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1382
1383         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1384         Make this a new rule depending on tst-gettext.out and run mtrace.
1385         * intl/tst-gettext.c: Call mtrace.
1386         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1387
1388         * elf/dl-reloc.c: Add a few more __builtin_expect.
1389
1390         * configure.in: Remove --with-gettext option.
1391
1392         * intl/dcigettext.c (free_mem): Correct freeing of
1393         _nl_domain_bindings list.
1394
1395         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1396         allocated memory.
1397
1398         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1399
1400         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1401
1402         * stdio-common/itoa-digits.c: Move upper digits to...
1403         * stdio-common/itoa-udigits.c: ...here.  New file.
1404         * stdio-common/Makefile (routines): Add itoa-udigits.
1405
1406         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1407         relocate ld.so don't add supprt for relocations which should not
1408         appear in ld.so.
1409
1410         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1411         __secure_getenv.  Instead test __libc_enable_secure once.
1412
1413         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1414
1415 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1416
1417         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1418         whether the new record should be freed if it's a duplicate.
1419         (add_module): Adjust insert_module call.
1420         (__gconv_read_conf): Likewise.
1421         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1422         mtrace-tst-loading.
1423         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1424
1425         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1426         _dl_all_init_dirs.
1427         * include/link.h (struct r_search_path_struct): New.
1428         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1429         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1430         _dl_all_init_dirs.
1431         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1432         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1433         added at startup time.
1434         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1435         contains element to remember fact that we can free memory.
1436         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1437         (_dl_init_all_dirs): New variable.
1438         (fillin_rpath): Save one malloc call.
1439         (decompose_rpath): Change interface.  New first parameter points to
1440         r_search_path_struct.
1441         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1442         deletable.  Set _dl_init_all_paths value.
1443         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1444         parameter replaced with r_search_path_struct *.  Information about
1445         freeing now contained in r_search_path_struct.
1446         (_dl_map_object): Adjust for above changes.
1447
1448         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1449
1450         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1451         when adding new entries.
1452
1453         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1454         since the object being loaded can be unloaded.
1455
1456         * iconvdata/Makefile (tests): Add tst-loading.
1457         * iconvdata/tst-loading.c: New file.
1458
1459 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1460
1461         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1462         When comparing a char with an int, always cast the char to
1463         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1464         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1465
1466 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1467
1468         * time/strftime.c (my_strftime): Add compatibility code for use
1469         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1470
1471         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1472         return 0 for success but always < 0 on failure.
1473
1474         * nss/getXXbyYY_r.c: Define result to *result before including
1475         digits_dots.c.
1476
1477 2000-08-30  Andreas Jaeger  <aj@suse.de>
1478
1479         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1480
1481 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1482
1483         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1484         official file.
1485         * iconvdata/TESTS: Add BIG5HKSCS entry.
1486         * iconvdata/testdata/BIG5HKSCS: New file.
1487         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1488
1489         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1490         always true.
1491
1492         * libio/iogetline.c: Set mode before the loop in case n==0.
1493         * libio/iogetwline.c: Likewise.
1494
1495 2000-08-29  H.J. Lu  <hjl@gnu.org>
1496
1497         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1498         of fp->_mode < 0.
1499         (_IO_new_file_overflow): Likewise.
1500         * libio/genops.c (_IO_flush_all): Likewise.
1501         * libio/ioftell.c (_IO_ftell): Likewise.
1502
1503 2000-08-29  Akira Higuchi  <a@kondara.org>
1504
1505         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1506         and __end_fct fields of struct __gconv_step.
1507         * iconv/Makefile (tests): Add iconv-bug2.
1508         * iconv/iconv-bug2.c: New file.
1509
1510         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1511         instead of 'inptr - inend' to ksc5601_to_ucs4.
1512
1513         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1514
1515         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1516         character or shift sequence is found at the end of the input
1517         string, return__GCONV_INCOMPLETE_INPUT instead of
1518         __GCONV_EMPTY_INPUT.
1519         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1520         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1521
1522         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1523         __GCONV_ILLEGAL_INPUT for 8bit characters.
1524
1525 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1526
1527         * signal/signal.h (sigpause): Move __THROW before __asm__.
1528
1529         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1530         names don't match don't return.
1531         Patch by Olaf Kirch <okir@flash.lst.de>.
1532
1533 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1534
1535         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1536
1537 2000-08-27  H.J. Lu  <hjl@gnu.org>
1538
1539         * posix/Makefile (otherlibs): Add for building with static-nss
1540         for "make check".
1541
1542 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1543
1544         * libio/stdio.h: Add fmemopen prototype.
1545
1546 2000-08-25  Andreas Jaeger  <aj@suse.de>
1547
1548         * libio/Makefile (routines): Add fmemopen.
1549         (tests): Add test-fmemopen.
1550         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1551         * libio/test-fmemopen.c: New file.
1552         * libio/fmemopen.c: New file.
1553         Patches by Hanno Mueller <kontakt@hanno.de>.
1554
1555 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1556
1557         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1558         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1559
1560         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1561         to avoid crashing statically linked applications.
1562
1563 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1564
1565         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1566         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1567
1568         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1569         If the result is fits in the buffer, copy only as many bytes as needed.
1570
1571         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1572         buffer after copying numbuf into it.
1573         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1574
1575 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1576
1577         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1578         the result.  When string_len < len, don't clear the rest of the buffer.
1579
1580 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1581
1582         Support for new LC_COLLATE format.
1583         * locale/coll-lookup.h: New file.
1584         * locale/weightwc.h (findidx): When size == 0, call
1585         collidx_table_lookup.
1586         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1587         * wcsmbs/wcsxfrm.c: Likewise.
1588         * posix/fnmatch.c: Likewise.
1589         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1590         collseq_table_lookup.
1591         * locale/programs/3level.h: New file.
1592         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1593         by including "3level.h".
1594         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1595         collseq_table): New types, defined by including "3level.h".
1596         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1597         (encoding_mask, encoding_byte): Remove.
1598         (utf8_encode): Use simple shifts instead.
1599         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1600         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1601         (collate_output): New local variable tablewc_3level. When
1602         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1603         tablewc_3level instead of tablewc. Change format of TABLEWC and
1604         COLLSEQWC entries written to the file.
1605         * locale/C-collate.c (collseqwc): Change format.
1606         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1607         of COLLSEQWC.
1608         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1609
1610 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1611
1612         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1613         (locale_ctype_t): New charnames_idx field.
1614         (ctype_startup): Initialize charnames_idx field.
1615         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1616
1617 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1618
1619         * locale/C-ctype.c: Switch to new locale format.
1620         (_nl_C_LC_CTYPE_names): Remove array.
1621         (STRUCT_CTYPE_CLASS): New macro.
1622         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1623         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1624         New three-level tables.
1625         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1626         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1627         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1628         12 class tables and 2 map tables at the end.
1629         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1630         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1631         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1632         New declarations.
1633         (b): Remove trailing semicolon.
1634         (__ctype_names, __ctype_width): Don't initialize.
1635         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1636
1637 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1638
1639         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1640         is guaranteed to be allocated with the same malloc() and may be
1641         passed to free().
1642         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1643         been set to empty by an earlier open_path call, don't pass it again.
1644
1645 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1646
1647         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1648         we are not optimizing.
1649
1650         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1651         inclusion.
1652
1653         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1654         really match EOF.
1655         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1656
1657 2000-08-28  Andreas Jaeger  <aj@suse.de>
1658
1659         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1660
1661 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1662
1663         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1664         getpeername.  Use ISO C style function definition.
1665         (getpeername): Provide weak alias.
1666         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1667         setrlimit.  Use ISO C style function definition.
1668         (setrlimit): Provide weak alias.
1669
1670 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1671
1672         * shlib-versions: Add a rule for S/390 to the libm version list.
1673         * sysdeps/s390/Versions: New file.
1674         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1675         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1676         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1677         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1678         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1679         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1680         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1681         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1682         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1683         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1684         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1685         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1686         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1687         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1688         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1689         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1690         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1691         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1692
1693 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1694
1695         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1696         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1697
1698         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1699         * elf/dl-close.c (_dl_close): Print debug message if object is not
1700         unloaded.
1701         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1702         returning to caller.
1703
1704         * po/zh.po: Renamed to...
1705         * po/zh_TW.po: ...this.
1706
1707 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1708
1709         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1710
1711         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1712         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1713         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1714         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1715
1716 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1717
1718         * locale/programs/ld-collate.c (insert_weights): Also update
1719         backpointer of next element.
1720         (collate_read): Allow definition of new collation symbols in stage 2.
1721         Symbol after reorder-after can be UCS4 value.
1722         Allow reordering of collation symbols and elements.
1723         Do not only move reorder entry in new position.  Instead call
1724         insert_weight to do this and read the weights.
1725
1726         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1727
1728         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1729         to determine invalid locale name.
1730         * locale/findlocale.c (_nl_find_locale): Likewise.
1731
1732         * posix/annexc.c: Correct test for unavailable feature.
1733
1734         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1735         __inline.
1736
1737 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1738
1739         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1740         syscall.
1741
1742         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1743         (sysdep_routines): Add oldgetrlimit64.
1744
1745         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1746         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1747         (tests): Add unload, reldep, reldep2, and reldep3.
1748         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1749         and reldepmod4.
1750         Add rules to build and run unload, reldep, reldep2, and reldep3.
1751         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1752         Don't create relocation dependency if it is nonzero.
1753         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1754         can never happen here.
1755         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1756         Don't create relocation dependency if it is nonzero.
1757         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1758         stuff.  This can never happen here.
1759         * sysdeps/generic/ldsodefs.h: Change prototypes.
1760         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1761         _dl_lookup_up and _dl_lookup_versioned_symbol.
1762         (RESOLV): Likewise.
1763         * elf/dl-runtime.c (fixup): Likewise.
1764         (profile_fixup): Likewise.
1765         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1766         _dl_lookup_symbol.
1767         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1768         * elf/rtld.c (dl_main): Likewise.
1769         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1770         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1771         and pass down the caller map.
1772         (_dl_vsym): Likewise.
1773         * elf/reldep.c: New file.
1774         * elf/reldep2.c: New file.
1775         * elf/reldep3.c: New file.
1776         * elf/reldepmod1.c: New file.
1777         * elf/reldepmod2.c: New file.
1778         * elf/reldepmod3.c: New file.
1779         * elf/reldepmod4.c: New file.
1780         * elf/unload.c: New file.
1781         * elf/unloadmod.c: New file.
1782
1783         * elf/do-lookup.h: Remove unused undef_name parameter.
1784         * elf/dl-lookup.c: Adjust callers.
1785
1786 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1787
1788         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1789         irreversible in recursive call of conversion function to signal that
1790         no error handling is wanted.
1791         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1792         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1793         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1794         recursive error handling call, otherwise to &lirreversible.  Use it
1795         for calls to conversion functions.
1796         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1797         transliterating.
1798         (ucs4_internal_loop_unaligned): Likewise.
1799         (ucs4le_internal_loop): Likewise.
1800         (ucs4le_internal_loop_unaligned): Likewise.
1801
1802 2000-08-25  Greg McGary  <greg@mcgary.org>
1803
1804         * sysdeps/i386/memchr.S: Check high bound against chars
1805         actually scanned.
1806         * sysdeps/i386/memcmp.S: Likewise.
1807         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1808         account for pointers that lie one beyond end-of-buffer.
1809
1810 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1811
1812         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1813         * elf/nodelete.c (fini_ran): New global variable.
1814         (do_test): Before every dlclose call clear fini_ran and test
1815         afterwards that it is not set by the destructors.
1816         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1817         * elf/nodelmod2.c: Likewise.
1818         * elf/nodelmod4.c: Likewise.
1819
1820 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1821
1822         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1823         getrlimit to the list.
1824
1825 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1826
1827         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1828         long double format so use ldbl-96 instead of ldbl-128.
1829
1830 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1831
1832         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1833         even if bits 10 a 11 are non-zero.
1834         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1835
1836         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1837         included before building gnu/lib-names.h
1838         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1839
1840         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1841         marked DF_1_NODELETE.
1842
1843         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1844         since we call sigaction in the child.
1845
1846 2000-08-25  Andreas Jaeger  <aj@suse.de>
1847
1848         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1849         gconv-modules.
1850
1851 2000-08-25  Andreas Jaeger  <aj@suse.de>
1852
1853         * manual/arith.texi (Control Functions): Clarify possible
1854         arguments.  Closes PR libc/1856.
1855
1856 2000-08-24  H.J. Lu  <hjl@gnu.org>
1857
1858         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1859         * malloc/Makefile (tests): Likewise.
1860
1861 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1862
1863         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1864
1865 2000-08-24  Andreas Jaeger  <aj@suse.de>
1866
1867         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1868         only if LIBGD is available.
1869
1870 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1871
1872         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1873         problems with now restrict parameter types.
1874         (convaddr4to6): Likewise.
1875
1876 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1877
1878         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1879         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1880         * sysdeps/s390/fpu/fegetexcept.c: New file.
1881         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1882         FPC_VALID_MASK.
1883
1884 2000-08-24  Andreas Jaeger  <aj@suse.de>
1885
1886         * malloc/Makefile (extra-objs): Add memusagestat.o.
1887         (generated): Added memusage and memusagestat for make clean.
1888
1889         * libio/tst_putwc.c (do_test): Delete temporary file.
1890         Move inclusion of test-skeleton to front to have prototype for
1891         add_temp_file.
1892
1893         * posix/Makefile (generated): Add wordexp-tst.out.
1894
1895 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1896
1897         * resolv/res_hconf.c (free_mem): Remove not needed if.
1898
1899         * time/tzset.c (free_mem): New function.
1900         * string/strsignal.c (free_mem): New function.
1901         * inet/inet_ntoa.c (free_mem): New function.
1902         * sunrpc/clnt_perr.c (free_mem): New function.
1903
1904 2000-08-24  Andreas Jaeger  <aj@suse.de>
1905
1906         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1907         * sysdeps/unix/sysv/syscalls.list: Likewise.
1908
1909         * posix/unistd.h: Move internal prototypes from here ...
1910         * include/unistd.h: ... to here.
1911
1912         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1913
1914 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1915
1916         * grp/initgroups.c (initgroups): Deallocate groups array.
1917         Reported by jani.raiha@sonera.com [PR libc/1868].
1918
1919         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1920         * sysdeps/alpha/Dist: Likewise.
1921
1922 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1923
1924         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1925         destructor).  Reported by Solar Designer <solar@false.com>.
1926
1927         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1928         avoid adding double slashes.
1929
1930 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1931
1932         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1933         out of the __REDIRECT macro.
1934
1935 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1936
1937         * stdio-common/vfscanf.c: Add %F format support.
1938
1939         * locale/programs/ld-ctype.c (ctype_output): Make sure
1940         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1941         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1942         (ctype_read): Enable returning of wide character strings for reading
1943         transliteration information.
1944
1945 2000-08-23  Andreas Jaeger  <aj@suse.de>
1946
1947         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1948         Use static __inline instead of _EXTERN_INLINE.
1949
1950         * misc/sys/select.h: Move prototypes of __select from here ...
1951         * include/sys/select.h: ... to here.
1952
1953         * socket/sys/socket.h: Move prototypes of __send and __connect
1954         from here....
1955         * include/sys/socket.h: ... to here.
1956
1957         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1958         lr_error.
1959
1960 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1963         __setrlimit as strong name. Takes only 2 arguments.
1964
1965         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1966         takes only 2 arguments.
1967
1968 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1969
1970         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1971
1972         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1973
1974 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1975
1976         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1977         default_missing character being specified, pick the first
1978         representable.
1979
1980 2000-08-23  Andreas Jaeger  <aj@suse.de>
1981
1982         * include/wchar.h: Add some pure attributes.
1983
1984         * time/time.h: Add const attribute for dysize.
1985
1986         * include/stdlib.h: Add malloc attribute to __posix memalign.
1987
1988         * stdlib/stdlib.h: Add some pure and malloc attributes.
1989         * wcsmbs/wchar.h: Likewise.
1990
1991         * dirent/dirent.h: Add some pure attributes.
1992         * include/dirent.h: Likewise.
1993
1994 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1995
1996         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1997         on 64bit arches.
1998
1999 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2000
2001         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
2002         missing buffer size checks.
2003
2004 2000-08-23  Andreas Jaeger  <aj@suse.de>
2005
2006         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
2007         strong name.
2008         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2009
2010         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
2011         otherwise __LINUX_KERNEL_VERSION might not be defined.
2012         (MIN): Define if not already defined.
2013
2014 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2015
2016         * stdio-common/vfprintf.c: Handle %F format.
2017         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
2018         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
2019
2020         * stdio-common/tstdiomisc.c: Add test for %F printf format.
2021
2022         * po/zh.po: New file.
2023
2024         * iconvdata/sjis.c: In conversion from UCS4, correct test for
2025         enough room in target buffer.
2026         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
2027         * iconvdata/bug-iconv1.c: New file.
2028         * iconvdata/Makefile (tests): Add bug-iconv1.
2029
2030         * locale/iso-4217.def: Update entry for Nicaragua.
2031
2032 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
2033
2034         * hurd/hurdsig.c: Rearrange headers a bit.
2035         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
2036         when cthreads is being used.
2037
2038 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
2039
2040         * elf/Makefile (distribute): Add dl-osinfo.h.
2041         * sysdeps/generic/dl-osinfo.h: New file.
2042         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
2043         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
2044         if defined.
2045         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
2046         only for !SHARED case.  Get the code from dl-osinfo.h.
2047
2048         * stdlib/random_r.c: Cleanups.
2049         * stdlib/tst-random.c: New file.
2050         * stdlib/Makefile (tests): Add tst-random.
2051         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
2052
2053 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2054
2055         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
2056         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
2057         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
2058         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
2059
2060 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
2061
2062         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
2063         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
2064         (__syscall__sysctl): Add.
2065
2066 2000-08-21  Andreas Jaeger  <aj@suse.de>
2067
2068         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
2069         libc/1864).
2070         * stdlib/tst-strtoll.c: Likewise.
2071
2072 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2073
2074         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
2075         correctly.
2076         (__initstate_r): Set errno on error.
2077         (__random_r): Likewise.
2078         (__setstate_r): Correct offset when computing
2079         new rptr and fptr.  Test for arg_state being NULL.
2080         Reported by Michael Fischer <fischer@cs.yale.edu>.
2081
2082         * posix/regex.h: Add macro definitions to allow compiling outside
2083         glibc.
2084
2085         * sysdeps/i370/Implies: Removed.
2086         * sysdeps/mvs/Implies: Removed.
2087
2088         * catgets/catgets.c (catopen): Filter out env_var values with / if
2089         necessary.
2090
2091         * locale/findlocale.c (_nl_find_locale): Move test for unusable
2092         locale name after all getenvs.
2093
2094         * configure.in: Allow sed versions like 3.02.8.
2095         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
2096
2097 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
2098
2099         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
2100
2101 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
2102
2103         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
2104         of gethostbyname2_r call.
2105
2106         * intl/locale.alias: Add aliases for Korean.
2107
2108 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2109
2110         * sysdeps/s390/__longjmp.c: Remove unused variable result.
2111         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
2112         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
2113         * sysdeps/s390/fpu/fegetenv.c: New file.
2114         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
2115         * sysdeps/s390/fpu/feholdexcpt.c: New file.
2116         * sysdeps/s390/fpu/fenv_libc.h: New file.
2117         * sysdeps/s390/fpu/fesetenv.c: New file.
2118         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
2119         * sysdeps/s390/fpu/feupdateenv.c: New file.
2120         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
2121         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
2122         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
2123         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
2124         * sysdeps/s390/fpu/ftestexcept.c: New file.
2125         * sysdeps/s390/fpu/libm-test-ulps: New file.
2126         * sysdeps/s390/gmp-mparam.h: Add end of comment.
2127         * sysdeps/s390/initfini.c: New file.
2128         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
2129         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
2130         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
2131         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
2132         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
2133         sys/procfs.h as proposed by Mark Kettenis.
2134         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
2135
2136 2000-08-21  Andreas Jaeger  <aj@suse.de>
2137
2138         * include/poll.h: Include include/sys/poll.h to get __poll
2139         declaration.
2140
2141         * io/sys/poll.h: Move __poll declaration from here...
2142         * include/sys/poll.h: ...to here.
2143
2144         * include/sys/socket.h (__getpeername): Add declaration.
2145
2146         * include/wchar.h (__vswprintf): Add declaration.
2147
2148         * include/stdio.h (__flockfile): Add declaration.
2149         (__funlockfile): Likewise.
2150
2151 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2152
2153         * misc/sys/cdefs.h: Define __restrict_arr.
2154         * include/sys/time.h: Add restrict where required by AGd4.
2155         * inet/arpa/inet.h: Likewise.
2156         * io/sys/stat.h: Likewise.
2157         * io/sys/statvfs.h: Likewise.
2158         * misc/search.h: Likewise.
2159         * misc/sys/select.h: Likewise.
2160         * posix/glob.h: Likewise.
2161         * posix/regex.h: Likewise.
2162         * posix/spawn.h: Likewise.
2163         * posix/unistd.h: Likewise.
2164         * rt/aio.h: Likewise.
2165         * signal/signal.h: Likewise.
2166         * socket/sys/socket.h: Likewise.
2167         * stdlib/ucontext.h: Likewise.
2168         * streams/stropts.h: Likewise.
2169         * string/string.h: Likewise.
2170         * time/time.h: Likewise.
2171         * time/sys/time.h: Likewise.
2172
2173         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
2174         and posix_spawnattr_setscheparam.
2175
2176         * libio/stdio.h: Make cuserid prototype again available for all
2177         XPG versions.
2178
2179         * argp/argp-help.c: Unify use of function aliases to make more compact
2180         PLT.
2181         * include/libintl.h: Likewise.
2182         * inet/rcmd.c: Likewise.
2183         * intl/dcigettext.c: Likewise.
2184         * libio/iofputws.c: Likewise.
2185         * libio/iofputws_u.c: Likewise.
2186         * libio/iogetwline.c: Likewise.
2187         * libio/swprintf.c: Likewise.
2188         * malloc/malloc.c: Likewise.
2189         * nss/digits_dots.c: Likewise.
2190         * posix/fnmatch.c: Likewise.
2191         * posix/spawn_faction_addclose.c: Likewise.
2192         * posix/spawn_faction_adddup2.c: Likewise.
2193         * posix/spawn_faction_addopen.c: Likewise.
2194         * posix/spawni.c: Likewise.
2195         * posix/wordexp.c: Likewise.
2196         * posix/spawni.c: Likewise.
2197         * resolv/res_hconf.c: Likewise.
2198         * resolv/res_init.c: Likewise.
2199         * shadow/lckpwdf.c: Likewise.
2200         * signal/sighold.c: Likewise.
2201         * signal/sigrelse.c: Likewise.
2202         * stdio-common/printf-parse.h: Likewise.
2203         * stdio-common/printf-prs.c: Likewise.
2204         * stdio-common/printf_fp.c: Likewise.
2205         * stdio-common/vfprintf.c: Likewise.
2206         * stdio-common/vfscanf.c: Likewise.
2207         * stdlib/rpmatch.c: Likewise.
2208         * sunrpc/create_xid.c: Likewise.
2209         * sunrpc/key_call.c: Likewise.
2210         * sysdeps/generic/setrlimit64.c: Likewise.
2211         * sysdeps/generic/utmp_file.c: Likewise.
2212         * sysdeps/generic/vlimit.c: Likewise.
2213         * sysdeps/posix/posix_fallocate.c: Likewise.
2214         * sysdeps/posix/posix_fallocate64.c: Likewise.
2215         * sysdeps/posix/sigpause.c: Likewise.
2216         * sysdeps/posix/sigset.c: Likewise.
2217         * sysdeps/unix/grantpt.c: Likewise.
2218         * sysdeps/unix/bsd/ualarm.c: Likewise.
2219         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
2220         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
2221         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
2222         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2223         * time/strftime.c: Likewise.
2224         * wcsmbs/wcscoll.c: Likewise.
2225         * wcsmbs/wcsxfrm.c: Likewise.
2226
2227         * time/tst-getdate.c (main): Make error messages more human readable.
2228
2229         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2230         postinc/predec instruction.
2231         (_FPU_SETCW): Likewise.
2232         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2233
2234 2000-08-20  Andreas Jaeger  <aj@suse.de>
2235
2236         * time/tst-getdate.c (main): Increase error in case of wrong
2237         conversion.
2238         Fix typo in test case.
2239
2240 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2241
2242         * ctype/ctype.h (isblank): Make available if ISO C99.
2243         * wctype/wctype.h (iswblank): Make available if ISO C99.
2244         * math/math.h (signgam): Don't make available if ISO C99.
2245         * math/tgmath.h (tgamma): Renamed from gamma.
2246         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2247
2248         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2249         Pretty printing.
2250         * intl/plural.y (new_exp): Take number of optional parameters in
2251         second parameter.  Test for correct number of parameters and free
2252         correctly in case of failure.  Adjust all callers.
2253         (yylex): Allow ';' as terminator character.
2254
2255 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2256
2257         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2258         walt_digits.
2259
2260         * locale/findlocale.c (free_mem): Also free here->filename.
2261
2262         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2263
2264         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2265         first test.
2266         (feexcp_nomask_test): Correct printf args.
2267         (feexcp_mask_test): Likewise.
2268
2269 2000-08-19  Andreas Jaeger  <aj@suse.de>
2270
2271         * inet/tst-gethnm.c: Include string.h to provide prototype for
2272         strcmp.
2273
2274         * malloc/mtrace.pl (usage): Inform about --help.
2275
2276 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2277
2278         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2279         size HEAP_MAX_SIZE.
2280
2281 2000-08-19  Andreas Jaeger  <aj@suse.de>
2282
2283         * shlib-versions: Remove libnss_db, libdb and libdb1.
2284
2285 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2286
2287         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2288         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2289         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2290         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2291         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2292         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2293         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2294         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2295         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2296         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2297         getdents.
2298         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2299         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2300
2301 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2302
2303         * include/glob.h (__glob64): Add prototype.
2304         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2305         define glob and glob_in_dir.
2306         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2307         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2308         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2309         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2310         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2311         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2312         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2313         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2314
2315 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2316
2317         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2318
2319 2000-08-17  Andreas Jaeger  <aj@suse.de>
2320
2321         * math/test-fenv.c (fe_single_test): New function.
2322         (fe_env_tests): Use fe_single_test.
2323         (feenable_test): New tests for feenable/fedisable and
2324         fegetexcpetions.
2325         (feexcp_mask_test): New function.
2326         (feexcp_nomask_test): New function.
2327
2328 2000-08-19  Richard Henderson  <rth@cygnus.com>
2329
2330         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2331         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2332         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2333         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2334         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2335         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2336         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2337         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2338         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2339         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2340         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2341         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2342         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2343         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2344         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2345         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2346         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2347
2348 2000-08-19  Andreas Jaeger  <aj@suse.de>
2349
2350         * elf/constload1.c: Include <stdio.h> for puts prototype.
2351
2352 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2353
2354         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2355         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2356         a dynamically loaded object remove old l_initfini list.
2357         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2358         remove some dynamically allocated memory blocks in the dynamic
2359         loading data structures.
2360         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2361         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2362         Instead call _dl_check_map_versions only for the dependencies.
2363         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2364         information of initial objects as not free-able.
2365         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2366         element.
2367
2368         * elf/filter.c: Call mtrace.
2369         * elf/restest1.c: Likewise.  Close the objects.
2370         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2371         debug information.
2372
2373         * elf/constload1.c: Add comment explaining not freed memory.
2374
2375 2000-08-18  Andreas Jaeger  <aj@suse.de>
2376
2377         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2378         alignment for structs stat and stat64.
2379         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2380
2381 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2382
2383         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2384         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2385
2386         * nss/Versions: Remove libnss_db information.
2387
2388 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2389
2390         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2391         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2392         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2393         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2394
2395         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2396         to match Solaris.
2397
2398 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2399
2400         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2401         (_FPU_SETCW): Likewise.
2402         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2403
2404         * stdio-common/printf_fp.c: Fix chars_needed computation.
2405         Patch by Greg McGary <greg@mcgary.org>.
2406
2407 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2408
2409         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2410         _dl_loaded are NULL.
2411
2412 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2413
2414         * manual/arith.texi (feholdexcept): Returns 0 on success.
2415
2416 2000-08-17  Andreas Jaeger  <aj@suse.de>
2417
2418         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2419         (ifr_newname): New.
2420         Reported by Andi Kleen <ak@suse.de>.
2421
2422 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2423
2424         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2425         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2426         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2427
2428 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2429
2430         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2431         of buf->st_ino and kbuf->st_ino, not __st_ino.
2432         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2433         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2434         directive so that only linux/getdents.c is used, not some
2435         architecture specific one.
2436
2437 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2438
2439         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2440         enabled, not disabled exceptions.
2441         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2442         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2443
2444 2000-08-17  Greg McGary  <greg@mcgary.org>
2445
2446         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2447         from test program name when constructing suffix for $(LDLIBS-*).
2448         (bounded-thread-library): New variable.
2449         * crypt/Makefile
2450         [build-shared, build-static] (libcrypt-dep): Remove variable.
2451         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2452         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2453         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2454         (librt-tests): Add variable.  (tests): Use it.
2455         [build-shared, build-static]
2456         ($(addprefix $(objpfx),$(tests)),
2457         $(addprefix $(objpfx),$(librt-tests))):
2458         Consolidate individual dependencies.
2459         [build-bounded]
2460         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2461         Add dependencies.
2462         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2463         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2464         * misc/Makefile
2465         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2466         * rt/Makefile
2467         [build-shared, build-static]
2468         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2469         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2470
2471 2000-08-17  Greg McGary  <greg@mcgary.org>
2472
2473         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2474         * sysdeps/unix/make-syscalls.sh: Likewise.
2475         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2476         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2477         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2478         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2479         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2480
2481 2000-08-17  Greg McGary  <greg@mcgary.org>
2482
2483         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2484         Wrap extern symbols in BP_SYM ().
2485         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2486         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2487         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2488         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2489         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2490         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2491         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2492         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2493         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2494         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2495
2496 2000-08-16  Andreas Schwab  <schwab@suse.de>
2497
2498         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2499         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2500         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2501
2502 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2503
2504         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2505         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2506         * elf/dl-support.c: Define _nl_nloaded.
2507         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2508         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2509         object to global list.
2510         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2511         from _dl_loaded list.
2512         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2513         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2514         number here.
2515
2516         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2517         unmask, exceptions.
2518         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2519         exceptions.
2520         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2521
2522 2000-08-16  Andreas Jaeger  <aj@suse.de>
2523
2524         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2525
2526 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2527
2528         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2529
2530 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2531
2532         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2533         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2534         (sysdep_routines): Add oldgetrlimit64.
2535         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2536         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2537
2538         * include/link.h: Undo last patches.  Hurd now has stat64.
2539         * elf/Makefile: Likewise.
2540         * elf/dl-load.c: Likewise.
2541         * elf/dl-misc.c: Likewise.
2542         * elf/dl-profile.c: Likewise.
2543         * sysdeps/generic/sysd-link.h: Removed.
2544         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2545
2546         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2547         thread event callback function.
2548         (__aio_notify_only): Use function above.
2549         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2550
2551 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2552
2553         * sysdeps/mach/hurd/lseek64.c: New file.
2554
2555 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2556
2557         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2558         Remove typedefs.
2559         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2560         typedefs.
2561         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2562         typedefs.
2563         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2564
2565 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2566
2567         * sysdeps/mach/hurd/xstatconv.c: New file.
2568         * sysdeps/mach/hurd/fxstat64.c: New file.
2569         * sysdeps/mach/hurd/lxstat64.c: New file.
2570         * sysdeps/mach/hurd/xstat64.c: New file.
2571         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2572
2573 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2574
2575         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2576         Initialize, needed for change in common symbol handling in newer
2577         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2578
2579 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2580
2581         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2582         * elf/constload2.c: Add destructor to unload constload3.
2583
2584         * include/link.h: Include sysd-link.h.
2585         * sysdeps/generic/sysd-link.h: New file.
2586         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2587         * elf/Makefile (distribute): Add sysd-link.h.
2588         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2589         types and functions directly.
2590         * elf/dl-misc.c: Likewise.
2591         * elf/dl-profile.c: Likewise.
2592
2593         * elf/loadfail.c (main): Close all successfully loaded objects.
2594
2595         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2596         free wd.
2597         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2598         there is already one.
2599
2600         * elf/dl-close.c: Pretty print.
2601
2602 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2603
2604         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2605         global (with file scope).  Add __libc_subfreeres function to free the
2606         string.
2607         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2608         in ttyname function.
2609
2610         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2611
2612         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2613
2614         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2615         mapping them to /x5c and /x7e respectively.
2616
2617         * locale/programs/ld-ctype.c: Add support for more definitions after
2618         copy statement.
2619
2620 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2621
2622         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2623         * sysdeps/unix/sysv/linux/kernel-features.h
2624         (__ASSUME_GETDENTS64_SYSCALL): Define.
2625         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2626         syscall if available to get d_type fields.
2627         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2628         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2629         __lxstat64): Export at GLIBC_2.2.
2630         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2631         Likewise.
2632         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2633         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2634         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2635         getdirentries64, versionsort64): Remove.
2636         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2637         getdirentries64, versionsort64): Remove.
2638
2639 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2640
2641         * posix/Makefile: Remove rules to generate glob package.
2642
2643         * posix/Makefile (tests): Add tst-regexloc.
2644         (tst-regexloc-ENV): Add LOCPATH.
2645         * posix/tst-regexloc.c: New file.
2646
2647 2000-08-12  Andreas Jaeger  <aj@suse.de>
2648
2649         * include/features.h (__STDC_ISO_10646__): Define.
2650         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2651
2652 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2653
2654         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2655
2656         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2657         for revision 6 and up).
2658
2659         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2660         including <time.h>.
2661         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2662         to get definitions of just these types.
2663
2664         * signal/signal.h: Define thread signal handling functions also for
2665         POSIX95.
2666
2667         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2668         POSIX95.
2669         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2670         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2671         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2672         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2673
2674         * sysvipc/sys/shm.h: Define pid_t for XPG.
2675
2676         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2677         they are not anymore required here.
2678
2679         * wcsmbs/wchar.h: Make the various wide char string and stream
2680         functions available for the respective XPG versions.
2681
2682         * nss/Makefile: Remove rules to build and distribute nss_db.
2683
2684         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2685         * sysdeps/generic/scandir64.c: Likewise.
2686         * sysdeps/generic/versionsort64.c: Likewise.
2687
2688 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2689             Benjamin Koznik  <bkoz@redhat.com>
2690
2691         * libio/fileops.c: Merge with libstdc++-v3.
2692         * libio/genops.c: Likewise.
2693         * libio/iofclose.c: Likewise.
2694         * libio/iofopen.c: Likewise.
2695         * libio/iofwide.c: Likewise.
2696         * libio/libio.h: Likewise.
2697         * libio/libioP.h: Likewise.
2698         * libio/stdfiles.c: Likewise.
2699         * libio/stdio.c: Likewise.
2700         * libio/wfileops.c: Likewise.
2701         * libio/wgenops.c: Likewise.
2702
2703         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2704
2705 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2706
2707         * locale/programs/localedef.c: Implement --prefix option to allow
2708         writing in standard places of alternative install directories.
2709
2710         * posix/regex.c (compile_range): Implement collation sequence
2711         handling for glibc.  Use simple character ordering otherwise and
2712         not strcoll.
2713
2714 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2715
2716         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2717
2718 2000-08-12  Andreas Jaeger  <aj@suse.de>
2719
2720         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2721         __USE_FILE_OFFSET64 correctly for locking.
2722         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2723
2724 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2725
2726         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2727         Define for 2.4.1 on sparc as well.
2728         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2729         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2730         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2731         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2732
2733 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2734
2735         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2736         defined.
2737
2738 2000-08-12  Andreas Jaeger  <aj@suse.de>
2739
2740         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2741         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2742
2743         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2744         mips2 for assembler.
2745
2746         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2747         if fnctl64 is not available for F_*LK*64.
2748
2749         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2750
2751 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2752
2753         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2754         Define for 2.4.1 on x86.
2755         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2756         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2757         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2758
2759         * dirent/dirent.h: Define DT_WHT.
2760
2761         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2762         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2763         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2764         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2765         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2766         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2767
2768 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2769
2770         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2771         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2772         * inet/Makefile (tests): Add tst-gethnm.
2773         * inet/tst-gethnm.c: New file.
2774
2775         * rt/aio_cancel.c: If canceling a specific request which is running
2776         *really* do nothing.
2777         * rt/aio_misc.h: Add `done' to states of a request.
2778         * rt/aio_misc.c: Add several tests for the correct state.
2779         Simplify request table memory handling.
2780
2781 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2782
2783         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2784         * dirent/scandir64.c: Move...
2785         * sysdeps/generic/scandir64.c: ...here.
2786         * dirent/alphasort64.c: Move...
2787         * sysdeps/generic/alphasort64.c: ...here.
2788         * dirent/versionsort64.c: Move...
2789         * sysdeps/generic/versionsort64.c: ...here.
2790         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2791         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2792         Export symbols at GLIBC_2.2.
2793         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2794         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2795         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2796         __versionsort64): Add prototypes.
2797         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2798         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2799         unused prototype.
2800         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2801         and GLIBC_2.2.
2802         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2803         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2804         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2805         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2806         __u_quad_t.
2807         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2808         Adjust for kernel-2.4.0-test6 layout.
2809         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2810         GLIBC_2.1 and GLIBC_2.2.
2811         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2812         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2813         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2814         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2815         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2816         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2817         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2818         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2819         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2820         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2821         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2822         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2823         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2824         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2825         __u_quad_t.
2826         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2827         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2828         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2829         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2830         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2831         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2832         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2833         __u_quad_t.
2834         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2835         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2836         Define.
2837         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2838         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2839         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2840         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2841         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2842         Define.
2843         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2844         alpha/readdir.c.
2845         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2846         alpha/readdir_r.c
2847         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2848         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2849         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2850         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2851         st_ino from __st_ino.
2852         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2853         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2854         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2855         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2856         set __st_ino in addition to st_ino.
2857         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2858         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2859         __old_getdents64 as well.
2860         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2861         getdirentries64 and old_getdirentries64 as well.
2862         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2863         __GETDENTS): Define.
2864         (GETDENTS64): Remove.
2865         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2866         Define.
2867         (GETDENTS64): Remove.
2868         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2869         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2870         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2871         as well.
2872         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2873         __old_readdir64_r as well.
2874         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2875         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2876
2877 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2878
2879         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2880         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2881         define of the kernel.
2882         Add missing __SEG_PSTKOVF definition.
2883         Adjust the padding of struct siginfo and struct sigevent to
2884         match the fact that sigval_t is 64 bit.
2885
2886 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2887
2888         * timezone/zic.c: Update from tzcode2000f.
2889         * timezone/australasia: Update from tzdata2000f.
2890         * timezone/europe: Likewise.
2891         * timezone/southamerica: Likewise.
2892         * timezone/yearistype: Likewise.
2893
2894 2000-08-10  Andreas Jaeger  <aj@suse.de>
2895
2896         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2897         stat with current MIPS kernel.
2898
2899 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2900
2901         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2902         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2903         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2904         Remove the junk that's only relevant in the Linux kernel itself.
2905         Add a warning saying that this file is now obsolete, and include
2906         <sys/procfs.h>.
2907         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2908         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2909         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2910         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2911         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2912         and add the notice that the file is primarily there for GDB.
2913         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2914
2915 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2916
2917         * time/tzfile.c (__tzfile_compute): __tzstring zones
2918         from zone_names.
2919
2920 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2921
2922         * resolv/resolv.h (__res_state): Surround prototype with
2923         __BEGIN_DECLS/__END_DECLS.
2924         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2925
2926 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2927
2928         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2929         Make independant of asm/resource.h from the Linux kernel.
2930
2931 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2932
2933         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2934
2935 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2936
2937         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2938         * locale/Makefile (locale-CPPFLAGS): Likewise.
2939
2940 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2941
2942         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2943         for AMD processors.
2944
2945 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2946
2947         * misc/Versions (mincore): Export at GLIBC_2.2.
2948
2949 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2950
2951         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2952
2953 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2954
2955         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2956         socketpair.  Made socketpair a weak alias.
2957         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2958         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2959         conforming, but fall back on the old protocol if the socket server
2960         doesn't support it.
2961         * include/sys/socket.h: Add prototype for __socketpair.
2962
2963 2000-08-09  Andreas Schwab  <schwab@suse.de>
2964
2965         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2966         long long modifier is seen.
2967
2968         * elf/nodelete.c (do_test): Remove reference to undefined member
2969         sa_restorer.
2970         * rt/tst-aio4.c (do_test): Likewise.
2971
2972         * configure.in: Add `-lm' when checking for libgd.
2973         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2974         linking.
2975
2976 2000-08-09  Andreas Jaeger  <aj@suse.de>
2977
2978         * configure.in: Change required make versions.
2979
2980         * manual/install.texi (Tools for Compilation): Document required
2981         make version.
2982         (Supported Configurations): Update list of supported
2983         configurations.
2984
2985 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2986
2987         * locale/linereader.c (get_string): Don't print an error is a string
2988         contains an unknown character.
2989
2990 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2991
2992         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2993         (new_symbol): Take new parameters with name of the symbol.
2994         Adjust callers.
2995         (handle_ellipsis): Don't only allow character symbols.
2996         (collate_read): Allow string of collating elements contain invalid
2997         characters; ignore entry in this case.
2998         Handle ellipsis of collating symbols before first order_start.
2999         Allow ellipsis in state 0.
3000
3001 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
3002
3003         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
3004         error message.
3005         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3006
3007 2000-08-04  Greg McGary  <greg@mcgary.org>
3008
3009         * posix/regex.c (SET_HIGH_BOUND): New macro.
3010         (MOVE_BUFFER_POINTER): Use it.
3011         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
3012         (EXTEND_BUFFER): Use it.
3013
3014 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3015
3016         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
3017         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
3018         _wide_data but from _IO_FILE directly.
3019         * libio/iofclose.c: Likewise.
3020         * libio/wfileops.c: Likewise.
3021
3022         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
3023         * libio/libioP.h: Change prototypes.
3024
3025 2000-08-03  Greg McGary  <greg@mcgary.org>
3026
3027         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
3028         frame pointer early so that we save caller's frame pointer.
3029         * sysdeps/i386/elf/setjmp.S: Likewise.
3030
3031         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
3032         * io/test-utime.c: Test passing NULL as utimbuf* arg.
3033
3034         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
3035         (MOVE_BUFFER_POINTER): Handle high_bound properly.
3036         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
3037
3038 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
3039
3040         * iconvdata/big5.c: Updated.
3041         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
3042
3043 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3044
3045         * Makeconfig (all-subdirs): Add conform.
3046         * conform/Makefile: Include ../Rules.
3047
3048         * Makefile (README): Add rules to generate here as well.
3049
3050 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
3051
3052         * version.h (VERSION): Bump to 2.1.92.
3053
3054         * sysdeps/ia64/Dist: Add _mcount.S.
3055
3056         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
3057
3058         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
3059
3060         * elf/Makefile (distribute): Add missing modules.
3061
3062         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
3063
3064         * posix/regex.c (compile_range): Translate range start and end
3065         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
3066
3067         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
3068         asm/resource.h.
3069
3070         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
3071
3072 2000-08-02  Andreas Jaeger  <aj@suse.de>
3073
3074         * elf/elf.h (EM_S390): Added.
3075         (R_390_*): New relocs for S390.
3076
3077         * sysdeps/unix/sysv/linux/s390/Dist: New file.
3078         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
3079         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
3080         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
3081         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
3082         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
3083         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
3084         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
3085         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
3086         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
3087         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
3088         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
3089         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
3090         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
3091         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
3092         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
3093         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
3094         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
3095         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
3096         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
3097         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
3098         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
3099         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
3100         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
3101         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
3102         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
3103         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
3104         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
3105         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
3106         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
3107         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
3108         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
3109         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
3110         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
3111         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
3112         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
3113         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
3114         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
3115         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
3116         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
3117         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
3118         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
3119         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
3120         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
3121         * sysdeps/s390/sysdep.h: New file.
3122         * sysdeps/s390/sys/ucontext.h: New file.
3123         * sysdeps/s390/sub_n.S: New file.
3124         * sysdeps/s390/strncpy.S: New file.
3125         * sysdeps/s390/strcpy.S: New file.
3126         * sysdeps/s390/stackinfo.h: New file.
3127         * sysdeps/s390/setjmp.S: New file.
3128         * sysdeps/s390/s390-mcount.S: New file.
3129         * sysdeps/s390/mul_1.S: New file.
3130         * sysdeps/s390/memusage.h: New file.
3131         * sysdeps/s390/memset.S: New file.
3132         * sysdeps/s390/memcpy.S: New file.
3133         * sysdeps/s390/memchr.S: New file.
3134         * sysdeps/s390/machine-gmon.h: New file.
3135         * sysdeps/s390/ldbl2mpn.c: New file.
3136         * sysdeps/s390/gmp-mparam.h: New file.
3137         * sysdeps/s390/fpu/fpu_control.h: New file.
3138         * sysdeps/s390/fpu/fesetround.c: New file.
3139         * sysdeps/s390/fpu/fegetround.c: New file.
3140         * sysdeps/s390/fpu/fclrexcpt.c: New file.
3141         * sysdeps/s390/fpu/bits/fenv.h: New file.
3142         * sysdeps/s390/ffs.c: New file.
3143         * sysdeps/s390/elf/start.S: New file.
3144         * sysdeps/s390/elf/setjmp.S: New file.
3145         * sysdeps/s390/elf/bsd-setjmp.S: New file.
3146         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
3147         * sysdeps/s390/dl-machine.h: New file.
3148         * sysdeps/s390/bzero.S: New file.
3149         * sysdeps/s390/bsd-setjmp.S: New file.
3150         * sysdeps/s390/bsd-_setjmp.S: New file.
3151         * sysdeps/s390/bits/string.h: New file.
3152         * sysdeps/s390/bits/setjmp.h: New file.
3153         * sysdeps/s390/bits/huge_val.h: New file.
3154         * sysdeps/s390/bits/endian.h: New file.
3155         * sysdeps/s390/bits/byteswap.h: New file.
3156         * sysdeps/s390/bcopy.S: New file.
3157         * sysdeps/s390/backtrace.c: New file.
3158         * sysdeps/s390/atomicity.h: New file.
3159         * sysdeps/s390/asm-syntax.h: New file.
3160         * sysdeps/s390/addmul_1.S: New file.
3161         * sysdeps/s390/add_n.S: New file.
3162         * sysdeps/s390/abort-instr.h: New file.
3163         * sysdeps/s390/__longjmp.c: New file.
3164         * sysdeps/s390/Makefile: New file.
3165         * sysdeps/s390/Implies: New file.
3166         * sysdeps/s390/Dist: New file.
3167         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
3168
3169 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3170
3171         Remove incompatible IPv6 extension of RPC.
3172         * sunrpc/Makefile: Undo changes.
3173         * sunrpc/rpc_main.c: Likewise.
3174         * sunrpc/rpc/clnt.h: Likewise.
3175         * sunrpc/rpc/svc.h: Likewise.
3176         * sunrpc/bindrsvprt6.c: Removed.
3177         * sunrpc/clnt_tcp6.c: Removed.
3178         * sunrpc/clnt_udp6.c: Removed.
3179         * sunrpc/svc_tcp6.c: Removed.
3180         * sunrpc/svc_udp6.c: Removed.
3181
3182         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
3183         dgettext, and dcgettetxt.
3184
3185         * intl/locale.alias: Update japanese aliases.
3186
3187         * sysdeps/ia64/bits/byteswap.h: New file.
3188         Patch by Dan Pop <Dan.Pop@cern.ch>.
3189
3190         * misc/sys/cdefs.h: Define __attribute_format_arg__.
3191         * intl/libintl.h: Use it here instead of using __attribute__ directly.
3192
3193 2000-07-13  H.J. Lu  <hjl@gnu.org>
3194
3195         * posix/regex.c (re_max_failures): Set to 4000.
3196
3197 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * gnulib/Makefile (tests): Add tst-gcc.
3200         * gnulib/tst-gcc.c: New file.
3201
3202         * assert/Makefile (routines): Add __assert.
3203         * assert/Versions: Export __assert for glibc 2.2.
3204         * assert/__assert.c: New file.
3205         * assert/assert.h: Declare __assert.
3206
3207 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3208
3209         * locale/localeinfo.h (_ISCTYPE): New macro.
3210         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
3211         LC_CTYPE locale format.
3212         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
3213         (ctype_output): Output class_b[nr] right before class_3level[nr].
3214         (allocate_arrays): Fill class_b, similarly to class_3level.
3215
3216 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3217             Joseph S. Myers  <jsm28@cam.ac.uk>
3218
3219         * math/tgmath.h: Make standard compliant.  Don't ask how.
3220
3221 2000-07-04  H.J. Lu  <hjl@gnu.org>
3222
3223         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3224         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3225         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3226
3227 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3228
3229         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3230         (__USE_LARGEFILE): Add an explanation.
3231         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3232         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3233
3234 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3235
3236         * libio/Makefile: Enable exception handling for genops, wgenops,
3237         fileops, and wfileops.
3238
3239 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3240
3241         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3242         acount that elf/rtld's main program might remove some varibales
3243         from the environment if we're trying to be secure.  Move the Hurd
3244         startup data if necessary, or, if we there is no startup data,
3245         make sure the magical convention that ARGV[0] is stored just after
3246         the environment list.
3247
3248 2000-08-01  Philip Blundell  <philb@gnu.org>
3249
3250         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3251         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3252         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3253         oldsetrlimit for GLIBC_2.0.
3254
3255 2000-08-01  Andreas Jaeger  <aj@suse.de>
3256
3257         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3258         (LINE_PARSER): Allow any number of spaces between ip address and
3259         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3260
3261         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3262
3263         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3264         constants in.
3265
3266         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3267         _nss_nisplus_getipnodebyname_r.
3268
3269         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3270         now, getipnodebyname is deprecated.
3271         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3272         Likewise.
3273
3274         * inet/Makefile (routines): Don't build getipnodebyaddr and
3275         friends.
3276
3277         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3278
3279         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3280
3281         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3282
3283         * wctype/Makefile (distribute): Add wchar-lookup.h.
3284
3285         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3286
3287         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3288
3289 2000-08-01  Andreas Schwab  <schwab@suse.de>
3290
3291         * Make-dist (dist): Resolve `..' in file names.
3292
3293 2000-08-01  Andreas Jaeger  <aj@suse.de>
3294
3295         * stdio-common/Makefile (distribute): Remove removed files, add
3296         new files.
3297
3298         * Makefile (distribute): Remove include/db_185.h and db.h.
3299
3300         * include/db_185.h: Remove, it's not needed anymore.
3301         * include/db.h: Likewise.
3302
3303 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3304
3305         * inet/Makefile (tests): Remove tst-ipnode.
3306         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3307         now.
3308
3309 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3310
3311         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3312         endp statements have already been added.
3313
3314 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3315
3316         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3317         <sysdeps/ia64/sysdep.h>.
3318
3319         * sysdeps/ia64/_mcount.S: New file.
3320
3321         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3322         __gmon_start__.  Fix up extraneous whitespace.
3323
3324 2000-01-12  H.J. Lu  <hjl@gnu.org>
3325
3326         * sysdeps/ia64/elf/initfini.c: New file.
3327
3328 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3329
3330         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3331         dependency between branch and ar.pfs write.
3332
3333 2000-07-31  H.J. Lu  <hjl@gnu.org>
3334
3335         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3336         handle the wchar_t array.
3337
3338 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3339
3340         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3341         10646 which are not yet assigned.
3342         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3343
3344 2000-07-31  Andreas Jaeger  <aj@suse.de>
3345
3346         * inet/Versions: Remove getipnodebyaddr and friends from
3347         GLIBC_2.2.
3348
3349         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3350
3351 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3352
3353         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3354         ch >= 0x81 && ch2 < 0x40 as invalid.
3355
3356 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3357
3358         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3359         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3360
3361 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3362
3363         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3364         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3365
3366 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3367
3368         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3369         0xb8.
3370         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3371
3372 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3373
3374         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3375
3376 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3377
3378         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3379         (from_ucs4): Change values of U+00A4 and U+00ED.
3380         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3381
3382 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3383
3384         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3385         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3386
3387 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3388
3389         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3390         * iconvdata/isiri-3342.h: New file.
3391         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3392         treat 0x80 as a gap.
3393
3394 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3395
3396         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3397         (utf8_encode): Use simple shifts instead.  Fix return value.
3398
3399 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3400
3401         * timezone/private.h: Update from tzcode2000e.
3402         * timezone/asia: Update from tzdata2000e.
3403         * timezone/australasia: Likewise.
3404         * timezone/europe: Likewise.
3405         * timezone/northamerica: Likewise.
3406         * timezone/zone-tab: Likewise.
3407
3408 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3409
3410         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3411         the order of struct sigaltstack members is different.
3412
3413 2000-07-26  Philip Blundell  <philb@gnu.org>
3414
3415         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3416
3417 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3418
3419         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3420         * locale/programs/ld-ctype.c: Adjust for this.
3421
3422         * locale/programs/ld-collate.c: Add more alignment checks.
3423         * locale/string/strcoll.c: Likewise.
3424
3425 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3426
3427         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3428         outside USE_IN_LIBIO block.
3429
3430 2000-07-26  Philip Blundell  <philb@gnu.org>
3431
3432         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3433         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3434
3435 2000-07-28  Philip Blundell  <philb@gnu.org>
3436
3437         * math/test-fpucw.c: Ignore reserved bits in control word.
3438
3439 2000-07-28  Philip Blundell  <philb@gnu.org>
3440
3441         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3442         (ret): Redefine to PSEUDO_RET.
3443         (PSEUDO): Remove jump to syscall_error.
3444
3445 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3446
3447         * resolv/README: Add some information about using the resolver in
3448         multi-threaded code and with C++.  Spelling fixes.
3449
3450 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3451
3452         * resolv/resolv.h (struct __sockaddr_in): Remove.
3453         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3454
3455 2000-07-29  Greg McGary  <greg@mcgary.org>
3456
3457         * Rules (test-bp-inputs, make-test-out): New variables.
3458         ($(objpfx)%-bp.out): New rule.
3459         ($(objpfx)%.out): Rewrite in terms of new variables.
3460
3461         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3462         internal function that uses vtable.
3463         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3464         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3465
3466         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3467         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3468         (chunk_align): Likewise.
3469
3470         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3471         in a way that conforms to decl, and avoids spurious bounds violation.
3472
3473         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3474         * sysdeps/generic/frame.h: Likewise.
3475         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3476         around return value.
3477         (__backtrace): Qualify frame-pointer chain and return address
3478         pointers as __unbounded.  Wrap bounds around variable `current'.
3479         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3480         around return value.
3481         (catch_segfault): Qualify frame-pointer chain and return address
3482         pointers as __unbounded.  Wrap bounds around variable `current'.
3483         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3484         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3485         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3486         __unbounded.
3487         (__backtrace): Qualify frame-pointer chain and return address
3488         pointers as __unbounded.  Wrap bounds around variable `current'.
3489
3490         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3491         * sysdeps/i386/mul_1.S: Likewise.
3492         * sysdeps/i386/submul_1.S: Likewise.
3493         * sysdeps/i386/i586/addmul_1.S: Likewise.
3494         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3495         * sysdeps/i386/i586/submul_1.S: Likewise.
3496
3497 2000-07-27  Andreas Jaeger  <aj@suse.de>
3498
3499         * libio/Depend: New file, libio needs localedata for tests.
3500         * posix/Depend: Likewise.
3501
3502 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3503
3504         * stdio-common/_i18n_itoa.c: Removed.
3505         * stdio-common/_i18n_itoa.h: Removed.
3506         * stdio-common/_i18n_itowa.c: Removed.
3507         * stdio-common/_i18n_itowa.h: Removed.
3508         * stdio-common/_i18n_number.h: New file.
3509         * stdio-common/Depend: New file.
3510         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3511         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3512         printing.  Change printing of numbers with locale specific digits to
3513         use new code in _i18n_number.h.
3514         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3515         _i18n_itowa.
3516
3517         * stdio-common/bug13.c: Improve messages.
3518
3519         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3520         (set_class_defaults): Always search also for Uxxxx names.
3521         Detect insufficient number of outdigits.
3522
3523         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3524
3525 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3526
3527         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3528         _NL_CTYPE_MAP_NAMES.
3529         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3530         * wctype/wcfuncs.c (towlower, towupper): Use them.
3531         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3532         * wctype/wctrans.c (wctrans): Likewise.
3533         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3534
3535 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3536
3537         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3538         Use the optimized version of this function outside glibc as well.
3539
3540 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3541
3542         * locale/indigits.h (indigit_value): Correct.
3543         * locale/indigitswc.h (indigitwc_value): Correct.
3544         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3545         conversion, add GROUP checking for it, fix GROUP number
3546         conversion with strlen(thousands) > 1.
3547         Honour width correctly in the presence of floating
3548         decimal points and thousands separators.
3549         * stdio-common/tst-sscanf.c: New test.
3550         * stdio-common/Makefile: Add it to tests.
3551         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3552         thousands separators and group argument is non-zero.
3553
3554 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3555
3556         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3557         starts at GLIBC_2.2.
3558
3559 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3560
3561         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3562         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3563         _test_and_set.
3564         (headers): Add sys/tas.h.
3565         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3566         GLIBC_2.2 from libc.
3567         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3568         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3569         _test_and_set.
3570
3571 2000-07-28  Andreas Jaeger  <aj@suse.de>
3572
3573         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3574
3575         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3576         ($(objpfx)tst-dladdr.out): new.
3577         (tests): Add tst-dladdr.
3578         ($(objpfx)glrefmain): Use libdl.
3579
3580         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3581         <vs@caldera.de>.
3582
3583 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3584
3585         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3586         ftruncate(64) calls.
3587
3588 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3589
3590         * intl/tst-translit.c: Include string.h to get prototype for
3591         strcmp().
3592
3593 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3594
3595         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3596         name and add weak alias for __fork.
3597
3598         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3599         & pwrite to use __libc_<name> as strong names instead of
3600         __syscall_<name>.
3601
3602         * include/sched.h: Add clone2 prototype.
3603
3604 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3605
3606         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3607         procedure name twice.
3608
3609 2000-07-27  Philip Blundell  <philb@gnu.org>
3610
3611         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3612
3613 2000-07-27  Andreas Jaeger  <aj@suse.de>
3614
3615         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3616         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3617         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3618         Reported by Andi Kleen <ak@suse.de>.
3619
3620         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3621         (do_wait): Test requests with aio_return64.
3622         (do_test): Change callers of do_wait.
3623
3624 2000-07-26  Andreas Jaeger  <aj@suse.de>
3625
3626         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3627         (do_wait): Test requests with aio_return.
3628         (do_test): Change callers of do_wait.
3629
3630 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3631
3632         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3633         from request list.  Don't do the list handling here, call
3634         __aio_remove_request.
3635         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3636         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3637         request might already be processed.  Don't do the list handling
3638         here, call __aio_remove_request.
3639
3640         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3641         LIO_DSYNC.
3642
3643         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3644         are missing.
3645
3646 2000-07-27  Greg McGary  <greg@mcgary.org>
3647
3648         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3649         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3650         in union init.  Pass zero for ignored semnum arg to semctl.
3651         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3652
3653 2000-07-26  Greg McGary  <greg@mcgary.org>
3654
3655         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3656         data structure pointers as __unbounded.
3657         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3658         * sysdeps/generic/bp-semctl.h: New file.
3659         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3660         pointers as __unbounded.  Check bounds of syscall args.
3661         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3662         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3663         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3664         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3665         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3666         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3667         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3668         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3669         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3670         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3671         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3672         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3673         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3674         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3675         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3676         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3677
3678 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3679
3680         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3681         by default.
3682         * locale/C-ctype.c: Likewise.
3683         * wcsmbs/wcsmbsload.c: Likewise.
3684
3685 2000-07-26  Greg McGary  <greg@mcgary.org>
3686
3687         * Makeconfig (+link-bounded, link-libc-bounded,
3688         link-extra-libs-bounded): New variables.
3689         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3690         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3691         * Rules (tests-bp.out): New variable.
3692         (tests): Conditionally add BP tests.
3693         (binaries-bounded): Add variable and associated rule.
3694         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3695         Move conditional stuff after place where condition is defined.
3696
3697         * malloc/malloc.c (bp-checks.h): Add #include.
3698         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3699         (_bin_at): Add unbounded version of bin_at.
3700         (IAV, chunk_alloc): Use unbounded _bin_at.
3701         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3702         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3703         Wrap BOUNDED_N around return value.
3704         (chunk_realloc): Adjust oldsize once.
3705
3706         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3707         (__ubp_memchr): Add correct decl.
3708         (_CHECK_STRING): Use __ubp_memchr.
3709         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3710         New alias for unbounded-pointer __memchr.
3711         * sysdeps/i386/memchr.S: Likewise.
3712         * sysdeps/ia64/memchr.S: Likewise.
3713         * sysdeps/m68k/memchr.S: Likewise.
3714         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3715         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3716         * sysdeps/vax/memchr.s: Likewise.
3717
3718         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3719         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3720         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3721         * sysdeps/i386/i686/strtok.S: Likewise.
3722         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3723         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3724
3725         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3726         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3727
3728         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3729         bounds of copy_result to mount_proc.
3730
3731 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3732
3733         * wctype/wctype.h (__wctrans_l): New declaration.
3734         * wctype/wctrans_l.c: New file.
3735         * wctype/Makefile (routines): Add wctrans_l.
3736
3737 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3738
3739         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3740         Patch by MacGyver <macgyver@tos.net>.
3741
3742 2000-07-26  Andreas Jaeger  <aj@suse.de>
3743
3744         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3745         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3746         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3747
3748         * rt/tst-aio.c (test_file): Fix typo.
3749         * rt/tst-aio64.c (test_file): Likewise.
3750
3751         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3752         * rt/Makefile: Add rules to build and run tst-aio3.
3753
3754         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3755         it's not needed and confuses only.
3756
3757 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3758
3759         * resolv/res_init.c: Add support for nameserver communication with
3760         IPv6.
3761         * resolv/res_send.c: Likewise.
3762         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3763         in nsaddrs field.
3764         Patch by <venaas@nvg.ntnu.no>.
3765
3766 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3767
3768         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3769         (wcwidth_table_get): New function.
3770         (wcwidth_table_add): Call it.
3771         (wctrans_table_get): New function.
3772         (wctrans_table_add): Call it.
3773
3774 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3775
3776         * rt/lio_listio.c (lio_listio): Always disable individual
3777         notification.
3778         * rt/Makefile: Add rules to build and run tst-aio2.
3779         * rt/tst-aio2.c: New file.
3780
3781         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3782         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3783
3784 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3785
3786         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3787         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3788         leading and trailing spaces from host, user and domain name.
3789
3790 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3791
3792         * csu/defs.awk: Add support for need_endp.
3793
3794 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3795
3796         * resolv/resolv.h: Remove __P from res_send_qhook and
3797         res_send_rhook typedefs.
3798
3799 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3800
3801         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3802
3803 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3804
3805         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3806
3807 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3808
3809         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3810         calling thread, set the cancellation flag and return success
3811         instead of EINTR.
3812
3813 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3814
3815         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3816         * libio/tst-widetext.c: New file.
3817         * libio/tst-widetext.input: New file.
3818
3819         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3820
3821         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3822         empty external buffer correctly.
3823
3824 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3825
3826         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3827         __STRING(entry) and not #entry.
3828         (_RTLD_EPILOGUE): Likewise.
3829         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3830
3831 2000-07-25  Andreas Jaeger  <aj@suse.de>
3832
3833         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3834         according to changes in test program, run also with static only
3835         builds.
3836         ($(objpfx)tst-printf.out): Likewise.
3837
3838         * stdio-common/tst-unbputc.sh: Likewise.
3839         * stdio-common/tst-printf.sh: Likewise.
3840
3841 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3842
3843         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3844
3845         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3846         loop.
3847
3848         * libio/fileops.c: Pretty print.
3849
3850 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3851
3852         * wctype/wchar-lookup.h: New file.
3853         * wctype/iswctype.c: Include "wchar-lookup.h".
3854         (__iswctype): Support alternate locale format with 3-level tables.
3855         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3856         * wctype/towctrans.c (__towctrans): Likewise.
3857         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3858         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3859         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3860         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3861         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3862         __iswxdigit, towlower, towupper): Support alternate locale format
3863         with 3-level tables.
3864         * wctype/wcextra.c (iswblank): Likewise.
3865         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3866         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3867         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3868         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3869         format with 3-level tables.
3870         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3871         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3872         format, return a 3-level table pointer.
3873         * wctype/wctype_l.c (__wctype_l): Likewise.
3874         * wctype/wctrans.c (wctrans): Likewise.
3875         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3876         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3877         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3878         (iswctype): Remove macro definition.
3879         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3880         (internal_wcwidth): Support alternate locale format with 3-level
3881         tables.
3882         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3883         New nl_items.
3884         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3885         Define them as being type "word".
3886         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3887         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3888         __ctype32_width): New exported variables.
3889         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3890         alternate locale format. Don't initialize __ctype_names and
3891         __ctype_width in the alternate locale format.
3892         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3893         * locale/programs/localedef.c (oldstyle_tables): New variable.
3894         (OPT_OLDSTYLE): New macro.
3895         (options): Add --old-style option.
3896         (parse_opt): Handle --old-style option.
3897         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3898         map_offset, class_3level, map_3level, width_3level members.
3899         (ctype_output): Support for alternate locale format: Computation of
3900         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3901         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3902         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3903         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3904         now contain both class and map tables.
3905         (struct wctype_table): New type.
3906         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3907         functions.
3908         (struct wcwidth_table): New type.
3909         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3910         functions.
3911         (struct wctrans_table): New type.
3912         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3913         functions.
3914         (allocate_arrays): Support for alternate locale format: Set
3915         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3916         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3917         to the first 256 characters. Compute ctype->map_3level. Set
3918         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3919         instead of ctype->width.
3920
3921 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3922
3923         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3924         string functions.
3925
3926 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3927
3928         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3929         in wide characters, not bytes.
3930         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3931         into file.
3932
3933 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3934
3935         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3936         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3937         LC_MEASUREMENT, LC_IDENTIFICATION.
3938
3939         * locale/xlocale.h (struct __locale_struct): Increase size of
3940         __locales array.
3941         * locale/duplocale.c (__duplocale): Copy newly added categories as
3942         well.
3943         * locale/freelocale.c (__freelocale): Free newly added categories.
3944         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3945         If a base is given, use it, don't simply return it.
3946
3947 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3948
3949         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3950         variables, copied_key and copied_salt, instead of boolean variables.
3951
3952 2000-07-24  Andreas Jaeger  <aj@suse.de>
3953
3954         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3955         check for offset.
3956
3957         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3958         initgroups_function, adopted prototype for change from 2000-07-23.
3959         (initgroups): Follow type change.
3960
3961         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3962         & PAGE_MASK case, reformat.
3963
3964         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3965         from stdin and setup environment.
3966
3967 2000-07-24  Andreas Schwab  <schwab@suse.de>
3968
3969         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3970
3971 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3972
3973         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3974         more.  Patch by scarlet@mit.edu [PR libc/1799].
3975
3976         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3977         [PR libc/1792].
3978
3979         * argp/argp-parse.c (parser_finalize): Reverse order in which
3980         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3981
3982         * grp/initgroups.c (initgroups): Don't limit the possible number
3983         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3984         the setgroups call while the call fails and descrease the number
3985         of groups each round.
3986         The name of the initgroups function in the NSS modules changed.
3987         (compat_call): Adapt for dynamic resizing.
3988         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3989         Implement dynamic resizing.
3990         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3991         Likewise.
3992         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3993         * hesiod/Versions: Change exported interface name.
3994         * nis/Versions: Change exported interface name.
3995
3996 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3997
3998         * locale/iso-639.def: Some errors corrected.
3999         Patch by Keld Simonsen.
4000
4001         * include/limits.h: Update non-gcc portion.
4002         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4003
4004 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4005
4006         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
4007         program's data space, reallocate only the space that was just
4008         deallocated to release its backing space.
4009
4010 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
4011
4012         * stdio-common/vfprintf.c (process_string_arg): For wide character
4013         version, handle precision also correctly.
4014
4015         * nss/nss_files/files-hosts.c: Correct problem with three or more
4016         entries with the same name.
4017
4018         * nss/nss_files/files-hosts.c: Implement multi handling.
4019         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
4020
4021 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4022
4023         * nss/nss_files/files-parse.c: Don't pollute namespace by using
4024         strcasecmp.
4025
4026         * grp/Makefile: Change Makefiles and tests to run only when necessary.
4027         * malloc/Makefile: Likewise.
4028         * malloc/tst-mtrace.sh: Likewise.
4029         * posix/Makefile: Likewise.
4030         * posix/globtest.sh: Likewise.
4031         * posix/wordexp-tst.sh: Likewise.
4032         * string/Makefile: Likewise.
4033
4034 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
4035
4036         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
4037         size instead of LC_ALL to take into account the new locale
4038         categories.
4039
4040 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
4041
4042         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
4043         remainders of hash table.
4044         * locale/categories.def: Remove remainders of transliteration
4045         hash table.
4046         * locale/langinfo.h: Likewise.
4047         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
4048         transliteration tables.
4049
4050         * locale/gen-translit.pl: New file.
4051         * locale/C-translit.h.in: New file.
4052         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
4053         data pointers with data from this file.
4054         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
4055         and gen-translit.pl.
4056         Add rule to generate C-translit.h.
4057         * intl/tst-translit.c (main): Update for now performed
4058         transliteration.
4059
4060         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
4061         (it's no input error).
4062         * stdio-common/tstscanf.c: Add test case for format %f with input --.
4063         * stdio-common/scanf12.c: Correct expected result for first scanf.
4064
4065         * stdio-common/vfprintf.c (process_string_arg): Correct handling
4066         of multibyte character strings in %s format with precision.
4067
4068 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4069
4070         * locale/programs/ld-collate.c (collate_read): Allow collating
4071         symbols and elements be named in reorder-after instructions.
4072         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4073
4074         * locale/programs/ld-collate.c (handle_ellipsis): Test for
4075         duplication with generated name, not the name of the first
4076         character.
4077         Patch by Yong Li <yong.li@asu.edu>.
4078
4079         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
4080         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
4081
4082 2000-07-21  Wolfram Gloger  <wg@malloc.de>
4083
4084         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
4085         allocations only if a non-main arena cannot be extended.
4086
4087 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
4088
4089         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
4090         in DF_1_NODEFLIB handling.
4091
4092 2000-07-21  Andreas Jaeger  <aj@suse.de>
4093
4094         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
4095         own rule.
4096
4097         * libio/fwide.c: Include <wchar.h> for prototype.
4098
4099 2000-07-21  Greg McGary  <greg@mcgary.org>
4100
4101         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
4102         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
4103         Define in terms of chunk_at_offset.
4104         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
4105         (next_bin, prev_bin): offset by size of real array elements.
4106         (chunk_align): Make `m' a scalar, since that's how it's used.
4107
4108 2000-07-21  Greg McGary  <greg@mcgary.org>
4109
4110         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
4111         UNCHECK_BOUNDS.
4112         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
4113         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
4114         Wrap bounds around argv & envp and each of their string members.
4115         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
4116         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
4117         symbol in BP_SYM ().  Discard bounds of address arg.
4118         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
4119         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
4120         Discard bounds on address arg, add bounds to return value.
4121
4122 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4123
4124         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
4125         * elf/filter.c: New file.
4126         * elf/filtmod1.c: New file.
4127         * elf/filtmod2.c: New file.
4128
4129         * elf/rtld.c: Define _dl_bind_not variable.
4130         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
4131         * elf/dl-support.c: Likewise.
4132         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
4133         * elf/dl-runtime.c (fixup): Don't remember looked up value if
4134         _dl_bind_not.
4135         (profile_fixup): Likewise.
4136
4137         * libio/Makefile (routines): Add fwide.
4138         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
4139         fwide now.  Internal calls to _IO_fwide must do locking themselves
4140         or don't need locking.
4141         * libio/fwide.c: New file.
4142
4143         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
4144
4145         * elf/Makefile: Add no modules for nodelete test.
4146         * elf/nodelmod3.c: New file.
4147         * elf/nodelmod4.c: New file.
4148         * elf/nodelete.c: Also test case where dependency of dlopen() object
4149         is marked nodelete.
4150
4151         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
4152         * elf/nodlopen.c: New file.
4153         * elf/nodlopenmod.c: New file.
4154         * include/dlfcn.h: Define __RTLD_DLOPEN.
4155         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
4156         and this is a dlopen() call, do not load the binary.
4157         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
4158         * dlfcn/dlopenold.c: Likewise.
4159         * configure.in: Add test for -z nodelete option.
4160         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4161
4162 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4163
4164         Make Hesiod NSS module thread-safe.
4165
4166         * hesiod/README.hesiod: Update.
4167
4168         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
4169         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
4170         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
4171         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
4172         hesiod-proto.
4173         * hesiod/nss_hesiod/hesiod-init.c: New file.
4174         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
4175         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
4176         * hesiod/nss_hesiod/nss_hesiod.h: New file.
4177         * hesiod/nss_hesiod/hesiod-service.c
4178         (_nss_hesiod_getservbyport_r): New function.  Provide support for
4179         looking up services by port number.
4180         * hesiod/nss_hesiod/hesiod-proto.c: New file.
4181
4182         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
4183         * hesiod/hesiod.h: Likewise.
4184         * hesiod/hesiod_p.h: Likewise.
4185
4186 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
4187
4188         Fix problems with `struct __res_state' getting too big.
4189         * resolv/resolv.h (struct __sockaddr_in): New definition.
4190         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
4191         the private parts of the structure to save some space.
4192         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
4193         (struct sockaddr_in *) in call to sock_eq.
4194         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
4195
4196 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
4197
4198         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
4199         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
4200         with nodelete.
4201         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
4202         to _dl_map_object.  Return immediately if no object loaded.
4203         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
4204         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
4205         if it exists into l_flags_1 word.
4206         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
4207         it to determine whether loading is wanted or not.
4208         (_dl_map_object): Likewise.
4209         Call _dl_map_object_from_fd with new parameter.
4210         * sysdeps/generic/ldsodefs.h: Update prototype.
4211         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
4212         * elf/rtld.c: Likewise.
4213         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4214         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
4215         * elf/noload.c: New file.
4216         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
4217         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
4218         * sysdeps/mips/bits/dlfcn.h: Likewise.
4219         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
4220         (tests-nodelete-yes): Define.
4221         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
4222         Add rules to build nodelete and modules.
4223         * elf/nodelete.c: New file.
4224         * elf/nodelmod1.c: New file.
4225         * elf/nodelmod2.c: New file.
4226         * configure.in: Add test for -z nodelete option.
4227         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4228
4229         * libio/Makefile (tests): Add tst_wprintf2.
4230         (tst_wprintf2-ARGS): Define.
4231         * libio/tst_wprintf2.c: New file.
4232         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4233
4234         * libio/wfiledoalloc.c: Only allocate external buffer if this
4235         hasn't happened yet.
4236
4237         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4238         something in the buffer.  gconv call can write up to end of the
4239         buffer, not only _IO_write_end.
4240         (_IO_wfile_overflow): Allocate also external buffer.
4241
4242 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4243
4244         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4245         strings with precision in vfwprintf correctly.
4246         * stdio-common/vfprintf.c: Fix completely broken handling of
4247         unbuffered wide character streams.
4248         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4249
4250         * resolv/Makefile (distribute): Add README.
4251
4252         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4253
4254 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4255
4256         Update resolver code to BIND 8.2.3-T5B.
4257
4258         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4259         __res_nclose.
4260         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4261         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4262         __res_search.
4263         * resolv/Banner: BIND-8.2.3-T5B.
4264
4265         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4266         * resolv/herror.c: Likewise.
4267         * resolv/inet_addr.c: Likewise.
4268         * resolv/inet_net_ntop.c: Likewise.
4269         * resolv/inet_net_pton.c: Likewise.
4270         * resolv/inet_neta.c: Likewise.
4271         * resolv/inet_ntop.c: Likewise.
4272         * resolv/nsap_addr.c: Likewise.
4273         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4274         IPv6 addresses (ISC bug #520).
4275
4276         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4277         * resolv/ns_parse.c: Likewise.
4278         * resolv/ns_netint.c: Likewise.
4279         * resolv/ns_samedomain.c: Likewise.
4280         * resolv/ns_ttl.c: Likewise.
4281         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4282         RCS ID in object file.
4283
4284         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4285         * resolv/res_mkquery.c: Likewise.
4286         * resolv/res_query.c: Likewise.
4287         * resolv/res_init.c: Likewise.
4288         (res_setoptions): Mark internal.
4289         * resolv/res_send.c: Likewise.
4290         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4291         by using poll instead.
4292         * resolv/res_comp.c: Likewise.
4293         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4294         weak alias for __dn_expand.
4295         * resolv/res_data.c: Likewise.
4296         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4297         in _res.options.  Avoids a potential security risk by avoiding a
4298         close (0).
4299         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4300         res_mkquery, res_query, res_querydomain adn res_search weak
4301         aliases for __res_mkquery, __res_query, __res_querydomain and
4302         __res_search.
4303         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4304         instead to avoid close(0).
4305         (res_init): Always use the static resolver context.
4306         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4307         alias for __res_init.
4308
4309         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4310         RES_SET_H_ERRNO and accompanying comment to...
4311         * include/resolv.h: ... here.
4312
4313         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4314         * resolv/arpa/nameser_compat.h: Likewise.
4315
4316 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4317
4318         * nss/makedb.c (main): Compare result of load_db with
4319         NSS_STATUS_SUCCESS and not 0.
4320         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4321
4322         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4323
4324 2000-07-18  Greg McGary  <greg@mcgary.org>
4325
4326         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4327         (EXTEND_BUFFER): Use it.
4328
4329 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4330
4331         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4332         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4333         __builtin_return_address.
4334         * dlfcn/dlopenold.c: Likewise.
4335         * dlfcn/dlsym.c: Likewise.
4336         * dlfcn/dlvsym.c: Likewise.
4337         * elf/dl-profstub.c: Likewise.
4338         * malloc/malloc.c: Likewise.
4339         * sysdeps/generic/machine-gmon.h: Likewise.
4340         Based on a patch by schwidefsky@de.ibm.com.
4341
4342 2000-07-18  Andreas Jaeger  <aj@suse.de>
4343
4344         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4345         NULL to elf_machine_fixup_plt t argument to silence GCC.
4346
4347         * include/string.h: Add prototype for __memchr.
4348
4349         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4350
4351         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4352         instead of memrchr.
4353
4354 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4355
4356         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4357
4358         * locale/C-ctype.c: Add initializers for gap elements.
4359         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4360         for gap elements.
4361
4362 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4363
4364         * nscd/nscd.c (print_version): Update copyright year.
4365
4366 2000-07-17  Greg McGary  <greg@mcgary.org>
4367
4368         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4369         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4370         signature argnames with angle-brackets for use as word delimiters,
4371         and to induce syntax errors for any args not handled.  Split
4372         multi-echo echoes and comment each stage.
4373         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4374         * sysdeps/unix/inet/syscalls.list: Likewise.
4375         * sysdeps/unix/mman/syscalls.list: Likewise.
4376         * sysdeps/unix/syscalls.list: Likewise.
4377         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4378         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4379         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4380         * sysdeps/unix/sysv/syscalls.list: Likewise.
4381         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4382
4383         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4384         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4385         qualifiers.  Don't check NULL-terminator of argv & envp.
4386         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4387         unbounded pointer type in word-size assertion.
4388         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4389         cases to stifle warnings.
4390
4391         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4392         _IO_file_attach.
4393         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4394
4395         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4396         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4397         ptr as __unbouned.
4398
4399         * Makerules (o-objects): Supplement with $(o-objects$o).
4400         * string/Makefile (o-objects.ob): Add variable to pull
4401         unbounded versions of memcpy, memset and memchr into libc_b.
4402
4403         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4404         rather than non-existent __ubp_memchr.
4405         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4406         (_CHECK_STRING, _CHECK_N): New macros.
4407         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4408         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4409         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4410         Add weak alias "memchr".
4411         * sysdeps/generic/memchr.c: Likewise.
4412         * sysdeps/i386/memchr.S: Likewise.
4413         * sysdeps/ia64/memchr.S: Likewise.
4414         * sysdeps/m68k/memchr.S: Likewise.
4415         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4416         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4417         * sysdeps/vax/memchr.s: Likewise.
4418
4419         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4420
4421         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4422         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4423         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4424         __BOUNDED_POINTERS__.
4425         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4426         for __BOUNDED_POINTERS__.
4427
4428 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4429
4430         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4431         field of struct __gconv_trans_data differently.  Don't pass NULL to
4432         trans_init_fct.  Simplify list append operation.
4433
4434 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4435
4436         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4437         not only those having tsearch.
4438
4439 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4440
4441         * locale/langinfo.h: Add placeholder values in enum for removed
4442         LC_CTYPE entries.
4443
4444 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4445
4446         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4447         chain if the PHDR check fails.
4448
4449 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4450
4451         * nss/getent.c (print_hosts): Make sure we always print a space
4452         between numeric addresses and hostnames.
4453
4454 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4455
4456         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4457         i.e. if n_mmaps_max>0.
4458
4459 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4460
4461         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4462         values to remove possible clash with other AI_* constants.
4463         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4464         hexadecimal constants to stress the fact they're in fact
4465         bit flags.
4466
4467 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4468
4469         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4470         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4471         instead of res_init.
4472
4473 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4474
4475         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4476         parameters of memset calls to avoid warnings.
4477
4478 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4479
4480         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4481         necessary.
4482
4483         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4484         Patch by Greg McGary <greg@mcgary.org>.
4485
4486         * io/Makefile (tests): Add tst-getcwd.
4487         * io/tst-getcwd.c: New file.
4488
4489         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4490
4491 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4492
4493         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4494         structure.
4495
4496 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4497
4498         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4499         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4500
4501 2000-07-12  H.J. Lu  <hjl@gnu.org>
4502
4503         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4504         GLIBC_2.2.
4505         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4506         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4507         (sysdep-routines): Add clone2.
4508         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4509
4510 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4511
4512         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4513         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4514
4515 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4516
4517         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4518         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4519         Change type of si_band from "int" to "long".
4520         (si_imm) [USE_GNU]: Define
4521         (si_isr) [USE_GNU]: Ditto.
4522         (ILL_BREAK) [USE_GNU]: Ditto.
4523         (FPE_DECOVF) [USE_GNU]: Ditto.
4524         (FPE_DECDIV) [USE_GNU]: Ditto.
4525         (FPE_DECERR) [USE_GNU]: Ditto.
4526         (FPE_INVASC) [USE_GNU]: Ditto.
4527         (FPE_INVDEC) [USE_GNU]: Ditto.
4528         (TRAP_BRANCH) [USE_GNU]: Ditto.
4529         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4530
4531 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4532
4533         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4534         bits/sigcontext as struct mcontext does not depend on it.
4535
4536         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4537
4538 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4539
4540         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4541
4542 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4543
4544         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4545
4546 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4547
4548         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4549
4550 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4551
4552         * intl/Makefile (test-srcs): Add tst-translit.
4553         (tests): Likewise.
4554         Add rules to build and run tst-translit.
4555         * intl/tst-translit.c: New file.
4556         * intl/tst-translit.sh: New file.
4557         * intl/translit.po: New file.
4558
4559 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4560
4561         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4562         transliteration function did its job, continue, don't stop.
4563
4564         * iconvdata/iso646.c: Little optimizations in body for conversion
4565         from UCS4.
4566
4567 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4568
4569         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4570
4571 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4572
4573         * configure.in: Check for pwd binary.
4574         * config.make.in: Add PWD_P to be subsituted.
4575         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4576
4577 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4578
4579         * iconvdata/Makefile (modules): Add GB18030.
4580         (distribute): Add gb18030.c.
4581         * iconvdata/gconv-modules: Add entries for GB18030 module.
4582         * iconvdata/gb18030.c: New file.
4583         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4584         and Wu Jian.
4585
4586 2000-07-13  Andreas Jaeger  <aj@suse.de>
4587
4588         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4589         patch.
4590
4591         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4592         * inet/getnetgrent.c (free_mem): Likewise.
4593         * misc/mntent.c (free_mem): Likewise.
4594         * nss/getXXbyYY.c (free_mem): Likewise.
4595         * nss/getXXent.c (free_mem): Likewise.
4596         * pwd/fgetpwent.c (free_mem): Likewise.
4597         * shadow/fgetspent.c (free_mem): Likewise.
4598
4599 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4600
4601         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4602         64-bit architecture correctly [PR libc/1794].
4603
4604 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4605
4606         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4607         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4608         report that we are out of memory.
4609         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4610         * elf/dl-libc.c (dlerror_run): Likewise.
4611         * elf/dl-open.c (_dl_open): Likewise.
4612         * elf/rtld.c (dl_main): Likewise.
4613         * elf/dl-error.c: Define _dl_out_of_memory.
4614         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4615         the error string.
4616         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4617         [PR libc/1813].
4618
4619         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4620
4621         * iconv/loop.c: Fix comment.
4622
4623         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4624
4625 2000-07-13  Andreas Jaeger  <aj@suse.de>
4626
4627         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4628         getcwd (NULL, size) with size > 0.
4629         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4630
4631 2000-07-13  Andreas Jaeger  <aj@suse.de>
4632
4633         * posix/Makefile: Remove build rules for libposix.
4634
4635 2000-07-13  Andreas Schwab  <schwab@suse.de>
4636
4637         * sysdeps/generic/glob.c (glob): Fix memory leak.
4638         [SHELL]: Remove reference to undefined variable `files'.
4639         Fixes PR libc/1782.
4640
4641 2000-07-13  Andreas Jaeger  <aj@suse.de>
4642
4643         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4644         functions.
4645
4646         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4647         memory if it was allocated.
4648
4649 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4650
4651         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4652         step.
4653
4654         * iconv/gconv_open.c (__gconv_open): Reapply
4655         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4656
4657                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4658
4659         * iconv/gconv_open.c: Undo last two changes for now.  They break
4660         everything.
4661
4662 2000-07-12  Andreas Jaeger  <aj@suse.de>
4663
4664         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4665         compiler.
4666         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4667         (CFLAGS-dl-cache.c): Likewise.
4668         (CFLAGS-ldconfig.c): Added, passes directory locations.
4669
4670         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4671         locate cache.
4672         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4673         (main): Use configured LIBDIR and SLIBDIR.
4674
4675 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4676
4677         * math/bits/cmathcalls.h (cimag): Add __THROW.
4678         (creal, conj): Likewise.
4679         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4680         by negative value.
4681
4682 2000-07-12  H.J. Lu  <hjl@gnu.org>
4683
4684         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4685         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4686
4687 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4688
4689         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4690         it is wrong.
4691
4692 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4693
4694         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4695
4696 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4697
4698         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4699         __modname.
4700
4701 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4702
4703         * iconv/gconv_open.c (__gconv_open): Initialize
4704         result->__steps[cnt].__data.
4705
4706 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4707
4708         * nss/getent.c (services_keys): Pass port number in network byte
4709         order in call to getservbyport.
4710
4711 2000-07-11  Andreas Jaeger  <aj@suse.de>
4712
4713         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4714         source dir.
4715         * intl/Makefile (do-gettext-test): Likewise.
4716         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4717
4718 2000-07-11  Andreas Schwab  <schwab@suse.de>
4719
4720         * Makeconfig (run-program-prefix): New rule.
4721         (built-program-cmd): Use run-program-prefix.
4722
4723 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4724
4725         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4726         and NOEXPR unconditionally available.
4727
4728 2000-07-12  Greg McGary  <greg@mcgary.org>
4729
4730         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4731         * sysdeps/posix/open64.c: Likewise.
4732         * sysdeps/generic/fegetenv.c: Likewise.
4733         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4734         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4735         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4736         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4737         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4738         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4739
4740 2000-07-11  Greg McGary  <greg@mcgary.org>
4741
4742         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4743         Add extra level of macro expansion.
4744         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4745         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4746         is available at the time `select' prototype is declared.
4747         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4748         Collect non-versioned weak aliases.  Consider only non-versioned
4749         aliases for the user-visible systemcall name.  Do checks inline with
4750         call to primitive system call.
4751         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4752         stand-alone bounds checks to suppress unused value warnings.
4753         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4754
4755 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4756
4757         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4758         file descriptor checking in SUID programs for the Hurd.
4759
4760         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4761         res_hostalias instead of __hostalias for thread-safety.
4762
4763 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4764
4765         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4766         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4767
4768 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4769
4770         * include/features.h: Include ISO C99 features if the compiler used
4771         is an ISO C99 compiler.
4772         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4773
4774 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4775
4776         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4777
4778 2000-07-10  Andreas Jaeger  <aj@suse.de>
4779
4780         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4781         it's overridden by libpthreads.
4782         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4783         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4784         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4785         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4786         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4787
4788         * malloc/Makefile: Run tst-mtrace only with shared libs.
4789
4790         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4791         with shared libs.
4792
4793 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4794
4795         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4796         that gpreg really points to the GOT section of the calling object.
4797         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4798         checking a start address of first one.
4799         Fix typos.
4800         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4801         Likewise.
4802
4803         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4804
4805 2000-07-10  Andreas Jaeger  <aj@suse.de>
4806
4807         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4808         (string_alias->strong_alias).
4809
4810 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4811
4812         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4813
4814 2000-07-07  Greg McGary  <greg@mcgary.org>
4815
4816         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4817         have no names without leading underscores.
4818
4819 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4820
4821         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4822         U007E.
4823
4824         * stdio-common/Makefile (tests): Remove tst-printf here...
4825         (tests-srcs): ...and add it here.
4826         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4827         Add rules to run tst-printf.sh.
4828         * stdio-common/tst-printf.c: Move code around so that there is really
4829         no further output where it's stated.
4830         * stdio-common/tst-printf.sh: New file.
4831
4832 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4833
4834         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4835         (do_write): Renamed from pwrite.
4836         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4837         `struct _IO_cookie_file'.
4838
4839 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4840
4841         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4842         detected.
4843         * malloc/tst-mtrace.sh: Run mtrace script.
4844
4845 2000-07-07  Greg McGary  <greg@mcgary.org>
4846
4847         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4848         Move all three components of a bounded pointer.
4849
4850 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4851
4852         * locale/programs/locale.c (write_locales): Don't simply add all
4853         directories found in the subdir, test whether at least the
4854         LC_CTYPE file is in there.
4855
4856 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4857
4858         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4859         * iconvdata/euc-kr.c: Likewise.
4860
4861         * stdio-common/vfprintf.c (process_string_arg): Check result of
4862         wcrtomb call and bail out if it failed.
4863
4864         * malloc/Makefile (test-srcs): Add tst-mtrace.
4865         (distribute): Add tst-mtrace.sh.
4866         Add rule to run tst-mtrace.sh.
4867         * malloc/tst-mtrace.c: New file.
4868         * malloc/tst-mtrace.sh: New file.
4869
4870         * include/signal.h: Declare __libc_sigaction.
4871         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4872         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4873         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4874         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4875         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4876         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4877         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4878
4879         * configure.in: Fix CFLAGS-memprofstat.c definition after
4880         2000-06-19 change.
4881         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4882
4883 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4884
4885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4886         instead of NULL to elf_machine_fixup_plt t argument.
4887         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4888         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4889         cast.
4890
4891 2000-07-06  Andreas Jaeger  <aj@suse.de>
4892
4893         * crypt/Makefile (LDLIBS-cert): Removed.
4894         (LDLIBS-md5c-test): Removed.
4895         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4896         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4897
4898 2000-07-06  Andreas Jaeger  <aj@suse.de>
4899
4900         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4901         of the proc system is "proc".
4902
4903         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4904         thread library for static programs.
4905
4906 2000-07-06  Greg McGary  <greg@mcgary.org>
4907
4908         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4909         New macros.
4910         * sysdeps/generic/strcpy.c: Add bounds checks.
4911         * sysdeps/unix/fxstat.c: Likewise.
4912         * sysdeps/unix/xstat.c: Likewise.
4913         * sysdeps/unix/common/lxstat.c: Likewise.
4914         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4915         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4916         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4917         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4918         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4919         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4920         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4921         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4922         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4923         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4924         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4925         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4926         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4927         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4928         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4929         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4930         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4931         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4932         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4933         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4934         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4935         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4936         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4937         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4938         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4939         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4940         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4941         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4942         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4943         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4944         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4945         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4946         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4947         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4948         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4949         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4950         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4951         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4952         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4953         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4954         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4955         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4956         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4957         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4958         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4959         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4960         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4961         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4962         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4963         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4964         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4965         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4966         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4967         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4968         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4969         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4970         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4971         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4972         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4973         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4974         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4975         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4976         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4977         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4978
4979         * string/endian.h (__LONG_LONG_PAIR): New macro.
4980         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4981         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4982         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4983         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4984         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4985         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4986         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4987         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4988         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4989         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4990         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4991         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4992
4993         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4994
4995 2000-07-06  Andreas Jaeger  <aj@suse.de>
4996
4997         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4998         Initialize result.
4999
5000         * math/test-fpucw.c: Include <stdio.h> for printf.
5001
5002 2000-07-05  Greg McGary  <greg@mcgary.org>
5003
5004         * sysdeps/generic/bp-checks.h: New file.
5005         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
5006         with list of #include files.
5007         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
5008         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
5009         Don't generate BP thunk if `V' appears in signature.
5010         Generate thunks with complete bounds checks.
5011         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
5012         * sysdeps/unix/inet/syscalls.list: Likewise.
5013         * sysdeps/unix/mman/syscalls.list: Likewise.
5014         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5015         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
5016         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
5017         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
5018
5019 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5020
5021         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
5022         result.  Search first in /etc/mtab (proc/mounts would be stupid).
5023         If mount not in the file fall back on /proc.
5024
5025         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
5026         string got copied in.
5027         Patch by Solar Designer <solar@false.com>.
5028
5029 2000-07-05  Andreas Jaeger  <aj@suse.de>
5030
5031         * manual/install.texi (Installation): Update information about
5032         add-ons.
5033         (Configuring and compiling): Update for glibc 2.2.
5034
5035 2000-07-04  Andreas Jaeger  <aj@suse.de>
5036
5037         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
5038         (_FPU_IEEE): Likewise.
5039
5040         * math/Makefile (tests): Add test-fpucw.
5041
5042         * math/test-fpucw.c (main): New file.
5043
5044 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
5045
5046         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
5047
5048         * locale/programs/ld-collate.c (collate_output): Also write out the
5049         collation sequence values and the wide character string for the
5050         collation symbol table.
5051
5052         * posix/fnmatch.c: Include "../locale/elem-hash.h".
5053         * posix/fnmatch_loop.c: Implement collating symbol handling.
5054         * posix/tst-fnmatch.input: Add more tests, especially for collating
5055         symbol handling.
5056
5057         * posix/regex.c: Fix comment.
5058
5059 2000-07-05  Andreas Jaeger  <aj@suse.de>
5060
5061         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
5062         (_FPU_GETCW): Remove extra colon.
5063         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5064
5065         * posix/fnmatch_loop.c (FCT): Only declare len if
5066         !WIDE_CHAR_VERSION to silence GCC.
5067
5068         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
5069         prototype.
5070         * sysdeps/generic/strchrnul.c: Likewise.
5071         * sysdeps/generic/strlen.c: Likewise.
5072         * sysdeps/generic/strchr.c: Likewise.
5073         * sysdeps/generic/memchr.c: Likewise.
5074
5075 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5076
5077         * posix/fnmatch_loop.c: Implement equivalence class handling.
5078         * posix/tst-fnmatch.input: Add tests for equivalence class
5079         handling.
5080
5081         * posix/fnmatch_loop.c: Improve performance for single-byte
5082         character sets by not using btowc.
5083
5084         * posix/tst-fnmatch.input: Add tests for locale dependent
5085         behaviour.
5086         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
5087
5088         * posix/tst-fnmatch.input: Add more test cases.
5089
5090         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
5091         are not aligned to alignof(md5_uint32) do it before calling
5092         __md5_process_bytes.
5093         * crypt/md5.c: Make sure buffers are aligned.
5094         * crypt/md5.h: Likewise.
5095         Reported by Solar Designer <solar@false.com>.
5096
5097         * crypt/Makefile: Add dependencies for test programs.
5098
5099         * Rules: Define LC_ALL=C in environments of all programs we run.
5100
5101         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
5102
5103 2000-07-03  H.J. Lu  <hjl@gnu.org>
5104
5105         * locale/programs/ld-ctype.c (ctype_output): The size of iov
5106         is 2 + elem + offset, not 2 + elem + offset + 2.
5107
5108 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
5109
5110         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
5111         suite.
5112         * posix/Makefile (tests): Add tst-fnmatch.
5113         (tst-fnmatch-ENV): Define.
5114         * posix/tst-fnmatch.c: New file.
5115         * posix/tst-fnmatch.sh: New file.
5116
5117 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
5118
5119         * locale/programs/charmap.c (charmap_read): Prepend
5120         the condition filename == NULL.
5121
5122 2000-07-03  Greg McGary  <greg@mcgary.org>
5123
5124         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
5125
5126         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
5127         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
5128
5129         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
5130         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
5131         (FILEBUF_LITERAL): Add cast for CHAIN init.
5132         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
5133         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5134         Revert type of `fp' to _IO_FILE*.
5135         (_IO_iter_file): Remove cast.
5136         (_IO_iter_next): Elide intermediate member reference.
5137
5138         * sysdeps/powerpc/strchr.S:  Check bounds.
5139         Wrap extern symbols in BP_SYM ().
5140
5141 2000-07-03  Andreas Jaeger  <aj@suse.de>
5142
5143         * dlfcn/Makefile (generated): New.
5144
5145 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
5146
5147         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
5148         (__uflow): Likewise.
5149         (__underflow): Likewise.
5150         * libio/wgenops.c (__wunderflow): Likewise.
5151         * stdio-common/tst-unbputc.c: New file.
5152         * stdio-common/tst-unbputc.sh: New file.
5153         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
5154
5155         * po/en_GB.po: New file.
5156         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
5157
5158 2000-07-01  Andreas Jaeger  <aj@suse.de>
5159
5160         * intl/Makefile (generated-dirs): New.
5161
5162         * elf/Makefile (generated): trusted-dirs.h is always generated,
5163         move out of build-shared condition.
5164         (generated): Merge the two entries for build-shared.
5165
5166 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
5167
5168         * debug/Makefile (distribute): Add xtrace.sh.
5169
5170 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5171
5172         * version.h (VERSION): Bump to 2.1.91.
5173
5174         * configure.in: Update warning comment.  glibc should not be
5175         broken anymore.
5176
5177         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
5178         ioperm.c, sys/procfs.h, and sys/io.h.
5179
5180         * sysdeps/powerpc/Dist: Add bp-asm.h.
5181
5182         * assert/Depend: Add localedata.
5183         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
5184         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
5185
5186         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
5187         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
5188         relocation address to prevent unaligned trap.
5189         Suggested by Richard Henderson <rth@cygnus.com>.
5190
5191 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5192
5193         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
5194         if redirecting and either redirection is done using defines or
5195         not optimizing.
5196
5197 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5198
5199         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
5200         generated expressions.
5201         Patch by Darren McClelland <dmcclell@zetec.com>.
5202
5203         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
5204         since zic uses setlocale and gettext but we cannot make it use the
5205         new locale data since zic calls a shell which might not use the
5206         new libc.
5207
5208         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
5209         handling the internation currency symbol.  POSIX says that the
5210         fourth character is used to separate the currency symbol from the
5211         value.  Therefore it does not have to be printed.  But we cannot
5212         remove the space if the currency symbol is printed before the
5213         number since this is what many locales expect.
5214
5215         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
5216         whether this information is available.
5217
5218         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
5219         buffers in case the translation is too large.  Remember allocated
5220         memory blocks in a list.
5221         (free_mem): Free memory for translations.
5222
5223         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5224
5225         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5226         information is available set the string length to zero.
5227
5228         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5229
5230 2000-06-30  Greg McGary  <greg@mcgary.org>
5231
5232         * sysdeps/powerpc/bp-asm.h: New file.
5233         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5234         Wrap extern symbols in BP_SYM ().
5235         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5236         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5237         * sysdeps/powerpc/setjmp.S: Likewise.
5238         * sysdeps/powerpc/add_n.S: Likewise.
5239         * sysdeps/powerpc/addmul_1.S: Likewise.
5240         * sysdeps/powerpc/lshift.S: Likewise.
5241         * sysdeps/powerpc/rshift.S: Likewise.
5242         * sysdeps/powerpc/mul_1.S: Likewise.
5243         * sysdeps/powerpc/sub_n.S: Likewise.
5244         * sysdeps/powerpc/submul_1.S: Likewise.
5245         * sysdeps/powerpc/strlen.S: Likewise.
5246         * sysdeps/powerpc/memset.S: Likewise.
5247         * sysdeps/powerpc/stpcpy.S: Likewise.
5248         * sysdeps/powerpc/strcmp.S: Likewise.
5249         * sysdeps/powerpc/strcpy.S: Likewise.
5250         * sysdeps/powerpc/elf/bzero.S: Likewise.
5251
5252         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5253         Line up operands column with tabs.
5254
5255 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5256
5257         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5258
5259         * sysdeps/ia64/htonl.S: New file.
5260         * sysdeps/ia64/htons.S: New file.
5261         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5262         floating point registers.
5263         Patches by Dan Pop <Dan.Pop@cern.ch>.
5264
5265 2000-06-30  Andreas Jaeger  <aj@suse.de>
5266
5267         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5268         shared libraries.
5269
5270         * io/Makefile (CFLAGS-test-lfs.c): New.
5271         (tests): Add test-lfs.
5272
5273         * io/test-lfs.c: New file.
5274
5275 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5276
5277         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5278         instruction.
5279
5280 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5281
5282         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5283
5284 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5285
5286         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5287         alias to the fstatfs call.
5288
5289         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5290         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5291
5292         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5293         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5294
5295         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5296         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5297         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5298         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5299
5300         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5301         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5302
5303         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5304         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5305
5306         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5307         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5308
5309         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5310
5311 2000-06-29  Andreas Jaeger  <aj@suse.de>
5312
5313         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5314         with syslog.
5315         (print_err_message): Likewise.
5316         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5317
5318 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5319
5320         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5321         used as words is properly aligned.
5322
5323         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5324         data files.
5325
5326 2000-06-29  Greg McGary  <greg@mcgary.org>
5327
5328         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5329         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5330         length 7..9, just in case...
5331         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5332
5333         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5334         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5335         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5336         (PUSH_SIGNAL_MASK): New macro.
5337         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5338         LEAVE is unnecessary.  Check bounds of jmp_buf.
5339         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5340         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5341         immediately before tail-call.
5342         * sysdeps/i386/setjmp.S: Likewise.
5343         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5344         * sysdeps/i386/bsd-setjmp.S: Likewise.
5345
5346 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5347
5348         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5349         versioned_symbol.
5350         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5351         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5352         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5353         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5354         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5355         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5356         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5357         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5358
5359 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5360
5361         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5362         we later need to calling free().
5363         Patch by Matt Wilson <msw@redhat.com>.
5364
5365         * stdio-common/tst-printf.c: Add test for above problem.
5366
5367 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5368
5369         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5370         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5371
5372 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5373
5374         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5375         prototype for abs().
5376         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5377
5378 2000-06-23  Andreas Jaeger  <aj@suse.de>
5379
5380         * config.h.in: Don't use regparm with bounded pointers.
5381
5382 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5383
5384         * stdlib/grouping.h: Correctly handle multibyte thousands
5385         separator and decimal point.
5386         * stdlib/stdtod.c: Likewise.
5387         * sysdeps/generic/strtol.c: Likewise.
5388
5389         * locale/categories.def: Add entries for wide character decimal point
5390         and thousands separator in numeric and monetary category.
5391
5392 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5393
5394         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5395         second definition and initialization of decimal.
5396
5397 2000-06-28  Greg McGary  <greg@mcgary.org>
5398
5399         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5400         out.
5401         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5402         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5403         in.
5404         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5405         (struct _IO_FILE_plus *).
5406         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5407         THIS, since _IO_JUMPS no longer does it implicitly.
5408         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5409         arg type as (struct _IO_FILE_plus *).
5410         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5411         arg as (_IO_strfile *).
5412         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5413         Declare 1st arg as (_IO_strfile *).
5414         * libio/fileops.c (_IO_new_file_init): Declare
5415         arg type as (struct _IO_FILE_plus *).
5416         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5417         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5418         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5419         Declare iteration pointer as (struct _IO_FILE_plus *).
5420         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5421                 (struct _IO_FILE_plus *).
5422         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5423         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5424         (_IO_check_libio): Set user-visible handles to
5425         (struct _IO_FILE_plus *).
5426         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5427         to (struct _IO_FILE_plus *).
5428
5429         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5430         whose high bound includes vtable to all functions that will use
5431         vtable.  For streambufs, pass pointer whose bounds include struct
5432         _IO_strfile.
5433         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5434         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5435         * libio/iofopen.c (_IO_new_fopen): Likewise.
5436         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5437         * libio/iofopen64.c (_IO_fopen64): Likewise.
5438         * libio/iopopen.c (_IO_new_popen): Likewise.
5439         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5440         * libio/memstream.c (open_memstream): Likewise.
5441         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5442         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5443         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5444         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5445         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5446         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5447         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5448         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5449         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5450         * stdlib/strfmon.c (__strfmon_l): Likewise.
5451         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5452         (vfprintf): Qualify computed-goto targets as unbounded.
5453
5454 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5455
5456         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5457         thousands separator correctly.
5458
5459         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5460         * stdio-common/vfwscanf.c: Likewise.
5461
5462 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5463
5464         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5465         count into signatures for most calls.
5466
5467 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5468
5469         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5470         the generic parser now.
5471
5472 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5473
5474         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5475         table entries are 32 bit on the ia64 (as specified by the ABI),
5476         not 64 bit as on the Alpha.
5477
5478         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5479         change of objects to use 32 bit hash table indices (see above).
5480
5481 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5482
5483         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5484         prototype for abs().
5485
5486 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5487
5488         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5489         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5490         may have been reached.
5491
5492 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5493
5494         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5495         symbols in multi-character weights correctly.
5496
5497         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5498         depending on whether the input string is empty or not.
5499
5500         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5501         given state and not avoiding this by modifying a local object.
5502         * wcsmbs/wcrtomb.c: Likewise.
5503
5504         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5505         object since some incomplete characters might be in there.
5506
5507         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5508         sequences with first byte 0x8e correctly.
5509
5510         * iconvdata/jis0208.h: Remove redundant test.
5511
5512 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5513
5514         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5515         Add it where it is needed now.
5516
5517         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5518         the input charset into account when generating the hash table.
5519         (allocate_arrays): Correct setting default width.  Not all empty slots
5520         in the table are filled, only those not covert explicitly by the
5521         locale description and in the charset.
5522
5523         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5524         return values from the wctrans function.
5525
5526         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5527         wide character version.
5528         For %C handling, test correct pointer variable for NULL.
5529
5530         * wcsmbs/wctob.c: Handle WEOF special.
5531
5532         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5533
5534         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5535         always-true test to avoid warning.
5536
5537 2000-06-27  Greg McGary  <greg@mcgary.org>
5538
5539         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5540         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5541         (symbol_version, default_symbol_version): Factor redundant
5542         definitions out of conditional.
5543
5544 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5545
5546         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5547         not obstack_blank.
5548
5549 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5550
5551         * include/libc-symbols.h (symbol_version): Add extra level of
5552         macro expansion.
5553         (default_symbol_version): Likewise.
5554
5555 2000-06-26  Greg McGary  <greg@mcgary.org>
5556
5557         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5558         for BP return value & push implicit struct-return pointer to
5559         __errno_location.
5560         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5561         (SYSCALL_ERROR_HANDLER): Likewise.
5562         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5563         (SYSCALL_ERROR_HANDLER): Likewise.
5564
5565         * Makeconfig: Add missing comment.
5566         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5567         BP-flavored startup object.
5568         ($(objpfx)b$(start-installed-name)): New rule.
5569         * include/libc-symbols.h (symbol_set_declare): Change type
5570         of `__start_##set' and `__stop_##set' to pointer-to-function.
5571         (symbol_set_declare): Change type of `set' to array of
5572         pointer-to-function.
5573         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5574         pointer-to-function.
5575
5576         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5577
5578         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5579         Remove clock_* and timer_* entries.
5580         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5581         arg-count with signatures.
5582
5583         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5584         Check bounds of arguments.
5585         * sysdeps/i386/addmul_1.S: Likewise.
5586         * sysdeps/i386/lshift.S: Likewise.
5587         * sysdeps/i386/mul_1.S: Likewise.
5588         * sysdeps/i386/rshift.S: Likewise.
5589         * sysdeps/i386/sub_n.S: Likewise.
5590         * sysdeps/i386/submul_1.S: Likewise.
5591         * sysdeps/i386/i586/add_n.S: Likewise.
5592         * sysdeps/i386/i586/addmul_1.S: Likewise.
5593         * sysdeps/i386/i586/lshift.S: Likewise.
5594         * sysdeps/i386/i586/rshift.S: Likewise.
5595         * sysdeps/i386/i586/sub_n.S: Likewise.
5596         * sysdeps/i386/i686/add_n.S: Likewise.
5597
5598         * sysdeps/i386/memchr.S: Likewise.
5599         * sysdeps/i386/memcmp.S: Likewise.
5600         * sysdeps/i386/rawmemchr.S: Likewise.
5601         * sysdeps/i386/i586/bzero.S: Likewise.
5602         * sysdeps/i386/i586/memcpy.S: Likewise.
5603         * sysdeps/i386/i586/mempcpy.S: Likewise.
5604         * sysdeps/i386/i586/memset.S: Likewise.
5605         * sysdeps/i386/i686/bzero.S: Likewise.
5606         * sysdeps/i386/i686/memcpy.S: Likewise.
5607         * sysdeps/i386/i686/mempcpy.S: Likewise.
5608         * sysdeps/i386/i686/memset.S: Likewise.
5609
5610         * sysdeps/i386/stpcpy.S: Likewise.
5611         * sysdeps/i386/stpncpy.S: Likewise.
5612         * sysdeps/i386/strchr.S: Likewise.
5613         * sysdeps/i386/strchrnul.S: Likewise.
5614         * sysdeps/i386/strcspn.S: Likewise.
5615         * sysdeps/i386/strpbrk.S: Likewise.
5616         * sysdeps/i386/strrchr.S: Likewise.
5617         * sysdeps/i386/strspn.S: Likewise.
5618         * sysdeps/i386/strtok.S: Likewise.
5619         * sysdeps/i386/strtok_r.S: Likewise.
5620         * sysdeps/i386/i486/strcat.S: Likewise.
5621         * sysdeps/i386/i486/strlen.S: Likewise.
5622         * sysdeps/i386/i586/strchr.S: Likewise.
5623         * sysdeps/i386/i586/strcpy.S: Likewise.
5624         * sysdeps/i386/i586/strlen.S: Likewise.
5625         * sysdeps/i386/i686/strcmp.S: Likewise.
5626         * sysdeps/i386/i686/strtok.S: Likewise.
5627         * sysdeps/i386/i686/strtok_r.S: Likewise.
5628
5629         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5630         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5631         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5632         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5633         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5634
5635         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5636         * sysdeps/i386/mul_1.S: Likewise.
5637         * sysdeps/i386/submul_1.S: Likewise.
5638         * sysdeps/i386/i586/add_n.S: Likewise.
5639         * sysdeps/i386/i586/addmul_1.S: Likewise.
5640         * sysdeps/i386/i586/lshift.S: Likewise.
5641         * sysdeps/i386/i586/mul_1.S: Likewise.
5642         * sysdeps/i386/i586/rshift.S: Likewise.
5643         * sysdeps/i386/i586/sub_n.S: Likewise.
5644         * sysdeps/i386/i586/submul_1.S: Likewise.
5645
5646 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5647
5648         * rt/Makefile (librt-routines): Add clock_nanosleep.
5649         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5650         * sysdeps/generic/clock_nanosleep.c: New file.
5651         * sysdeps/unix/clock_nanosleep.c: New file.
5652         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5653         * time/time.h: Declare clock_nanosleep.
5654
5655 2000-06-26  Greg McGary  <greg@mcgary.org>
5656
5657         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5658         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5659         (ALIGN): Cleanup surrounding conditionals.
5660
5661         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5662         Call ENTER/LEAVE macros.
5663         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5664         * sysdeps/i386/submul_1.S: Likewise.
5665
5666         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5667         syntax.  Define & use symbolic argument stack offsets.  Call
5668         ENTER/LEAVE macros.
5669         * sysdeps/i386/i586/mul_1.S: Likewise.
5670         * sysdeps/i386/i586/submul_1.S: Likewise.
5671
5672 2000-06-25  Greg McGary  <greg@mcgary.org>
5673
5674         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5675         not as bcopy.
5676
5677 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5678
5679         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5680         * iconvdata/gen-8bit-gap.sh: Likewise.
5681         * iconvdata/gen-8bit.sh: Likewise.
5682
5683         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5684
5685         * locale/programs/ld-collate.c (collate_read): Don't actually read
5686         the copy locale if we are ignoring the content.
5687
5688         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5689         unknown character.
5690
5691         * locale/programs/ld-collate.c: Correct handling of different
5692         collation sections.
5693         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5694         as extra parameter from which to copy category information.
5695         Change all callers.
5696         (load_locale): Likewise.
5697         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5698         and load_locale.
5699         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5700         * locale/programs/locfile.h: Likewise.
5701         * locale/programs/locfile-kw.gperf: Add entry for script.
5702         * locale/programs/locfile-token.h: Add tok_script.
5703
5704         * locale/programs/locale.c: Update copyright year.
5705         * locale/programs/localedef.c: Likewise.
5706
5707 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5708
5709         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5710         Jens Moeller <jens.moeller@waii.com>.
5711
5712 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5713
5714         * locale/programs/ld-name.c (name_finish): Add missing format
5715         specifier to test for name_fmt.
5716
5717         * locale/programs/ld-address.c (iso639): Correct length of string
5718         elements.
5719         (iso3166): Likewise.
5720
5721         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5722
5723         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5724         Define.
5725
5726         * elf/elf.h (NT_PRFPXREG): Define.
5727
5728 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5729
5730         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5731         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5732
5733 2000-06-23  Andreas Schwab  <schwab@suse.de>
5734
5735         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5736         with signatures.
5737
5738 2000-06-23  Andreas Jaeger  <aj@suse.de>
5739
5740         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5741
5742         * io/test-stat.c: Add copyright header, mention Maciej.
5743
5744         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5745         SYS_mincore, SYS_madvise): Added.
5746
5747         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5748         execve.
5749
5750 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5751
5752         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5753         (CFLAGS-tst_putwc.c): New definition.
5754         * libio/tst_getwc.c: New file.
5755         * libio/tst_getwc.input: New file.
5756         * libio/tst_putwc.c: New file.
5757
5758         * include/string.h: Add prototype for __strdup.
5759
5760 2000-06-22  Greg McGary  <greg@mcgary.org>
5761
5762         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5763         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5764         Fix signatures.
5765
5766 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5767
5768         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5769
5770 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5771
5772         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5773
5774 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5775
5776         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5777         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5778
5779 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5780
5781         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5782         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5783         and __S_TYPEISSHM.
5784         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5785         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5786         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5787         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5788         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5789         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5790         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5791         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5792         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5793         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5794         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5795         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5796         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5797         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5798         S_TYPEISSHM.
5799
5800 2000-06-22  Andreas Jaeger  <aj@suse.de>
5801
5802         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5803         with signatures.
5804
5805         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5806
5807         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5808
5809 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5810
5811         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5812         ahead.
5813
5814 2000-06-21  Greg McGary  <greg@mcgary.org>
5815
5816         * Makerules (elide-routines.*, elide-bp-thunks):
5817         Define unconditionally.
5818
5819 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5820
5821         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5822
5823 2000-06-21  Andreas Jaeger  <aj@suse.de>
5824
5825         * io/Makefile (tests): Add test-stat.
5826         (CFLAGS-test-stat.c): New.
5827
5828         * io/test-stat.c: New file from Maciej W. Rozycki
5829         <macro@ds2.pg.gda.pl>.
5830
5831 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5832
5833         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5834         in __rlimit_resource to make them match the kernel order.
5835         rlim_t is always 64 bit, use __rlim64_t to declare it
5836         unconditionally.
5837
5838 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5839
5840         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5841         RLIM_INFINITY before defining it to avoid clash with kernel header
5842
5843 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5844
5845         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5846
5847 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5848
5849         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5850
5851 2000-06-21  Andreas Jaeger  <aj@suse.de>
5852
5853         * stdio-common/temptest.c: Include <stdlib.h>.
5854         * stdio-common/tst-fileno.c: Likewise.
5855         * stdio-common/scanf4.c: Likewise.
5856         * stdio-common/scanf5.c: Likewise.
5857         * time/clocktest.c: Likewise.
5858         * posix/test-vfork.c: Likewise.
5859         * posix/globtest.c: Likewise.
5860         * io/test-utime.c: Likewise.
5861         * wctype/test_wcfuncs.c: Likewise.
5862         * crypt/cert.c: Likewise.
5863
5864         * stdio-common/tst-printfsz.c: Include <string.h>.
5865         * libio/tst_swscanf.c: Likewise.
5866         * libio/tst_wscanf.c: Likewise.
5867         * posix/runtests.c: Likewise.
5868         * posix/tst-getaddrinfo.c: Likewise.
5869         * posix/wordexp-test.c: Likewise.
5870         * misc/tst-efgcvt.c: Likewise.
5871
5872         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5873         * nss/test-netdb.c: Likewise.
5874
5875         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5876         supported kernel for MIPS.
5877
5878         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5879         * rt/aio_suspend.c: Likewise.
5880
5881 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5882
5883         * math/libm-test.inc: Include <string.h>.
5884
5885 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5886
5887         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5888
5889 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5890
5891         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5892         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5893
5894 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5895
5896         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5897
5898 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5899
5900         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5901
5902 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5903
5904         * locale/programs/ld-collate.c (insert_value): Now take string and
5905         length instead of struct token* parameter.  Adjust use of token.
5906         (handle_ellipsis): Likewise.
5907         (collate_read): Allow <Uxxxx> names and transform them into names
5908         to be passed to insert_value and handle_ellipsis.
5909
5910         * locale/programs/ld-ctype.c (uninames): New array with names of
5911         digits in <Uxxxxxxxx> format.
5912         (ctype_finish): Correct search for space character value.  Likewise
5913         for default outdigits values.
5914
5915 2000-06-20  Greg McGary  <greg@mcgary.org>
5916
5917         * Makerules (objects): Add BP thunks.
5918
5919 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5920
5921         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5922         in width definitions.
5923
5924 2000-06-20  Andreas Jaeger  <aj@suse.de>
5925
5926         * sysdeps/mips/fpu/libm-test-ulps: New file.
5927
5928         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5929         first.
5930
5931         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5932
5933         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5934
5935 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5936
5937         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5938         change in gconv_builtin.h.
5939
5940         * malloc/Makefile: Change all references to memprof into memusage.
5941         * malloc/memprof.c: Rename to...
5942         * malloc/memusage.c: ...this.  New file.
5943         * malloc/memprof.sh: Rename to...
5944         * malloc/memusage.sh: ...this.  New file.
5945         * malloc/memprofstat.c: Rename to...
5946         * malloc/memusagestat.c: ...this.  New file.
5947         * sysdeps/alpha/memprof.h: Rename to..
5948         * sysdeps/alpha/memusage.h: ...this.  New file.
5949         * sysdeps/arm/memprof.h: Rename to..
5950         * sysdeps/arm/memusage.h: ...this.  New file.
5951         * sysdeps/generic/memprof.h: Rename to..
5952         * sysdeps/generic/memusage.h: ...this.  New file.
5953         * sysdeps/i386/memprof.h: Rename to..
5954         * sysdeps/i386/memusage.h: ...this.  New file.
5955         * sysdeps/ia64/memprof.h: Rename to..
5956         * sysdeps/ia64/memusage.h: ...this.  New file.
5957         * sysdeps/m68k/memprof.h: Rename to..
5958         * sysdeps/m68k/memusage.h: ...this.  New file.
5959         * sysdeps/mips/memprof.h: Rename to..
5960         * sysdeps/mips/memusage.h: ...this.  New file.
5961         * sysdeps/powerpc/memprof.h: Rename to..
5962         * sysdeps/powerpc/memusage.h: ...this.  New file.
5963         * sysdeps/sparc/memprof.h: Rename to..
5964         * sysdeps/sparc/memusage.h: ...this.  New file.
5965         * sysdeps/sh/memprof.h: Rename to..
5966         * sysdeps/sh/memusage.h: ...this.  New file.
5967
5968         * elf/sprof.c (print_version): Update year.
5969
5970         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5971         table entry values.  Use D_PTR.
5972         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5973         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5974
5975 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5976
5977         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5978         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5979         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5980         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5981
5982 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5983
5984         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5985
5986 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5987
5988         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5989         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5990         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5991
5992         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5993
5994         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5995         kernel change.
5996
5997         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5998         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5999         structure.
6000         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
6001         implementation.
6002
6003 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
6004
6005         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
6006
6007 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
6008
6009         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
6010
6011 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
6012
6013         * iconv/gconv_int.h (strict gconv_module): Remove all members
6014         associated with regular expressions.  Use a simple string as the
6015         from name.
6016         * iconv/gconv_db.c: Remove code handling regular expressions.
6017         * iconv/gconv_conf.c: Likewise.
6018         * iconv/iconv_prog.c: Likewise.
6019         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
6020
6021         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
6022         General namespace cleanup.
6023         (struct __gconv_trans_data): Add next field.
6024         (struct __gconv_step_data): Make __trans a pointer.
6025         * iconv/gconv_conf.c: Split out code to find gconv directories from
6026         __gconv_read_conf in new functions.
6027         * iconv/gconv_int.h: Define new data structure and declare new
6028         functions for handling of gconv directory list.
6029         * iconv/gconv_open.c: Allow more than one error handling step being
6030         used.  Call function to load error handling module if it is none
6031         of the builtin transformations.
6032         * iconv/gconv_close.c: Add code to free transliteration data.
6033         * iconv/gconv_trans.c: Add functions to load and unload modules
6034         implementing transliteration etc.
6035         * iconv/skeleton.c: Call all context functions now that more than
6036         one module is allowed.
6037         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
6038         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
6039         where the full error handling using transliteration is needed.
6040         * iconvdata/8bit-gap.c: Likewise.
6041         * iconvdata/8bit-generic.c: Likewise.
6042         * iconvdata/ansi_x3.110.c: Likewise.
6043         * iconvdata/big5.c: Likewise.
6044         * iconvdata/big5hkscs.c: Likewise.
6045         * iconvdata/euc-cn.c: Likewise.
6046         * iconvdata/euc-jp.c: Likewise.
6047         * iconvdata/euc-kr.c: Likewise.
6048         * iconvdata/euc-tw.c: Likewise.
6049         * iconvdata/gbgbk.c: Likewise.
6050         * iconvdata/gbk.c: Likewise.
6051         * iconvdata/iso-2022-cn.c: Likewise.
6052         * iconvdata/iso-2022-jp.c: Likewise.
6053         * iconvdata/iso-2022-kr.c: Likewise.
6054         * iconvdata/iso646.c: Likewise.
6055         * iconvdata/iso8859-1.c: Likewise.
6056         * iconvdata/iso_6937-2.c: Likewise.
6057         * iconvdata/iso_6937.c: Likewise.
6058         * iconvdata/johab.c: Likewise.
6059         * iconvdata/sjis.c: Likewise.
6060         * iconvdata/t.61.c: Likewise.
6061         * iconvdata/uhc.c: Likewise.
6062         * iconvdata/unicode.c: Likewise.
6063         * iconvdata/utf-16.c: Likewise.
6064         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
6065         structure correctly after last change.
6066         * wcsmbs/btowc.c: Likewise.
6067         * wcsmbs/mbrtowc.c: Likewise.
6068         * wcsmbs/mbsnrtowcs.c: Likewise.
6069         * wcsmbs/mbsrtowcs.c: Likewise.
6070         * wcsmbs/wcrtomb.c: Likewise.
6071         * wcsmbs/wcsnrtombs.c: Likewise.
6072         * wcsmbs/wcsrtombs.c: Likewise.
6073         * wcsmbs/wctob.c: Likewise.
6074
6075         * localedata/Makefile: Set -Wno-format for some files since gcc does
6076         not know all the format specifiers.
6077
6078 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
6079
6080         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
6081         unneeded code.
6082         * locale/lc-time.c (_nl_init_era_entries): Likewise.
6083
6084 2000-06-18  Andreas Jaeger  <aj@suse.de>
6085
6086         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
6087         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
6088
6089 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
6090
6091         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
6092         LINUX_LINK_MAX.
6093         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
6094
6095         * locale/programs/ld-ctype.c (ctype_output): Really write out
6096         mboutdigits information.
6097         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
6098         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
6099         * localedata/tests/trans.def: Add outdigit information.
6100
6101         * localedata/tst-mbswcs3.c: Remove comment.
6102
6103         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
6104         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
6105         * libio/tst_wprintf.c (main): Add test for I flag.
6106
6107         * iconv/gconv_trans.c: Implement handling if translit_ignore.
6108         * locale/langinfo.h: Add entries for translit_ignore information.
6109         * locale/categories.def: Add entries for new LC_CTYPE elements.
6110         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
6111         pointer instead of "" where possible.
6112         * locale/programs/ld-ctype.c: Write out translit_ignore information.
6113         * intl/Depend: Add localedata.
6114         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
6115         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
6116
6117 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
6118
6119         * locale/langinfo.h: Add entries for default_missing information.
6120         * locale/C-ctype.c: Add initializers for new fields.
6121         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
6122         information.
6123         * locale/categories.h: Add entries for all LC_CTYPE values.
6124         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
6125         information.
6126
6127         * localedata/tst-trans.c: Write out an error message if class is
6128         not found.
6129
6130         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
6131         * iconv/gconv_open.c: Remove error handling specification from `from'
6132         character set name.
6133         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
6134         new parameter to always enable transliteration.
6135         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
6136         change.
6137         (struct locale_data): Add new members use_translit and options.
6138         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
6139         character set name contained modifier TRANSLIT.
6140         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
6141         and options fields.
6142         (_nl_unload_locale): Free options string if necessary.
6143         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
6144         the locale names suggested this.
6145         * locale/C-address.c: Add two new initialilzers to adjust data
6146         structure for new format.
6147         * locale/C-collate.c: Likewise.
6148         * locale/C-ctype.c: Likewise.
6149         * locale/C-identification.c: Likewise.
6150         * locale/C-measurement.c: Likewise.
6151         * locale/C-messages.c: Likewise.
6152         * locale/C-monetary.c: Likewise.
6153         * locale/C-name.c: Likewise.
6154         * locale/C-numeric.c: Likewise.
6155         * locale/C-paper.c: Likewise.
6156         * locale/C-telephone.c: Likewise.
6157         * locale/C-time.c: Likewise.
6158
6159         * locale/setlocale.c: Add some more __builtin_expect.
6160
6161 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
6162
6163         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
6164         unsigned char **.
6165         (__gconv_init_fct): Remove two parameters.
6166         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
6167         gconv_transliterate.  Remove two parameters.
6168         Change prototypes of builtin functions according to __gconv_fct change.
6169         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
6170         != NULL only during error handling.  Stop in this case after the
6171         conversion.
6172         * iconv/gconv_trans.c: Replace with real implementation for
6173         __gconv_transliterate.
6174         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
6175         * iconv/gconv.c: Change calls to downstream functions once again.
6176         Use NULL for the fifth parameter instead of pointer to output buffer.
6177         * libio/iofwide.c: Likewise.
6178         * wcsmbs/btowc.c: Likewise.
6179         * wcsmbs/mbrtowc.c: Likewise.
6180         * wcsmbs/mbsnrtowcs.c: Likewise.
6181         * wcsmbs/mbsrtowcs.c: Likewise.
6182         * wcsmbs/wcrtomb.c: Likewise.
6183         * wcsmbs/wcsnrtombs.c: Likewise.
6184         * wcsmbs/wcsrtombs.c: Likewise.
6185         * wcsmbs/wctob.c: Likewise.
6186         * iconv/gconv_simple.c: Remove two parameters from error handling
6187         function call.
6188         * iconvdata/8bit-gap.c: Likewise.
6189         * iconvdata/8bit-generic.c: Likewise.
6190         * iconvdata/ansi_x3.110.c: Likewise.
6191         * iconvdata/big5.c: Likewise.
6192         * iconvdata/big5hkscs.c: Likewise.
6193         * iconvdata/euc-cn.c: Likewise.
6194         * iconvdata/euc-jp.c: Likewise.
6195         * iconvdata/euc-kr.c: Likewise.
6196         * iconvdata/euc-tw.c: Likewise.
6197         * iconvdata/gbgbk.c: Likewise.
6198         * iconvdata/gbk.c: Likewise.
6199         * iconvdata/iso-2022-cn.c: Likewise.
6200         * iconvdata/iso-2022-jp.c: Likewise.
6201         * iconvdata/iso-2022-kr.c: Likewise.
6202         * iconvdata/iso646.c: Likewise.
6203         * iconvdata/iso8859-1.c: Likewise.
6204         * iconvdata/iso_6937-2.c: Likewise.
6205         * iconvdata/iso_6937.c: Likewise.
6206         * iconvdata/johab.c: Likewise.
6207         * iconvdata/sjis.c: Likewise.
6208         * iconvdata/t.61.c: Likewise.
6209         * iconvdata/uhc.c: Likewise.
6210         * iconvdata/unicode.c: Likewise.
6211         * iconvdata/utf-16.c: Likewise.
6212
6213 2000-06-15  Greg McGary  <greg@mcgary.org>
6214
6215         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
6216         of callnum assignment.  Tolerate callnum expressions containing
6217         parens.
6218
6219 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6220
6221         * login/Makefile (utmpd): Remove rule to build utmpd.
6222
6223         * csu/Versions: Move libgcc frame handling functions from here...
6224         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6225         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6226         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6227         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6228         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6229         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6230         New file.
6231         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6232
6233         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6234
6235         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6236
6237 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6238
6239         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6240         compatibility.
6241         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6242         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6243         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6244         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6245
6246 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6247
6248         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6249         defined, terminate quotes and read them after the comment char.
6250         * configure.in (HAVE_SECTION_QUOTES): Test whether
6251         __attribute__((section ("x"))) puts quotes around x or not.
6252         * config.h.in (HAVE_SECTION_QUOTES): Add.
6253         * configure: Rebuilt.
6254
6255 2000-06-14  Andreas Jaeger  <aj@suse.de>
6256
6257         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6258         depending on the configure option --sysconfdir.
6259         Closes PR libc/1762.
6260         Patch by Andreas Schwab <schwab@suse.de>.
6261
6262         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6263         entry point.
6264         Reported by Jim Pick <jim@jimpick.com>.
6265
6266 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6267
6268         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6269         crashing the application.  Emit some simple error message.
6270         Reported by mju@panasas.com [PR libc/1769].
6271
6272 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6273
6274         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6275
6276         * crypt/Makefile (distribute): Add md5.h.
6277
6278         * Makefile (distribute): Add include/shlib-compat.h.
6279
6280         * Make-dist: Search for tests also in sysdeps hierachy.
6281
6282         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6283         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6284
6285         * sysdeps/sparc/Subdirs: New file.
6286
6287         * locale/Makefile (distribute): Add weightwc.h and
6288         programs/localedef.h.
6289
6290         * time/Makefile (distribute): Add datemsk.
6291
6292         * sysdeps/ia64/Dist: Add softpipe.h.
6293
6294         * sysdeps/unix/sysv/aix/Dist: New file.
6295
6296         * posix/setpgrp.c: Moved to...
6297         * sysdeps/generic/setpgrp.c: ...here.  New file.
6298         * io/mknod.c: Moved to...
6299         * sysdeps/generic/mknod.c: ...here.  New file.
6300
6301         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6302
6303         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6304
6305         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6306
6307         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6308         gprsave0.S, gprrest1.S, and gprrest0.S.
6309
6310         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6311
6312         * posix/Makefile (routines): Add spawnattr_getsigmask,
6313         spawnattr_getschedpolicy, spawnattr_getschedparam,
6314         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6315         spawnattr_setschedparam.
6316         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6317         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6318         posix_spawnattr_setschedparam.
6319
6320         * posix/spawnattr_setschedparam.c: Fix typo.
6321
6322         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6323         Correct typo.
6324
6325         * login/programs/utmpd.c: Removed.
6326         * login/programs/utmpd.h: Removed.
6327         * login/programs/utmpd-private.h: Removed.
6328
6329         * Makefile (distribute): Add include/db_185.h and include/db.h.
6330
6331         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6332         iso-ir-165.h.
6333
6334         * elf/Makefile (distribute): Add missing files.
6335
6336         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6337         * elf/eval.c: Moved to...
6338         * dlfcn/eval.c: ...here.  New file.
6339
6340         * Makefile (distribute): Also distribute ChangeLog.1?.
6341
6342         * Make-dist (+tsrcs): Remove .args handling here as well.
6343
6344         * rt/Makefile (tests): Add tst-timer.
6345         * sysdeps/generic/tst-timer.c: New file.
6346
6347         * Makerules (sources): Don't add BP sources here.
6348
6349         * login/Makefile (distribute): Remove xtmp.h.
6350
6351         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6352         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6353
6354 2000-06-13  Andreas Jaeger  <aj@suse.de>
6355
6356         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6357         Patch by Ralf Baechle <ralf@gnu.org>.
6358
6359 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6360
6361         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6362         for mincore syscall.
6363
6364         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6365         __BOUNDED_POINTERS__ is not defined.
6366
6367 2000-06-07  Greg McGary  <greg@mcgary.org>
6368
6369         * sysdeps/generic/bp-sym.h: New file.
6370         * sysdeps/generic/bp-start.h: New file.
6371         * sysdeps/i386/elf/start.S: Designate BP symbols.
6372         * sysdeps/generic/libc-start.c: Wrap bounds around
6373         argv & envp and each of their string members.
6374
6375 2000-06-07  Greg McGary  <greg@mcgary.org>
6376
6377         * sysdeps/unix/make-syscalls.sh: Add comments to
6378         output that aid debugging & comprehension.
6379         Map simple syscall signatures to number of args.
6380         Generate BP syscall thunk definitions.
6381         * sysdeps/generic/bp-thunks.h: New file.
6382         * sysdeps/unix/syscalls.list: Replace arg-count with
6383         simple return+arg signature.
6384         * sysdeps/unix/common/syscalls.list: Likewise.
6385         * sysdeps/unix/inet/syscalls.list: Likewise.
6386         * sysdeps/unix/mman/syscalls.list: Likewise.
6387         * sysdeps/unix/sysv/syscalls.list: Likewise.
6388         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6389         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6390
6391 2000-06-07  Greg McGary  <greg@mcgary.org>
6392
6393         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6394         for all files *.[cS].
6395         (CFLAGS-.ob): Don't optimize sibling calls.
6396         (bppfx): New variable.
6397         * Makerules (elide-bp-thunks): New variable.
6398         (elide-routines.*): Elide BP-* files for all but *.ob.
6399         (sources): Include bp-thunks.
6400
6401 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6402
6403         * iconv/gconv_simple.c: Remove unnecessary prototype.
6404
6405         * iconv/gconv_trans.c: Pretty print.
6406
6407         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6408
6409         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6410         minimal kernel versions.  Add information about IA-64 kernel.
6411
6412         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6413         specific minimal supported kernel versions to be specified.
6414
6415         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6416         step data structure.
6417         * wcsmbs/btowc.c: Likewise.
6418         * wcsmbs/mbrtowc.c: Likewise.
6419         * wcsmbs/mbsnrtowcs.c: Likewise.
6420         * wcsmbs/mbsrtowcs.c: Likewise.
6421         * wcsmbs/wcrtomb.c: Likewise.
6422         * wcsmbs/wcsnrtombs.c: Likewise.
6423         * wcsmbs/wcsrtombs.c: Likewise.
6424         * wcsmbs/wctob.c: Likewise.
6425
6426         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6427         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6428
6429         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6430
6431         * misc/sys/cdefs.h: Remove one more __P.
6432
6433         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6434         Reported by HJ Lu.
6435
6436         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6437         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6438         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6439
6440 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6441             Yutaka Niibe  <gniibe@chroot.org>
6442
6443         * configure.in: Add machine sh3, sh4.
6444         * elf/elf.h: Add SH specific declarations of relocations.
6445         * shlib-versions: Add sh*-*-linux* cases.
6446
6447 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6448
6449         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6450         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6451         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6452         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6453         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6454         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6455
6456         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6457         instead of KERNEL_MATH_EMULATION.
6458         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6459         KERNEL_MATH_EMULATION.
6460
6461         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6462         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6463         * sysdeps/sh/dl-machine.h: ...here.  New file.
6464         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6465         and include generic SH version.
6466         * sysdeps/sh/sh3/bits/endian.h: Move to...
6467         * sysdeps/sh/bits/endian.h: ...here.  New file.
6468         * sysdeps/sh/sh4/bits/endian.h: Removed.
6469         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6470         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6471         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6472
6473         * include/libc-symbols.h (link_warning): Work around a change in
6474         GAS which warns about changing section attributes.
6475         Proposed by Nick Clifton <nickc@redhat.com>.
6476
6477 2000-06-12  H.J. Lu  <hjl@gnu.org>
6478
6479         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6480
6481 2000-06-11  H.J. Lu  <hjl@gnu.org>
6482
6483         * sysdeps/i386/fpu/Versions: New file.
6484
6485 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6486
6487         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6488         parameters.
6489         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6490         exists.
6491
6492 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6493
6494         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6495         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6496         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6497
6498         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6499         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6500         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6501
6502 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6503             Yutaka Niibe  <gniibe@chroot.org>
6504
6505         * sysdeps/sh/Dist: New file.
6506         * sysdeps/sh/Implies: New file.
6507         * sysdeps/sh/elf/initfini.c: New file.
6508         * sysdeps/sh/gmp-mparam.h: New file.
6509         * sysdeps/sh/init-first.c: New file.
6510         * sysdeps/sh/machine-gmon.h: New file.
6511         * sysdeps/sh/memcpy.S: New file.
6512         * sysdeps/sh/memprof.h: New file.
6513         * sysdeps/sh/memset.S: New file.
6514         * sysdeps/sh/sh3/__longjmp.S: New file.
6515         * sysdeps/sh/sh3/bits/endian.h: New file.
6516         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6517         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6518         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6519         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6520         * sysdeps/sh/sh3/dl-machine.h: New file.
6521         * sysdeps/sh/sh3/setjmp.S: New file.
6522         * sysdeps/sh/sh4/__longjmp.S: New file.
6523         * sysdeps/sh/sh4/bits/endian.h: New file.
6524         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6525         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6526         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6527         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6528         * sysdeps/sh/sh4/dl-machine.h: New file.
6529         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6530         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6531         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6532         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6533         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6534         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6535         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6536         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6537         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6538         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6539         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6540         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6541         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6542         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6543         * sysdeps/sh/sh4/setjmp.S: New file.
6544         * sysdeps/sh/elf/start.S: New file.
6545         * sysdeps/sh/sys/ucontext.h: New file.
6546         * sysdeps/sh/strlen.S: New file.
6547         * sysdeps/sh/sysdep.h: New file.
6548         * sysdeps/unix/sh/sysdep.S: New file.
6549         * sysdeps/unix/sh/sysdep.h: New file.
6550         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6551         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6552         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6553         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6554         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6555         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6556         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6557         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6558         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6559         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6560         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6561         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6562         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6563         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6564         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6565         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6566         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6567         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6568         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6569         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6570         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6571         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6572         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6573         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6574         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6575         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6576         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6577         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6578         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6579         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6580         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6581         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6582         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6583         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6584         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6585         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6586         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6587         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6588         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6589         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6590         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6591         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6592         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6593         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6594         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6595         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6596         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6597         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6598         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6599         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6600
6601 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6602
6603         * Rules (%.out): Define GCONV_PATH in the environment.
6604         * assert/Depend: New file.
6605         * iconvdata/Depend: New file.
6606         * intl/Depend: New file.
6607         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6608         * intl/tst-gettext.sh: Likewise.
6609         * iconv/Makefile (routines): Add gconv_trans.
6610         * iconv/gconv_trans.c: New file.
6611         * iconv/gconv.h (struct __gconv_trans_data): New type.
6612         (__gconv_fct): New parameter with starting position in output buffer.
6613         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6614         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6615         (struct __gconv_step): Add new member __trans.
6616         * iconv/gconv_int.h: Pretty print prototypes.
6617         (gconv_transliterate): New prototype.
6618         (__BUILTIN_TRANS): Update for new conversion function interface.
6619         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6620         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6621         in names, find appropriate function, and install in the conversion
6622         steps it can be used.
6623         * iconv/skeleton.c: Add additional parameter for beginning of output
6624         buffer.  Change calls of downstream functions.
6625         * iconv/loop.c: Change loop function interface completely.  Pass in
6626         step and step_data structure.  Remove optimization for BODY with
6627         NEED_LENGTH_TEST == 0.
6628         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6629         appropriate error handling code to use transliteration steps.  Remove
6630         optimization for BODY with NEED_LENGTH_TEST == 0.
6631         * iconvdata/8bit-gap.c: Likewise.
6632         * iconvdata/8bit-generic.c: Likewise.
6633         * iconvdata/ansi_x3.110.c: Likewise.
6634         * iconvdata/big5.c: Likewise.
6635         * iconvdata/big5hkscs.c: Likewise.
6636         * iconvdata/euc-cn.c: Likewise.
6637         * iconvdata/euc-jp.c: Likewise.
6638         * iconvdata/euc-kr.c: Likewise.
6639         * iconvdata/euc-tw.c: Likewise.
6640         * iconvdata/gbgbk.c: Likewise.
6641         * iconvdata/gbk.c: Likewise.
6642         * iconvdata/iso-2022-cn.c: Likewise.
6643         * iconvdata/iso-2022-jp.c: Likewise.
6644         * iconvdata/iso-2022-kr.c: Likewise.
6645         * iconvdata/iso646.c: Likewise.
6646         * iconvdata/iso8859-1.c: Likewise.
6647         * iconvdata/iso_6937-2.c: Likewise.
6648         * iconvdata/iso_6937.c: Likewise.
6649         * iconvdata/johab.c: Likewise.
6650         * iconvdata/sjis.c: Likewise.
6651         * iconvdata/t.61.c: Likewise.
6652         * iconvdata/uhc.c: Likewise.
6653         * iconvdata/unicode.c: Likewise.
6654         * iconvdata/utf-16.c: Likewise.
6655         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6656         DL_CALL_FCT.
6657         * wcsmbs/btowc.c: Likewise.
6658         * wcsmbs/mbrtowc.c: Likewise.
6659         * wcsmbs/mbsnrtowcs.c: Likewise.
6660         * wcsmbs/mbsrtowcs.c: Likewise.
6661         * wcsmbs/wcrtomb.c: Likewise.
6662         * wcsmbs/wcsnrtombs.c: Likewise.
6663         * wcsmbs/wcsrtombs.c: Likewise.
6664         * wcsmbs/wctob.c: Likewise.
6665
6666 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6667
6668         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6669         other header files.  Mention about 128-byte cache line sizes.
6670         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6671         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6672         for current calling sequence.
6673         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6674
6675         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6676         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6677
6678         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6679         and setrlimit syscalls for backwards compatibility.
6680
6681 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6682
6683         * iconv/skeleton.c:  Rename converted written to correcter name
6684         irreversible.
6685         * iconv/gconv.c: Rename converted variable to correcter name
6686         irreversible.
6687         * iconv/gconv_int.h: Likewise.
6688         * iconv/gconv_simple.c: Likewise.
6689         * iconv/iconv.c: Likewise.
6690         * iconv/loop.c: Likewise.
6691         * iconvdata/8bit-gap.c: Likewise.
6692         * iconvdata/8bit-generic.c: Likewise.
6693         * iconvdata/ansi_x3.110.c: Likewise.
6694         * iconvdata/big5.c: Likewise.
6695         * iconvdata/big5hkscs.c: Likewise.
6696         * iconvdata/euc-cn.c: Likewise.
6697         * iconvdata/euc-jp.c: Likewise.
6698         * iconvdata/euc-kr.c: Likewise.
6699         * iconvdata/gbgbk.c: Likewise.
6700         * iconvdata/gbk.c: Likewise.
6701         * iconvdata/iso-2022-cn.c: Likewise.
6702         * iconvdata/iso-2022-jp.c: Likewise.
6703         * iconvdata/iso-2022-kr.c: Likewise.
6704         * iconvdata/iso646.c: Likewise.
6705         * iconvdata/iso8859-1.c: Likewise.
6706         * iconvdata/iso_6937-2.c: Likewise.
6707         * iconvdata/iso_6937.c: Likewise.
6708         * iconvdata/johab.c: Likewise.
6709         * iconvdata/sjis.c: Likewise.
6710         * iconvdata/t.61.c: Likewise.
6711         * iconvdata/uhc.c: Likewise.
6712         * iconvdata/unicode.c: Likewise.
6713         * iconvdata/utf-16.c: Likewise.
6714
6715         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6716         __cmsg_data field with __extension__.
6717
6718 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6719
6720         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6721
6722 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6723
6724         * iconv/gconv_simple.c: Fix various small bugs in several
6725         functions.
6726
6727         * iconv/loop.c: Fix comment.
6728
6729 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6730
6731         * elf/link.h: Remove libc internal declarations.
6732         * include/link.h: Move them here.
6733
6734 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6735
6736         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6737         Patch by Dan Pop <Dan.Pop@cern.ch>.
6738
6739         Rewrite error message handling.
6740         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6741         _dl_catch_error.
6742         * elf/dl-error (struct catch): Add objname member.
6743         (_dl_signal_error): Take new parameter with object name.  When
6744         passing message on simply store object name and duplicate error
6745         message.
6746         (_dl_catch_error): Take new parameter.  Store object name in the
6747         place pointed to.
6748         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6749         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6750         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6751         (dlerror): Add objname to asprintf() parameters.
6752         (_dl_error_run): Pass new parameter to _dl_catch_error.
6753         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6754         * elf/dl-open.c (_dl_open): Likewise.
6755         * elf/rtld.c (dl_main): Likewise.
6756         * elf/dl-close.c: Mark error messages with N_().
6757         * elf/dl-deps.c: Likewise.
6758         * elf/dl-error.c: Likewise.
6759         * elf/dl-load.c: Likewise.
6760         * elf/dl-open.c: Likewise.
6761         * elf/dl-reloc.c: Likewise.
6762         * elf/dl-support.c: Likewise.
6763         * elf/dl-sym.c: Likewise.
6764         * elf/dl-version.c: Likewise.
6765         * elf/dl-lookup.c: Add comments about problems with error message
6766         translations.
6767         * elf/dl-reloc.c: Likewise.
6768         * elf/dl-version.c: Likewise.
6769
6770 2000-06-09  H.J. Lu  <hjl@gnu.org>
6771
6772         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6773         after freeing it.
6774
6775         * dlfcn/Makefile (distribute): Add failtestmod.c.
6776         (tests): Add failtest.
6777         Add rules to build and run failtest.
6778         * dlfcn/failtest.c: New file.
6779         * dlfcn/failtestmod.c: New file.
6780
6781 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6782
6783         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6784         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6785         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6786         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6787         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6788
6789 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6790
6791         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6792         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6793
6794 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6795             Ulrich Drepper  <drepper@redhat.com>
6796
6797         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6798         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6799         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6800         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6801         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6802         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6803
6804 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6805
6806         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6807         to find correct mount point despite wrong information from the
6808         kernel.
6809
6810 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6811
6812         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6813         the address of a symbol so function pointers are handled properly.
6814
6815 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6816
6817         * sysdeps/i386/Dist: Add bp-asm.h.
6818
6819         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6820         defaultdir variable instead of "/var/shm" everywhere.
6821         (defaultdir): Change to /dev/shm/.
6822
6823 2000-06-08  Greg McGary  <greg@mcgary.org>
6824
6825         * sysdeps/i386/bp-asm.h: New file.
6826         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6827         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6828         frame-pointer chain when debugging.
6829         * sysdeps/i386/add_n.S: Likewise.
6830         * sysdeps/i386/addmul_1.S: Likewise.
6831         * sysdeps/i386/lshift.S: Likewise.
6832         * sysdeps/i386/memchr.S: Likewise.
6833         * sysdeps/i386/memcmp.S: Likewise.
6834         * sysdeps/i386/mul_1.S: Likewise.
6835         * sysdeps/i386/rawmemchr.S: Likewise.
6836         * sysdeps/i386/rshift.S: Likewise.
6837         * sysdeps/i386/stpcpy.S: Likewise.
6838         * sysdeps/i386/stpncpy.S: Likewise.
6839         * sysdeps/i386/strchr.S: Likewise.
6840         * sysdeps/i386/strchrnul.S: Likewise.
6841         * sysdeps/i386/strcspn.S: Likewise.
6842         * sysdeps/i386/strpbrk.S: Likewise.
6843         * sysdeps/i386/strrchr.S: Likewise.
6844         * sysdeps/i386/strspn.S: Likewise.
6845         * sysdeps/i386/strtok.S: Likewise.
6846         * sysdeps/i386/sub_n.S: Likewise.
6847         * sysdeps/i386/submul_1.S: Likewise.
6848         * sysdeps/i386/elf/setjmp.S: Likewise.
6849         * sysdeps/i386/i486/strcat.S: Likewise.
6850         * sysdeps/i386/i486/strlen.S: Likewise.
6851         * sysdeps/i386/i586/add_n.S: Likewise.
6852         * sysdeps/i386/i586/lshift.S: Likewise.
6853         * sysdeps/i386/i586/memcpy.S: Likewise.
6854         * sysdeps/i386/i586/memset.S: Likewise.
6855         * sysdeps/i386/i586/rshift.S: Likewise.
6856         * sysdeps/i386/i586/strchr.S: Likewise.
6857         * sysdeps/i386/i586/strcpy.S: Likewise.
6858         * sysdeps/i386/i586/strlen.S: Likewise.
6859         * sysdeps/i386/i586/sub_n.S: Likewise.
6860         * sysdeps/i386/i686/add_n.S: Likewise.
6861         * sysdeps/i386/i686/memcpy.S: Likewise.
6862         * sysdeps/i386/i686/mempcpy.S: Likewise.
6863         * sysdeps/i386/i686/memset.S: Likewise.
6864         * sysdeps/i386/i686/strcmp.S: Likewise.
6865
6866 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6867
6868         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6869
6870         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6871         256 and don't use OPEN_MAX.
6872
6873         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6874         use it instead of LINK_MAX.
6875         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6876
6877 2000-06-08  Andreas Jaeger  <aj@suse.de>
6878
6879         * libio/genops.c (_IO_list_lock): Only compile body if we're
6880         thread safe.
6881         (_IO_list_unlock): Likewise.
6882         (_IO_list_resetlock): Likewise.
6883
6884 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6885
6886         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6887         unless user defined it.
6888
6889         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6890         if not defined by the user.
6891
6892         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6893         * libio/iofwrite.c (_IO_fwrite): Likewise.
6894
6895         * time/time.h: Add missing __THROW for clock_getcpuclockid
6896         prototype.
6897
6898         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6899         * include/elf.h: Include also <dl-dtprocnum.h>.
6900         * elf/dl-deps.c: Likewise.
6901         * elf/dl-lookup.c: Likewise.
6902         * elf/dl-runtime.c: Likewise.
6903         * elf/dl-version.c: Likewise.
6904         * elf/do-rel.h: Likewise.
6905         * elf/dynamic-link.h: Likewise.
6906         * elf/link.h: Likewise.
6907         * elf/rtld.c: Likewise.
6908         * sysdeps/generic/dl-dtprocnum.h: New file.
6909         * sysdeps/ia64/dl-dtprocnum.h: New file.
6910         * sysdeps/mips/dl-dtprocnum.h: New file.
6911         * sysdeps/sparc/dl-dtprocnum.h: New file.
6912
6913         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6914
6915         * elf/do-lookup.h: Add some __builtin_expect.
6916
6917         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6918
6919         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6920         (_dl_dynamic_weak): New variable.
6921         * elf/dl-support.c: Likewise.
6922         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6923         * elf/do-lookup.h: If we find a weak definition treat it like a
6924         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6925         case treat it like before.
6926
6927         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6928         is in main program.
6929         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6930
6931         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6932         using l_map_start and l_map_end.
6933
6934         * elf/dl-version.c: Add __builtin_expect in many places.
6935
6936         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6937         Update.
6938
6939 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6940
6941         Lock for stdio stream list becomes global, for use in LinuxThreads.
6942
6943         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6944         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6945         _IO_list_resetlock): New interface for iterating global list of
6946         streams without accessing the _IO_list_all global variable,
6947         and for manipulating the lock which protects this list.
6948         * libio/libioP.h: Likewise.
6949         * libio/Version: Add entries for the new functions.
6950
6951         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6952         pointer to _IO_FILE.
6953
6954 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6955
6956         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6957         BIT() must actually be BITw().
6958
6959         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6960
6961         * locale/programs/charmap.c: Allow string arguments for
6962         code_set_name and repertoiremap.
6963
6964 2000-06-07  Andreas Jaeger  <aj@suse.de>
6965
6966         * elf/Makefile: Build ldconfig only when building shared libraries.
6967
6968 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6969
6970         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6971         __USE_ISOC99.
6972         (fdimf, __fdim, fdim): Likewise.
6973
6974 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6975
6976         * locale/findlocale.c: Add __builtin_expect in many places.
6977         * locale/loadlocale.c: Likewise.
6978
6979 2000-06-06  Greg McGary  <greg@mcgary.org>
6980
6981         * sysdeps/mips/elf/start.S: Trim redundant code.
6982
6983         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6984         Use C comments throughout.  Line up operands column with tabs.
6985         * sysdeps/powerpc/strchr.S: Likewise.
6986         * sysdeps/powerpc/strcmp.S: Likewise.
6987         * sysdeps/powerpc/strcpy.S: Likewise.
6988         * sysdeps/powerpc/strlen.S: Likewise.
6989
6990         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6991         Get low part of &__curbrk with @l.
6992
6993 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6996         * iconvdata/unicode.c: Likewise.
6997         * iconvdata/uhc.c: Likewise.
6998         * iconvdata/t.61.c: Likewise.
6999         * iconvdata/sjis.c: Likewise.
7000         * iconvdata/johab.c: Likewise.
7001         * iconvdata/iso_6937.c: Likewise.
7002         * iconvdata/iso_6937-2.c: Likewise.
7003         * iconvdata/iso8859-1.c: Likewise.
7004         * iconvdata/iso646.c: Likewise.
7005         * iconvdata/iso-2022-kr.c: Likewise.
7006         * iconvdata/iso-2022-jp.c: Likewise.
7007         * iconvdata/iso-2022-cn.c: Likewise.
7008         * iconvdata/gbgbk.c: Likewise.
7009         * iconvdata/gbk.c: Likewise.
7010         * iconvdata/euc-kr.c: Likewise.
7011         * iconvdata/euc-jp.c: Likewise.
7012         * iconvdata/euc-cn.c: Likewise.
7013
7014 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
7015
7016         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
7017         * iconvdata/big5.c: Likewise.
7018         * iconvdata/ansi_x3.110.c: Likewise.
7019         * iconvdata/8bit-generic.c: Likewise.
7020         * iconvdata/8bit-gap.c: Likewise.
7021         * iconv/loop.c: Likewise.
7022         * iconv/gconv_db.c: Likewise.
7023         * iconv/gconv_dl.c: Likewise.
7024         * iconv/gconv_simple.c: Likewise.
7025         * iconv/skeleton.c: Likewise.
7026
7027         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
7028         (struct __gconv_step_data): Rename __is_last to __flags.
7029         * iconv/gconv_close.c: Change all uses of __is_last.
7030         * iconv/skeleton.c: Likewise.
7031         * iconvdata/iso-2022-cn.c: Likewise.
7032         * iconvdata/iso-2022-jp.c: Likewise.
7033         * iconvdata/iso-2022-kr.c: Likewise.
7034         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
7035         Recognize IGNORE error handling, set flag, and remove from name.
7036         * iconv/loop.c (ignore_errors_p): Define.
7037         Add flags parameter to both functions.
7038         * iconv/skeleton.c: Pass flags to all conversion functions.
7039         * iconv/gconv_simple.c: Add flags parameter to all functions.
7040         Don't return error for invald error if ignore flag is set.
7041         (ucs4_internal_loop_single): Add missing pointer increment.
7042         (internal_ucs4le_loop_single): Likewise.
7043         * iconv/iconv_prog.c: Implement handling of -c parameter.
7044         * iconvdata/8bit-gap.c: Don't return error for invald error if
7045         ignore flag is set.
7046         * iconvdata/8bit-generic.c: Likewise.
7047         * iconvdata/ansi_x3.110.c: Likewise.
7048         * iconvdata/big5.c: Likewise.
7049         * iconvdata/big5hkscs.c: Likewise.
7050         * iconvdata/euc-cn.c: Likewise.
7051         * iconvdata/euc-jp.c: Likewise.
7052         * iconvdata/euc-kr.c: Likewise.
7053         * iconvdata/gbgbk.c: Likewise.
7054         * iconvdata/gbk.c: Likewise.
7055         * iconvdata/iso-2022-cn.c: Likewise.
7056         * iconvdata/iso-2022-jp.c: Likewise.
7057         * iconvdata/iso-2022-kr.c: Likewise.
7058         * iconvdata/iso646.c: Likewise.
7059         * iconvdata/iso8859-1.c: Likewise.
7060         * iconvdata/iso_6937-2.c: Likewise.
7061         * iconvdata/iso_6937.c: Likewise.
7062         * iconvdata/johab.c: Likewise.
7063         * iconvdata/sjis.c: Likewise.
7064         * iconvdata/t.61.c: Likewise.
7065         * iconvdata/uhc.c: Likewise.
7066         * iconvdata/unicode.c: Likewise.
7067         * iconvdata/utf-16.c: Likewise.
7068         * libio/fileops.c: Likewise.
7069         * libio/iofwide.c: Likewise.
7070         * wcsmbs/btowc.c: Likewise.
7071         * wcsmbs/mbrtowc.c: Likewise.
7072         * wcsmbs/mbsnrtowcs.c: Likewise.
7073         * wcsmbs/mbsrtowcs.c: Likewise.
7074         * wcsmbs/wcrtomb.c: Likewise.
7075         * wcsmbs/wcsnrtombs.c: Likewise.
7076         * wcsmbs/wcsrtombs.c: Likewise.
7077         * wcsmbs/wctob.c: Likewise.
7078
7079         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
7080         an error.
7081
7082 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7083
7084         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
7085         counter for the object we are releasing, just decrement it.
7086         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
7087
7088 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
7089
7090         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
7091         if -ffast-math.
7092
7093 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
7094
7095         * iconvdata/big5hkscs.c: New file.
7096         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
7097
7098         * iconvdata/gconv-modules: Add entry for new module.
7099         * iconvdata/Makefile (modules): Add BIG5HKSCS.
7100         (distribute): Add big5hkscs.c.
7101
7102 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
7103
7104         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
7105         inlines to match prototypes in mathcalls.h.
7106         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
7107         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
7108         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
7109         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
7110
7111 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
7112
7113         * elf/elf.h (SHT_SUNW_move): Define.
7114
7115         * elf/elf.h: Add more Solaris compatiblity definitions.
7116
7117 2000-06-03  Andreas Jaeger  <aj@suse.de>
7118
7119         * sysdeps/powerpc/dl-start.S: Close open comment.
7120
7121 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
7122
7123         * inet/Versions: Fix typo in rresvport_af export.
7124
7125 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7126
7127         * math/tgmath.h: Pretty print.
7128
7129 2000-06-02  Andreas Jaeger  <aj@suse.de>
7130
7131         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
7132         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7133
7134 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
7135
7136         * elf/rtld.c (process_envvars): Test for = after variable name.
7137
7138 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
7139
7140         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
7141         have extra call to __gmon_start__, use the pointer we already have.
7142
7143         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
7144         shifting.
7145
7146         * sysdeps/i386/elf/setjmp.S: Work around change is recent
7147         binutils.  gas now emits a jump through the PLT instead of a
7148         relative jump if the jump target is an exported symbol.
7149
7150 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
7151
7152         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
7153
7154 2000-05-31  Andreas Jaeger  <aj@suse.de>
7155
7156         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
7157         gregset_t.
7158
7159         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
7160         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
7161
7162         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
7163         syscall.
7164         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
7165
7166 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
7167
7168         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
7169
7170         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
7171         * locale/localeconv.c: Make function versioned (with same definition).
7172
7173         * elf/Makefile (modules-names): Strip before using it.
7174
7175 2000-05-30  Andreas Jaeger  <aj@suse.de>
7176
7177         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
7178         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
7179         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
7180         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
7181         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
7182         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
7183
7184 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7185
7186         * Makefile: Add GNU make magic.
7187
7188         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
7189         Removed.
7190         * inet/rcmd.c: Remove __P.  Remove unused variables.
7191         (iruserfopen): Make first parameter const.
7192         (ruserok_sa): Return result of ruserok2_sa.
7193         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
7194         * inet/rexec.c: Remove unused variables.  Other small cleanups.
7195         * inet/ruserpass.c: Remove __P.  Remove unused variables.
7196         (ruserpass): Check results of memory allocation.
7197         * include/netdb.h: Add prototype for ruserpass.
7198
7199 2000-05-29  Andreas Jaeger  <aj@suse.de>
7200
7201         * elf/readlib.c (interpreters): Use LD_SO since this is supported
7202         for all platforms.
7203
7204 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
7205
7206         * inet/rcmd.c (rresvport_af): Use correct port number.
7207
7208 2000-05-26  Andreas Schwab  <schwab@suse.de>
7209
7210         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
7211         entries in all-sonames.
7212         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
7213         preserving the old name if different for compatibility.
7214
7215 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
7216
7217         * posix/Makefile (tests): Add tst-spawn.
7218         (tst-spawn-ARGS): New variable.
7219         * posix/tst-spawn.c: New file.
7220
7221         * posix/spawn_faction_addclose.c: Correctly account for new entry.
7222         * posix/spawn_faction_adddup2.c: Likewise.
7223         * posix/spawn_faction_addopen.c: Likewise.
7224         * posix/spawni.c: Correctly test for success of dup2 calls.
7225
7226         * posix/tst-preadwrite.c: Check success of malloc call.
7227
7228 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7229
7230         * posix/Makefile (tests): Add tst-exec.
7231         (tst-exec-ARGS): New variable.
7232         * posix/tst-exec.c: New file.
7233
7234         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7235
7236 2000-05-04  Andreas Jaeger  <aj@suse.de>
7237
7238         * string/string.h: Remove __strdup prototype, it's not needed in
7239         this file anymore.
7240
7241 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7242
7243         * posix/Makefile (tests): Add tst-fork.
7244         * posix/tst-fork.c: New file.
7245
7246         * resolv/inet_pton.c: Loose __P.
7247
7248 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7249
7250         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7251         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7252         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7253         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7254         _IO_CHECK_WIDE fails.
7255
7256 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7257
7258         * po/da.po: New file.
7259
7260         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7261         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7262
7263         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7264         (Other iconv Implementations): Fix typo.
7265         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7266
7267 2000-05-27  Andreas Jaeger  <aj@suse.de>
7268
7269         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7270         normal version now.
7271         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7272         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7273         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7274         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7275         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7276         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7277
7278         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7279         endianness to decide how to pass arguments.
7280         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7281
7282         * elf/vismain.c: Use test-skeleton interface.
7283         (TEST_FUNCTION): New macro.
7284         (do_test): Renamed from main.
7285
7286 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7287
7288         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7289         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7290
7291         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7292         handling of AI_V4MAPPED flag.
7293
7294         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7295         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7296         perform lookup for T_A type and tell getanswer_r to convert the
7297         result with new argument.
7298         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7299         Don't convert addresses from IPv4 to IPv6 here.
7300         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7301         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7302         IPv4 mapping has to be done.  Perform mappings if required by the
7303         caller and not if RES_USE_INET6 bit in _res.options is set.
7304         Add several __builtin_expect.
7305
7306 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7307
7308         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7309
7310         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7311         NULL.
7312
7313         * posix/tst-preadwrite.c: Allow parallel execution of
7314         tst-preadwrite and tst-preadwrite64.
7315
7316         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7317         * posix/tst-truncate.c: New file.
7318         * posix/tst-truncate64.c: New file.
7319
7320         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7321         was switched.
7322
7323         * posix/Makefile (tests): Add tst-preadwrite64.
7324         * posix/tst-preadwrite.c: Alloc file being used also for testing
7325         pread64 and pwrite64.
7326         * posix/tst-preadwrite64.c: New file.
7327
7328 2000-05-26  Andreas Jaeger  <aj@suse.de>
7329
7330         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7331         of arguments dependend on endianness.
7332         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7333
7334         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7335         normal version now.
7336         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7337         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7338         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7339         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7340
7341         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7342         endianness to check how to pass argument.
7343         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7344
7345         * elf/ldconfig.h: Update parameter list for process_elf_file.
7346
7347         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7348         Add parameter file_length and pass it ot process_elf*file.
7349
7350         * sysdeps/generic/readelflib.c (check_ptr): New.
7351         (process_elf_file): Use check_ptr to check all accesses to the
7352         mmapped file. Add parameter file_length.
7353
7354         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7355         library names.
7356
7357         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7358         Closes PR libc/1573, reported by Bradley White
7359         <bww@laurelnetworks.com>.
7360
7361 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7362
7363         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7364         __FAST_MATH__ is defined.
7365
7366 2000-05-22  Andreas Jaeger  <aj@suse.de>
7367
7368         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7369         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7370
7371         * manual/math.texi (FP Function Optimizations): Document gcc
7372         -ffast-math behaviour with mathinlines.
7373
7374         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7375         functions unless -ffast-math is given to gcc.
7376
7377 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7378
7379         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7380         __sincosl): Guard with __USE_GNU.
7381
7382 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7383
7384         * csu/Makefile (routines): Add check_fds.
7385         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7386         binaries.  Add various __builtin_expect.
7387         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7388         * sysdeps/generic/check_fds.c: ...here.  New file.
7389
7390         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7391         binaries if file /etc/suid-debug is available.
7392
7393         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7394         and wcseqorder members.
7395         (struct locale_collate_t): Likewise.
7396         (collate_finish): Assign collation sequence value to each character.
7397         Create tables for output.
7398         (collate_output): Write out tables with collation sequence information.
7399         * locale/C-collate.c: Provide C locale data for collation sequence
7400         table.
7401         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7402         _NL_COLLATE_COLLSEQWC.
7403         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7404         _NL_COLLATE_COLLSEQWC.
7405         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7406         include fnmatch_loop.c.
7407         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7408         character is matched by range expression.  Use collation sequence
7409         table.  Outside glibc fall back on simple character value comparison.
7410
7411 2000-05-24  Andreas Jaeger  <aj@suse.de>
7412
7413         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7414         words.
7415
7416         * intl/Makefile: Run gettext-test only if msgfmt is available.
7417
7418         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7419         Define it for newer kernels.
7420
7421 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7422
7423         * elf/dl-sym.c: Minor cleanups.
7424
7425         * configure.in: Add test for .protected.
7426         * config.make.in: Add have-protected variable.
7427         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7428         (tests-vis-yes): Add vismain.
7429         (modules-names): Add $(modules-vis-$(have-protected)).
7430         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7431         Add rules to generate and run vismain.
7432         * elf/vismain.c: New file.
7433         * elf/vismod1.c: New file.
7434         * elf/vismod2.c: New file.
7435         * elf/vismod3.c: New file.
7436
7437 2000-05-23  Andreas Jaeger  <aj@suse.de>
7438
7439         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7440
7441         * manual/search.texi (Array Sort Function): Document that qsort is
7442         not necessarily in-place.
7443
7444         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7445         Closes PR libc/1731.
7446
7447         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7448         * dirent/scandir64.c: Likewise.
7449         * pwd/getpw.c: Likewise.
7450         * stdlib/bsearch.c (bsearch): Likewise.
7451         * stdlib/tst-strtoll.c: Likewise.
7452         * localedata/collate-test.c: Likewise.
7453         * localedata/xfrm-test.c: Likewise.
7454         * posix/bsd-getpgrp.c: Likewise.
7455         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7456         * sysdeps/generic/bits/siginfo.h: Likewise.
7457         * sysdeps/generic/bits/sockaddr.h: Likewise.
7458         * sysdeps/generic/sys/swap.h: Likewise.
7459         * sysdeps/generic/sys/sysinfo.h: Likewise.
7460         * sysdeps/generic/vfork.c: Likewise.
7461         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7462         * sysdeps/mach/hurd/fdopen.c: Likewise.
7463         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7464         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7465         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7466         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7467         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7468         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7469         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7470
7471         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7472         * shadow/lckpwdf.c: Likewise.
7473         * stdlib/tst-strtol.c: Likewise.
7474         * sysdeps/generic/tcsetattr.c: Likewise.
7475         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7476         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7477
7478 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7479
7480         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7481         free it and set to (void *) -1.
7482
7483 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7484
7485         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7486         not the second character in the range.
7487         * stdio-common/tstscanf.c (main): Add testcase for the above.
7488         Reported by jik@kamens.brookline.ma.us.
7489
7490 2000-05-21  H.J. Lu  <hjl@gnu.org>
7491
7492         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7493         with noexec and noplt parameter.
7494         (do_lookup): Likewise.
7495
7496         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7497         do_lookup.  Support STV_PROTECTED.
7498         (_dl_lookup_symbol_skip): Likewise.
7499         (_dl_lookup_versioned_symbol): Likewise.
7500         (_dl_lookup_versioned_symbol_skip): Likewise.
7501
7502         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7503
7504         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7505
7506 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7507
7508         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7509         * sysdeps/i386/bits/huge_val.h: Likewise.
7510         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7511         * sysdeps/m68k/bits/huge_val.h: Likewise.
7512         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7513         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7514
7515 2000-05-22  Andreas Jaeger  <aj@suse.de>
7516
7517         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7518         change in iconv.h.
7519
7520 2000-05-19  Andreas Jaeger  <aj@suse.de>
7521
7522         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7523         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7524         breaks compilation without linuxthreads.
7525
7526 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7527
7528         * sysdeps/ia64/memccpy.S: New file.
7529         * sysdeps/ia64/memchr.S: New file.
7530         * sysdeps/ia64/memcmp.S: New file.
7531         * sysdeps/ia64/memcpy.S: New file.
7532         * sysdeps/ia64/memmove.S: New file.
7533         * sysdeps/ia64/memset.S: New file.
7534         * sysdeps/ia64/strcat.S: New file.
7535         * sysdeps/ia64/strchr.S: New file.
7536         * sysdeps/ia64/strcmp.S: New file.
7537         * sysdeps/ia64/strcpy.S: New file.
7538         * sysdeps/ia64/strlen.S: New file.
7539         * sysdeps/ia64/strncmp.S: New file.
7540         * sysdeps/ia64/strncpy.S: New file.
7541         * sysdeps/ia64/softpipe.h: New file.
7542         Patches by Dan Pop <Dan.Pop@cern.ch>.
7543
7544         * manual/memory.texi: Document memory handling functions (mlock,
7545         munlock, mlockall, munlockall, brk, and sbrk)
7546         * manual/time.texi: Document timespec and friends.
7547         * manual/conf.texi: Fix references.
7548         * manual/ctype.texi: Likewise.
7549         * manual/errno.texi: Likewise.
7550         * manual/intro.texi: Likewise.
7551         * manual/locale.texi: Likewise.
7552         * manual/sysinfo.texi: Likewise.
7553         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7554
7555 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7556
7557         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7558         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7559
7560 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7561
7562         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7563         dxfer_direction.
7564
7565 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7566
7567         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7568         * locale/localeconv.c: Initialize new elements from ISO C99.
7569         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7570         new standard elements.
7571         * locale/categories.def: Adjust accordingly.
7572
7573         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7574         * iconv/iconv.c: Likewise.
7575         * conform/data/iconv.h-data: Likewise.
7576         * iconv/iconv_prog.c (process_block): Remove const from second
7577         parameter.
7578         (main): Remove const from addr definition.
7579         * manual/charset.texi (Generic Conversion Interface): Remove from
7580         inbuf parameter of iconv.
7581
7582         * intl/dcigettext.c: Fix typo in comment.
7583
7584 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7585
7586         * resolv/res_libc.c (_res): Initialize _sock to -1.
7587
7588 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7589
7590         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7591         (fopencookie@@GLIBC_2.2): New.
7592         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7593         (fopencookie@GLIBC_2.0): New.
7594         * libio/Versions: Add fopencookie to GLIBC_2.2.
7595
7596 2000-05-18  Andreas Jaeger  <aj@suse.de>
7597
7598         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7599         Closes PR libc/1731.
7600
7601         * manual/arith.texi (Parsing of Integers): Fix typo.
7602         Closes PR libc/1744, reported by blp@gnu.org.
7603
7604 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7605
7606         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7607         __extension__ to hexadecimal floating constant notation.
7608         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7609         Likewise.
7610         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7611         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7612         Likewise.
7613         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7614         HUGE_VALL): Likewise.
7615         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7616         HUGE_VALL): Likewise.
7617         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7618
7619 2000-05-17  Andreas Jaeger  <aj@suse.de>
7620
7621         * string/envz.h: Add pure attributes if possible.
7622
7623         * string/argz.h: argz_count is a pure function.
7624
7625         * string/strings.h: Add pure and const attributes if possible.
7626
7627         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7628         possibly searching through the whole memory.
7629         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7630
7631 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7632
7633         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7634         not yet defined.
7635         (_dl_cache_check_flags): Likewise.
7636         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7637         dl-cache.h.
7638
7639 2000-05-17  Andreas Jaeger  <aj@suse.de>
7640
7641         * manual/creature.texi (Feature Test Macros): Remove paragraph
7642         since the description is wrong.
7643         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7644
7645         * scripts/config.sub: New version.
7646         * scripts/config.guess: Likewise.
7647         * manual/texinfo.tex: Likewise.
7648
7649         * time/test_time.args: Removed.
7650         * time/Makefile (test_time-ARGS): Added contents here instead.
7651
7652         * posix/tstgetopt.args: Removed.
7653         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7654
7655         * Rules: Allow arguments for test files to be specified in
7656         Makefile with testname-ARGS; remove rules with .args in it.
7657
7658         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7659         remove old bogus rule for opendir-tst1.args.
7660
7661         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7662
7663         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7664         into objdir.  This allows a readonly sourcetree.
7665         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7666
7667 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7668             David Huggins-Daines <dhd@linuxcare.com>
7669
7670         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7671         cache_data in case of only new cache format correctly.
7672
7673         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7674         cache_file_new.
7675
7676         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7677         struct cache_file_new.
7678
7679         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7680         present.
7681
7682         * elf/cache.c (save_cache): Align struct new_file_cache.
7683         (print_cache): Likewise.
7684
7685 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7686
7687         * elf/soinit.c (__libc_global_ctors): Move
7688         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7689         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7690         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7691         variable, don't define it to __res_state call.
7692
7693 2000-05-13  Andreas Jaeger  <aj@suse.de>
7694
7695         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7696         Linux 2.3.99pre7.
7697         (AF_PPPOX): Likewise.
7698         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7699         (AF_PPPOX): Likewise.
7700
7701 2000-05-12  Andreas Jaeger  <aj@suse.de>
7702
7703         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7704         Reported by tmoestl@gmx.net, closes PR libc/1732.
7705
7706 2000-05-11  Jan Hubicka  <jh@suse.cz>
7707
7708         * misc/sys/cdefs.h: Add support for pure attribute.
7709
7710         * include/string.h: Add __attribute_pure__ to various functions.
7711         * string/string.h: Likewise.
7712
7713 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7714
7715         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7716         argument.
7717         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7718         R_SPARC_UA64.
7719         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7720
7721 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7722
7723         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7724         at proper place.  Compute the high nibble correctly.
7725
7726 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7727
7728         * elf/ldconfig.c: Include elf.h.
7729
7730         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7731         (_dl_vsym): Likewise.
7732         Reported by Owen Taylor <otaylor@redhat.com>.
7733
7734         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7735         always.
7736
7737 2000-05-08  Andreas Jaeger  <aj@suse.de>
7738
7739         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7740
7741         * intl/bindtextdom.c (set_binding_values): Add prototype.
7742
7743 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7744
7745         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7746         call to elf_machine_fixup_plt.
7747         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7748         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7749
7750 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7751
7752         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7753         they are not dlclose'd from underneath us.
7754
7755 2000-05-08  Andreas Schwab  <schwab@suse.de>
7756
7757         * posix/execle.c: Fix size parameter of memcpy.
7758
7759 2000-05-08  Andreas Schwab  <schwab@suse.de>
7760
7761         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7762         getpagesize syscall if available.
7763
7764 2000-05-08  Andreas Jaeger  <aj@suse.de>
7765
7766         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7767         set errno.
7768
7769 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7770
7771         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7772         sizeof(struct link_map *) chunks, not in bytes.
7773
7774 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7775
7776         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7777         only needed for locale.
7778         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7779         It's only needed for catgets.
7780         Patches by Greg McGary <gkm@eng.ascend.com>.
7781
7782 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7783
7784         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7785         Remove duplicate <errno.h> include.  Remove inclusion of
7786         <libintl.h> and "nsswitch.h".
7787         (set_cloexec_flag): New function, broken out of dbopen.
7788         (dbopen): Changed return type to `enum
7789         nss_status'.  Mostly rewritten to make sure that we do not report
7790         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7791         (internal_setent): Change return type to nss_status.
7792         Document, and make sure that the function
7793         behaves accordingly.  Make dynamically loading the database
7794         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7795         failed.
7796         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7797         unecessary casts.
7798         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7799         documentation.
7800         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7801         c_get function member.
7802         * nss/nss_db/nss_db.h: Add and tweak some comments.
7803         (DBT): Move typedef before NSS_DBC typedef.
7804         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7805
7806 2000-05-07  H.J. Lu  <hjl@gnu.org>
7807
7808         * csu/initfini.c: Moved to ....
7809         * sysdeps/generic/initfini.c: ...here.
7810
7811         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7812
7813 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7814
7815         * manual/resource.texi: Document POSIX scheduling functions.
7816         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7817
7818         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7819         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7820
7821         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7822         for x since promotion in comparison might leads to unexpected
7823         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7824
7825         * iconv/Makefile (tests): Add tst-iconv1.
7826         * iconv/tst-iconv1.c: New file.
7827         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7828         empty input buffer over full output buffer.
7829         (ucs4_internal_loop): Likewise.
7830         (ucs4_internal_loop_unaligned): Likewise.
7831         (internal_ucs4le_loop): Likewise.
7832         (internal_ucs4le_loop_unaligned): Likewise.
7833         (ucs4le_internal_loop): Likewise.
7834         (ucs4le_internal_loop_unaligned): Likewise.
7835         Reported by yaoz@nih.gov.
7836
7837 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7838
7839         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7840         returned != __GCONV_OK, there is nothing to clean up.
7841
7842 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7843
7844         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7845         OUTPUT_CHARSET environment variables.
7846
7847 2000-05-06  Andreas Jaeger  <aj@suse.de>
7848
7849         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7850         (struct cache_file_new): New.
7851         (struct file_entry): New (moved from cache.c).
7852         (struct cache_file): New (moved from cache.c).
7853
7854         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7855         from _dl_load_cache_lookup.
7856         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7857         the different cache formats.
7858         New variable cache_new for new format.
7859
7860         * elf/ldconfig.h: Change according to changes in cache.c and
7861         ldconfig.c; remove cache_libcmp; add opt_format.
7862
7863         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7864         stuff that's defined in those headers.
7865         Add hwcap to struct lib_entry.
7866         (opt_format): New variable to select cache format.
7867         (options): Add format parameter.
7868         (is_hwcap): New function.
7869         (path_hwcap): New function.
7870         (parse_opt): Handle new format parameter.
7871         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7872
7873         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7874         ldconfig is part of glibc.
7875         Include dl-cache.h and remove stuff that's defined there.
7876         (struct cache_entry): Add new member hwcap.
7877         (print_entry): Print hwcap, cleanup a bit.
7878         (print_cache): Print new and old formats.
7879         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7880         (save_cache): Save new and old formats.
7881         (add_to_cache): Handle hwcap.
7882
7883         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7884         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7885         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7886         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7887         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7888         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7889
7890 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7891
7892         * intl/dcigettext.c (alignof): New macro.
7893         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7894         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7895         freemem_size to 0.
7896
7897 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7898
7899         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7900         return value.
7901
7902 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7903
7904         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7905         (mempcpy): Correct typo is parameter list.
7906
7907 2000-05-06  Andreas Jaeger  <aj@suse.de>
7908
7909         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7910         functions unless -ffast-math is given to gcc.
7911
7912 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7913
7914         * po/ko.po: Update from translation team.
7915
7916 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7917
7918         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7919         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7920         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7921         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7922         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7923         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7924
7925         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7926         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7927         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7928
7929         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7930         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7931         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7932         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7933
7934         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7935         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7936
7937 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7938
7939         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7940         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7941
7942         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7943         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7944
7945         * sysdeps/ia64/Implies: New file.
7946         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7947         * sysdeps/ia64/Makefile: New file.
7948         * sysdeps/ia64/gmp-mparam.h: New file,
7949
7950         * sysdeps/ia64/elf/start.S: New file.
7951
7952         * sysdeps/ia64/bits/fenv.h: New file.
7953
7954 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7955
7956         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7957
7958 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7959
7960         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7961         ia64 has 64 bit .hash entries just as the Alpha.
7962
7963 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7964
7965         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7966
7967 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7968
7969         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7970         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7971         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7972         * sysdeps/ia64/fpu/fegetenv.c: New file.
7973         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7974         * sysdeps/ia64/fpu/fegetround.c: New file.
7975         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7976         * sysdeps/ia64/fpu/fesetenv.c: New file.
7977         * sysdeps/ia64/fpu/fesetround.c: New file.
7978         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7979         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7980         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7981         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7982         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7983
7984 2000-05-05  Andreas Jaeger  <aj@suse.de>
7985
7986         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7987
7988         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7989         (_dl_string_hwcap): New, does nothing.
7990
7991         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7992         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7993         (_dl_string_hwcap): New function, converts from string to hwcap
7994         encoding.
7995         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7996         (_DL_HWCAP_COUNT): New.
7997         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7998         (_dl_string_hwcap): New function, converts from string to hwcap
7999         encoding.
8000         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
8001         (_DL_HWCAP_COUNT): New.
8002         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
8003         (_dl_string_hwcap): New function, converts from string to hwcap
8004         encoding.
8005
8006 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
8007
8008         * elf/Makefile (distribute): Add dl-lookupcfg.h.
8009         * sysdeps/ia64/Dist: New file.
8010
8011         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
8012         parameter to mprotect and for variable assignments.
8013
8014 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
8015
8016         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
8017         validity of map before dereferencing it.
8018
8019         * elf/dl-reloc.c (RESOLVE_MAP): Define.
8020
8021 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
8022
8023         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
8024         lookup to the arguments to elf_machine_fixup_plt().
8025
8026         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
8027         of the symbol being resolved to input argument list and make the
8028         function return the pointer to the reloc.
8029
8030         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
8031         return valuie to lookup_t and return the value.
8032         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
8033         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
8034         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
8035         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
8036         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
8037         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
8038
8039         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
8040         Make it an inline function returning value after calling
8041         __elf_machine_fixup_plt().
8042
8043         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
8044         symbol address.
8045
8046         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
8047         obtain the symbol address.
8048
8049         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
8050         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
8051
8052         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
8053         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
8054         inline on non ia64.
8055
8056 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
8057
8058         * elf/dl-runtime.c (fixup): Use the portable macros to get the
8059         symbol address of an object.
8060
8061         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
8062         the symbol address of an object.
8063
8064         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
8065         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
8066         (_dl_lookup_symbol_skip): Likewise.
8067         (_dl_lookup_versioned_symbol): Likewise.
8068         (_dl_lookup_versioned_symbol_skip): Likewise.
8069
8070 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
8071
8072         * elf/rtld.c (_dl_start): Get the function pointer return address
8073         via _dl_start_address for architectures that need a function
8074         pointer descriptor rather than just a pointer (ia64).
8075
8076         * sysdeps/generic/dl-lookupcfg.h: New file.
8077         * sysdeps/ia64/dl-lookupcfg.h: New file.
8078         * sysdeps/ia64/dl-machine.h: New file.
8079         * sysdeps/ia64/dl-symaddr.c: New file.
8080         * sysdeps/ia64/dl-fptr.c: New file.
8081
8082         * elf/elf.h: Add IA-64 specific definitions.
8083
8084 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8085
8086         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
8087         end of enum.
8088
8089 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
8090
8091         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
8092         happy.
8093
8094 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
8095
8096         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
8097         symbol.  Call _dl_init rather than the old way.
8098
8099 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
8100
8101         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
8102         test for pointer in range of DSO address space.
8103
8104 2000-05-04  Andreas Jaeger  <aj@suse.de>
8105
8106         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
8107
8108 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8109
8110         * locale/findlocale.c (_nl_find_locale): Add new parameter to
8111         calls of _nl_make_l10nflist.
8112
8113         * libio/stdio.h: Make fseeko and ftello prototypes available is
8114         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
8115
8116         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
8117         real unsetenv implementation from 1999-07-29 [PR libc/1714].
8118
8119 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
8120
8121         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
8122         before calling tfind.
8123
8124 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
8125
8126         * resolv/resolv.h (res_querydomain): Remove redefinition to
8127         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
8128
8129 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8130
8131         * po/gl.po: Update from translation team.
8132
8133         * manual/intro.texi (Program Basics): Change section title.
8134         * manual/process.texi: Fix reference.
8135         (Executing a File): Add reference exec in other section.
8136         * manual/signal.texi: Fix reference.
8137         * manual/startup.texi: Document syscall function.
8138         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8139
8140 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8141
8142         * intl/libintl.h (bind_textdomain_codeset): New declaration.
8143         * intl/bindtextdom.c (set_binding_values): New function.
8144         (bindtextdomain): Call it.
8145         (bind_textdomain_codeset): New function.
8146         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
8147         (free_mem): Free each binding's codeset.
8148         * intl/gettextP.h (struct binding): Add codeset field.
8149         (_nl_find_domain): Add domainbinding argument.
8150         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
8151         Pass it to _nl_make_l10nflist.
8152         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
8153         (_nl_make_l10nflist): Add domainbinding argument.
8154         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
8155         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
8156         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
8157         locale_charset().
8158         * manual/message.texi: New node "Charset conversion in gettext".
8159
8160 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8161
8162         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
8163         appropriate.  Handle possible __read error.
8164
8165 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8166
8167         * intl/gettextP.h (__builtin_expect): Define as empty if not a
8168         compiler builtin.
8169         * intl/loadinfo.h (__builtin_expect): Likewise.
8170         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
8171         __builtin_expect where appropriate.
8172         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8173         * intl/localealias.c (extend_alias_table): Return an error indicator.
8174         (read_alias_file): Bail out if extend_alias_table fails.
8175
8176 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8177
8178         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
8179         * intl/localealias.c: Likewise.
8180
8181 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8182
8183         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
8184         Initialize domain->plural and domain->nplurals even if there is no
8185         nullentry.
8186
8187 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8188
8189         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
8190         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
8191         In case of failure, goto converted.
8192
8193 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
8194
8195         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
8196         * iconv/gconv_int.h (norm_add_slashes): Move to here.
8197         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
8198         __gconv_open.
8199
8200 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8201
8202         * intl/dcigettext.c (transcmp): Compare the domains as well.
8203         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
8204         not before.
8205         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
8206         <errno.h>.
8207
8208 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
8209
8210         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
8211         Reported by Bruno Haible.
8212
8213 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
8214
8215         * manual/arith.texi: Remove @w from @itemize.
8216
8217 2000-05-02  Andreas Jaeger  <aj@suse.de>
8218
8219         * conform/data/tar.h-data: Add some checks for specific values.
8220
8221         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
8222         and RAND_MAX.
8223
8224         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8225         FOPEN_MAX.
8226
8227         * conform/data/netinet/in.h-data: Add exact checks for the values
8228         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8229
8230         * conform/data/float.h-data: Add some minimal values.
8231
8232         * conform/conformtest.pl: Test for macros with string constants,
8233         check for minimum and maximum values.
8234         Add limits.h to headers.
8235
8236         * conform/data/cpio.h-data: Test for value of MAGIC.
8237
8238         * conform/data/limits.h-data: New file.
8239
8240 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8241
8242         * math/Makefile (headers): Add bits/fenvinline.h.
8243
8244 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8245
8246         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8247         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8248
8249         * posix/Versions: Change posix_spawnattr_getdefault and
8250         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8251         and posix_spawnattr_setsigdefault respectively.
8252         * posix/spawn.h: Likewise.
8253         * posix/spawnattr_getdefault.h: Likewise.
8254         * posix/spawnattr_setdefault.h: Likewise.
8255         * conform/data/spawn.h-data: Likewise.
8256
8257 2000-05-01  Andreas Jaeger  <aj@suse.de>
8258
8259         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8260
8261 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8262
8263         * manual/sysinfo.texi: Document getdomainname, setdomainname
8264         and sysctl.
8265         * manual/string.texi: Fix typo.
8266         * manual/terminal.texi: Document gtty and stty.
8267         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8268
8269 2000-04-30  Andreas Jaeger  <aj@suse.de>
8270
8271         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8272         accordance with Austin Draft.
8273
8274 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8275
8276         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8277         to recognize second character in comment line.
8278
8279         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8280         ENOBUFS if we are out of memory.
8281
8282         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8283         available if __USE_XOPEN2K.
8284         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8285         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8286         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8287         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8288         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8289         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8290         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8291         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8292
8293 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8294
8295         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8296         Recognize option -s, -c, and -l.
8297
8298 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8299
8300         * nscd/nscd.c: Start new session for nscd, drop privilegs
8301         to configured user if requested and no -S parameter are used.
8302         * nscd/nscd.conf: Add new option "server-user".
8303         * nscd/nscd_conf.c: Add support for new "server-user" option.
8304         * nscd/nscd.h: Add declaration for server_user variable.
8305         Based on patch by Chris Wing <wingc@engin.umich.edu>
8306
8307 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8308
8309         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8310         that changing the __restore and __restore_rt signal return code
8311         will break GDB.
8312
8313 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8314
8315         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8316         <sys/user.h>.
8317
8318 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8319
8320         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8321
8322 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8323
8324         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8325         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8326         arpa/inet.h.
8327         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8328         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8329         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8330         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8331         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8332         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8333         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8334         posix_fallocate, and posix_madvise.
8335         * conform/data/netdb.h-data: New file.
8336         * conform/data/pthread.h-data: Add pthread_barrier_t,
8337         pthread_barrierattr_t, pthread_barrier_destroy,
8338         pthread_barrier_init, pthread_barrier_wait,
8339         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8340         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8341         pthread_condattr_getclock, pthread_condattr_setclock,
8342         pthread_getcpuclockid, pthread_mutex_timedlock,
8343         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8344         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8345         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8346         * conform/data/sched.h-data: Add sched_ss_low_priority,
8347         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8348         SCHED_SPORADIC.
8349         * conform/data/semaphore.h-data: Add sem_timedwait.
8350         * conform/data/signal.h-data: Add SIGIO.
8351         * conform/data/spawn.h-data: New file.
8352         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8353         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8354         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8355         Fix typo in gmtime_r definition.
8356         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8357         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8358         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8359         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8360         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8361         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8362         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8363         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8364         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8365         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8366         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8367         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8368         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8369         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8370         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8371         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8372         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8373         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8374         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8375         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8376         typo in off_t definition.
8377         * conform/data/net/if.h-data: New file.
8378         * conform/data/netinet/in.h-data: New file.
8379         * conform/data/netinet/tcp.h-data: New file.
8380         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8381         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8382         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8383         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8384         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8385         and posix_typed_mem_open.
8386         * conform/data/sys/socket.h-data: New file.
8387         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8388         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8389         pthread_barrierattr_t, and pthread_spinlock_t.
8390         * conform/data/sys/un.h-data: New file.
8391         * conform/data/sys/utsname.h-data: New file.
8392
8393         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8394         parameter.
8395         * inet/gethstbyad.c (gethostbyname): Likewise.
8396         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8397         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8398         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8399         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8400         Likewise.
8401         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8402         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8403         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8404         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8405         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8406         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8407         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8408         and second parameter.
8409
8410         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8411         == NULL.
8412
8413 2000-04-29  Andreas Jaeger  <aj@suse.de>
8414
8415         * conform/data/arpa/inet.h-data: New file.
8416
8417 2000-04-28  Geoff Clare <gwc@unisoft.com>
8418
8419         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8420         path passed to ftw() or nftw() is an empty string.
8421         Closes PR libc/1710.
8422
8423 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8424
8425         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8426         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8427         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8428         * localedata/tst-mbswcs4.c: New file.
8429         * localedata/tst-mbswcs5.c: New file.
8430
8431         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8432         == NULL.  Little optimization.
8433
8434         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8435         DT_PREINIT_ARRAYSZ).
8436         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8437
8438         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8439         overflows in conversion from ASCII.
8440
8441 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8442
8443         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8444         * Makerules (full_config_sysdirs): Likewise.
8445         * MakeTAGS (full_config_sysdirs): Likewise.
8446
8447 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8448
8449         * .cvsignore: Remove linuxthreads.
8450         * po/.cvsignore: Remove *.pot.
8451         * posix/glob/.cvsignore: Removed.
8452         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8453
8454 2000-04-25  Andreas Jaeger  <aj@suse.de>
8455
8456         * conform/Makefile (distribute): Also distribute contents of
8457         subdirectories.
8458
8459         * Makerules (no_deps): Remove abi-versions.h.
8460
8461         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8462
8463 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8464
8465         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8466         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8467         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8468         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8469         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8470         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8471         objects.
8472
8473 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8474
8475         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8476
8477 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8478
8479         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8480         * intl/l10nflist.c: Likewise.
8481
8482 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8483
8484         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8485         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8486         * intl/textdomain.c [!_LIBC]: Likewise.
8487         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8488         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8489         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8490         syntax error.
8491
8492 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8493
8494         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8495         character set conversion also in the case the translation was found
8496         after a hash collision or through binary search.  Store the maximum
8497         index together with the converted message.  Use iconv() when available.
8498         In case of out of memory during conversion, return the unconverted
8499         translated string, not NULL.
8500
8501 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8502
8503         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8504         to avoid name clashes with the ia32 linker.
8505
8506 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8507
8508         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8509         handling.
8510
8511 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8512
8513         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8514         strtoumax, strfry, and memfrob.
8515         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8516         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8517
8518         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8519         if this function is available.
8520
8521         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8522         all values.
8523
8524 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8525
8526         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8527
8528 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8529
8530         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8531         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8532         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8533         * localedata/tst-mbswcs3.c: New file.
8534
8535 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8536
8537         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8538         characters.  Don't handle incomplete characters as errors.
8539         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8540         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8541         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8542         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8543         * localedata/tst-mbswcs2.c: New file.
8544
8545         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8546         stored character in state in UNPACK_BYTES macro.
8547         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8548         test for available characters, handle result of BODY code correctly.
8549         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8550         (distribute): Add tst-mbswcs.sh.
8551         Add rule to run tst-mbswcs.sh.
8552         * localedata/tst-mbswcs.sh: New file.
8553         * localedata/tst-mbswcs1.c: New file.
8554
8555 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8556
8557         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8558         allocation fixups centrally, fix __builtin_expect call, return NULL
8559         on failure, not NIS_NOMEMORY.
8560
8561 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8562
8563         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8564
8565         * intl/loadinfo.h (internal_function): Define if not already defined.
8566
8567 2000-04-27  Andreas Jaeger  <aj@suse.de>
8568
8569         * intl/libintl.h: Fix typo, reported by Bruno Haible
8570         <haible@clisp.cons.org>.
8571
8572 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8573
8574         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8575         setting the state to GMON_PROF_BUSY.
8576
8577 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8578
8579         * elf/dl-profile.c (_dl_start_profile): define all variables which
8580         do not have to be global as local variables.
8581
8582         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8583         patch.  Keep needed tests for failed memory allocation.
8584
8585         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8586         __builtin_expect saying that we don't normally expect to profile.
8587
8588         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8589         __builtin_expect where desirable.
8590
8591 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8592
8593         * manual/Makefile (chapters): Add syslog.
8594         * manual/syslog.texi: New file.
8595         * manual/math.texi: Fix references.
8596         * manual/terminal.texi: Likewise.
8597         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8598
8599 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8600
8601         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8602         stdlib.h was not included or __USE_XOPEN not defined.
8603
8604 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8605
8606         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8607         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8608
8609 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8610
8611         * manual/examples/subopt.c (mount_opts): Add missing terminating
8612         entry.
8613         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8614
8615         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8616         * libio/ftello.c: Likewise.
8617         * libio/ftello64.c: Likewise.
8618         * libio/ioftell.c: Likewise.
8619         * sysdeps/generic/memrchr.c: Likewise.
8620         * sysdeps/posix/libc_fatal.c: Likewise.
8621         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8622         * misc/fstab.c: Include <string.h> for strcmp prototype.
8623         * sysdeps/generic/ldsodefs.h: Likewise.
8624         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8625         Patch by Kurt Roeckx <Q@ping.be>.
8626
8627         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8628         Remove db-open.  Change all uses.
8629         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8630
8631 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8632
8633         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8634         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8635         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8636         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8637         with .set noat/at to shut up warnings.
8638         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8639         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8640         compilation if __NR_pciconfig_iobase is not defined.
8641         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8642         Add alias.
8643
8644 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8645
8646         * manual/sysinfo.texi: Fix typo.
8647         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8648         Replace "high precision time" with "high accuracy clock".
8649         Fix language.
8650         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8651
8652         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8653         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8654         instead of malloc.
8655         * nis/nis_subr.c: Use __builtin_expect.
8656         * nis/ypclnt.c: Likewise.
8657         * nis/nis_getservlist.c: Likewise.
8658         * nis/nis_creategroup.c: Likewise.
8659
8660         * nis/nis_callback.c (__nis_create_callback): Check result of
8661         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8662         (__nis_destroy_callback): Fix memory leaks.
8663
8664 2000-04-21  Andreas Jaeger  <aj@suse.de>
8665
8666         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8667         * sysdeps/mips/mips64/add_n.S: Likewise.
8668         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8669         * sysdeps/mips/mips64/lshift.S: Likewise.
8670         * sysdeps/mips/mips64/mul_1.S: Likewise.
8671         * sysdeps/mips/mips64/rshift.S: Likewise.
8672         * sysdeps/mips/mips64/setjmp.S: Likewise.
8673         * sysdeps/mips/mips64/sub_n.S: Likewise.
8674         * sysdeps/mips/mips64/submul_1.S: Likewise
8675         * sysdeps/unix/mips/sysdep.S: Likewise.
8676
8677         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8678         and update comment.  The strtab from _dl_relocate_object can be
8679         used.
8680
8681 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8682
8683         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8684         * iconv/iconv_close.c (iconv_close): Likewise.
8685         * iconv/iconv_open.c (iconv_open): Likewise.
8686
8687         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8688         __builtin_expect where useful.
8689
8690         * grp/initgroups.c (initgroups): Test for result of memory
8691         allocation and punt if it fails.
8692
8693         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8694         * grp/fgetgrent.c (fgetfrent): Likewise.
8695         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8696
8697 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8698
8699         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8700
8701 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8702
8703         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8704         don't search for NUL byte to decrement counter.
8705         Reported by Ulrich.Brink@sap.com.
8706
8707         * iconv/gconv_simple.c: Define separate functions to convert from
8708         UCS4/UCS4-LE to the internal encoding.
8709         * iconv/gconv_builtin.h: Use separate functions to convert from
8710         UCS4/UCS4-LE to the internal encoding.
8711         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8712         __gconv_transform_ucs4le_internal.
8713
8714         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8715         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8716
8717         * iconv/skeleton.c: Add some more __builtin_expect.
8718         * iconv/loop.c: Likewise.
8719
8720 2000-03-08  H.J. Lu  <hjl@gnu.org>
8721
8722         * posix/regex.c (regex_compile): Correctly handle "\{" when
8723         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8724
8725 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8726
8727         * manual/stdio.texi: Give advise about handling error when using
8728         stream functions.
8729         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8730
8731 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8732
8733         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8734         field to nelems * sizeof (uint32_t).
8735         * locale/programs/ld-address.c (address_output): Align word fields
8736         properly.
8737         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8738         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8739         field.
8740         Avoid giving arbitrary garbage in the crncystr field.
8741         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8742         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8743         fields.
8744         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8745         Don't restart idx pointers to idx end at the decimal_point_wc field.
8746         * locale/programs/ld-time.c (time_output): week_1stday should be
8747         word, not byte.  Align it properly.
8748
8749 2000-04-19  H.J. Lu  <hjl@gnu.org>
8750
8751         * csu/gmon-start.c (_start): Declared as "extern void".
8752         (etext): Likewise.
8753
8754 2000-04-18  Andreas Jaeger  <aj@suse.de>
8755
8756         * manual/install.texi (Running make install): Don't mention utmpd
8757         anymore.
8758
8759 2000-04-18  Andreas Jaeger  <aj@suse.de>
8760
8761         * linuxthreads/Versions: Use ld instead of ld.so.
8762
8763         * elf/Makefile (ld-map): Use ld.map.
8764
8765         * Versions.def: Use ld instead of ld.so.
8766         * elf/Versions: Likewise.
8767         * sysdeps/mach/hurd/Versions: Likewise.
8768
8769 2000-04-20  Andreas Jaeger  <aj@suse.de>
8770
8771         * elf/rtld.c (print_statistics): Move ifndef further up.
8772         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8773         (dl_main): Likewise.
8774
8775 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8776
8777         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8778         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8779
8780         * po/cs.po: Update from translation team.
8781
8782         * sysdeps/generic/updwtmp.c: Remove daemon support.
8783
8784         * login/Makefile (routines): Remove utmp_daemon.
8785
8786         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8787         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8788         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8789         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8790
8791         * elf/rtld.c: Display statitics option also if hp timing is not
8792         available.
8793
8794         * login/programs/connection.c: Removed.
8795         * login/programs/database.c Removed.
8796         * login/programs/error.c: Removed.
8797         * login/programs/request.c: Removed.
8798         * login/programs/xtmp.c: Removed.
8799         * login/programs/xtmp.h: Removed.
8800         * login/Makefile: Remove rules for utmpd.
8801         * login/README.utmpd: Removed.
8802         * login/utmp_daemon.c: Removed.
8803         * login/getutent_r.c: Remove references to daemon functions.
8804         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8805         declaration.
8806
8807 2000-04-18  Andreas Jaeger  <aj@suse.de>
8808
8809         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8810         2.2 for libnsl, libresolv, librt, libnss_*.
8811
8812         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8813
8814         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8815
8816 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8817
8818         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8819         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8820         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8821         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8822         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8823         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8824         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8825         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8826         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8827         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8828         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8829         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8830         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8831         it here.
8832         * sysdeps/unix/sysv/aix/msync.c: New file.
8833         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8834         * sysdeps/unix/sysv/aix/net/if.h: New file.
8835         * sysdeps/unix/sysv/aix/pipe.c: New file.
8836         * sysdeps/unix/sysv/aix/poll.c: New file.
8837         * sysdeps/unix/sysv/aix/rename.c: New file.
8838         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8839         * sysdeps/unix/sysv/aix/select.c: New file.
8840         * sysdeps/unix/sysv/aix/semctl.c: New file.
8841         * sysdeps/unix/sysv/aix/semget.c: New file.
8842         * sysdeps/unix/sysv/aix/semop.c: New file.
8843         * sysdeps/unix/sysv/aix/sendto.c: New file.
8844         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8845         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8846         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8847         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8848         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8849         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8850         * sysdeps/unix/sysv/aix/setsid.c: New file.
8851         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8852         * sysdeps/unix/sysv/aix/shmat.c: New file.
8853         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8854         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8855         * sysdeps/unix/sysv/aix/shmget.c: New file.
8856         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8857         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8858         * sysdeps/unix/sysv/aix/socket.c: New file.
8859         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8860         * sysdeps/unix/sysv/aix/speed.c: New file.
8861         * sysdeps/unix/sysv/aix/symlink.c: New file.
8862         * sysdeps/unix/sysv/aix/sync.c: New file.
8863         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8864         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8865         * sysdeps/unix/sysv/aix/times.c: New file.
8866         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8867         * sysdeps/unix/sysv/aix/umask.c: New file.
8868         * sysdeps/unix/sysv/aix/unlink.c: New file.
8869         * sysdeps/unix/sysv/aix/ustat.c: New file.
8870         * sysdeps/unix/sysv/aix/utimes.c: New file.
8871
8872 2000-04-18  Andreas Jaeger  <aj@suse.de>
8873
8874         * manual/startup.texi (Environment Access): Fix putenv prototype
8875         according to recent changes.
8876         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8877         PR libc/1692.
8878
8879         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8880         needed.
8881
8882 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8883
8884         * posix/Makefile (tests): Add tst-getaddrinfo.
8885         * posix/tst-getaddrinfo.c: New file.
8886
8887 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8888
8889         * manual/sysinfo.texi: Document that umount2 is not widely available.
8890
8891         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8892         signal timing is not really implemented.
8893
8894 2000-04-17  Andreas Jaeger  <aj@suse.de>
8895
8896         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8897
8898 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8899
8900         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8901         and inst_libdir.
8902
8903 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8904
8905         * manual/intro.texi: Change reference from System Information to
8906         System Management.
8907         * manual/users.texi: Likewise.
8908         * manual/conf.texi: Likewise.
8909         * manual/sysinfo.texi: Document mount, umount, and umount2.
8910         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8911
8912 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8913
8914         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8915         Create wnumstr as well as numstr to support wide character output
8916         correctly.
8917
8918 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8919
8920         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8921         modification and move it...
8922         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8923         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8924         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8925         switch to $(LD) on sparc-linux.
8926
8927 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8928
8929         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8930         and setresuid from sysdep_routines.
8931
8932 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8933
8934         * manual/Makefile (chapters): Add resource.
8935
8936         * manual/time.texi: Move section on resources to...
8937         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8938         and vtimes.
8939         * manual/setjmp.texi: Adjust back reference.
8940         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8941
8942         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8943         definition.
8944         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8945         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8946         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8947         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8948         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8949         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8950         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8951         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8952         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8953         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8954         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8955         * sysdeps/unix/sysv/aix/Implies: New file.
8956         * sysdeps/unix/sysv/aix/Versions: New file.
8957         * sysdeps/unix/sysv/aix/bind.c: New file.
8958         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8959         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8960         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8961         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8962         * sysdeps/unix/sysv/aix/chdir.c: New file.
8963         * sysdeps/unix/sysv/aix/chmod.c: New file.
8964         * sysdeps/unix/sysv/aix/chroot.c: New file.
8965         * sysdeps/unix/sysv/aix/creat.c: New file.
8966         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8967         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8968         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8969         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8970         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8971         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8972         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8973         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8974         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8975         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8976         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8977         * sysdeps/unix/sysv/aix/link.c: New file.
8978         * sysdeps/unix/sysv/aix/madvise.c: New file.
8979         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8980         * sysdeps/unix/sysv/aix/mknod.c: New file.
8981         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8982         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8983         * sysdeps/unix/sysv/aix/msgget.c: New file.
8984         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8985
8986 2000-04-17  Andreas Jaeger  <aj@suse.de>
8987
8988         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8989         as suggested by Ulrich Drepper.
8990         (__dl_runtime_resolve): Remove unused variable, initialize sym
8991         directly.
8992         (RTLD_START): Document OFFSET_GP_GOT.
8993         (OFFSET_GP_GOT): New magic value.
8994         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8995         (elf_machine_got_rel): Only declare strtab if needed.
8996         (elf_machine_relplt): Removed, it's not needed.
8997         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8998
8999         * sysdeps/mips/add_n.S: Add newline at EOF.
9000         * sysdeps/mips/rshift.S: Likewise.
9001         * sysdeps/mips/mul_1.S: Likewise.
9002         * sysdeps/mips/lshift.S: Likewise.
9003         * sysdeps/mips/addmul_1.S: Likewise.
9004
9005 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
9006
9007         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
9008
9009         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
9010         * elf/dl-lookup.c: Likewise.
9011         * elf/dl-init.c (_dl_init): Likewise.
9012         * elf/dl-fini.c (_dl_fini): Likewise.
9013         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9014         * elf/dl-close.c (_dl_close): Likewise.
9015         * elf/rtld.c (_dl_start_final): Likewise.
9016
9017         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
9018
9019 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9020
9021         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
9022         only fall back on using Linux.
9023
9024         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
9025         Before testing versions check that we actually loaded the object
9026         and whether we are in trace mode.  If not loaded during tracing don't
9027         test versions in this object.
9028         (_dl_check_all_versions): Take new parameter and pass to
9029         _dl_check_map_versions.
9030         * sysdeps/generic/ldsodefs.h: Update prototypes for
9031         _dl_check_all_versions and _dl_check_map_versions.
9032         * elf/rtld.c (struct version_check_args): Add dotrace.
9033         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
9034         (dl_main): Pass info about trace mode to version_check_doit.
9035         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
9036         _dl_check_all_versions.
9037
9038         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
9039         and getutmpx.
9040         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
9041
9042         * manual/argp.texi: Document index parameter of argp_parse.
9043         Fix typo.
9044         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
9045
9046 2000-04-14  Andreas Jaeger  <aj@suse.de>
9047
9048         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
9049         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
9050
9051         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
9052
9053 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
9054
9055         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
9056         compat_symbol call for old adjtime.
9057
9058         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
9059         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
9060
9061         * posix/Makefile (headers): Add spawn.h.
9062         (distribute): Add spawn_int.h.
9063         (routines): Add spawn_faction_init, spawn_faction_destroy,
9064         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
9065         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
9066         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
9067         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
9068         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
9069         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
9070         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
9071         posix_spawnattr_init, posix_spawnattr_destroy,
9072         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
9073         posix_spawnattr_getflags, posix_spawnattr_setflags,
9074         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
9075         and posix_spawnp.
9076         * posix/spawn.c: New file.
9077         * posix/spawn.h: New file.
9078         * posix/spawn_faction_addclose.c: New file.
9079         * posix/spawn_faction_adddup2.c: New file.
9080         * posix/spawn_faction_addopen.c: New file.
9081         * posix/spawn_faction_destroy.c: New file.
9082         * posix/spawn_faction_init.c: New file.
9083         * posix/spawn_int.h: New file.
9084         * posix/spawnattr_destroy.c: New file.
9085         * posix/spawnattr_getdefault.c: New file.
9086         * posix/spawnattr_getflags.c: New file.
9087         * posix/spawnattr_getpgroup.c: New file.
9088         * posix/spawnattr_getschedparam.c: New file.
9089         * posix/spawnattr_getschedpolicy.c: New file.
9090         * posix/spawnattr_getsigmask.c: New file.
9091         * posix/spawnattr_init.c: New file.
9092         * posix/spawnattr_setdefault.c: New file.
9093         * posix/spawnattr_setflags.c: New file.
9094         * posix/spawnattr_setpgroup.c: New file.
9095         * posix/spawnattr_setschedparam.c: New file.
9096         * posix/spawnattr_setschedpolicy.c: New file.
9097         * posix/spawnattr_setsigmask.c: New file.
9098         * posix/spawni.c: New file.
9099         * posix/spawnp.c: New file.
9100
9101         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
9102         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9103
9104 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9105
9106         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
9107         * malloc/malloc.c: Implement posix_memalign for glibc.
9108         * include/stdlib.h: Add prototype for __posix_memalign.
9109         * stdlib/stdlib.h: Add prototype for posix_memalign.
9110
9111 2000-04-14  Andreas Jaeger  <aj@suse.de>
9112
9113         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
9114         symidx correctly.
9115         (elf_machine_got_rel): Cast sym correctly.
9116
9117         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
9118         * sysdeps/mips/addmul_1.S: Likewise.
9119         * sysdeps/mips/lshift.S: Likewise.
9120         * sysdeps/mips/mul_1.S: Likewise.
9121         * sysdeps/mips/rshift.S: Likewise.
9122         * sysdeps/mips/sub_n.S: Likewise.
9123         * sysdeps/mips/submul_1.S: Likewise.
9124
9125         * stdlib/stdlib.h: Fix typo in comment.
9126
9127         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
9128         2.2 for libdl, ld and libm.
9129
9130         * sysdeps/generic/madvise.c: Fix typos.
9131
9132         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
9133
9134         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
9135
9136         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
9137         warnings.
9138
9139 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
9140
9141         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
9142         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
9143         Make old name weak alias.
9144         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
9145         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
9146         Make old name weak alias.
9147         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
9148
9149         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
9150         posix_fallocate, and posix_fallocate64.
9151         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
9152         posix_fallocate, and posix_fallocate64.
9153         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
9154         posix_fallocate, and posix_fallocate64.
9155         * sysdeps/generic/fadvise.c: New file.
9156         * sysdeps/generic/fadvise64.c: New file.
9157         * sysdeps/generic/fallocate.c: New file.
9158         * sysdeps/generic/fallocate64.c: New file.
9159         * sysdeps/posix/fallocate.c: New file.
9160         * sysdeps/posix/fallocate64.c: New file.
9161         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
9162         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
9163         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
9164         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
9165         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
9166         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
9167         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
9168         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
9169         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9170
9171         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
9172         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9173
9174 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9175
9176         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
9177         * misc/sys/mman.h (posix_madvise): Add prototype.
9178         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
9179         old name and posix_madvise weak aliases.
9180         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9181         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
9182         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
9183         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9184         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
9185         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9186         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9187
9188 2000-04-13  Andreas Jaeger  <aj@suse.de>
9189
9190         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
9191         versioning.
9192         (elf_machine_got_rel): Only add runtime display if needed.
9193         (elf_machine_got_rel): Handle symbol versioning.
9194
9195 2000-04-13  Andreas Jaeger  <aj@suse.de>
9196
9197         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
9198
9199         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
9200         default.
9201
9202         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
9203         with some applications.
9204         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
9205
9206         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
9207         * sysdeps/mips/bsd-_setjmp.S: Likewise.
9208         * sysdeps/mips/setjmp.S: Likewise.
9209
9210         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
9211
9212 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
9213
9214         * posix/globtest.sh: Work around inconsistency with expanding ~/
9215         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
9216
9217 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9218
9219         * posix/getconf.c: Add support for many more POSIX options.
9220         * sysdeps/posix/sysconf.c: Likewise.
9221         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
9222         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9223         _POSIX_SHELL.
9224         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9225         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9226         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9227         CLOCK_THREAD_CPUTIME_ID.
9228         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9229         CLOCK_PROCESS_CPUTIME_ID.
9230         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9231         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9232         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9233         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9234
9235         * malloc/Makefile (tests): Add tst-calloc.
9236         * malloc/tst-calloc.c: New file.
9237
9238         * sysdeps/arm/libm-test-ulps: New file.
9239
9240         * malloc/malloc.c: Undo all of today's changes.
9241
9242         * locale/programs/locale.c (show_info): Don't try to look into
9243         data for LC_ALL (there is none).
9244
9245         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9246         avoid writing over boundary.
9247         Patch by Greg McGary <gkm@eng.ascend.com>.
9248
9249         * sysdeps/arm/memprof.h: New file.
9250
9251 2000-04-12  Andreas Jaeger  <aj@suse.de>
9252
9253         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9254
9255         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9256         for memmem declaration.
9257
9258 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9259
9260         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9261         to -1.
9262         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9263
9264         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9265         mode is invalid.
9266         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9267         Patch by Bart Veer <bartv@redhat.com>.
9268
9269         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9270         function interface.
9271
9272 2000-04-11  Andreas Jaeger  <aj@suse.de>
9273
9274         * sysdeps/mips/dl-machine.h: Update some comments.
9275         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9276
9277 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9278
9279         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9280         _POSIX_SHARED_MEMORY_OBJECTS.
9281
9282         * rt/Makefile (tests): Add tst-shm.
9283         Add rules to generate tst-shm.
9284         * rt/tst-shm.c: New file.
9285
9286         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9287         for descriptor.
9288
9289         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9290         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9291         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9292         * sysdeps/generic/shm_open.c: New file.
9293         * sysdeps/generic/shm_unlink.c: New file.
9294         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9295         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9296         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9297          __endmntent, __getmntent_r, __setmntent, and __statfs.
9298
9299         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9300         fragmentation by allocating new memory at the end instead of
9301         reallocating.
9302
9303         * posix/globtest.sh: Fix last change.
9304
9305 2000-04-10  Philip Blundell  <philb@gnu.org>
9306
9307         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9308         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9309         IPV6_DROP_MEMBERSHIP.
9310         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9311         Likewise.
9312
9313 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9314
9315         * elf/readlib (process_file): Close streams in case of an error.
9316
9317 2000-04-09  Andreas Jaeger  <aj@suse.de>
9318
9319         * elf/readlib.c (process_file): Check if file is big enough to
9320         contain aout and ELF headers.
9321         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9322
9323 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9324
9325         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9326
9327 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9328
9329         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9330         stream unbuffered.
9331         * rt/Makefile (tests): Add tst-clock.
9332         Add rules to build tst-clock.
9333         * rt/tst-clock.c: New file.
9334         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9335         about initialization of nsec.
9336         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9337         about initialization of freq.  Set retval to zero if successful.
9338         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9339
9340 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9341
9342         * Versions.def (librt): Add GLIBC_2.2.
9343         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9344         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9345         timer_getoverr, timer_gettime, and timer_settime.
9346         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9347         clock_settime, timer_create, timer_delete, timer_getoverrun,
9348         timer_gettime, and timer_settime.
9349         * sysdeps/generic/clock_getcpuclockid.c: New file.
9350         * sysdeps/generic/get_clockfreq.c: New file.
9351         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9352         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9353         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9354         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9355         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9356         * sysdeps/unix/i386/i686/Implies: New file.
9357         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9358         * time/Makefile (routines): Move clock_getres, clock_gettime,
9359         clock_settime, timer_create, timer_delete, timer_getoverr,
9360         timer_gettime, and timer_settime to rt/Makefile.
9361         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9362         clock_settime, timer_create, timer_delete, timer_getoverrun,
9363         timer_gettime, and timer_settime.
9364         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9365
9366         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9367         and not const as attribute name.
9368
9369 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9370
9371         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9372
9373 2000-04-10  Andreas Schwab  <schwab@suse.de>
9374
9375         * posix/globtest.sh: Skip tests that depend on unreadable
9376         directories if run as root.
9377
9378 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9379
9380         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9381         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9382
9383 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9384
9385         * sysdeps/unix/clock_gettime.c: New file.
9386         * sysdeps/unix/clock_settime.c: New file.
9387         * sysdeps/posix/clock_getres.c: New file.
9388
9389         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9390
9391         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9392         lseek call be passing in a buffer which never allow a successful
9393         first getdents syscall if not at leas the initial entry can be
9394         stored in the user buffer.
9395
9396         * localedata/Makefile: Add rules to clean up directories created by
9397         new strfmon tests.
9398
9399 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9400
9401         * localedata/tst-fmon.data: Added new tests for strfmon()
9402         using test locales with all combinations of cs_precedes,
9403         sign_posn and sep_by_space.
9404         * localedata/tst-fmon.sh: Updated to support the new tests.
9405         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9406         the localedef source for the new strfmon() test locale.
9407         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9408         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9409         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9410         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9411         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9412         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9413         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9414         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9415         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9416         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9417         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9418         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9419         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9420         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9421
9422         * stdlib/strfmon.c: Correct problems with missing or extra
9423         spaces for unusual combinations of sign_posn and sep_by_space.
9424         Improved left-precision alignment code.
9425
9426 2000-04-07  Andreas Jaeger  <aj@suse.de>
9427
9428         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9429
9430 2000-04-10  Andreas Jaeger  <aj@suse.de>
9431
9432         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9433
9434 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9435
9436         Implement handling of restartable conversion functions according to
9437         ISO C.
9438         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9439         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9440         * iconv/gconv.c: Pass additional parameter to conversion function.
9441         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9442         (internal_ucs4le_loop_single): New function.
9443         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9444         (__gconv_transform_internal_ascii): Likewise.
9445         (__gconv_transform_internal_utf8): Likewise.
9446         (__gconv_transform_utf8_internal): Likewise.
9447         (__gconv_transform_ucs2_internal): Likewise.
9448         (__gconv_transform_internal_ucs2): Likewise.
9449         (__gconv_transform_ucs2reverse_internal): Likewise.
9450         (__gconv_transform_internal_ucs2reverse): Likewise.
9451         (internal_ucs4le_loop_unaligned): Before return
9452         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9453         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9454         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9455         * iconv/loop.c: Fit in definition of function to convert one character
9456         for processing of left-over bytes from the state object.
9457         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9458         inend to match names in loop functions.
9459         (RESET_INPUT_BUFFER): Change apprpriately.
9460         (gconv): If needed, call function to process bytes from the state
9461         object.  Similar at the end: store left over bytes if input is
9462         incomplete.
9463         Take extra argument and add new argument to all calls of the
9464         conversion function.
9465         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9466         information in the state object to not conflict with length count.
9467         * iconvdata/iso-2022-jp.c: Likewise.
9468         * iconvdata/iso-2022-kr.c: Likewise.
9469         * iconvdata/unicode.c: Adjust for change change in parameters of
9470         skeleton function.
9471         * iconvdata/utf-16.c: Likewise.
9472         * libio/iofwide.c: Add new parameter to all calls of conversion
9473         function.
9474         * wcsmbs/btowc.c: Likewise.
9475         * wcsmbs/mbrtowc.c: Likewise.
9476         * wcsmbs/mbsnrtowcs.c: Likewise.
9477         * wcsmbs/mbsrtowcs.c: Likewise.
9478         * wcsmbs/wcrtomb.c: Likewise.
9479         * wcsmbs/wcsnrtombs.c: Likewise.
9480         * wcsmbs/wcsrtombs.c: Likewise.
9481         * wcsmbs/wctob.c: Likewise.
9482
9483         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9484         MAX_NEEDED_INPUT.
9485
9486 2000-04-07  Andreas Jaeger  <aj@suse.de>
9487
9488         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9489         newer kernels.
9490
9491 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9492
9493         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9494         element a union to allow byte access.
9495         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9496         mbstate_t.
9497         * iconvdata/iso-2022-jp.c: Likewise.
9498         * iconvdata/iso-2022-kr.c: Likewise.
9499         * wcsmbs/mbsinit.c: Likewise.
9500         * stdlib/mblen.c: Likewise.
9501         * stdio-common/printf-parse.h: Likewise.
9502
9503 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9504
9505         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9506         kernel does not allow relative seeks on descriptors associated
9507         with directories.  Go back to get the position in the directory
9508         every time we enter the function.  Return -1 and set errno if one
9509         entry could be read from the kernel but does not fit into the
9510         buffer passed in by the user.
9511
9512         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9513         Support ..(2).. ellipsis.
9514         (parse_charmap): Recognize ..(2).. etc and pass step down.
9515         Correctly generate names for UCS4 characters.
9516
9517         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9518         (ctype_finish): We know the wide character value for <SP>,
9519         don't search.
9520         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9521         (charclass_ucs4_ellipsis): Likewise.
9522         (read_translit_ignore_entry): Store ellipsis step.
9523         (ctype_read): Recognize ..(2).. etc and pass step down.
9524
9525         * locale/programs/linereader.c (lr_token): When seeing comment
9526         character ignore only rest of line in sources but stop at escaped
9527         newline.
9528         Recognize ..(2).. and ....(2).....
9529
9530         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9531         and tok_ellipsis4_2.
9532
9533 2000-04-06  Andreas Jaeger  <aj@suse.de>
9534
9535         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9536         removed, remove it here also.
9537         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9538         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9539         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9540         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9541
9542 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9543
9544         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9545         include bits/sigcontext.h.
9546         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9547
9548 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9549
9550         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9551         collation symbol definition.  Value in quivalence definition must
9552         be defined, don't check that it is not.
9553
9554         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9555         values as character names.
9556
9557         * locale/programs/ld-ctype.c (get_character): Handle missing
9558         repertoire map correctly.
9559
9560 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9561
9562         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9563         because it is used in generic code.
9564         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9565         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9566         * intl/gettext.c: Include <locale.h>.
9567         * intl/ngettext.c: Likewise.
9568
9569 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9570
9571         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9572         socklen_t type for size.
9573         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9574         init function interface.
9575         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9576         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9577         sys/ucontext.h.
9578         (__jmp_buf): Declare the whole type structure here, don't use
9579         ucontext.
9580
9581 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9582
9583         * iconv/skeleton.c (put16u): Fix typo.
9584         Reported by Bruno Haible <haible@ilog.fr>.
9585
9586         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9587         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9588         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9589         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9590         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9591         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9592
9593         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9594         * Makefile (distribute): Add abi-versions.awk and
9595         firstversions.awk.
9596         Patches by Torsten Duwe <duwe@caldera.de>.
9597
9598 2000-04-05  Andreas Schwab  <schwab@suse.de>
9599
9600         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9601
9602 2000-04-05  Andreas Schwab  <schwab@suse.de>
9603
9604         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9605         entry point, used on Hurd.
9606
9607 2000-04-04  Andreas Jaeger  <aj@suse.de>
9608
9609         * intl/Makefile: Only run the gettext test with shared libraries.
9610
9611 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9612
9613         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9614         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9615
9616 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9617
9618         * Makeconfig: Undo last change.
9619         * configure.in: If --disable-shared was given, don't set VERSIONING,
9620         don't define DO_VERSIONING, and don't give scare warning for no
9621         versioning.
9622         * configure: Regenerated.
9623
9624 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9625
9626         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9627
9628 2000-04-04  Andreas Jaeger  <aj@suse.de>
9629
9630         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9631
9632 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9633
9634         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9635         STV_HIDDEN and STV_INTERNAL during lookup.
9636         (profile_fixup): Likewise.
9637         * elf/dl-reloc.c (RESOLVE): Likewise.
9638
9639         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9640         unaligned so that it compiles for system which need unaligned
9641         access handling.
9642
9643 2000-04-04  Andreas Schwab  <schwab@suse.de>
9644
9645         * elf/cache.c (print_entry): Only look at the type field when
9646         printing the type.
9647
9648 2000-04-04  Andreas Schwab  <schwab@suse.de>
9649
9650         * iconvdata/big5.c (BODY): Fix typo.
9651
9652 2000-04-04  Andreas Schwab  <schwab@suse.de>
9653
9654         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9655         function interface.  Remove unused _dl_start_user entry point.
9656
9657 2000-04-03  Andreas Jaeger  <aj@suse.de>
9658
9659         * include/arpa/inet.h (__inet_aton): Add protoype.
9660
9661 2000-04-01  Andreas Jaeger  <aj@suse.de>
9662
9663         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9664
9665         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9666         * sysdeps/mach/mips/thread_state.h: Likewise.
9667
9668         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9669         * sysdeps/generic/fegetenv.c: Likewise.
9670         * sysdeps/generic/fesetenv.c: Likewise.
9671         * sysdeps/generic/feupdateenv.c: Likewise.
9672         * sysdeps/generic/fraiseexcpt.c: Likewise.
9673         * sysdeps/generic/fsetexcptflg.c: Likewise.
9674         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9675         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9676         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9677         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9678
9679 2000-04-02  H.J. Lu  <hjl@gnu.org>
9680
9681         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9682
9683 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9684
9685         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9686         (add_name_to_object): Add cast in malloc call.
9687         (fillin_rpath): Optimize loop to initialize ->status a bit.
9688
9689         * sysdeps/i386/dl-machine.h: Undo last change.
9690         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9691         Restore %edx register after call here.
9692
9693         * sysdeps/arm/atomicity.h: New file.
9694         Contributed by Jesper Skov <jskov@redhat.com>.
9695
9696 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9697
9698         * Makeconfig (preprocess-versions): Undo last change.
9699         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9700
9701         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9702         here, before we might move the stack.
9703         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9704         (init1): And not here.
9705
9706         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9707         change, to restore argc value in call-clobbered register after
9708         RTLD_START_SPECIAL_INIT, which will contain a call.
9709
9710         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9711         allocating and initializing L->l_initfini.
9712
9713         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9714
9715 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9716
9717         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9718         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9719         (open_path): Change type of fourth parameter.  Make pointer to array
9720         of pointers.  Create variable dirs with original type.
9721         Track whether any directory for the object exists and if not,
9722         change *DIRSP to (void*) -1 to signal there is no such search path.
9723         (_dl_map_object): Change all calls of open_path.
9724         Rewrite decompose_rpath calls.
9725
9726 2000-03-31  Andreas Schwab  <schwab@suse.de>
9727
9728         * string/strfry.c: Declare STATE as array of char instead of int
9729         and do not initialize it (done by initstate_r).  Pass correct
9730         size.
9731
9732 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9733
9734         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9735
9736         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9737         instruction out of the code.
9738
9739 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9740
9741         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9742         element at this position.
9743
9744         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9745         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9746         l_reldeps elements.
9747         * elf/dl-lookup.c (add_dependency): New function.
9748         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9749         dynamically loaded object.
9750         (_dl_lookup_symbol_skip): Likewise.
9751         (_dl_lookup_versioned_symbol): Likewise.
9752         (_dl_lookup_versioned_symbol_skip): Likewise.
9753         * elf/dl-open.c: Don't define _dl_load_lock here...
9754         * elf/rtld.c: ...but here...
9755         * elf/dl-support.c: ...and here.
9756         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9757         through relocation.
9758         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9759         relocations.
9760         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9761         anymore.
9762         * dlfcn/glrefmain.c: Add one more debug message.
9763
9764         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9765         command line.
9766         * Makerules (sysd-versions): Use ( ) instead of { }.
9767
9768         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9769         optimize for the non-debugging case.
9770         * elf/dl-lookup.c: Likewise.
9771         * sysdeps/generic/libc-start.c: Likewise.
9772
9773 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9774
9775         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9776         (init1): Don't initialize __environ here, since init already does it.
9777         (first_init): New function, broken out of _init.
9778         (_hurd_stack_setup): Use it.
9779         [SHARED] (_dl_init_first): New function, renamed from old _init.
9780         (init1) [SHARED]: Don't call posixland_init here.
9781         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9782         [SHARED] (_init): Define as alias for posixland_init.
9783         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9784         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9785         RTLD_START_SPECIAL_INIT before calling initializers.
9786         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9787         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9788         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9789         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9790
9791         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9792         since we define the function with the name `tmpfile'.
9793
9794         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9795         * hurd/Versions: Likewise.
9796
9797 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9798
9799         * elf/dl-runtime.c (fixup): Fix typo in comment.
9800
9801         * resolv/netdb.h (getnameinfo): All length parameters are of type
9802         socklen_t.
9803         * inet/getnameinfo.c: Likewise.
9804
9805 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9806
9807         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9808         (gethostname): Change type of second parameter to socklen_t.
9809         * include/unistd.h (__gethostname): Change type of second
9810         parameter to socklen_t.
9811         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9812         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9813         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9814         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9815         Likewise.
9816         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9817         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9818         Allow definition elsewhere.
9819         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9820         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9821         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9822         * sysdeps/generic/bits/types.h: Define __socklen_t.
9823         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9824         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9825         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9826         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9827         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9828         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9829         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9830
9831         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9832         (inet_lnaof): Likewise.
9833         (inet_netof): Likewise.
9834         (inet_network): Likewise.
9835         (inet_aton): Likewise.
9836         (inet_makeaddr): Change parameter types to in_addr_t.
9837         (inet_neta): Likewise.
9838         (inet_ntop): Change type of last parameter to socklen_t.
9839         (inet_aton): Only make available if __USE_MISC.
9840         (inet_neta): Likewise.
9841         (inet_net_ntop): Likewise.
9842         (inet_net_pton): Likewise.
9843         (inet_nsap_ntoa): Likewise.
9844
9845         * inet/in.h: Define in_port_t type.
9846         Define in_addr_t type.
9847         (struct in_addr): Use in_addr_t in definition.
9848         (IN_CLASSA): Use cast to in_addr_t.
9849         (IN_CLASSB): Likewise.
9850         (IN_CLASSC): Likewise.
9851         (IN_CLASSD): Likewise.
9852         (IN_EXPERIMENTAL): Likewise.
9853         (IN_BADCLASS): Likewise.
9854         (INADDR_ANY): Likewise.
9855         (INADDR_BROADCAST): Likewise.
9856         (INADDR_NONE): Likewise.
9857         (INADDR_LOOPBACK): Likewise.
9858         (INADDR_UNSPEC_GROUP): Likewise.
9859         (INADDR_ALLHOSTS_GROUP): Likewise.
9860         (INADDR_ALLRTRS_GROUP): Likewise.
9861         (INADDR_MAX_LOCAL_GROUP): Likewise.
9862         (struct sockaddr_in): Use in_port_t for sin_port element.
9863         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9864         Use uint8_t instead of u_int8_t.
9865
9866         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9867         Call __inet_aton instead of inet_aton.
9868         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9869
9870         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9871         (innetgr): Likewise.
9872         (struct addrinfo): Use socklen_t for ai_addrlen element.
9873
9874         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9875         IPV6_RECVERR): New defines.
9876
9877         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9878         * inet/getnetbyad.c: Likewise.
9879         * inet/getnetbyad_r.c: Likewise.
9880         * nis/nss_nis/nis-network.c: Likewise.
9881         * nis/nssplus_nis/nisplus-network.c: Likewise.
9882         * nss/nss_files/files-network.c: Likewise.
9883         * resolv/netdb.h: Define uint32_t if not already happened.
9884         Include bits/netdb.h.  Remove definition of struct netent.
9885         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9886         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9887         * sysdeps/generic/bits/netdb.h: New file.
9888         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9889
9890         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9891         (tests): Add glrefmain.
9892         Add rules to build modules and run tests.  Ignore result of glrefmain
9893         for now since it fails.
9894         * dlfcn/glrefmain.c: New file.
9895         * dlfcn/glreflib1.c: New file.
9896         * dlfcn/glreflib2.c: New file.
9897
9898         * test-skeleton.c: Include <string.h> for strsignal prototype.
9899
9900         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9901         to be missing.
9902
9903         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9904         former init-first.h.  Initialize __libc_multiple_libcs.
9905
9906 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9907
9908         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9909         #if expression for use of unaligned function to the one used in
9910         the definition of these functions.
9911         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9912         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9913         (internal_ucs4le_loop_unaligned): New function.
9914
9915         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9916         (tests): Add order.
9917         (module-names): Add dep1, dep2, dep3, and dep4.
9918         Add dependencies for dep* modules and order.
9919         Define rule for order.out which checks the result.
9920         * elf/dep1.c: New file.
9921         * elf/dep2.c: New file.
9922         * elf/dep3.c: New file.
9923         * elf/dep4.c: New file.
9924         * elf/order.c: New file.
9925
9926         * elf/dl-init.c: Fix typo in comment.
9927
9928 2000-03-31  Andreas Jaeger  <aj@suse.de>
9929
9930         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9931         init function interface.
9932         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9933
9934 2000-03-31  Andreas Jaeger  <aj@suse.de>
9935
9936         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9937         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9938         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9939         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9940         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9941
9942         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9943         anymore, update comment.
9944
9945         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9946
9947         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9948         SHLIB_COMPAT - the struct is always needed.
9949
9950 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9951
9952         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9953         * elf/dl-support.c: Define _dl_starting_up.
9954
9955 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9956
9957         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9958         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9959
9960         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9961
9962         * elf/Makefile (dl-routines): Remove preinit.
9963         * elf/Versions: Remove _dl_preinit.
9964         * elf/dl-preinit.c: Removed.  Move content into...
9965         * elf/dl-init.c: ...here.
9966         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9967
9968         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9969         elements.
9970
9971 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9972
9973         * stdlib/strfmon.c: Corrected problems with the code that
9974         sets default values for [np]_sep_by_space and
9975         [np]_sign_posn; also the new positive/negative alignment
9976         code from the previous patch was not quite right for
9977         [np]_sign_posn = 0.
9978
9979         * localedata/tst-fmon.data: Changes corresponding to the
9980         two sets of fixes made to stdlib/strfmon.c.
9981
9982 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9983
9984         * malloc/malloc.c: Declare bit flags UL so that they will not
9985         default to int size when being inverted.
9986
9987 2000-03-29  Andreas Jaeger  <aj@suse.de>
9988
9989         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9990         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9991
9992 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9993             Ralf Baechle <ralf@uni-koblenz.de>
9994
9995         * Makeconfig: Introduce new variable SHARED to mark code used in
9996         the shared library.
9997         * elf/dl-close.c: Use it instead of PIC.
9998         * elf/dl-load.c: Likewise.
9999         * elf/dl-open.c: Likewise.
10000         * hurd/geteuids.c: Likewise.
10001         * include/libc-symbols.h: Likewise.
10002         * include/shlib-compat.h: Likewise.
10003         * libio/freopen.c: Likewise.
10004         * linuxthreads/cancel.c: Likewise.
10005         * linuxthreads/pthread.c: Likewise.
10006         * linuxthreads/wrapsyscall.c: Likewise.
10007         * nss/nsswitch.c: Likewise.
10008         * stdio-common/vfprintf.c: Likewise.
10009         * sysdeps/arm/init-first.c: Likewise.
10010         * sysdeps/i386/init-first.c: Likewise
10011         * sysdeps/generic/init-first.c: Likewise.
10012         * sysdeps/generic/libc-start.c: Likewise.
10013         * sysdeps/mips/init-first.c: Likewise.
10014         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10015         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10016         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
10017         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
10018         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
10019
10020         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
10021
10022 2000-03-29  Andreas Jaeger  <aj@suse.de>
10023
10024         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
10025         Use D_PTR to access relocated entries in l_info.
10026         (elf_machine_rela): Likewise.
10027
10028         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
10029         Likewise.
10030         (elf_machine_rela): Likewise.
10031
10032         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
10033         Likewise.
10034         (__elf_machine_fixup_plt): Likewise.
10035         (__process_machine_rela): Likewise.
10036
10037         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
10038         (elf_machine_rela): Likewise.
10039
10040         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
10041         (elf_machine_rel): Likewise.
10042
10043         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
10044         (elf_machine_fixup_plt): Likewise.
10045         (elf_machine_rela): Likewise.
10046
10047 2000-03-29  Andreas Jaeger  <aj@suse.de>
10048
10049         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
10050         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
10051         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
10052         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
10053         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10054         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
10055         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
10056         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
10057         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
10058         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
10059         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
10060         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
10061         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
10062         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
10063         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
10064
10065         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
10066         macros, remove K&R prototypes.
10067
10068 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10069
10070         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
10071         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
10072         (PR libc/1677).
10073
10074 2000-03-30  Andreas Jaeger  <aj@suse.de>
10075
10076         * misc/sys/cdefs.h: Remove K&R support.
10077
10078 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10079
10080         * iconv/skeleton.c: Avoid compiling unaligned versions in some
10081         more cases.
10082         * iconv/loop.c: Likewise.
10083
10084 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
10085
10086         * iconv/loop.c (put16): Remove __const. Fix access index.
10087         (put32): Remove __const. Use uint32_t instead of uint16_t.
10088         * iconv/skeleton.c: Likewise.
10089
10090 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
10091
10092         * mach/Versions (libc: GLIBC_2.0)
10093         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
10094         __vm_allocate on this.
10095         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
10096         mutex- and spinlock-related symbols on this.
10097         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10098         New version set.  Lock-related symbols go here instead in this case.
10099         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
10100         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
10101         cthread_getspecific, cthread_setspecific, __libc_getspecific.
10102         * hurd/Versions
10103         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
10104         Put them here instead.
10105         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
10106         New version set.  Those cthreads symbols go here instead in this case.
10107         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
10108
10109 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
10110
10111         * elf/dl-init.c (_dl_init): We don't need to call constructors
10112         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
10113
10114         Implement dynamic determination of constructor/destructor order in
10115         the dynamic linker.
10116         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
10117         (GLIBC_2.2): Add _dl_init.
10118         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
10119         r_duplist is not anymore allocated separately.  l_initfini is and
10120         therefore free it if necessary.
10121         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
10122         malloc block.  Otherwise allocate l_initfini list only.
10123         Put dependencies for the object in l_initfini list.
10124         Sort dependencies for the object to be loaded topologically.
10125         * elf/dl-fini.c: Before running the destructors sort the topologically.
10126         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
10127         call constructors instead of iterating over the pointers.  Get list of
10128         objects for which to run constructors from l_initfini element. Accept
10129         argc, argv, and env as parameters and pass them to the constructors.
10130         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
10131         with size of dynamic section.
10132         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
10133         _dl_init_next and calling constructors ourself.
10134         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
10135         Take argc, argv, and env as parameters and pass them to the
10136         constructors.  Rewrite to call all constructors and not iterate over
10137         the pointers.
10138         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
10139         precompute l_initcount and l_preinitcount.
10140         * elf/link.h (struct link_map): Add l_ldnum member.
10141         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
10142         l_initcount, and l_preinitcount.  Add l_initfini.
10143         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
10144         one for _dl_init.
10145         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
10146         function interface.
10147         * sysdeps/unix/sysv/linux/init-first.h: Removed.
10148         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
10149         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
10150         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
10151         conventions now match.
10152
10153         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
10154         effect for shared objects.  Don't emit message and call only for
10155         static library.
10156
10157 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
10158
10159         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
10160         CSA_Z243.4-1985-1..UCS2.
10161         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
10162         ISO-8859-10..UCS2.
10163
10164 2000-03-29  Andreas Jaeger  <aj@suse.de>
10165
10166         * include/unistd.h: Remove duplicate entry for __rmdir.
10167         Remove declaration of __mkdir since __mkdir is declared in
10168         sys/stat.h.
10169
10170         * manual/creature.texi (Feature Test Macros): Fix typo, reported
10171         by Michael Deutschmann <michael@talamasca.ocis.net>.
10172
10173         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
10174         * sysdeps/mips/fpu/fegetenv.c: Likewise.
10175         * sysdeps/mips/fpu/fesetenv.c: Likewise.
10176         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
10177         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
10178
10179 2000-03-28  Andreas Jaeger  <aj@suse.de>
10180
10181         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
10182         declaration, the prototype is defined via bits/mathcalls.h.
10183         (__sincosf): Likewise.
10184         (__sincosl): Likewise.
10185         (ldexp): Likewise.
10186         (ldexpf): Likewise.
10187         (ldexpl): Likewise.
10188         (__finite): Likewise.
10189         (__inline_mathcodeNP): New macro without prototype
10190         declarations.
10191         (__inline_mathcodeNP2): Likewise.
10192         (__inline_mathcodeNP3): Likewise.
10193         (__inline_mathcodeNP_): Likewise.
10194         (__inline_mathcodeNP2_): Likewise.
10195         (__inline_mathcodeNP3_): Likewise.
10196         (__inline_mathopNP): Likewise.
10197         (__inline_mathop_declNP): Likewise.
10198         (__inline_mathop_declNP_): Likewise.
10199         (__inline_mathcode_): Use __inline_mathcodeNP_.
10200         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
10201         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
10202         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
10203         (__expm1l): Don't define prototype, the prototype is defined via
10204         bits/mathcalls.h.
10205         (exp): Likewise.
10206         (__expl): Likewise.
10207         (tan): Likewise.
10208         (atan2): Likewise.
10209         (__atan2l): Likewise.
10210         (fmod): Likewise.
10211         (pow): Likewise.
10212         (fabsf): Likewise.
10213         (fabsl): Likewise.
10214         (__fabsl): Likewise.
10215         (asin): Likewise.
10216         (acos): Likewise.
10217         (sinh): Likewise.
10218         (cosh): Likewise.
10219         (tanh): Likewise.
10220         (floor): Likewise.
10221         (ceil): Likewise.
10222         (expm1): Likewise.
10223         (log1p): Likewise.
10224         (asinh): Likewise.
10225         (acosh): Likewise.
10226         (atanh): Likewise.
10227         (hypot): Likewise.
10228         (logb): Likewise.
10229         (fma): Likewise.
10230         (drem): Likewise.
10231         (sqrt): Likewise.
10232         (__sqrtl): Likewise.
10233         (sin): Likewise.
10234         (cos): Likewise.
10235         (atan): Likewise.
10236         (log): Likewise.
10237         (log10): Likewise.
10238         (asinh): Likewise.
10239         (log2): Likewise.
10240         (rint): Likewise.
10241
10242 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10243
10244         * Makerules: If make variable md5 is defined to yes after
10245         generating dependencies generate MD5 sum for the object.
10246
10247         * iconv/gconv_builtin.h: Fix length in transformation definition
10248         for UNICODEBIG.
10249
10250         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10251
10252         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10253         allow as well reading from/writing to unaligned addresses on machines
10254         which don't support this in hardware.  Use FCTNAME macro to define
10255         function name.  Include the file a second time for platforms which
10256         need special unaligned handling.
10257         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10258         to access potentially unaligned addresses.  These macros are intended
10259         to be used only outside the loops.
10260         (unaligned): New definition.  In case the machine can handle unaligned
10261         access define as zero.  Otherwise as a variable which is initialized
10262         as nonzero in case the buffer passed in at runtime is unaligned with
10263         respect to the character set encoding involved.
10264         Call aligned or unaligned looop functions according to unaligned
10265         variable.
10266         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10267         of direct casting pointer to potentially handle unaligned memory
10268         accesses.
10269         * iconvdata/8bit-generic.c: Likewise.
10270         * iconvdata/ansi_x3.110.c: Likewise.
10271         * iconvdata/big5.c: Likewise.
10272         * iconvdata/euc-cn.c: Likewise.
10273         * iconvdata/euc-jp.c: Likewise.
10274         * iconvdata/euc-kr.c: Likewise.
10275         * iconvdata/euc-tw.c: Likewise.
10276         * iconvdata/gbk.c: Likewise.
10277         * iconvdata/iso-2022-cn.c: Likewise.
10278         * iconvdata/iso-2022-jp.c: Likewise.
10279         * iconvdata/iso-2022-kr.c: Likewise.
10280         * iconvdata/iso646.c: Likewise.
10281         * iconvdata/iso_6937-2.c: Likewise.
10282         * iconvdata/iso_6937.c: Likewise.
10283         * iconvdata/johab.c: Likewise.
10284         * iconvdata/sjis.c: Likewise.
10285         * iconvdata/t.61.c: Likewise.
10286         * iconvdata/uhc.c: Likewise.
10287         * iconvdata/unicode.c: Likewise.
10288         * iconvdata/utf-16.c: Likewise.
10289
10290         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10291         prototypes.
10292
10293         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10294         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10295         public.
10296         * malloc/mcheck.h (mcheck_check_all): Declare.
10297
10298         * stdio-common/Makefile (tests): Add tst-obprintf.
10299
10300 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10301
10302         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10303         Declare pthread_sigmask.
10304
10305         * csu/version.c: Add 2000 to copyright years.
10306         Remove Emacs local variables section.
10307
10308 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10309
10310         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10311         __gconv_transform_internal_ucs2little): Remove declarations.
10312         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10313         __gconv_transform_internal_ucs2): Never need to bswap_16.
10314         (__gconv_transform_ucs2reverse_internal,
10315         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10316
10317 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10318
10319         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10320         obsoleting version not being defined at all, in which case the
10321         result is always true.
10322
10323         * Makeconfig (preprocess-versions): New canned sequence for running
10324         cpp on shlib-versions and the like.
10325         (soversions.i): Use it.
10326         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10327         Versions.def and Versions files.
10328
10329 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10330
10331         * stdio-common/tst-obprintf.c (main): Add another check to see
10332         obstack_printf handling all possible beginnings of the block
10333         inside an obstack chunk.
10334
10335         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10336         install mcheck handler.
10337
10338         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10339         handling problem.
10340
10341 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10342
10343         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10344
10345         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10346         on [HAVE_ELF && DO_VERSIONING].
10347
10348 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10349
10350         * stdio-common/tst-obprintf.c: New file.
10351
10352 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10353
10354         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10355         _IO_OVERFLOW directly instead through __overflow.
10356
10357         * locale/programs/localedef.c (construct_output_path): If path
10358         contains a / compute the end of the directory name correctly.
10359
10360         * include/features.h: Undef and document __USE_XOPEN2K.
10361
10362         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10363         whenever a function is called.  Initiated by calling mcheck_pedantic
10364         instead of mcheck.
10365         * malloc/mcheck.h: Declare mcheck_pedantic.
10366         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10367         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10368         for now.
10369
10370 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10371
10372         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10373         * dlfcn/dlopenold.c: Likewise.
10374         * nss/getXXbyYY_r.c: Likewise.
10375         * nss/getXXent_r.c: Likewise.
10376         * hurd/hurdinit.c: Likewise.
10377         * hurd/compat-20.c: Likewise.
10378         * libio/oldiofopen.c: Likewise.
10379         * libio/oldiofclose.c: Likewise.
10380         * libio/oldiofdopen.c: Likewise.
10381         * libio/oldfileops.c: Likewise.
10382         * libio/oldstdfiles.c: Likewise.
10383         * libio/oldiofsetpos.c: Likewise.
10384         * libio/oldiofgetpos.c: Likewise.
10385         * libio/oldiofgetpos64.c: Likewise.
10386         * libio/oldiofsetpos64.c: Likewise.
10387         * libio/oldiopopen.c: Likewise.
10388         * libio/oldpclose.c: Likewise.
10389         * libio/oldtmpfile.c: Likewise.
10390         * libio/freopen.c (freopen): Likewise.
10391         * libio/iofclose.c (_IO_new_fclose): Likewise.
10392
10393         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10394         (reboot): Declare it.
10395
10396         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10397
10398         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10399
10400         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10401
10402         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10403         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10404         We need this for the sbrk decl, which can be included without Unix98.
10405
10406 2000-03-20  Richard Henderson  <rth@cygnus.com>
10407
10408         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10409         argument to yperr2nss is an int, not size_t.
10410         * posix/regex.c (print_partial_compiled_pattern): Cast all
10411         ptrdiff_t to long for printing.
10412         (print_compiled_pattern): Use Z for printing size_t.
10413         * posix/testfnm.c (tests): Avoid trigraphs.
10414         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10415         Use a C comment, not an assembly comment.
10416
10417         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10418         of __ASSUME_32BITUIDS.
10419
10420 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10421
10422         * libio/iofopncook.c: Remove K&R prototypes.
10423
10424 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10425
10426         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10427         an initial value of 1024 instead of RLIM_INFINITY.
10428
10429         * Versions.def (libmachuser, libhurduser): Remove these sections,
10430         since these libraries do not presently use symbol versions.
10431
10432         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10433         is RLIM_INFINITY, return -1 instead.
10434
10435 2000-03-24  Andreas Jaeger  <aj@suse.de>
10436
10437         * Makefile (postclean): Added soversions.i.
10438
10439 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10440
10441         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10442         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10443         and _FPU_IEEE.  Change _FPU_RESERVED.
10444
10445 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10446
10447         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10448
10449 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10450
10451         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10452         (gaih_inet): Remove unused duplicate variable.
10453
10454         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10455         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10456         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10457         only flavors supported by this function anyway.
10458
10459 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10460
10461         * stdlib/strfmon.c: Corrected problems with missing signs and
10462         missing or extra spaces; allow for sign strings longer than
10463         one character; add padding to ensure positive and negative
10464         formats are aligned when a left precision is used.
10465
10466 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10467
10468         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10469         Patch by John Mizel <John.Mizel@msdw.com>.
10470
10471 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10472
10473         * manual/install.texi: Remove references to crypt add-on.
10474
10475 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10476
10477         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10478         section while taking the _hurd_rlimit_lock.
10479         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10480
10481 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10482
10483         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10484         using $(LN_S).
10485
10486         * sysdeps/mach/hurd/if_index.c: New file.
10487
10488         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10489         * sysdeps/gnu/net/if.h: here.
10490         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10491         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10492         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10493         functions and `struct if_nameindex' type.
10494         * socket/Makefile (headers): Add net/if.h here.
10495         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10496         * sysdeps/mach/hurd/Dist: Remove it here.
10497         * sysdeps/unix/sysv/linux/Dist: And here.
10498         * sysdeps/generic/if_index.c: Include <net/if.h>.
10499
10500 2000-03-24  Andreas Jaeger  <aj@suse.de>
10501
10502         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10503         access relocated entries in l_info.
10504         (elf_machine_got_rel): Likewise.
10505         (elf_machine_runtime_setup): Likewise.
10506         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10507         (elf_machine_runtime_setup): Likewise.
10508         (__dl_runtime_resolve): Likewise.
10509
10510 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10511
10512         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10513         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10514         according to RFC 2553.
10515         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10516         * inet/getnameinfo.c: Likewise.
10517         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10518
10519 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10520
10521         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10522         Remove no-op pointer increment.
10523
10524 2000-03-23  Andreas Jaeger  <aj@suse.de>
10525
10526         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10527         follow change for libio.h from 2000-03-10.
10528
10529 2000-03-23  Andreas Jaeger  <aj@suse.de>
10530
10531         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10532         change.
10533         * elf/dl-debug.c: Likewise.
10534         * elf/dl-deps.c: Likewise.
10535         * elf/dl-error.c: Likewise.
10536         * elf/dl-fini.c: Likewise.
10537         * elf/dl-init.c: Likewise.
10538         * elf/dl-load.c: Likewise.
10539         * elf/dl-lookup.c: Likewise.
10540         * elf/dl-minimal.c: Likewise.
10541         * elf/dl-object.c: Likewise.
10542         * elf/dl-open.c: Likewise.
10543         * elf/dl-preinit.c: Likewise.
10544         * elf/dl-profile.c: Likewise.
10545         * elf/dl-profstub.c: Likewise.
10546         * elf/dl-reloc.c: Likewise.
10547         * elf/dl-runtime.c: Likewise.
10548         * elf/dl-support.c: Likewise.
10549         * elf/dl-symbol.c: Likewise.
10550         * elf/dl-version.c: Likewise.
10551         * elf/rtld.c: Likewise.
10552         * elf/sprof.c: Likewise.
10553         * sysdeps/generic/dl-cache.c: Likewise.
10554         * sysdeps/generic/dl-origin.c: Likewise.
10555         * sysdeps/generic/dl-sysdep.c: Likewise.
10556         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10557         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10558         * sysdeps/generic/libc-start.c: Likewise.
10559         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10560         * sysdeps/powerpc/dl-machine.c: Likewise.
10561         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10562         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10563         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10564         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10565
10566         * elf/ldsodefs.h: Move file to ...
10567         * sysdeps/generic/ldsodefs.h: ... here.
10568
10569         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10570
10571         * sysdeps/mips/elf/ldsodefs.h: New file.
10572
10573         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10574         entries in l_info.
10575         (_dl_check_map_versions): Likewise.
10576         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10577         * elf/dl-load.c (_dl_init_paths): Likewise.
10578         (_dl_map_object): Likewise.
10579         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10580         (elf_get_dynamic_info): Likewise.
10581         * elf/do-lookup.h (FCT): Likewise.
10582         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10583         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10584         * elf/dl-addr.c (_dl_addr): Likewise.
10585         * elf/dl-runtime.c (profile_fixup): Likewise.
10586         (fixup): Likewise.
10587         * elf/dl-init.c (_dl_init_next): Likewise.
10588         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10589         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10590         (DISTINGUISH_LIB_VERSIONS): Likewise.
10591         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10592         (elf_machine_rel): Likewise.
10593
10594         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10595         for writable dynamic section.
10596
10597 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10598
10599         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10600         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10601
10602 2000-03-22  Andreas Jaeger  <aj@suse.de>
10603
10604         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10605         from latest Linux kernel.
10606
10607 2000-03-21  Andreas Jaeger  <aj@suse.de>
10608
10609         * Versions.def: Add version 2.1.4.
10610
10611 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10612
10613         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10614         * libio/oldiofopen.c: Likewise.
10615         * libio/oldiofclose.c: Likewise.
10616         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10617
10618 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10619
10620         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10621         indicating the first version set to obsolete the conditionalized code.
10622         (compat_symbol): New macro.
10623         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10624         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10625         integer values to the ABI_* macros for supported versions.
10626         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10627         compat_symbol macro.
10628
10629 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10630
10631         * nscd/connections.c (nscd_run): Pretty print.
10632         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10633
10634         * manual/charset.texi: Fix typos.  Rephrase.
10635         * manual/process.texi: Likewise.
10636         * manual/signal.texi: Likewise.
10637         Patches by Mike Coleman <mkc@kc.net>.
10638
10639         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10640         versions.
10641         * libio/iofdopen.c: Likewise.
10642         * libio/iofgetpos.c: Likewise.
10643         * libio/iofgetpos64.c: Likewise.
10644         * libio/iofopen.c: Likewise.
10645         * libio/iofsetpos.c: Likewise.
10646         * libio/iofsetpos64.c: Likewise.
10647         * libio/iopopen.c: Likewise.
10648         * libio/oldiofopen.c: Likewise.
10649         * libio/pclose.c: Likewise.
10650         * sysdeps/gnu/siglist.c: Likewise.
10651         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10652
10653         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10654         chance to expand VERSION_##lib##_##version.
10655
10656         * libio/fileops.c: Use new macros from shlib-compat.h to define
10657         versions.
10658         * libio/iofclose.c: Likewise.
10659         * libio/oldiofclose.c: Likewise.
10660         Patch by Roland McGrath <roland@frob.com>.
10661
10662 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10663
10664         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10665         Lay out struct sigcontext according to what really gets passed on
10666         the stack.
10667         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10668         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10669         (prgregset_t, prfpregset_t): Define to elf_* types.
10670         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10671         Define to correct value.
10672         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10673         sigcontext.
10674         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10675
10676 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10677
10678         * scripts/firstversions.awk: Allow multiple version sets in the
10679         "earliest version" specification, meaning that version sets in the
10680         gaps between listed versions should be folded into the earliest later
10681         version that is explicitly listed.
10682         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10683         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10684
10685 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10686
10687         * iconv/gconv_builtin.c: Include <endian.h>.
10688         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10689         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10690         according to current platform.
10691         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10692         __gconv_transform_internal_ucs2reverse, and
10693         __gconv_transform_internal_ucs4le.
10694         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10695         __gconv_transform_ucs2reverse_internal and
10696         __gconv_transform_internal_ucs2reverse.
10697         * iconvdata/Makefile (modules): Add UNICODE.
10698         (distribute): Add unicode.c.
10699         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10700         * iconvdata/unicode.c: New file.
10701
10702         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10703         determine byte order of input and convert accordingly.
10704
10705         * iconvdata/utf-16.c (gconv_init): Fix typo.
10706
10707 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10708
10709         * iconvdata/gconv-modules: Fix typo.
10710
10711         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10712         more messages.
10713
10714         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10715
10716 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10717
10718         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10719
10720 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10721
10722         * misc/Makefile (routines): Add mincore.
10723
10724 2000-03-20  Andreas Jaeger  <aj@suse.de>
10725
10726         * sysdeps/generic/mincore.c: New stub file.
10727
10728         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10729         from latest Linux kernel.
10730
10731 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10732
10733         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10734         _SC_GETPW_R_SIZE_MAX.
10735
10736 2000-03-20  Richard Henderson  <rth@cygnus.com>
10737
10738         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10739         in GLIBC_2.1.4.
10740
10741 2000-03-20  Richard Henderson  <rth@cygnus.com>
10742
10743         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10744         of arithmetic instructions.
10745
10746         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10747         with the fpcr.  Protect from INV exception.
10748         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10749         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10750         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10751
10752         * sysdeps/alpha/fpu/s_copysign.c: New.
10753         * sysdeps/alpha/fpu/s_copysignf.c: New.
10754         * sysdeps/alpha/fpu/s_fabs.c: New.
10755         * sysdeps/alpha/fpu/s_fabsf.c: New.
10756         * sysdeps/alpha/fpu/s_rint.c: New.
10757         * sysdeps/alpha/fpu/s_rintf.c: New.
10758
10759         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10760
10761         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10762         Kill sethae.
10763         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10764         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10765         Use physical addresses not KSEG addresses.
10766         (io_system): Add PYXIS.
10767         (io): Remove hae.reg, sys, hae_shift.
10768         (stb_mb, stw_mb, stl_mb, __sethae): New.
10769         (inline_outb, inline_outw, inline_outl): Don't set hae.
10770         (inline_inb, inline_inw, inline_inl): Likewise.
10771         (dense_sethae): New null function.
10772         (struct cpuinfo_data): New.
10773         (process_cpuinfo): Use local and stack variables, not static.
10774         Move readlink check here from init_iosys.
10775         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10776         (_iopl): Simplify.
10777         (_hae_shift): Calculate it here.
10778         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10779         add pciconfig_iobase.
10780
10781 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10782
10783         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10784         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10785
10786         * scripts/versions.awk: Fixed version renaming code to distinguish
10787         libraries properly.
10788
10789 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10790
10791         * include/stdlib.h: Add prototype for __cxa_atexit.
10792
10793         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10794         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10795
10796 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10797
10798         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10799         existing rtld-installed-name.
10800         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10801         replace existing rtld-installed-name using $(symbolic-link-prog).
10802
10803 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10804
10805         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10806         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10807         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10808         but not the former.
10809
10810 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10811
10812         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10813         glob64.  Since there is no glob64 in the LFS proposal applications
10814         can assume that glob handles LFS situations.  glob64 is only needed
10815         if alternative filesystem functions are used.
10816
10817 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10818
10819         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10820         when GLOB_DOOFFS is set; correct handling of patterns
10821         containing escaped wildcards (and no unescaped ones);
10822         GLOB_ERR flag was being ignored in some situations.
10823
10824         * posix/globtest.c, posix/globtest.sh: Updated to include
10825         tests for the problems fixed by the above changes to glob.c.
10826
10827         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10828
10829 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10830
10831         * Makeconfig (soversion.i): Use only first match for each lib.
10832
10833         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10834
10835         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10836         rather than $(sysd-dirs-done) to protect these rules.
10837
10838         * Makerules (version-renames.def): Target removed.
10839         (Versions.all): Depend on soversions.i directly and parse it.
10840
10841         * Makeconfig (soversions.i): New target, input-reading parts of
10842         soversions.mk generation moved here; result is a canonicalized
10843         list "LIB VERSION [SET]" for this configuration.
10844         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10845         * Makerules (version-renames.def): New target, generated from
10846         soversions.i with contents that was in $(map-firstversions).
10847         (Versions.all): Don't depend on soversions.mk, depend on
10848         version-renames.def instead; just cat it into the input.
10849
10850         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10851         for $(map-firstversions), which better handles it being empty.
10852
10853         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10854         supported version for libc 0.2.90.libio to GLIBC_2.2.
10855
10856         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10857         and use it to emit new variable `map-firstversions'.
10858         * scripts/firstversions.awk: New file.
10859         * Makerules (Versions.all): Use scripts/firstversions.awk and
10860         the $(map-firstversions) value to generate a modified versions list
10861         that includes renames in "A = B" syntax for each version set earlier
10862         than the "earliest symbol version" named in shlib-versions.
10863         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10864         rename version set A to B in the output to the intermediate file.
10865         * scripts/abi-versions.awk: New file.
10866         * Makerules (abi-versions.h): New target, generated by that script.
10867         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10868         * include/shlib-compat.h: New file, uses that generated header.
10869
10870 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10871
10872         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10873         after stripping # comments, and then run it through cpp.
10874         This allows things like "%ifdef FOO" based on config.h settings.
10875         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10876
10877         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10878         and other errors that indicate a pseudo-receive happened, grok through
10879         the message buffer for port rights that need references fixed up.
10880
10881 2000-03-16  Andreas Jaeger  <aj@suse.de>
10882
10883         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10884
10885         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10886
10887         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10888         from latest Linux kernel.
10889         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10890
10891         * misc/sys/mman.h: Add prototype for mincore.
10892
10893 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10894
10895         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10896         entry for GLIBC_2.0 version of setrlimit.
10897         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10898
10899 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10900
10901         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10902         * nis/nss_compat/compat-initgroups.c: Likewise.
10903         * nis/nss_nis/nis-initgroups.c: Likewise.
10904         * nis/nss_nis/nis-netgrp.c: Likewise.
10905         * nis/nss_nis/nis-proto.c: Likewise.
10906         * nis/nss_nis/nis-rpc.c: Likewise.
10907         * nis/nss_nis/nis-service.c: Likewise.
10908         * nis/ypclnt.c: Likewise.
10909
10910 2000-03-16  Andreas Jaeger  <aj@suse.de>
10911
10912         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10913         doesn't exist, correct checks.  Fixes PR libc/1649.
10914
10915 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10916
10917         * nscd/hstcache.c: Restore correct UID.
10918         * nscd/pwdcache.c: Likewise.
10919         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10920
10921 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10922
10923         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10924         macros for register names, in line with 2000-03-14 linux change.
10925
10926         * sysdeps/mach/sched_yield.c: New file.
10927
10928 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10929
10930         * sysdeps/generic/lockfile.c: Include <stdio.h>
10931         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10932         case <libio.h> defined them.
10933         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10934         from __internal_*.
10935         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10936         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10937
10938         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10939         for more pleasing parse error.
10940
10941 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10942
10943         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10944         memory for eras.
10945         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10946
10947         * elf/Makefile: Add rules to compile and run constload1 test.
10948         * elf/constload1.c: New file.
10949         * elf/constload2.c: New file.
10950         * elf/constload3.c: New file.
10951
10952 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10953
10954         * sysdeps/posix/open64.c: Make __open64 weak alias.
10955         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10956         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10957         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10958         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10959         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10960         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10961         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10962         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10963         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10964         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10965
10966 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10967
10968         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10969         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10970
10971 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10972
10973         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10974         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10975
10976 2000-03-08  Andreas Jaeger  <aj@suse.de>
10977
10978         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10979
10980 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10981
10982         * timezone/africa: Update from tzdata2000d.
10983         * timezone/asia: Likewise.
10984         * timezone/australasia: Likewise.
10985         * timezone/europe: Likewise.
10986         * timezone/northamerica: Likewise.
10987         * timezone/southamerica: Likewise.
10988
10989         * po/fr.po: Update from translation team.
10990         * po/de.po: Likewise.
10991
10992         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10993         last parameter.  Move code to add map to global scope from here...
10994         * elf/dl-open.c (dl_open_worker): ...here.
10995         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10996         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10997
10998         * locale/programs/ld-collate.c (collate_read): Fix warning.
10999
11000         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
11001         values and macros for register names.
11002
11003         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
11004         returned by seek cookie function is -1.
11005
11006 2000-03-14  Andreas Jaeger  <aj@suse.de>
11007
11008         * locale/localeconv.c (localeconv): Fix typo.
11009         Reported by Andre Charbonneau <andrec@corel.com>.
11010
11011 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
11012
11013         * iconv/skeleton.c: Increment __invocation_counter in inner loop
11014         since modules depend on it counting the number of times the conversion
11015         function got called.
11016
11017         * iconv/gconv_open.c: Optimize loop to setup step data structure.
11018
11019         * iconv/gconv.h: Pretty print.
11020
11021 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
11022
11023         * posix/wordexp-test.c: Correct one of the tests added in the last
11024         change.  Really get the root passwd entry to check again ~root.
11025
11026 2000-03-10  Andreas Jaeger  <aj@suse.de>
11027
11028         * manual/filesys.texi (Working Directory): Fix last patch.
11029         Patch by Martin Buchholz  <martin@xemacs.org>.
11030
11031 2000-03-10  Andreas Jaeger  <aj@suse.de>
11032
11033         * manual/creature.texi (Feature Test Macros): Fix language.
11034
11035 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
11036
11037         * mach/devstream.c (devstream_write, devstream_read): New functions.
11038         (input, output): Functions removed.
11039         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
11040         using only the vanilla fopencookie interface.
11041
11042         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
11043         as macro for __io_functions.
11044         (funcsio): Use cookie_io_functions_t type name.
11045         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
11046
11047         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
11048         fopencookie.
11049         (fopencookie): Use it.
11050         * libio/libio.h: Declare _IO_cookie_init.
11051         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
11052         _IO_cookie_init.
11053
11054         * libio/libio.h (__io_seek_fn): Fix second argument type
11055         to be a pointer, in line with the manual and the old stdio.
11056         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
11057
11058         * sysdeps/generic/bits/stdio-lock.h: New file.
11059         This is a stub with #error, but that's better than no file at all.
11060
11061 2000-03-09  Martin Buchholz  <martin@xemacs.org>
11062
11063         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
11064         * manual/message.texi (Using gettextized software): Doc Fixes.
11065         * manual/message.texi (Message Translation): Doc Fixes.
11066         * manual/filesys.texi (File Size): Doc Fixes.
11067         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
11068         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
11069         * iconv/gconv_db.c (find_derivation): Doc Fixes.
11070         * manual/install.texi: Doc Fixes.
11071         * manual/search.texi (Hash Search Function): Doc Fixes.
11072         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
11073         * FAQ.in: Doc Fixes.
11074         * config.h.in: Doc Fixes.
11075         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
11076         Doc Fixes.  `allows to' is not correct English.
11077
11078         * elf/rtld.c: Doc fixes.
11079         * manual/creature.texi (Feature Test Macros): Doc fixes.
11080         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
11081
11082         * manual/filesys.texi (Working Directory): Check for ERANGE to
11083         avoid infloop.
11084
11085 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11086
11087         * string/argz-stringify.c (__argz_stringify): Fix loop termination
11088         conditions so as not to clobber the final '\0' when there is only one
11089         element in the vector.
11090
11091 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11092
11093         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
11094         broken by 2000-02-27 change.
11095
11096         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
11097
11098 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
11099
11100         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
11101         argument type, for 2000-02-22 change in signal/signal.h declaration.
11102
11103 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
11104
11105         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
11106         to getdirentries64 (no __), since the Linux implementation
11107         has no __ name, and there is no declaration for the __ name.
11108
11109         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
11110
11111         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
11112         sed regexp so as not to break directory names including /../ within.
11113
11114         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
11115         The sysdeps/generic file is right for BSD.  This file was in fact the
11116         Hurd file, but the only difference was the WNOREAP flag that was never
11117         actually implemented or used anywhere.
11118
11119         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
11120         since AC_PATH_PROG already does it for us.
11121         (PERL): Rewrite check added in 2000-02-29 change for syntactic
11122         correctness and sh portability.  I replaced the broken check
11123         with a more sensible implementation of the apparently intended
11124         semantics, which might still be questionable.  Using expr causes
11125         a non-numeric value for `perl -V:apiversion` to be accepted,
11126         refusing to use only a perl that reports a number less than 5;
11127         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
11128         * configure: Regenerated.
11129
11130 2000-03-08  Andreas Jaeger  <aj@suse.de>
11131
11132         * manual/crypt.texi: Fix paths.
11133
11134 2000-03-07  Andreas Jaeger  <aj@suse.de>
11135
11136         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
11137         were swapped.
11138         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
11139         libc/1636.
11140
11141 2000-03-06  Andreas Jaeger  <aj@suse.de>
11142
11143         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
11144         in __sgn1l, otherwise g++ fails to parse this.
11145         Reported by Sean Chen <sean.chen@turbolinux.com>.
11146
11147 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11148
11149         * configure.in: Compute sizeof-long-double.
11150         * configure: Regenerated.
11151         * config.make.in: Make sizeof-long-double available to sub-makes.
11152
11153 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11154
11155         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11156         call.
11157
11158 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
11159
11160         * Makeconfig (rpath-dirs): Add crypt.
11161         (all-subdirs): Remove md5crypt.
11162         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
11163         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
11164         * sysdeps/generic/crypt-entry.c: Delete.
11165         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
11166         * sysdeps/generic/crypt.h: Delete.
11167         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
11168         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
11169         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
11170         * sysdeps/generic/des_impl.c: Delete.
11171         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
11172         * crypt/sysdeps: Delete.
11173         * crypt/crypt_util.c: Don't use `patchlevel.h'.
11174         * md5-crypt/Versions: Move to crypt/.
11175         * md5-crypt/md5-crypt.c: Move to crypt/.
11176         * md5-crypt/md5.c: Move to crypt/.
11177         * md5-crypt/md5c-test.c: Move to crypt/.
11178         * md5-crypt/md5test.c: Move to crypt/.
11179         * md5-crypt: Delete.
11180         * crypt/Makefile: Adjust for new structure.
11181
11182 2000-03-03  Paul Eggert  <eggert@twinsun.com>
11183
11184         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
11185         define to 1 if not defined.
11186
11187 2000-03-03  Andreas Jaeger  <aj@suse.de>
11188
11189         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
11190
11191 2000-03-03  Andreas Jaeger  <aj@suse.de>
11192
11193         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
11194         cases.
11195         (xdr_int64_t): Correctly handle lower half.
11196         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
11197
11198 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
11199
11200         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
11201         call.
11202
11203 2000-03-02  Andreas Jaeger  <aj@suse.de>
11204
11205         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
11206         2.3.43.
11207
11208 2000-03-02  Andreas Jaeger  <aj@suse.de>
11209
11210         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
11211
11212 2000-03-01  Andreas Jaeger  <aj@suse.de>
11213
11214         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
11215         (tests): Added tst-getdate.
11216
11217         * time/tst-getdate.c: New file.
11218
11219         * time/datemsk: New file, needed for tst-getdate.
11220
11221 2000-02-29  Cristian Gafton  <gafton@redhat.com>
11222
11223         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11224
11225 2000-02-17  H.J. Lu  <hjl@gnu.org>
11226
11227         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11228
11229         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11230         available.
11231         (svcudp_recv): Set up message with the new "xp_pad" field for
11232         IP_PKTINFO.
11233         (svcudp_reply): Support IP_PKTINFO if available.
11234
11235 2000-03-01  Andreas Jaeger  <aj@suse.de>
11236
11237         * time/getdate.c (check_mday): Fix check for february.
11238         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11239         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11240
11241 2000-03-02  Andreas Jaeger  <aj@suse.de>
11242
11243         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11244         g++ fails to parse this.
11245         Reported by Sean Chen <sean.chen@turbolinux.com>.
11246
11247 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11248
11249         * io/creat.c: Moved to...
11250         * sysdeps/generic/creat.c: ...here.
11251         * io/creat64.c: Moved to...
11252         * sysdeps/generic/creat64.c: ...here.
11253         * io/lockf.c: Moved to...
11254         * sysdeps/generic/lockf.c: ...here.
11255
11256         * crypt/crypt.texi: Moved to...
11257         * manual/crypt.texi: ...here.
11258         * crypt/examples/genpass.c: Moved to...
11259         * manual/examples/genpass.c: ...here.
11260         * crypt/examples/mygenpass.c: Moved to...
11261         * manual/examples/mygenpass.c: ...here.
11262         * crypt/examples/testpass.c: Moved to...
11263         * manual/examples/testpass.c: ...here.
11264
11265         * manual/Makefile (chapters): Add crypt.
11266         * manual/conf.texi: Add usual header for not-last chapter.
11267         * manual/crypt.texi: Add special header for last chapter.
11268
11269 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11270
11271         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11272         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11273         complain if there is no crypt add-on.
11274         * crypt/configure: Removed.
11275
11276         * crypt/crypt.texi: Update documentation of US export restrictions
11277         to match the 14 Jan 2000 regulations.
11278
11279 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11280
11281         * crypt: New subdirectory, merged in from the crypt add-on.
11282
11283 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11284
11285         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11286
11287
11288 See ChangeLog.10 for earlier changes.