It's an US keyboard...
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-14  Ulrich Drepper  <drepper@redhat.com>
2
3         * intl/Makefile: Avoid unnecessary test reruns.
4
5         * stdio-common/tst-printf.sh: Also allow output from 64-bit machines.
6
7         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Change
8         to not use sysctl().  Too many architectures have problems with it.
9
10 2000-09-14  Andreas Jaeger  <aj@suse.de>
11
12         * scripts/config.sub: New version from subversions.gnu.org.
13
14         * time/clocktest.c (main): Change format, CLOCKS_PER_SEC is now
15         long.
16
17 2000-09-14  Jakub Jelinek  <jakub@redhat.com>
18
19         * posix/regex.c (compile_range): Cast collseq index to unsigned char
20         to avoid accessing data before collseq.
21
22         * sysdeps/sparc/fpu/bits/mathinline.h (__unordered_v9cmp): Avoid
23         pasting strings together.
24
25 2000-09-14  Greg McGary  <greg@mcgary.org>
26
27         * sysdeps/generic/bp-checks.h: Remove bogus reference to GNU MP in
28         copyright notice.
29         * sysdeps/generic/bp-semctl.h: Likewise.
30         * sysdeps/generic/bp-start.h: Likewise.
31         * sysdeps/generic/bp-sym.h: Likewise.
32         * sysdeps/generic/bp-thunks.h: Likewise.  Include <stdio.h> to get
33         rename prototype.
34
35 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
36
37         * io/test-lfs.c (do_test): Allow stat64() to return EOVERFLOW and
38         don't fail.
39
40         * elf/elf.h: Add missing official relocations.
41
42         * libio/stdio.h: Define __FILE if __need___FILE is defined.
43         * stdio/stdio.h: Likewise.
44         * wcsmbs/wchar.h: Get definition of __FILE. Use __FILE instead of FILE.
45         * include/stdio.h: Handle __need___FILE like __need_FILE.
46         * include/wchar.h: Use __FILE instead of FILE.
47         * libio/fwprintf.c: Include <stdio.h> for FILE definition.
48         * libio/fwscanf.c: Likewise.
49         * libio/getwc.c: Likewise.
50
51         * sysdeps/generic/stdint.h (WINT_MAX): Define to 4294967295u.
52         * sysdeps/generic/bits/wchar.h (WCHAR_MIN): Define to -2147483647 - 1.
53         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Likewise.
54
55         * assert/assert.h: Update comment header about ISO C section.
56         * math/complex.h: Likewise.
57         * ctype/ctype.h: Likewise.
58         * include/errno.h: Likewise.
59         * include/limits.h: Likewise.
60         * locale/locale.h: Likewise.
61         * math/math.h: Likewise.
62         * setjmp/setjmp.h: Likewise.
63         * signal/signal.h: Likewise.
64         * stdio/stdio.h: Likewise.
65         * libio/stdio.h: Likewise.
66         * stdlib/stdlib.h: Likewise.
67         * string/string.h: Likewise.
68         * time/time.h: Likewise.
69         * wcsmbs/wchar.h: Likewise.
70         * wctype/wctype.h: Likewise.
71         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
72
73 2000-09-13  Andreas Jaeger  <aj@suse.de>
74
75         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Fix test
76         for no more entries.
77         * sysdeps/unix/sysv/aix/bits/socket.h (__cmsg_nxthdr): Likewise.
78         * sysdeps/unix/sysv/linux/mips/bits/socket.h (__cmsg_nxthdr): Likewise.
79         Reported by Eric S. Johnson <esj@cs.fiu.edu>, closes PR libc/1887.
80
81 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
82
83         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Make a long int
84         constant since this is what clock_t is.
85         * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
86         * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
87         * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
88         * sysdeps/unix/sysv/linux/s390/bits/time.h: Likewise.
89
90         * time/time.h: Don't defined clockid_t and timer_t unless POSIX
91         definitions are requested.
92
93 2000-09-13  Andreas Jaeger  <aj@suse.de>
94
95         * shlib-versions: libBrokenLocale needs minimal version for ia64,
96         sparc64 and sh to synch with libc.
97
98 2000-09-13  Ulrich Drepper  <drepper@redhat.com>
99
100         * iconvdata/Makefile (modules): Add ISO-2022-CN-EXT.
101         (distribute): Add iso-2022-cn-ext.c.
102         Add definitions to compile the new module.
103         * iconvdata/gconv-modules: Add entries for ISO-2022-CN-EXT.
104         * iconvdata/iso-2022-cn-ext.c: New file.
105         * iconvdata/iso-ir-165.h (isoir165_to_ucs4): Renamed from
106         ucs4_from_isoir165.  Increment input pointer if successful.
107
108         * csu/Makefile: Work around a gcc bug when creating csu-dummies.
109
110         * sysdeps/unix/sysv/linux/getdents.c: Pretty print.
111
112 2000-09-01  Jes Sorensen  <jes@linuxcare.com>
113
114         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add
115         __syscall_getdents64 wrapper.
116
117         * sysdeps/unix/sysv/linux/ia64/net/route.h: New file.
118
119 2000-09-12  Ulrich Drepper  <drepper@redhat.com>
120
121         * iconvdata/gb18030.c: Many many changes.  Make consistent with
122         charmap and with itself.
123         * iconvdata/tst-tables.sh: Test GB18030.
124
125 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
126
127         * iconv/skeleton.c: Fix last patch, add missing parameter to
128         unaligned function call.
129
130 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
131
132         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
133         of decimal ellipsis.
134
135 2000-09-11  Bruno Haible <haible@clisp.cons.org>
136
137         * locale/programs/ld-collate.c (collate_read): Always initialize
138         error_section.next.
139
140 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
141
142         * locale/programs/ld-collate.c (collate_finish): Upper bound for
143         ruleidx is 128, not 256.
144
145 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
146
147         * locale/programs/ld-collate.c (collate_read): Correct check for
148         already inserted entries.
149
150 2000-09-10  Bruno Haible <haible@clisp.cons.org>
151
152         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
153         second try as well.
154
155 2000-09-10  Bruno Haible <haible@clisp.cons.org>
156
157         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
158         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
159
160 2000-09-10  Bruno Haible <haible@clisp.cons.org>
161
162         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
163         SAVE_RESET_STATE.
164
165 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
166
167         * iconvdata/utf-7.c: New file.
168         * iconvdata/gconv-modules (UTF-7): New module entries.
169         * iconvdata/Makefile (modules): Add UTF-7.
170         (distribute): Add utf-7.c.
171         * iconvdata/testdata/UTF-7: New file.
172         * iconvdata/testdata/UTF-7..UTF8: New file.
173         * iconvdata/TESTS (UTF-7): New entry.
174         * iconvdata/run-iconv-test.sh: Fix confusing output.
175
176 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
177
178         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
179
180 2000-09-10  David S. Miller  <davem@redhat.com>
181
182         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
183         frame pointer offset for non-fast path.
184
185 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
186
187         * locale/programs/3level.h (*_init): Initialize level1, level2,
188         and level3 as well.
189         (*_add): Remove a few unnecessary conditionals.
190
191 2000-09-05  Wolfram Gloger  <wg@malloc.de>
192
193         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
194         ensure usability of mutex as an `in use' flag.
195
196 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
197
198         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
199
200         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
201         ugly GMON_WEAK_START hack.
202         Patch by Philip Blundell <philb@gnu.org>.
203
204         * sysdeps/i386/i486/bits/string.h: Pretty printing.
205
206 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
207
208         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
209         and PPC_ICBI asm for broken compilers.
210         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
211
212 2000-09-09  Andreas Jaeger  <aj@suse.de>
213
214         * manual/message.texi (Advanced gettext functions): Fix typo.
215
216         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
217         strncpy prototype.
218
219 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
220
221         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
222         warnings.
223         * sysdeps/ia64/memccpy.S: Likewise.
224         Patches by Jim Wilson <wilson@redhat.com>.
225
226         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
227         before trying to read /proc.
228         Patch by Matt Wilson <msw@redhat.com>.
229         * include/sys/utsname.h: Declare __uname.
230         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
231         * sysdeps/mach/hurd/uname.c: Likewise.
232         * sysdeps/unix/syscalls.list: Likewise.
233
234         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
235         unloading a bit.
236
237 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
238
239         * posix/getopt.c (_getopt_internal): When long_only is set always
240         recognize conflicts just like before.
241
242 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
243
244         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
245
246 2000-09-08  Greg McGary  <greg@mcgary.org>
247
248         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
249         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
250         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
251
252 2000-09-08  Andreas Jaeger  <aj@suse.de>
253
254         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
255
256         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
257
258         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
259         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
260         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
261
262 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
263
264         * iconvdata/tst-tables.sh: Enable EUC-KR test.
265
266         * elf/dl-load.c (lose): Decrement _nl_loaded.
267         (_dl_map_object_from_fd): Don't try to dlopen executables.
268
269         * iconvdata/tst-tables.sh: Actually return with an error if
270         something goes wrong.
271         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
272         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
273
274         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
275
276         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
277         * iconvdata/tst-table-from.c: Include <string.h>.
278         (try): Correct cast in iconv call.
279
280         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
281         too.
282         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
283         (sysdep_routines): Remove dl-start.
284         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
285
286         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
287
288         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
289         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
290
291 2000-09-06  Andreas Schwab  <schwab@suse.de>
292
293         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
294
295 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
296
297         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
298
299         * scripts/config.sub: Strip out -unknown for Linux targets.
300         Patch by Scott Bambrough <scottb@netwinder.org>.
301
302         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
303         add one more test.
304
305 2000-09-07  Andreas Jaeger  <aj@suse.de>
306
307         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
308
309         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
310         syscalls.
311
312         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
313
314         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
315         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
316
317         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
318
319         * stdlib/tst-bsearch.c (main): Add more test cases.
320
321         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
322         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
323         Reported by GOTO Masanori <gotom@debian.or.jp>.
324
325 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
326
327         * posix/Makefile (tests): Add tst-dir.
328         (tst-dir-ARGS): New variable.
329         * posix/tst-dir.c: New file.
330
331 2000-09-07  Andreas Jaeger  <aj@suse.de>
332
333         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
334         (SYS_fcntl64): New.
335
336         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
337
338 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
339
340         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
341         use the hack with tryopen_o_directory to determine at runtime
342         whether it works.
343         * sysdeps/unix/sysv/linux/opendir.c: New file.
344         * sysdeps/unix/sysv/linux/kernel-features.h: Define
345         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
346
347         * catgets/Depend: New file.  Add intl.
348         * catgets/Makefile (tests): Add tst-catgets.
349         (generated): Remove de.msg.
350         (generated-dirs): Add de.
351         Add dependency if tst-catgets output on de/libc.cat.
352         * catgets/tst-catgets.c: New file.
353
354         * po/ja.po: New file.
355         * po/el.po: Update from translation team.
356
357         * wcsmbs/Depend: New file.
358         * wcsmbs/Makefile (tests): Add tst-btowc.
359         (tst-btowc-ENV): Define.
360         * wcsmbs/tst-btowc.c: New file.
361
362         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
363         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
364
365         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
366
367         * stdlib/Makefile (tests): Add tst-bsearch.
368         * stdlib/tst-bsearch.c: New file.
369
370         * posix/getopt.c (_getopt_internal): Don't recognize an option
371         name as ambiguous if it's a prefix for more than one name but the
372         other struct option values are identical.
373
374         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
375         Don't depend on visual inspection of the output file to recognize
376         errors.
377         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
378
379 2000-09-06  Andreas Jaeger  <aj@suse.de>
380
381         * sysdeps/alpha/soft-fp/Dist: New file.
382         * sysdeps/i386/soft-fp/Dist: New file.
383         * sysdeps/mips/mips64/soft-fp/Dist: New file.
384         * sysdeps/mips/soft-fp/Dist: New file.
385         * sysdeps/powerpc/soft-fp/Dist: New file.
386         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
387         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
388
389         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
390         Use sysdep_routines instead of routines to fix make dist failure.
391         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
392         out code).
393         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
394
395         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
396         sysdep_headers instead of headers for make dist.
397
398         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
399         Likewise.
400
401 2000-09-06  Andreas Schwab  <schwab@suse.de>
402
403         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
404
405 2000-09-06  Andreas Jaeger  <aj@suse.de>
406
407         * soft-fp/Makefile (distribute): Remove ChangeLog.
408
409         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
410         sysdep_routines instead of routines for make dist.
411
412 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
413
414         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
415         compatibility check for old stream and call _IO_wide in doubt.
416         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
417         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
418         needed tst for such an old structure and don't do anything.
419         * libio/freopen.c: Remove declaration of _IO_stdin_used.
420
421 2000-09-06  Andreas Jaeger  <aj@suse.de>
422
423         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
424         sysdep-dl-routines and sysdep_routines instead of rtld-routines
425         and dl-routines.
426
427         * soft-fp/ChangeLog: Merged with this file.
428
429 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
430
431         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
432
433         * soft-fp/Makefile (distribute): Add the math functions, too.
434
435         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
436
437 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
438
439         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
440         as a statement.
441
442         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
443         * soft-fp/sysdeps/powerpc/q_*: New files.
444
445 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
446
447         * stdio-common/vfprintf.c (process_string_arg): Handle precision
448         in wide char case correctly.  Don't allocate too long temporary
449         strings with alloca.
450
451         * stdio-common/Makefile (tests): Add tst-swprintf.
452         (tst-swprintf-ENV): New variable.
453         * stdio-common/tst-swprintf.c: New file.
454
455 2000-09-05  Andreas Jaeger  <aj@suse.de>
456
457         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
458         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
459         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
460
461 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
462
463         * configure.in: Strip out "unknown" from configuration names.
464
465 2000-09-05  Andreas Jaeger  <aj@suse.de>
466
467         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
468
469         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
470         * sysdeps/sparc/sparc32/Implies: Likewise.
471         * sysdeps/powerpc/Implies: Likewise.
472
473         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
474         * libio/oldiofgetpos64.c: Likewise.
475
476         * soft-fp/Makefile (distribute): Remove configure.
477
478         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
479
480         * soft-fp/configure: Remove.
481
482         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
483         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
484
485         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
486         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
487
488         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
489         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
490
491         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
492         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
493
494         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
495         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
496
497         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
498         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
499
500         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
501         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
502
503         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
504         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
505
506         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
507         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
508
509         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
510         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
511
512         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
513         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
514
515         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
516         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
517
518         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
519         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
520
521         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
522         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
523
524         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
525         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
526
527         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
528         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
529
530         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
531         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
532
533         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
534         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
535
536         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
537         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
538
539         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
540         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
541
542         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
543         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
544
545         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
546         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
547
548         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
549         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
550
551         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
552         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
553
554         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
555         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
556
557         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
558         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
559
560         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
561         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
562
563         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
564         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
565
566         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
567         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
568
569         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
570         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
571
572         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
573         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
574
575         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
576         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
577
578         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
579         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
580
581         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
582         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
583
584         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
585         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
586
587         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
588         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
589
590         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
591         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
592
593         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
594         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
595
596         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
597         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
598
599         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
600         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
601
602         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
603         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
604
605         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
606         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
607
608         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
609         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
610
611         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
612         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
613
614         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
615         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
616
617         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
618         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
619
620         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
621         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
622
623         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
624         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
625
626         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
627         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
628
629         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
630         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
631
632         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
633         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
634
635         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
636         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
637
638         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
639         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
640
641         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
642         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
643
644         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
645         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
646
647         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
648         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
649
650         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
651         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
652
653         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
654         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
655
656         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
657         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
658
659         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
660         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
661
662         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
663         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
664
665         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
666         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
667
668         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
669         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
670
671         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
672         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
673
674         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
675         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
676
677         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
678         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
679
680         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
681         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
682
683         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
684         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
685
686         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
687         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
688
689         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
690         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
691
692         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
693         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
694
695         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
696         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
697
698         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
699         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
700
701         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
702         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
703
704         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
705         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
706
707         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
708         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
709
710         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
711         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
712
713         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
714         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
715
716         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
717         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
718
719         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
720         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
721
722         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
723         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
724
725         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
726         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
727
728         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
729         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
730
731         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
732         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
733
734         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
735         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
736
737         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
738         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
739
740         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
741         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
742
743         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
744         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
745
746         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
747         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
748
749         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
750         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
751
752         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
753         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
754
755         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
756         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
757
758         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
759         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
760
761         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
762         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
763
764         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
765         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
766
767         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
768         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
769
770         * soft-fp/sysdeps/powerpc/Versions: Move from here...
771         * sysdeps/powerpc/soft-fp/Versions: ... to here.
772
773         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
774         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
775
776         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
777         change symbol version.
778         * libio/oldiofgetpos64.c: Likewise.
779         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
780
781         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
782         typo.
783         Reported by dyky@kondara.org, closes PR libc/1886.
784
785         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
786         libc/1880.
787
788 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
789
790         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
791         script when ^C is hit.
792
793         * locale/programs/localedef.c (construct_output_path): Correct
794         computation of endp after asprintf.
795         * locale/programs/locfile.c (write_locale_data): Don't add extra
796         slash in filename.
797
798 2000-09-05  Andreas Jaeger  <aj@suse.de>
799
800         * scripts/config.guess: New upstream version.
801         * scripts/config.sub: Likewise.
802         * manual/texinfo.tex: Likewise.
803
804 2000-09-04  Andreas Schwab  <schwab@suse.de>
805
806         * elf/Makefile (all-dl-routines): New variable.
807         (elide-routines.os): Use it instead of $(dl-routines).
808         (all-rtld-routines): New variable.
809         (extra-objs): Use it instead of $(rtld-routines).
810         ($(objpfx)dl-allobjs.os): Likewise.
811         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
812         sysdep-dl-routines and sysdep_routines instead of rtld-routines
813         and dl-routines.
814
815 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
816
817         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
818         Set fname to NULL if the module wasn't found.
819
820 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
821
822         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
823         true if trans->name already ends in ".so".
824
825 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
826
827         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
828         void.
829         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
830         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
831         (__gconv_release_shlib): Change return type to void.
832         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
833         step->__counter here.
834         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
835         if the reference is zero.
836         (release_step): New function.
837         (gen_steps): Always initialize the __counter to 1. Use release_step.
838         Don't call the destructor on the step whose initializer failed.
839         (increment_counter): Use release_step. Don't normally run destructors
840         here.
841         (__gconv_close_transform): Use release_step.
842
843 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
844
845         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
846         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
847
848 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
849
850         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
851         If the first byte is 0x8E, don't ask for 4 bytes until it has been
852         verified that the second byte is valid. Leave it to cns11643_to_ucs4
853         to check for incomplete input.
854         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
855         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
856         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
857         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
858         0x9f9d..0x9fa5.
859         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
860         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
861         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
862         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
863         upto index 0x0052.
864
865 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
866
867         * iconv/gconv_db.c (find_derivation): Always use the least-cost
868         solution.
869
870 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
871
872         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
873         are invalid.
874
875 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
876
877         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
878         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
879         U+007E.
880
881 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
882
883         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
884
885 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
886
887         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
888
889 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
890
891         * iconvdata/tst-tables.sh: New file.
892         * iconvdata/tst-table.sh: New file.
893         * iconvdata/tst-table-from.c: New file.
894         * iconvdata/tst-table-to.c: New file.
895         * iconvdata/tst-table-charmap.sh: New file.
896         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
897         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
898         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
899         ISIRI-3342.irreversible, SJIS.irreversible.
900         (tests): Add dependency on tst-tables.out.
901         (tst-tables.out, tst-tables-clean): New rules.
902         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
903         * iconvdata/ISIRI-3342.irreversible: New file.
904         * iconvdata/EUC-JP.irreversible: New file.
905         * iconvdata/SJIS.irreversible: New file.
906
907 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
908
909         * manual/locale.texi (General Numeric): Update description of
910         representation of the grouping information in the locale data.
911         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
912
913 2000-09-04  Andreas Jaeger  <aj@suse.de>
914
915         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
916         * iconv/iconv_prog.c (options): Fix typo.
917         Reported by dyky@kondara.org, closes PR libc/1885.
918
919 2000-09-04  Andreas Jaeger  <aj@suse.de>
920
921         * sysdeps/generic/fegetenv.c: It's __fegetenv.
922         Reported by Rob Levin <lilo@transvirtual.com>.
923
924 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
925
926         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
927         to the typedefs of __timezone_ptr_t.
928         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
929
930 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
931
932         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
933         the loop.
934
935 2000-09-01  H.J. Lu  <hjl@gnu.org>
936
937         * Makeconfig (built-program-cmd): Don't use the dynamic linker
938         to run a binary if it is in $(tests-static).
939
940         * Rules (binaries-static): Add $(tests-static).
941
942 2000-09-02  Andreas Jaeger  <aj@suse.de>
943
944         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
945
946         * libio/fmemopen.c (fmemopen_close): Revert one part of last
947         patch.
948
949 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
950
951         * iconvdata/big5hkscs.c: Regenerated from charmap.
952         * iconvdata/testdata/BIG5HKSCS: Regenerated.
953         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
954
955         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
956         statement.  General cleanup.
957
958 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
959
960         * wctype/wcfuncs.c (iswblank): New function.
961         * wctype/wcfuncs_l.c (__iswblank_l): New function.
962         * wctype/wcextra.c: Remove file.
963         * wctype/wcextra_l.c: Remove file.
964         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
965
966 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
967
968         * locale/programs/ld-collate.c (collate_output): Remove redundant
969         assert call.
970         * string/strcoll.c: Likewise.
971         * string/strxfrm.c: Include assert.h.  Add assert calls like in
972         string/strcoll.c.
973
974 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
975
976         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
977         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
978         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
979         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
980         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
981         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
982         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
983         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
984         _NL_CTYPE_GAP5/6 respectively.
985
986         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
987         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
988         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
989         Don't initialize __ctype_names and __ctype_width.
990         * wctype/cname-lookup.h: Remove file.
991         * wctype/Makefile (distribute): Remove cname-lookup.h.
992         * wctype/wchar-lookup.h: Include stdint.h.
993         * wctype/wctype.c (__wctype): Assume new locale format.
994         * wctype/wctype_l.c (__wctype_l): Likewise.
995         * wctype/iswctype.c: Don't include cname-lookup.h.
996         (__iswctype): Assume new locale format.
997         * wctype/iswctype_l.c: Don't include cname-lookup.h.
998         (__iswctype_l): Assume new locale format.
999         * wctype/wctrans.c: Don't include ctype.h.
1000         (wctrans): Assume new locale format.
1001         * wctype/wctrans_l.c (__wctrans_l): Likewise.
1002         * wctype/towctrans.c: Don't include cname-lookup.h.
1003         (__towctrans): Assume new locale format.
1004         * wctype/towctrans_l.c: Don't include cname-lookup.h.
1005         (__towctrans_l): Assume new locale format.
1006         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
1007         localeinfo.h instead.
1008         (__NO_WCTYPE): Remove unused macro.
1009         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
1010         declarations.
1011         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
1012         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
1013         (towlower, towupper): Likewise.
1014         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
1015         localeinfo.h instead.
1016         (__NO_WCTYPE): Remove unused macro.
1017         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
1018         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
1019         __iswxdigit_l): Assume new locale format.
1020         (__towlower_l, __towupper_l): Likewise.
1021         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
1022         (__ctype32_b): Remove declaration.
1023         (internal_wcwidth): Assume new locale format.
1024         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
1025         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
1026         to map32_b, rename width_3level to width.
1027         (ctype_output): Always create new locale format. Don't emit
1028         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
1029         (allocate_arrays): Always create new locale format.
1030
1031         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
1032         * locale/weightwc.h (findidx): Assume new locale format.
1033         * string/strcoll.c (wcscoll): Remove local variables size, layers,
1034         names.
1035         * string/strxfrm.c (wcsxfrm): Likewise.
1036         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
1037         local variable collseq to 'const char *'.
1038         (SUFFIX): Don't use, don't undefine.
1039         * posix/fnmatch.c: Remove SUFFIX definition.
1040         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
1041         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
1042         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
1043         (collate_finish): Always create new locale format. Remove local
1044         variables min_total, act_size.
1045         (collate_output): Always create new locale format. Remove local
1046         variables table_size, names, tablewc. Rename tablewc_3level to
1047         tablewc.
1048
1049 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
1050
1051         * locale/programs/ld-collate.c (obstack_int32_grow,
1052         obstack_int32_grow_fast): New inline functions.
1053         (output_weightwc, collate_output): Use them where possible.
1054
1055 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
1056
1057         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
1058         patch (_mode -> _flags).
1059
1060         * libio/Makefile (headers): Add stdio_ext.h.
1061         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
1062         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
1063         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
1064         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
1065         __fsetlocking, and _flushlbf.
1066         * libio/__fbufsize.c: New file.
1067         * libio/__flbf.c: New file.
1068         * libio/__fpending.c: New file.
1069         * libio/__fpurge.c: New file.
1070         * libio/__freadable.c: New file.
1071         * libio/__freading.c: New file.
1072         * libio/__fsetlocking.c: New file.
1073         * libio/__fwritable.c: New file.
1074         * libio/__fwriting.c: New file.
1075         * libio/stdio_ext.h: New file.
1076         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
1077         * libio/libio.h (_IO_USER_LOCK): Define.
1078         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
1079         test _IO_USER_LOCK flag first.
1080
1081         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
1082         malloc fails.
1083
1084 2000-09-01  Andreas Jaeger  <aj@suse.de>
1085
1086         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
1087
1088         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
1089
1090 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1091
1092         * math/Makefile (tests): Add tst-defintions.
1093         * math/tst-definitions.c: New file.
1094
1095         * stdlib/Makefile (headers): Add bits/wchar.h.
1096         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
1097         * sysdeps/generic/bits/wchar.h: New file.
1098         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
1099         file to define WCHAR_MIN and WCHAR_MAX.
1100         Change UINT*8_MAX and UIN*16_MAX value to type int.
1101         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
1102         file to define WCHAR_MIN and WCHAR_MAX.
1103         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
1104         int values.
1105         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
1106         * sysdeps/generic/bits/mathdef.h: Likewise.
1107         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
1108         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
1109         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
1110         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
1111         * locale/locale.h (struct lconv): Add __ prefix to the new members
1112         if not C99.
1113         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
1114         imaxdiv optimizations.
1115         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
1116         * sysdeps/wordsize-64/ldiv.c: Likewise.
1117         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
1118         const fenv_t*.
1119         * sysdeps/generic/bits/fenv.h: Likewise.
1120         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
1121         * sysdeps/ia64/bits/fenv.h: Likewise.
1122         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
1123         * sysdeps/mips/bits/fenv.h: Likewise.
1124         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
1125         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
1126         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1127
1128         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1129         * inet/ruserpass.c: Likewise.
1130         * catgets/open_catalog.c: Likewise.
1131         * intl/loadmsgcat.c: Likewise.
1132         * io/getdirname.c: Likewise.
1133         * locale/loadlocale.c: Likewise.
1134         * misc/getusershell.c: Likewise.
1135         * stdlib/canonicalize.c: Likewise.
1136         * sysdeps/posix/euidaccess.c: Likewise.
1137         * sysdeps/posix/isfdtype.c: Likewise.
1138         * sysdeps/posix/posix_fallocate.c: Likewise.
1139         * sysdeps/posix/tempname.c: Likewise.
1140         * sysdeps/unix/grantpt.c: Likewise.
1141         * sysdeps/unix/opendir.c: Likewise.
1142         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1143         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1144         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1145         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1146         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1147         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1148         * sysvipc/ftok.c: Likewise.
1149         * time/getdate.c: Likewise.
1150
1151         * time/getdate.c: Add extra access test.
1152
1153 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1154
1155         * version.h (VERSION): Bump to 2.1.93.
1156
1157         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1158         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1159
1160         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1161         Make this a new rule depending on tst-gettext.out and run mtrace.
1162         * intl/tst-gettext.c: Call mtrace.
1163         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1164
1165         * elf/dl-reloc.c: Add a few more __builtin_expect.
1166
1167         * configure.in: Remove --with-gettext option.
1168
1169         * intl/dcigettext.c (free_mem): Correct freeing of
1170         _nl_domain_bindings list.
1171
1172         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1173         allocated memory.
1174
1175         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1176
1177         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1178
1179         * stdio-common/itoa-digits.c: Move upper digits to...
1180         * stdio-common/itoa-udigits.c: ...here.  New file.
1181         * stdio-common/Makefile (routines): Add itoa-udigits.
1182
1183         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1184         relocate ld.so don't add supprt for relocations which should not
1185         appear in ld.so.
1186
1187         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1188         __secure_getenv.  Instead test __libc_enable_secure once.
1189
1190         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1191
1192 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1193
1194         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1195         whether the new record should be freed if it's a duplicate.
1196         (add_module): Adjust insert_module call.
1197         (__gconv_read_conf): Likewise.
1198         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1199         mtrace-tst-loading.
1200         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1201
1202         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1203         _dl_all_init_dirs.
1204         * include/link.h (struct r_search_path_struct): New.
1205         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1206         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1207         _dl_all_init_dirs.
1208         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1209         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1210         added at startup time.
1211         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1212         contains element to remember fact that we can free memory.
1213         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1214         (_dl_init_all_dirs): New variable.
1215         (fillin_rpath): Save one malloc call.
1216         (decompose_rpath): Change interface.  New first parameter points to
1217         r_search_path_struct.
1218         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1219         deletable.  Set _dl_init_all_paths value.
1220         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1221         parameter replaced with r_search_path_struct *.  Information about
1222         freeing now contained in r_search_path_struct.
1223         (_dl_map_object): Adjust for above changes.
1224
1225         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1226
1227         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1228         when adding new entries.
1229
1230         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1231         since the object being loaded can be unloaded.
1232
1233         * iconvdata/Makefile (tests): Add tst-loading.
1234         * iconvdata/tst-loading.c: New file.
1235
1236 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1237
1238         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1239         When comparing a char with an int, always cast the char to
1240         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1241         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1242
1243 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1244
1245         * time/strftime.c (my_strftime): Add compatibility code for use
1246         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1247
1248         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1249         return 0 for success but always < 0 on failure.
1250
1251         * nss/getXXbyYY_r.c: Define result to *result before including
1252         digits_dots.c.
1253
1254 2000-08-30  Andreas Jaeger  <aj@suse.de>
1255
1256         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1257
1258 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1259
1260         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1261         official file.
1262         * iconvdata/TESTS: Add BIG5HKSCS entry.
1263         * iconvdata/testdata/BIG5HKSCS: New file.
1264         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1265
1266         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1267         always true.
1268
1269         * libio/iogetline.c: Set mode before the loop in case n==0.
1270         * libio/iogetwline.c: Likewise.
1271
1272 2000-08-29  H.J. Lu  <hjl@gnu.org>
1273
1274         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1275         of fp->_mode < 0.
1276         (_IO_new_file_overflow): Likewise.
1277         * libio/genops.c (_IO_flush_all): Likewise.
1278         * libio/ioftell.c (_IO_ftell): Likewise.
1279
1280 2000-08-29  Akira Higuchi  <a@kondara.org>
1281
1282         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1283         and __end_fct fields of struct __gconv_step.
1284         * iconv/Makefile (tests): Add iconv-bug2.
1285         * iconv/iconv-bug2.c: New file.
1286
1287         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1288         instead of 'inptr - inend' to ksc5601_to_ucs4.
1289
1290         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1291
1292         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1293         character or shift sequence is found at the end of the input
1294         string, return__GCONV_INCOMPLETE_INPUT instead of
1295         __GCONV_EMPTY_INPUT.
1296         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1297         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1298
1299         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1300         __GCONV_ILLEGAL_INPUT for 8bit characters.
1301
1302 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1303
1304         * signal/signal.h (sigpause): Move __THROW before __asm__.
1305
1306         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1307         names don't match don't return.
1308         Patch by Olaf Kirch <okir@flash.lst.de>.
1309
1310 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1313
1314 2000-08-27  H.J. Lu  <hjl@gnu.org>
1315
1316         * posix/Makefile (otherlibs): Add for building with static-nss
1317         for "make check".
1318
1319 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1320
1321         * libio/stdio.h: Add fmemopen prototype.
1322
1323 2000-08-25  Andreas Jaeger  <aj@suse.de>
1324
1325         * libio/Makefile (routines): Add fmemopen.
1326         (tests): Add test-fmemopen.
1327         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1328         * libio/test-fmemopen.c: New file.
1329         * libio/fmemopen.c: New file.
1330         Patches by Hanno Mueller <kontakt@hanno.de>.
1331
1332 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1333
1334         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1335         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1336
1337         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1338         to avoid crashing statically linked applications.
1339
1340 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1341
1342         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1343         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1344
1345         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1346         If the result is fits in the buffer, copy only as many bytes as needed.
1347
1348         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1349         buffer after copying numbuf into it.
1350         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1351
1352 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1353
1354         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1355         the result.  When string_len < len, don't clear the rest of the buffer.
1356
1357 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1358
1359         Support for new LC_COLLATE format.
1360         * locale/coll-lookup.h: New file.
1361         * locale/weightwc.h (findidx): When size == 0, call
1362         collidx_table_lookup.
1363         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1364         * wcsmbs/wcsxfrm.c: Likewise.
1365         * posix/fnmatch.c: Likewise.
1366         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1367         collseq_table_lookup.
1368         * locale/programs/3level.h: New file.
1369         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1370         by including "3level.h".
1371         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1372         collseq_table): New types, defined by including "3level.h".
1373         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1374         (encoding_mask, encoding_byte): Remove.
1375         (utf8_encode): Use simple shifts instead.
1376         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1377         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1378         (collate_output): New local variable tablewc_3level. When
1379         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1380         tablewc_3level instead of tablewc. Change format of TABLEWC and
1381         COLLSEQWC entries written to the file.
1382         * locale/C-collate.c (collseqwc): Change format.
1383         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1384         of COLLSEQWC.
1385         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1386
1387 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1388
1389         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1390         (locale_ctype_t): New charnames_idx field.
1391         (ctype_startup): Initialize charnames_idx field.
1392         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1393
1394 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1395
1396         * locale/C-ctype.c: Switch to new locale format.
1397         (_nl_C_LC_CTYPE_names): Remove array.
1398         (STRUCT_CTYPE_CLASS): New macro.
1399         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1400         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1401         New three-level tables.
1402         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1403         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1404         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1405         12 class tables and 2 map tables at the end.
1406         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1407         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1408         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1409         New declarations.
1410         (b): Remove trailing semicolon.
1411         (__ctype_names, __ctype_width): Don't initialize.
1412         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1413
1414 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1415
1416         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1417         is guaranteed to be allocated with the same malloc() and may be
1418         passed to free().
1419         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1420         been set to empty by an earlier open_path call, don't pass it again.
1421
1422 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1423
1424         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1425         we are not optimizing.
1426
1427         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1428         inclusion.
1429
1430         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1431         really match EOF.
1432         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1433
1434 2000-08-28  Andreas Jaeger  <aj@suse.de>
1435
1436         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1437
1438 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1439
1440         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1441         getpeername.  Use ISO C style function definition.
1442         (getpeername): Provide weak alias.
1443         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1444         setrlimit.  Use ISO C style function definition.
1445         (setrlimit): Provide weak alias.
1446
1447 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1448
1449         * shlib-versions: Add a rule for S/390 to the libm version list.
1450         * sysdeps/s390/Versions: New file.
1451         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1452         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1453         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1454         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1455         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1456         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1457         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1458         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1459         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1460         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1461         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1462         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1463         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1464         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1465         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1466         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1467         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1468         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1469
1470 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1471
1472         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1473         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1474
1475         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1476         * elf/dl-close.c (_dl_close): Print debug message if object is not
1477         unloaded.
1478         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1479         returning to caller.
1480
1481         * po/zh.po: Renamed to...
1482         * po/zh_TW.po: ...this.
1483
1484 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1485
1486         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1487
1488         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1489         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1490         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1491         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1492
1493 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1494
1495         * locale/programs/ld-collate.c (insert_weights): Also update
1496         backpointer of next element.
1497         (collate_read): Allow definition of new collation symbols in stage 2.
1498         Symbol after reorder-after can be UCS4 value.
1499         Allow reordering of collation symbols and elements.
1500         Do not only move reorder entry in new position.  Instead call
1501         insert_weight to do this and read the weights.
1502
1503         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1504
1505         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1506         to determine invalid locale name.
1507         * locale/findlocale.c (_nl_find_locale): Likewise.
1508
1509         * posix/annexc.c: Correct test for unavailable feature.
1510
1511         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1512         __inline.
1513
1514 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1515
1516         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1517         syscall.
1518
1519         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1520         (sysdep_routines): Add oldgetrlimit64.
1521
1522         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1523         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1524         (tests): Add unload, reldep, reldep2, and reldep3.
1525         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1526         and reldepmod4.
1527         Add rules to build and run unload, reldep, reldep2, and reldep3.
1528         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1529         Don't create relocation dependency if it is nonzero.
1530         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1531         can never happen here.
1532         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1533         Don't create relocation dependency if it is nonzero.
1534         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1535         stuff.  This can never happen here.
1536         * sysdeps/generic/ldsodefs.h: Change prototypes.
1537         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1538         _dl_lookup_up and _dl_lookup_versioned_symbol.
1539         (RESOLV): Likewise.
1540         * elf/dl-runtime.c (fixup): Likewise.
1541         (profile_fixup): Likewise.
1542         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1543         _dl_lookup_symbol.
1544         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1545         * elf/rtld.c (dl_main): Likewise.
1546         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1547         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1548         and pass down the caller map.
1549         (_dl_vsym): Likewise.
1550         * elf/reldep.c: New file.
1551         * elf/reldep2.c: New file.
1552         * elf/reldep3.c: New file.
1553         * elf/reldepmod1.c: New file.
1554         * elf/reldepmod2.c: New file.
1555         * elf/reldepmod3.c: New file.
1556         * elf/reldepmod4.c: New file.
1557         * elf/unload.c: New file.
1558         * elf/unloadmod.c: New file.
1559
1560         * elf/do-lookup.h: Remove unused undef_name parameter.
1561         * elf/dl-lookup.c: Adjust callers.
1562
1563 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1564
1565         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1566         irreversible in recursive call of conversion function to signal that
1567         no error handling is wanted.
1568         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1569         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1570         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1571         recursive error handling call, otherwise to &lirreversible.  Use it
1572         for calls to conversion functions.
1573         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1574         transliterating.
1575         (ucs4_internal_loop_unaligned): Likewise.
1576         (ucs4le_internal_loop): Likewise.
1577         (ucs4le_internal_loop_unaligned): Likewise.
1578
1579 2000-08-25  Greg McGary  <greg@mcgary.org>
1580
1581         * sysdeps/i386/memchr.S: Check high bound against chars
1582         actually scanned.
1583         * sysdeps/i386/memcmp.S: Likewise.
1584         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1585         account for pointers that lie one beyond end-of-buffer.
1586
1587 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1588
1589         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1590         * elf/nodelete.c (fini_ran): New global variable.
1591         (do_test): Before every dlclose call clear fini_ran and test
1592         afterwards that it is not set by the destructors.
1593         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1594         * elf/nodelmod2.c: Likewise.
1595         * elf/nodelmod4.c: Likewise.
1596
1597 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1598
1599         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1600         getrlimit to the list.
1601
1602 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1603
1604         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1605         long double format so use ldbl-96 instead of ldbl-128.
1606
1607 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1608
1609         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1610         even if bits 10 a 11 are non-zero.
1611         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1612
1613         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1614         included before building gnu/lib-names.h
1615         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1616
1617         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1618         marked DF_1_NODELETE.
1619
1620         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1621         since we call sigaction in the child.
1622
1623 2000-08-25  Andreas Jaeger  <aj@suse.de>
1624
1625         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1626         gconv-modules.
1627
1628 2000-08-25  Andreas Jaeger  <aj@suse.de>
1629
1630         * manual/arith.texi (Control Functions): Clarify possible
1631         arguments.  Closes PR libc/1856.
1632
1633 2000-08-24  H.J. Lu  <hjl@gnu.org>
1634
1635         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1636         * malloc/Makefile (tests): Likewise.
1637
1638 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1639
1640         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1641
1642 2000-08-24  Andreas Jaeger  <aj@suse.de>
1643
1644         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1645         only if LIBGD is available.
1646
1647 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1648
1649         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1650         problems with now restrict parameter types.
1651         (convaddr4to6): Likewise.
1652
1653 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1654
1655         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1656         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1657         * sysdeps/s390/fpu/fegetexcept.c: New file.
1658         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1659         FPC_VALID_MASK.
1660
1661 2000-08-24  Andreas Jaeger  <aj@suse.de>
1662
1663         * malloc/Makefile (extra-objs): Add memusagestat.o.
1664         (generated): Added memusage and memusagestat for make clean.
1665
1666         * libio/tst_putwc.c (do_test): Delete temporary file.
1667         Move inclusion of test-skeleton to front to have prototype for
1668         add_temp_file.
1669
1670         * posix/Makefile (generated): Add wordexp-tst.out.
1671
1672 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1673
1674         * resolv/res_hconf.c (free_mem): Remove not needed if.
1675
1676         * time/tzset.c (free_mem): New function.
1677         * string/strsignal.c (free_mem): New function.
1678         * inet/inet_ntoa.c (free_mem): New function.
1679         * sunrpc/clnt_perr.c (free_mem): New function.
1680
1681 2000-08-24  Andreas Jaeger  <aj@suse.de>
1682
1683         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1684         * sysdeps/unix/sysv/syscalls.list: Likewise.
1685
1686         * posix/unistd.h: Move internal prototypes from here ...
1687         * include/unistd.h: ... to here.
1688
1689         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1690
1691 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1692
1693         * grp/initgroups.c (initgroups): Deallocate groups array.
1694         Reported by jani.raiha@sonera.com [PR libc/1868].
1695
1696         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1697         * sysdeps/alpha/Dist: Likewise.
1698
1699 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1700
1701         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1702         destructor).  Reported by Solar Designer <solar@false.com>.
1703
1704         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1705         avoid adding double slashes.
1706
1707 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1708
1709         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1710         out of the __REDIRECT macro.
1711
1712 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1713
1714         * stdio-common/vfscanf.c: Add %F format support.
1715
1716         * locale/programs/ld-ctype.c (ctype_output): Make sure
1717         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1718         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1719         (ctype_read): Enable returning of wide character strings for reading
1720         transliteration information.
1721
1722 2000-08-23  Andreas Jaeger  <aj@suse.de>
1723
1724         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1725         Use static __inline instead of _EXTERN_INLINE.
1726
1727         * misc/sys/select.h: Move prototypes of __select from here ...
1728         * include/sys/select.h: ... to here.
1729
1730         * socket/sys/socket.h: Move prototypes of __send and __connect
1731         from here....
1732         * include/sys/socket.h: ... to here.
1733
1734         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1735         lr_error.
1736
1737 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1738
1739         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1740         __setrlimit as strong name. Takes only 2 arguments.
1741
1742         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1743         takes only 2 arguments.
1744
1745 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1746
1747         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1748
1749         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1750
1751 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1752
1753         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1754         default_missing character being specified, pick the first
1755         representable.
1756
1757 2000-08-23  Andreas Jaeger  <aj@suse.de>
1758
1759         * include/wchar.h: Add some pure attributes.
1760
1761         * time/time.h: Add const attribute for dysize.
1762
1763         * include/stdlib.h: Add malloc attribute to __posix memalign.
1764
1765         * stdlib/stdlib.h: Add some pure and malloc attributes.
1766         * wcsmbs/wchar.h: Likewise.
1767
1768         * dirent/dirent.h: Add some pure attributes.
1769         * include/dirent.h: Likewise.
1770
1771 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1772
1773         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1774         on 64bit arches.
1775
1776 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1777
1778         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1779         missing buffer size checks.
1780
1781 2000-08-23  Andreas Jaeger  <aj@suse.de>
1782
1783         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1784         strong name.
1785         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1786
1787         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1788         otherwise __LINUX_KERNEL_VERSION might not be defined.
1789         (MIN): Define if not already defined.
1790
1791 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1792
1793         * stdio-common/vfprintf.c: Handle %F format.
1794         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1795         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1796
1797         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1798
1799         * po/zh.po: New file.
1800
1801         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1802         enough room in target buffer.
1803         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1804         * iconvdata/bug-iconv1.c: New file.
1805         * iconvdata/Makefile (tests): Add bug-iconv1.
1806
1807         * locale/iso-4217.def: Update entry for Nicaragua.
1808
1809 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1810
1811         * hurd/hurdsig.c: Rearrange headers a bit.
1812         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1813         when cthreads is being used.
1814
1815 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1816
1817         * elf/Makefile (distribute): Add dl-osinfo.h.
1818         * sysdeps/generic/dl-osinfo.h: New file.
1819         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1820         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1821         if defined.
1822         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1823         only for !SHARED case.  Get the code from dl-osinfo.h.
1824
1825         * stdlib/random_r.c: Cleanups.
1826         * stdlib/tst-random.c: New file.
1827         * stdlib/Makefile (tests): Add tst-random.
1828         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1829
1830 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1831
1832         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1833         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1834         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1835         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1836
1837 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1838
1839         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1840         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1841         (__syscall__sysctl): Add.
1842
1843 2000-08-21  Andreas Jaeger  <aj@suse.de>
1844
1845         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1846         libc/1864).
1847         * stdlib/tst-strtoll.c: Likewise.
1848
1849 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1850
1851         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1852         correctly.
1853         (__initstate_r): Set errno on error.
1854         (__random_r): Likewise.
1855         (__setstate_r): Correct offset when computing
1856         new rptr and fptr.  Test for arg_state being NULL.
1857         Reported by Michael Fischer <fischer@cs.yale.edu>.
1858
1859         * posix/regex.h: Add macro definitions to allow compiling outside
1860         glibc.
1861
1862         * sysdeps/i370/Implies: Removed.
1863         * sysdeps/mvs/Implies: Removed.
1864
1865         * catgets/catgets.c (catopen): Filter out env_var values with / if
1866         necessary.
1867
1868         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1869         locale name after all getenvs.
1870
1871         * configure.in: Allow sed versions like 3.02.8.
1872         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1873
1874 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1875
1876         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1877
1878 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1879
1880         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1881         of gethostbyname2_r call.
1882
1883         * intl/locale.alias: Add aliases for Korean.
1884
1885 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1886
1887         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1888         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1889         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1890         * sysdeps/s390/fpu/fegetenv.c: New file.
1891         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1892         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1893         * sysdeps/s390/fpu/fenv_libc.h: New file.
1894         * sysdeps/s390/fpu/fesetenv.c: New file.
1895         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1896         * sysdeps/s390/fpu/feupdateenv.c: New file.
1897         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1898         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1899         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1900         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1901         * sysdeps/s390/fpu/ftestexcept.c: New file.
1902         * sysdeps/s390/fpu/libm-test-ulps: New file.
1903         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1904         * sysdeps/s390/initfini.c: New file.
1905         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1906         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1907         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1908         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1909         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1910         sys/procfs.h as proposed by Mark Kettenis.
1911         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1912
1913 2000-08-21  Andreas Jaeger  <aj@suse.de>
1914
1915         * include/poll.h: Include include/sys/poll.h to get __poll
1916         declaration.
1917
1918         * io/sys/poll.h: Move __poll declaration from here...
1919         * include/sys/poll.h: ...to here.
1920
1921         * include/sys/socket.h (__getpeername): Add declaration.
1922
1923         * include/wchar.h (__vswprintf): Add declaration.
1924
1925         * include/stdio.h (__flockfile): Add declaration.
1926         (__funlockfile): Likewise.
1927
1928 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1929
1930         * misc/sys/cdefs.h: Define __restrict_arr.
1931         * include/sys/time.h: Add restrict where required by AGd4.
1932         * inet/arpa/inet.h: Likewise.
1933         * io/sys/stat.h: Likewise.
1934         * io/sys/statvfs.h: Likewise.
1935         * misc/search.h: Likewise.
1936         * misc/sys/select.h: Likewise.
1937         * posix/glob.h: Likewise.
1938         * posix/regex.h: Likewise.
1939         * posix/spawn.h: Likewise.
1940         * posix/unistd.h: Likewise.
1941         * rt/aio.h: Likewise.
1942         * signal/signal.h: Likewise.
1943         * socket/sys/socket.h: Likewise.
1944         * stdlib/ucontext.h: Likewise.
1945         * streams/stropts.h: Likewise.
1946         * string/string.h: Likewise.
1947         * time/time.h: Likewise.
1948         * time/sys/time.h: Likewise.
1949
1950         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1951         and posix_spawnattr_setscheparam.
1952
1953         * libio/stdio.h: Make cuserid prototype again available for all
1954         XPG versions.
1955
1956         * argp/argp-help.c: Unify use of function aliases to make more compact
1957         PLT.
1958         * include/libintl.h: Likewise.
1959         * inet/rcmd.c: Likewise.
1960         * intl/dcigettext.c: Likewise.
1961         * libio/iofputws.c: Likewise.
1962         * libio/iofputws_u.c: Likewise.
1963         * libio/iogetwline.c: Likewise.
1964         * libio/swprintf.c: Likewise.
1965         * malloc/malloc.c: Likewise.
1966         * nss/digits_dots.c: Likewise.
1967         * posix/fnmatch.c: Likewise.
1968         * posix/spawn_faction_addclose.c: Likewise.
1969         * posix/spawn_faction_adddup2.c: Likewise.
1970         * posix/spawn_faction_addopen.c: Likewise.
1971         * posix/spawni.c: Likewise.
1972         * posix/wordexp.c: Likewise.
1973         * posix/spawni.c: Likewise.
1974         * resolv/res_hconf.c: Likewise.
1975         * resolv/res_init.c: Likewise.
1976         * shadow/lckpwdf.c: Likewise.
1977         * signal/sighold.c: Likewise.
1978         * signal/sigrelse.c: Likewise.
1979         * stdio-common/printf-parse.h: Likewise.
1980         * stdio-common/printf-prs.c: Likewise.
1981         * stdio-common/printf_fp.c: Likewise.
1982         * stdio-common/vfprintf.c: Likewise.
1983         * stdio-common/vfscanf.c: Likewise.
1984         * stdlib/rpmatch.c: Likewise.
1985         * sunrpc/create_xid.c: Likewise.
1986         * sunrpc/key_call.c: Likewise.
1987         * sysdeps/generic/setrlimit64.c: Likewise.
1988         * sysdeps/generic/utmp_file.c: Likewise.
1989         * sysdeps/generic/vlimit.c: Likewise.
1990         * sysdeps/posix/posix_fallocate.c: Likewise.
1991         * sysdeps/posix/posix_fallocate64.c: Likewise.
1992         * sysdeps/posix/sigpause.c: Likewise.
1993         * sysdeps/posix/sigset.c: Likewise.
1994         * sysdeps/unix/grantpt.c: Likewise.
1995         * sysdeps/unix/bsd/ualarm.c: Likewise.
1996         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1997         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1998         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1999         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2000         * time/strftime.c: Likewise.
2001         * wcsmbs/wcscoll.c: Likewise.
2002         * wcsmbs/wcsxfrm.c: Likewise.
2003
2004         * time/tst-getdate.c (main): Make error messages more human readable.
2005
2006         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
2007         postinc/predec instruction.
2008         (_FPU_SETCW): Likewise.
2009         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2010
2011 2000-08-20  Andreas Jaeger  <aj@suse.de>
2012
2013         * time/tst-getdate.c (main): Increase error in case of wrong
2014         conversion.
2015         Fix typo in test case.
2016
2017 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
2018
2019         * ctype/ctype.h (isblank): Make available if ISO C99.
2020         * wctype/wctype.h (iswblank): Make available if ISO C99.
2021         * math/math.h (signgam): Don't make available if ISO C99.
2022         * math/tgmath.h (tgamma): Renamed from gamma.
2023         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
2024
2025         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
2026         Pretty printing.
2027         * intl/plural.y (new_exp): Take number of optional parameters in
2028         second parameter.  Test for correct number of parameters and free
2029         correctly in case of failure.  Adjust all callers.
2030         (yylex): Allow ';' as terminator character.
2031
2032 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2033
2034         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
2035         walt_digits.
2036
2037         * locale/findlocale.c (free_mem): Also free here->filename.
2038
2039         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
2040
2041         * math/test-fenv.c (feenv_tests): Clear all exceptions before
2042         first test.
2043         (feexcp_nomask_test): Correct printf args.
2044         (feexcp_mask_test): Likewise.
2045
2046 2000-08-19  Andreas Jaeger  <aj@suse.de>
2047
2048         * inet/tst-gethnm.c: Include string.h to provide prototype for
2049         strcmp.
2050
2051         * malloc/mtrace.pl (usage): Inform about --help.
2052
2053 2000-08-19  Wolfram Gloger  <wg@malloc.de>
2054
2055         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
2056         size HEAP_MAX_SIZE.
2057
2058 2000-08-19  Andreas Jaeger  <aj@suse.de>
2059
2060         * shlib-versions: Remove libnss_db, libdb and libdb1.
2061
2062 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
2065         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
2066         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
2067         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
2068         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
2069         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
2070         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
2071         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
2072         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
2073         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
2074         getdents.
2075         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
2076         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
2077
2078 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2079
2080         * include/glob.h (__glob64): Add prototype.
2081         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
2082         define glob and glob_in_dir.
2083         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
2084         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
2085         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
2086         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
2087         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
2088         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
2089         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
2090         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
2091
2092 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
2093
2094         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
2095
2096 2000-08-17  Andreas Jaeger  <aj@suse.de>
2097
2098         * math/test-fenv.c (fe_single_test): New function.
2099         (fe_env_tests): Use fe_single_test.
2100         (feenable_test): New tests for feenable/fedisable and
2101         fegetexcpetions.
2102         (feexcp_mask_test): New function.
2103         (feexcp_nomask_test): New function.
2104
2105 2000-08-19  Richard Henderson  <rth@cygnus.com>
2106
2107         * sysdeps/alpha/fpu/fenv_libc.h: New file.
2108         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
2109         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
2110         * sysdeps/alpha/fpu/fesetround.c: Likewise.
2111         * sysdeps/alpha/fpu/fegetround.c: Likewise.
2112         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
2113         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
2114         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
2115         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
2116         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
2117         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
2118         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
2119         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
2120         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
2121         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
2122         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
2123         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
2124
2125 2000-08-19  Andreas Jaeger  <aj@suse.de>
2126
2127         * elf/constload1.c: Include <stdio.h> for puts prototype.
2128
2129 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2130
2131         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2132         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2133         a dynamically loaded object remove old l_initfini list.
2134         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2135         remove some dynamically allocated memory blocks in the dynamic
2136         loading data structures.
2137         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2138         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2139         Instead call _dl_check_map_versions only for the dependencies.
2140         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2141         information of initial objects as not free-able.
2142         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2143         element.
2144
2145         * elf/filter.c: Call mtrace.
2146         * elf/restest1.c: Likewise.  Close the objects.
2147         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2148         debug information.
2149
2150         * elf/constload1.c: Add comment explaining not freed memory.
2151
2152 2000-08-18  Andreas Jaeger  <aj@suse.de>
2153
2154         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2155         alignment for structs stat and stat64.
2156         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2157
2158 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2159
2160         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2161         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2162
2163         * nss/Versions: Remove libnss_db information.
2164
2165 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2166
2167         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2168         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2169         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2170         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2171
2172         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2173         to match Solaris.
2174
2175 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2176
2177         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2178         (_FPU_SETCW): Likewise.
2179         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2180
2181         * stdio-common/printf_fp.c: Fix chars_needed computation.
2182         Patch by Greg McGary <greg@mcgary.org>.
2183
2184 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2185
2186         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2187         _dl_loaded are NULL.
2188
2189 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2190
2191         * manual/arith.texi (feholdexcept): Returns 0 on success.
2192
2193 2000-08-17  Andreas Jaeger  <aj@suse.de>
2194
2195         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2196         (ifr_newname): New.
2197         Reported by Andi Kleen <ak@suse.de>.
2198
2199 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2200
2201         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2202         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2203         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2204
2205 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2206
2207         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2208         of buf->st_ino and kbuf->st_ino, not __st_ino.
2209         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2210         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2211         directive so that only linux/getdents.c is used, not some
2212         architecture specific one.
2213
2214 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2215
2216         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2217         enabled, not disabled exceptions.
2218         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2219         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2220
2221 2000-08-17  Greg McGary  <greg@mcgary.org>
2222
2223         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2224         from test program name when constructing suffix for $(LDLIBS-*).
2225         (bounded-thread-library): New variable.
2226         * crypt/Makefile
2227         [build-shared, build-static] (libcrypt-dep): Remove variable.
2228         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2229         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2230         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2231         (librt-tests): Add variable.  (tests): Use it.
2232         [build-shared, build-static]
2233         ($(addprefix $(objpfx),$(tests)),
2234         $(addprefix $(objpfx),$(librt-tests))):
2235         Consolidate individual dependencies.
2236         [build-bounded]
2237         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2238         Add dependencies.
2239         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2240         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2241         * misc/Makefile
2242         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2243         * rt/Makefile
2244         [build-shared, build-static]
2245         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2246         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2247
2248 2000-08-17  Greg McGary  <greg@mcgary.org>
2249
2250         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2251         * sysdeps/unix/make-syscalls.sh: Likewise.
2252         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2253         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2254         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2255         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2256         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2257
2258 2000-08-17  Greg McGary  <greg@mcgary.org>
2259
2260         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2261         Wrap extern symbols in BP_SYM ().
2262         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2263         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2264         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2265         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2266         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2267         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2268         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2269         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2270         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2271         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2272
2273 2000-08-16  Andreas Schwab  <schwab@suse.de>
2274
2275         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2276         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2277         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2278
2279 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2280
2281         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2282         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2283         * elf/dl-support.c: Define _nl_nloaded.
2284         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2285         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2286         object to global list.
2287         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2288         from _dl_loaded list.
2289         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2290         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2291         number here.
2292
2293         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2294         unmask, exceptions.
2295         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2296         exceptions.
2297         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2298
2299 2000-08-16  Andreas Jaeger  <aj@suse.de>
2300
2301         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2302
2303 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2304
2305         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2306
2307 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2308
2309         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2310         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2311         (sysdep_routines): Add oldgetrlimit64.
2312         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2313         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2314
2315         * include/link.h: Undo last patches.  Hurd now has stat64.
2316         * elf/Makefile: Likewise.
2317         * elf/dl-load.c: Likewise.
2318         * elf/dl-misc.c: Likewise.
2319         * elf/dl-profile.c: Likewise.
2320         * sysdeps/generic/sysd-link.h: Removed.
2321         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2322
2323         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2324         thread event callback function.
2325         (__aio_notify_only): Use function above.
2326         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2327
2328 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2329
2330         * sysdeps/mach/hurd/lseek64.c: New file.
2331
2332 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2333
2334         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2335         Remove typedefs.
2336         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2337         typedefs.
2338         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2339         typedefs.
2340         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2341
2342 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2343
2344         * sysdeps/mach/hurd/xstatconv.c: New file.
2345         * sysdeps/mach/hurd/fxstat64.c: New file.
2346         * sysdeps/mach/hurd/lxstat64.c: New file.
2347         * sysdeps/mach/hurd/xstat64.c: New file.
2348         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2349
2350 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2351
2352         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2353         Initialize, needed for change in common symbol handling in newer
2354         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2355
2356 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2357
2358         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2359         * elf/constload2.c: Add destructor to unload constload3.
2360
2361         * include/link.h: Include sysd-link.h.
2362         * sysdeps/generic/sysd-link.h: New file.
2363         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2364         * elf/Makefile (distribute): Add sysd-link.h.
2365         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2366         types and functions directly.
2367         * elf/dl-misc.c: Likewise.
2368         * elf/dl-profile.c: Likewise.
2369
2370         * elf/loadfail.c (main): Close all successfully loaded objects.
2371
2372         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2373         free wd.
2374         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2375         there is already one.
2376
2377         * elf/dl-close.c: Pretty print.
2378
2379 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2380
2381         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2382         global (with file scope).  Add __libc_subfreeres function to free the
2383         string.
2384         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2385         in ttyname function.
2386
2387         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2388
2389         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2390
2391         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2392         mapping them to /x5c and /x7e respectively.
2393
2394         * locale/programs/ld-ctype.c: Add support for more definitions after
2395         copy statement.
2396
2397 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2398
2399         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2400         * sysdeps/unix/sysv/linux/kernel-features.h
2401         (__ASSUME_GETDENTS64_SYSCALL): Define.
2402         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2403         syscall if available to get d_type fields.
2404         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2405         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2406         __lxstat64): Export at GLIBC_2.2.
2407         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2408         Likewise.
2409         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2410         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2411         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2412         getdirentries64, versionsort64): Remove.
2413         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2414         getdirentries64, versionsort64): Remove.
2415
2416 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2417
2418         * posix/Makefile: Remove rules to generate glob package.
2419
2420         * posix/Makefile (tests): Add tst-regexloc.
2421         (tst-regexloc-ENV): Add LOCPATH.
2422         * posix/tst-regexloc.c: New file.
2423
2424 2000-08-12  Andreas Jaeger  <aj@suse.de>
2425
2426         * include/features.h (__STDC_ISO_10646__): Define.
2427         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2428
2429 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2430
2431         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2432
2433         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2434         for revision 6 and up).
2435
2436         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2437         including <time.h>.
2438         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2439         to get definitions of just these types.
2440
2441         * signal/signal.h: Define thread signal handling functions also for
2442         POSIX95.
2443
2444         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2445         POSIX95.
2446         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2447         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2448         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2449         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2450
2451         * sysvipc/sys/shm.h: Define pid_t for XPG.
2452
2453         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2454         they are not anymore required here.
2455
2456         * wcsmbs/wchar.h: Make the various wide char string and stream
2457         functions available for the respective XPG versions.
2458
2459         * nss/Makefile: Remove rules to build and distribute nss_db.
2460
2461         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2462         * sysdeps/generic/scandir64.c: Likewise.
2463         * sysdeps/generic/versionsort64.c: Likewise.
2464
2465 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2466             Benjamin Koznik  <bkoz@redhat.com>
2467
2468         * libio/fileops.c: Merge with libstdc++-v3.
2469         * libio/genops.c: Likewise.
2470         * libio/iofclose.c: Likewise.
2471         * libio/iofopen.c: Likewise.
2472         * libio/iofwide.c: Likewise.
2473         * libio/libio.h: Likewise.
2474         * libio/libioP.h: Likewise.
2475         * libio/stdfiles.c: Likewise.
2476         * libio/stdio.c: Likewise.
2477         * libio/wfileops.c: Likewise.
2478         * libio/wgenops.c: Likewise.
2479
2480         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2481
2482 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2483
2484         * locale/programs/localedef.c: Implement --prefix option to allow
2485         writing in standard places of alternative install directories.
2486
2487         * posix/regex.c (compile_range): Implement collation sequence
2488         handling for glibc.  Use simple character ordering otherwise and
2489         not strcoll.
2490
2491 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2492
2493         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2494
2495 2000-08-12  Andreas Jaeger  <aj@suse.de>
2496
2497         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2498         __USE_FILE_OFFSET64 correctly for locking.
2499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2500
2501 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2502
2503         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2504         Define for 2.4.1 on sparc as well.
2505         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2506         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2507         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2508         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2509
2510 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2511
2512         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2513         defined.
2514
2515 2000-08-12  Andreas Jaeger  <aj@suse.de>
2516
2517         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2518         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2519
2520         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2521         mips2 for assembler.
2522
2523         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2524         if fnctl64 is not available for F_*LK*64.
2525
2526         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2527
2528 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2529
2530         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2531         Define for 2.4.1 on x86.
2532         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2533         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2534         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2535
2536         * dirent/dirent.h: Define DT_WHT.
2537
2538         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2539         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2540         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2541         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2542         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2543         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2544
2545 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2546
2547         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2548         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2549         * inet/Makefile (tests): Add tst-gethnm.
2550         * inet/tst-gethnm.c: New file.
2551
2552         * rt/aio_cancel.c: If canceling a specific request which is running
2553         *really* do nothing.
2554         * rt/aio_misc.h: Add `done' to states of a request.
2555         * rt/aio_misc.c: Add several tests for the correct state.
2556         Simplify request table memory handling.
2557
2558 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2559
2560         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2561         * dirent/scandir64.c: Move...
2562         * sysdeps/generic/scandir64.c: ...here.
2563         * dirent/alphasort64.c: Move...
2564         * sysdeps/generic/alphasort64.c: ...here.
2565         * dirent/versionsort64.c: Move...
2566         * sysdeps/generic/versionsort64.c: ...here.
2567         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2568         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2569         Export symbols at GLIBC_2.2.
2570         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2571         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2572         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2573         __versionsort64): Add prototypes.
2574         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2575         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2576         unused prototype.
2577         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2578         and GLIBC_2.2.
2579         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2580         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2581         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2582         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2583         __u_quad_t.
2584         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2585         Adjust for kernel-2.4.0-test6 layout.
2586         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2587         GLIBC_2.1 and GLIBC_2.2.
2588         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2589         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2590         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2591         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2592         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2593         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2594         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2595         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2596         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2597         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2598         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2599         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2600         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2601         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2602         __u_quad_t.
2603         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2604         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2605         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2606         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2607         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2608         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2609         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2610         __u_quad_t.
2611         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2612         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2613         Define.
2614         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2615         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2616         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2617         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2618         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2619         Define.
2620         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2621         alpha/readdir.c.
2622         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2623         alpha/readdir_r.c
2624         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2625         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2626         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2627         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2628         st_ino from __st_ino.
2629         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2630         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2631         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2632         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2633         set __st_ino in addition to st_ino.
2634         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2635         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2636         __old_getdents64 as well.
2637         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2638         getdirentries64 and old_getdirentries64 as well.
2639         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2640         __GETDENTS): Define.
2641         (GETDENTS64): Remove.
2642         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2643         Define.
2644         (GETDENTS64): Remove.
2645         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2646         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2647         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2648         as well.
2649         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2650         __old_readdir64_r as well.
2651         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2652         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2653
2654 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2655
2656         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2657         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2658         define of the kernel.
2659         Add missing __SEG_PSTKOVF definition.
2660         Adjust the padding of struct siginfo and struct sigevent to
2661         match the fact that sigval_t is 64 bit.
2662
2663 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2664
2665         * timezone/zic.c: Update from tzcode2000f.
2666         * timezone/australasia: Update from tzdata2000f.
2667         * timezone/europe: Likewise.
2668         * timezone/southamerica: Likewise.
2669         * timezone/yearistype: Likewise.
2670
2671 2000-08-10  Andreas Jaeger  <aj@suse.de>
2672
2673         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2674         stat with current MIPS kernel.
2675
2676 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2677
2678         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2679         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2680         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2681         Remove the junk that's only relevant in the Linux kernel itself.
2682         Add a warning saying that this file is now obsolete, and include
2683         <sys/procfs.h>.
2684         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2685         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2686         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2687         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2688         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2689         and add the notice that the file is primarily there for GDB.
2690         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2691
2692 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2693
2694         * time/tzfile.c (__tzfile_compute): __tzstring zones
2695         from zone_names.
2696
2697 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2698
2699         * resolv/resolv.h (__res_state): Surround prototype with
2700         __BEGIN_DECLS/__END_DECLS.
2701         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2702
2703 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2704
2705         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2706         Make independant of asm/resource.h from the Linux kernel.
2707
2708 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2709
2710         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2711
2712 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2713
2714         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2715         * locale/Makefile (locale-CPPFLAGS): Likewise.
2716
2717 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2718
2719         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2720         for AMD processors.
2721
2722 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2723
2724         * misc/Versions (mincore): Export at GLIBC_2.2.
2725
2726 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2727
2728         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2729
2730 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2731
2732         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2733         socketpair.  Made socketpair a weak alias.
2734         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2735         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2736         conforming, but fall back on the old protocol if the socket server
2737         doesn't support it.
2738         * include/sys/socket.h: Add prototype for __socketpair.
2739
2740 2000-08-09  Andreas Schwab  <schwab@suse.de>
2741
2742         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2743         long long modifier is seen.
2744
2745         * elf/nodelete.c (do_test): Remove reference to undefined member
2746         sa_restorer.
2747         * rt/tst-aio4.c (do_test): Likewise.
2748
2749         * configure.in: Add `-lm' when checking for libgd.
2750         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2751         linking.
2752
2753 2000-08-09  Andreas Jaeger  <aj@suse.de>
2754
2755         * configure.in: Change required make versions.
2756
2757         * manual/install.texi (Tools for Compilation): Document required
2758         make version.
2759         (Supported Configurations): Update list of supported
2760         configurations.
2761
2762 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2763
2764         * locale/linereader.c (get_string): Don't print an error is a string
2765         contains an unknown character.
2766
2767 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2768
2769         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2770         (new_symbol): Take new parameters with name of the symbol.
2771         Adjust callers.
2772         (handle_ellipsis): Don't only allow character symbols.
2773         (collate_read): Allow string of collating elements contain invalid
2774         characters; ignore entry in this case.
2775         Handle ellipsis of collating symbols before first order_start.
2776         Allow ellipsis in state 0.
2777
2778 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2779
2780         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2781         error message.
2782         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2783
2784 2000-08-04  Greg McGary  <greg@mcgary.org>
2785
2786         * posix/regex.c (SET_HIGH_BOUND): New macro.
2787         (MOVE_BUFFER_POINTER): Use it.
2788         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2789         (EXTEND_BUFFER): Use it.
2790
2791 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2792
2793         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2794         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2795         _wide_data but from _IO_FILE directly.
2796         * libio/iofclose.c: Likewise.
2797         * libio/wfileops.c: Likewise.
2798
2799         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2800         * libio/libioP.h: Change prototypes.
2801
2802 2000-08-03  Greg McGary  <greg@mcgary.org>
2803
2804         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2805         frame pointer early so that we save caller's frame pointer.
2806         * sysdeps/i386/elf/setjmp.S: Likewise.
2807
2808         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2809         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2810
2811         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2812         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2813         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2814
2815 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2816
2817         * iconvdata/big5.c: Updated.
2818         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2819
2820 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2821
2822         * Makeconfig (all-subdirs): Add conform.
2823         * conform/Makefile: Include ../Rules.
2824
2825         * Makefile (README): Add rules to generate here as well.
2826
2827 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2828
2829         * version.h (VERSION): Bump to 2.1.92.
2830
2831         * sysdeps/ia64/Dist: Add _mcount.S.
2832
2833         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2834
2835         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2836
2837         * elf/Makefile (distribute): Add missing modules.
2838
2839         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2840
2841         * posix/regex.c (compile_range): Translate range start and end
2842         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2843
2844         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2845         asm/resource.h.
2846
2847         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2848
2849 2000-08-02  Andreas Jaeger  <aj@suse.de>
2850
2851         * elf/elf.h (EM_S390): Added.
2852         (R_390_*): New relocs for S390.
2853
2854         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2855         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2856         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2857         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2858         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2859         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2860         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2861         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2862         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2863         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2864         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2865         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2866         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2867         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2868         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2869         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2870         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2871         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2872         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2873         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2874         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2875         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2876         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2877         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2878         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2879         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2880         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2881         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2882         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2883         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2884         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2885         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2886         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2887         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2888         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2889         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2890         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2891         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2892         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2893         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2894         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2895         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2897         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2898         * sysdeps/s390/sysdep.h: New file.
2899         * sysdeps/s390/sys/ucontext.h: New file.
2900         * sysdeps/s390/sub_n.S: New file.
2901         * sysdeps/s390/strncpy.S: New file.
2902         * sysdeps/s390/strcpy.S: New file.
2903         * sysdeps/s390/stackinfo.h: New file.
2904         * sysdeps/s390/setjmp.S: New file.
2905         * sysdeps/s390/s390-mcount.S: New file.
2906         * sysdeps/s390/mul_1.S: New file.
2907         * sysdeps/s390/memusage.h: New file.
2908         * sysdeps/s390/memset.S: New file.
2909         * sysdeps/s390/memcpy.S: New file.
2910         * sysdeps/s390/memchr.S: New file.
2911         * sysdeps/s390/machine-gmon.h: New file.
2912         * sysdeps/s390/ldbl2mpn.c: New file.
2913         * sysdeps/s390/gmp-mparam.h: New file.
2914         * sysdeps/s390/fpu/fpu_control.h: New file.
2915         * sysdeps/s390/fpu/fesetround.c: New file.
2916         * sysdeps/s390/fpu/fegetround.c: New file.
2917         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2918         * sysdeps/s390/fpu/bits/fenv.h: New file.
2919         * sysdeps/s390/ffs.c: New file.
2920         * sysdeps/s390/elf/start.S: New file.
2921         * sysdeps/s390/elf/setjmp.S: New file.
2922         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2923         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2924         * sysdeps/s390/dl-machine.h: New file.
2925         * sysdeps/s390/bzero.S: New file.
2926         * sysdeps/s390/bsd-setjmp.S: New file.
2927         * sysdeps/s390/bsd-_setjmp.S: New file.
2928         * sysdeps/s390/bits/string.h: New file.
2929         * sysdeps/s390/bits/setjmp.h: New file.
2930         * sysdeps/s390/bits/huge_val.h: New file.
2931         * sysdeps/s390/bits/endian.h: New file.
2932         * sysdeps/s390/bits/byteswap.h: New file.
2933         * sysdeps/s390/bcopy.S: New file.
2934         * sysdeps/s390/backtrace.c: New file.
2935         * sysdeps/s390/atomicity.h: New file.
2936         * sysdeps/s390/asm-syntax.h: New file.
2937         * sysdeps/s390/addmul_1.S: New file.
2938         * sysdeps/s390/add_n.S: New file.
2939         * sysdeps/s390/abort-instr.h: New file.
2940         * sysdeps/s390/__longjmp.c: New file.
2941         * sysdeps/s390/Makefile: New file.
2942         * sysdeps/s390/Implies: New file.
2943         * sysdeps/s390/Dist: New file.
2944         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2945
2946 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2947
2948         Remove incompatible IPv6 extension of RPC.
2949         * sunrpc/Makefile: Undo changes.
2950         * sunrpc/rpc_main.c: Likewise.
2951         * sunrpc/rpc/clnt.h: Likewise.
2952         * sunrpc/rpc/svc.h: Likewise.
2953         * sunrpc/bindrsvprt6.c: Removed.
2954         * sunrpc/clnt_tcp6.c: Removed.
2955         * sunrpc/clnt_udp6.c: Removed.
2956         * sunrpc/svc_tcp6.c: Removed.
2957         * sunrpc/svc_udp6.c: Removed.
2958
2959         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2960         dgettext, and dcgettetxt.
2961
2962         * intl/locale.alias: Update japanese aliases.
2963
2964         * sysdeps/ia64/bits/byteswap.h: New file.
2965         Patch by Dan Pop <Dan.Pop@cern.ch>.
2966
2967         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2968         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2969
2970 2000-07-13  H.J. Lu  <hjl@gnu.org>
2971
2972         * posix/regex.c (re_max_failures): Set to 4000.
2973
2974 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2975
2976         * gnulib/Makefile (tests): Add tst-gcc.
2977         * gnulib/tst-gcc.c: New file.
2978
2979         * assert/Makefile (routines): Add __assert.
2980         * assert/Versions: Export __assert for glibc 2.2.
2981         * assert/__assert.c: New file.
2982         * assert/assert.h: Declare __assert.
2983
2984 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2985
2986         * locale/localeinfo.h (_ISCTYPE): New macro.
2987         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2988         LC_CTYPE locale format.
2989         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2990         (ctype_output): Output class_b[nr] right before class_3level[nr].
2991         (allocate_arrays): Fill class_b, similarly to class_3level.
2992
2993 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2994             Joseph S. Myers  <jsm28@cam.ac.uk>
2995
2996         * math/tgmath.h: Make standard compliant.  Don't ask how.
2997
2998 2000-07-04  H.J. Lu  <hjl@gnu.org>
2999
3000         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
3001         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
3002         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
3003
3004 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3005
3006         * include/features.h (_XOPEN_SOURCE): Update the explanation.
3007         (__USE_LARGEFILE): Add an explanation.
3008         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
3009         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
3010
3011 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
3012
3013         * libio/Makefile: Enable exception handling for genops, wgenops,
3014         fileops, and wfileops.
3015
3016 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3017
3018         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
3019         acount that elf/rtld's main program might remove some varibales
3020         from the environment if we're trying to be secure.  Move the Hurd
3021         startup data if necessary, or, if we there is no startup data,
3022         make sure the magical convention that ARGV[0] is stored just after
3023         the environment list.
3024
3025 2000-08-01  Philip Blundell  <philb@gnu.org>
3026
3027         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
3028         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
3029         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
3030         oldsetrlimit for GLIBC_2.0.
3031
3032 2000-08-01  Andreas Jaeger  <aj@suse.de>
3033
3034         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
3035         (LINE_PARSER): Allow any number of spaces between ip address and
3036         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
3037
3038         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
3039
3040         * include/netdb.h: Remove getipnodebyaddr and friends, leave
3041         constants in.
3042
3043         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
3044         _nss_nisplus_getipnodebyname_r.
3045
3046         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
3047         now, getipnodebyname is deprecated.
3048         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
3049         Likewise.
3050
3051         * inet/Makefile (routines): Don't build getipnodebyaddr and
3052         friends.
3053
3054         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
3055
3056         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
3057
3058         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
3059
3060         * wctype/Makefile (distribute): Add wchar-lookup.h.
3061
3062         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
3063
3064         * iconvdata/Makefile (distribute): Add isiri-3342.h.
3065
3066 2000-08-01  Andreas Schwab  <schwab@suse.de>
3067
3068         * Make-dist (dist): Resolve `..' in file names.
3069
3070 2000-08-01  Andreas Jaeger  <aj@suse.de>
3071
3072         * stdio-common/Makefile (distribute): Remove removed files, add
3073         new files.
3074
3075         * Makefile (distribute): Remove include/db_185.h and db.h.
3076
3077         * include/db_185.h: Remove, it's not needed anymore.
3078         * include/db.h: Likewise.
3079
3080 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3081
3082         * inet/Makefile (tests): Remove tst-ipnode.
3083         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
3084         now.
3085
3086 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3087
3088         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
3089         endp statements have already been added.
3090
3091 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
3092
3093         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
3094         <sysdeps/ia64/sysdep.h>.
3095
3096         * sysdeps/ia64/_mcount.S: New file.
3097
3098         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
3099         __gmon_start__.  Fix up extraneous whitespace.
3100
3101 2000-01-12  H.J. Lu  <hjl@gnu.org>
3102
3103         * sysdeps/ia64/elf/initfini.c: New file.
3104
3105 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
3106
3107         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
3108         dependency between branch and ar.pfs write.
3109
3110 2000-07-31  H.J. Lu  <hjl@gnu.org>
3111
3112         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
3113         handle the wchar_t array.
3114
3115 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3116
3117         * iconvdata/gb18030.c: Don't map to and from positions in ISO
3118         10646 which are not yet assigned.
3119         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
3120
3121 2000-07-31  Andreas Jaeger  <aj@suse.de>
3122
3123         * inet/Versions: Remove getipnodebyaddr and friends from
3124         GLIBC_2.2.
3125
3126         * resolv/netdb.h: Remove getipnodebyaddr and friends.
3127
3128 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3129
3130         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3131         ch >= 0x81 && ch2 < 0x40 as invalid.
3132
3133 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3134
3135         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3136         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3137
3138 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3139
3140         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3141         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3142
3143 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3144
3145         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3146         0xb8.
3147         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3148
3149 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3150
3151         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3152
3153 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3154
3155         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3156         (from_ucs4): Change values of U+00A4 and U+00ED.
3157         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3158
3159 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3160
3161         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3162         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3163
3164 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3165
3166         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3167         * iconvdata/isiri-3342.h: New file.
3168         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3169         treat 0x80 as a gap.
3170
3171 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3172
3173         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3174         (utf8_encode): Use simple shifts instead.  Fix return value.
3175
3176 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3177
3178         * timezone/private.h: Update from tzcode2000e.
3179         * timezone/asia: Update from tzdata2000e.
3180         * timezone/australasia: Likewise.
3181         * timezone/europe: Likewise.
3182         * timezone/northamerica: Likewise.
3183         * timezone/zone-tab: Likewise.
3184
3185 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3186
3187         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3188         the order of struct sigaltstack members is different.
3189
3190 2000-07-26  Philip Blundell  <philb@gnu.org>
3191
3192         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3193
3194 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3195
3196         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3197         * locale/programs/ld-ctype.c: Adjust for this.
3198
3199         * locale/programs/ld-collate.c: Add more alignment checks.
3200         * locale/string/strcoll.c: Likewise.
3201
3202 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3203
3204         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3205         outside USE_IN_LIBIO block.
3206
3207 2000-07-26  Philip Blundell  <philb@gnu.org>
3208
3209         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3210         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3211
3212 2000-07-28  Philip Blundell  <philb@gnu.org>
3213
3214         * math/test-fpucw.c: Ignore reserved bits in control word.
3215
3216 2000-07-28  Philip Blundell  <philb@gnu.org>
3217
3218         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3219         (ret): Redefine to PSEUDO_RET.
3220         (PSEUDO): Remove jump to syscall_error.
3221
3222 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3223
3224         * resolv/README: Add some information about using the resolver in
3225         multi-threaded code and with C++.  Spelling fixes.
3226
3227 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3228
3229         * resolv/resolv.h (struct __sockaddr_in): Remove.
3230         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3231
3232 2000-07-29  Greg McGary  <greg@mcgary.org>
3233
3234         * Rules (test-bp-inputs, make-test-out): New variables.
3235         ($(objpfx)%-bp.out): New rule.
3236         ($(objpfx)%.out): Rewrite in terms of new variables.
3237
3238         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3239         internal function that uses vtable.
3240         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3241         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3242
3243         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3244         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3245         (chunk_align): Likewise.
3246
3247         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3248         in a way that conforms to decl, and avoids spurious bounds violation.
3249
3250         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3251         * sysdeps/generic/frame.h: Likewise.
3252         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3253         around return value.
3254         (__backtrace): Qualify frame-pointer chain and return address
3255         pointers as __unbounded.  Wrap bounds around variable `current'.
3256         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3257         around return value.
3258         (catch_segfault): Qualify frame-pointer chain and return address
3259         pointers as __unbounded.  Wrap bounds around variable `current'.
3260         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3261         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3262         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3263         __unbounded.
3264         (__backtrace): Qualify frame-pointer chain and return address
3265         pointers as __unbounded.  Wrap bounds around variable `current'.
3266
3267         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3268         * sysdeps/i386/mul_1.S: Likewise.
3269         * sysdeps/i386/submul_1.S: Likewise.
3270         * sysdeps/i386/i586/addmul_1.S: Likewise.
3271         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3272         * sysdeps/i386/i586/submul_1.S: Likewise.
3273
3274 2000-07-27  Andreas Jaeger  <aj@suse.de>
3275
3276         * libio/Depend: New file, libio needs localedata for tests.
3277         * posix/Depend: Likewise.
3278
3279 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3280
3281         * stdio-common/_i18n_itoa.c: Removed.
3282         * stdio-common/_i18n_itoa.h: Removed.
3283         * stdio-common/_i18n_itowa.c: Removed.
3284         * stdio-common/_i18n_itowa.h: Removed.
3285         * stdio-common/_i18n_number.h: New file.
3286         * stdio-common/Depend: New file.
3287         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3288         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3289         printing.  Change printing of numbers with locale specific digits to
3290         use new code in _i18n_number.h.
3291         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3292         _i18n_itowa.
3293
3294         * stdio-common/bug13.c: Improve messages.
3295
3296         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3297         (set_class_defaults): Always search also for Uxxxx names.
3298         Detect insufficient number of outdigits.
3299
3300         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3301
3302 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3303
3304         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3305         _NL_CTYPE_MAP_NAMES.
3306         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3307         * wctype/wcfuncs.c (towlower, towupper): Use them.
3308         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3309         * wctype/wctrans.c (wctrans): Likewise.
3310         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3311
3312 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3313
3314         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3315         Use the optimized version of this function outside glibc as well.
3316
3317 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3318
3319         * locale/indigits.h (indigit_value): Correct.
3320         * locale/indigitswc.h (indigitwc_value): Correct.
3321         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3322         conversion, add GROUP checking for it, fix GROUP number
3323         conversion with strlen(thousands) > 1.
3324         Honour width correctly in the presence of floating
3325         decimal points and thousands separators.
3326         * stdio-common/tst-sscanf.c: New test.
3327         * stdio-common/Makefile: Add it to tests.
3328         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3329         thousands separators and group argument is non-zero.
3330
3331 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3332
3333         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3334         starts at GLIBC_2.2.
3335
3336 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3337
3338         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3339         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3340         _test_and_set.
3341         (headers): Add sys/tas.h.
3342         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3343         GLIBC_2.2 from libc.
3344         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3345         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3346         _test_and_set.
3347
3348 2000-07-28  Andreas Jaeger  <aj@suse.de>
3349
3350         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3351
3352         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3353         ($(objpfx)tst-dladdr.out): new.
3354         (tests): Add tst-dladdr.
3355         ($(objpfx)glrefmain): Use libdl.
3356
3357         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3358         <vs@caldera.de>.
3359
3360 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3361
3362         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3363         ftruncate(64) calls.
3364
3365 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3366
3367         * intl/tst-translit.c: Include string.h to get prototype for
3368         strcmp().
3369
3370 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3371
3372         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3373         name and add weak alias for __fork.
3374
3375         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3376         & pwrite to use __libc_<name> as strong names instead of
3377         __syscall_<name>.
3378
3379         * include/sched.h: Add clone2 prototype.
3380
3381 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3382
3383         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3384         procedure name twice.
3385
3386 2000-07-27  Philip Blundell  <philb@gnu.org>
3387
3388         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3389
3390 2000-07-27  Andreas Jaeger  <aj@suse.de>
3391
3392         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3393         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3394         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3395         Reported by Andi Kleen <ak@suse.de>.
3396
3397         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3398         (do_wait): Test requests with aio_return64.
3399         (do_test): Change callers of do_wait.
3400
3401 2000-07-26  Andreas Jaeger  <aj@suse.de>
3402
3403         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3404         (do_wait): Test requests with aio_return.
3405         (do_test): Change callers of do_wait.
3406
3407 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3408
3409         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3410         from request list.  Don't do the list handling here, call
3411         __aio_remove_request.
3412         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3413         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3414         request might already be processed.  Don't do the list handling
3415         here, call __aio_remove_request.
3416
3417         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3418         LIO_DSYNC.
3419
3420         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3421         are missing.
3422
3423 2000-07-27  Greg McGary  <greg@mcgary.org>
3424
3425         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3426         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3427         in union init.  Pass zero for ignored semnum arg to semctl.
3428         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3429
3430 2000-07-26  Greg McGary  <greg@mcgary.org>
3431
3432         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3433         data structure pointers as __unbounded.
3434         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3435         * sysdeps/generic/bp-semctl.h: New file.
3436         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3437         pointers as __unbounded.  Check bounds of syscall args.
3438         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3439         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3440         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3441         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3442         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3443         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3444         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3445         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3446         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3447         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3448         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3449         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3450         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3451         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3452         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3453         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3454
3455 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3456
3457         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3458         by default.
3459         * locale/C-ctype.c: Likewise.
3460         * wcsmbs/wcsmbsload.c: Likewise.
3461
3462 2000-07-26  Greg McGary  <greg@mcgary.org>
3463
3464         * Makeconfig (+link-bounded, link-libc-bounded,
3465         link-extra-libs-bounded): New variables.
3466         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3467         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3468         * Rules (tests-bp.out): New variable.
3469         (tests): Conditionally add BP tests.
3470         (binaries-bounded): Add variable and associated rule.
3471         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3472         Move conditional stuff after place where condition is defined.
3473
3474         * malloc/malloc.c (bp-checks.h): Add #include.
3475         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3476         (_bin_at): Add unbounded version of bin_at.
3477         (IAV, chunk_alloc): Use unbounded _bin_at.
3478         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3479         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3480         Wrap BOUNDED_N around return value.
3481         (chunk_realloc): Adjust oldsize once.
3482
3483         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3484         (__ubp_memchr): Add correct decl.
3485         (_CHECK_STRING): Use __ubp_memchr.
3486         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3487         New alias for unbounded-pointer __memchr.
3488         * sysdeps/i386/memchr.S: Likewise.
3489         * sysdeps/ia64/memchr.S: Likewise.
3490         * sysdeps/m68k/memchr.S: Likewise.
3491         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3492         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3493         * sysdeps/vax/memchr.s: Likewise.
3494
3495         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3496         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3497         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3498         * sysdeps/i386/i686/strtok.S: Likewise.
3499         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3500         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3501
3502         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3503         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3504
3505         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3506         bounds of copy_result to mount_proc.
3507
3508 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3509
3510         * wctype/wctype.h (__wctrans_l): New declaration.
3511         * wctype/wctrans_l.c: New file.
3512         * wctype/Makefile (routines): Add wctrans_l.
3513
3514 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3515
3516         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3517         Patch by MacGyver <macgyver@tos.net>.
3518
3519 2000-07-26  Andreas Jaeger  <aj@suse.de>
3520
3521         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3522         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3523         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3524
3525         * rt/tst-aio.c (test_file): Fix typo.
3526         * rt/tst-aio64.c (test_file): Likewise.
3527
3528         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3529         * rt/Makefile: Add rules to build and run tst-aio3.
3530
3531         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3532         it's not needed and confuses only.
3533
3534 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3535
3536         * resolv/res_init.c: Add support for nameserver communication with
3537         IPv6.
3538         * resolv/res_send.c: Likewise.
3539         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3540         in nsaddrs field.
3541         Patch by <venaas@nvg.ntnu.no>.
3542
3543 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3544
3545         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3546         (wcwidth_table_get): New function.
3547         (wcwidth_table_add): Call it.
3548         (wctrans_table_get): New function.
3549         (wctrans_table_add): Call it.
3550
3551 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3552
3553         * rt/lio_listio.c (lio_listio): Always disable individual
3554         notification.
3555         * rt/Makefile: Add rules to build and run tst-aio2.
3556         * rt/tst-aio2.c: New file.
3557
3558         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3559         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3560
3561 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3562
3563         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3564         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3565         leading and trailing spaces from host, user and domain name.
3566
3567 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3568
3569         * csu/defs.awk: Add support for need_endp.
3570
3571 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3572
3573         * resolv/resolv.h: Remove __P from res_send_qhook and
3574         res_send_rhook typedefs.
3575
3576 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3577
3578         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3579
3580 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3581
3582         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3583
3584 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3585
3586         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3587         calling thread, set the cancellation flag and return success
3588         instead of EINTR.
3589
3590 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3591
3592         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3593         * libio/tst-widetext.c: New file.
3594         * libio/tst-widetext.input: New file.
3595
3596         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3597
3598         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3599         empty external buffer correctly.
3600
3601 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3602
3603         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3604         __STRING(entry) and not #entry.
3605         (_RTLD_EPILOGUE): Likewise.
3606         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3607
3608 2000-07-25  Andreas Jaeger  <aj@suse.de>
3609
3610         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3611         according to changes in test program, run also with static only
3612         builds.
3613         ($(objpfx)tst-printf.out): Likewise.
3614
3615         * stdio-common/tst-unbputc.sh: Likewise.
3616         * stdio-common/tst-printf.sh: Likewise.
3617
3618 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3619
3620         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3621
3622         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3623         loop.
3624
3625         * libio/fileops.c: Pretty print.
3626
3627 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3628
3629         * wctype/wchar-lookup.h: New file.
3630         * wctype/iswctype.c: Include "wchar-lookup.h".
3631         (__iswctype): Support alternate locale format with 3-level tables.
3632         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3633         * wctype/towctrans.c (__towctrans): Likewise.
3634         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3635         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3636         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3637         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3638         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3639         __iswxdigit, towlower, towupper): Support alternate locale format
3640         with 3-level tables.
3641         * wctype/wcextra.c (iswblank): Likewise.
3642         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3643         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3644         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3645         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3646         format with 3-level tables.
3647         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3648         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3649         format, return a 3-level table pointer.
3650         * wctype/wctype_l.c (__wctype_l): Likewise.
3651         * wctype/wctrans.c (wctrans): Likewise.
3652         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3653         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3654         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3655         (iswctype): Remove macro definition.
3656         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3657         (internal_wcwidth): Support alternate locale format with 3-level
3658         tables.
3659         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3660         New nl_items.
3661         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3662         Define them as being type "word".
3663         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3664         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3665         __ctype32_width): New exported variables.
3666         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3667         alternate locale format. Don't initialize __ctype_names and
3668         __ctype_width in the alternate locale format.
3669         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3670         * locale/programs/localedef.c (oldstyle_tables): New variable.
3671         (OPT_OLDSTYLE): New macro.
3672         (options): Add --old-style option.
3673         (parse_opt): Handle --old-style option.
3674         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3675         map_offset, class_3level, map_3level, width_3level members.
3676         (ctype_output): Support for alternate locale format: Computation of
3677         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3678         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3679         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3680         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3681         now contain both class and map tables.
3682         (struct wctype_table): New type.
3683         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3684         functions.
3685         (struct wcwidth_table): New type.
3686         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3687         functions.
3688         (struct wctrans_table): New type.
3689         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3690         functions.
3691         (allocate_arrays): Support for alternate locale format: Set
3692         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3693         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3694         to the first 256 characters. Compute ctype->map_3level. Set
3695         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3696         instead of ctype->width.
3697
3698 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3699
3700         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3701         string functions.
3702
3703 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3704
3705         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3706         in wide characters, not bytes.
3707         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3708         into file.
3709
3710 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3711
3712         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3713         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3714         LC_MEASUREMENT, LC_IDENTIFICATION.
3715
3716         * locale/xlocale.h (struct __locale_struct): Increase size of
3717         __locales array.
3718         * locale/duplocale.c (__duplocale): Copy newly added categories as
3719         well.
3720         * locale/freelocale.c (__freelocale): Free newly added categories.
3721         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3722         If a base is given, use it, don't simply return it.
3723
3724 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3725
3726         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3727         variables, copied_key and copied_salt, instead of boolean variables.
3728
3729 2000-07-24  Andreas Jaeger  <aj@suse.de>
3730
3731         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3732         check for offset.
3733
3734         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3735         initgroups_function, adopted prototype for change from 2000-07-23.
3736         (initgroups): Follow type change.
3737
3738         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3739         & PAGE_MASK case, reformat.
3740
3741         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3742         from stdin and setup environment.
3743
3744 2000-07-24  Andreas Schwab  <schwab@suse.de>
3745
3746         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3747
3748 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3749
3750         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3751         more.  Patch by scarlet@mit.edu [PR libc/1799].
3752
3753         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3754         [PR libc/1792].
3755
3756         * argp/argp-parse.c (parser_finalize): Reverse order in which
3757         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3758
3759         * grp/initgroups.c (initgroups): Don't limit the possible number
3760         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3761         the setgroups call while the call fails and descrease the number
3762         of groups each round.
3763         The name of the initgroups function in the NSS modules changed.
3764         (compat_call): Adapt for dynamic resizing.
3765         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3766         Implement dynamic resizing.
3767         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3768         Likewise.
3769         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3770         * hesiod/Versions: Change exported interface name.
3771         * nis/Versions: Change exported interface name.
3772
3773 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3774
3775         * locale/iso-639.def: Some errors corrected.
3776         Patch by Keld Simonsen.
3777
3778         * include/limits.h: Update non-gcc portion.
3779         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3780
3781 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3782
3783         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3784         program's data space, reallocate only the space that was just
3785         deallocated to release its backing space.
3786
3787 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3788
3789         * stdio-common/vfprintf.c (process_string_arg): For wide character
3790         version, handle precision also correctly.
3791
3792         * nss/nss_files/files-hosts.c: Correct problem with three or more
3793         entries with the same name.
3794
3795         * nss/nss_files/files-hosts.c: Implement multi handling.
3796         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3797
3798 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3799
3800         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3801         strcasecmp.
3802
3803         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3804         * malloc/Makefile: Likewise.
3805         * malloc/tst-mtrace.sh: Likewise.
3806         * posix/Makefile: Likewise.
3807         * posix/globtest.sh: Likewise.
3808         * posix/wordexp-tst.sh: Likewise.
3809         * string/Makefile: Likewise.
3810
3811 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3812
3813         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3814         size instead of LC_ALL to take into account the new locale
3815         categories.
3816
3817 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3818
3819         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3820         remainders of hash table.
3821         * locale/categories.def: Remove remainders of transliteration
3822         hash table.
3823         * locale/langinfo.h: Likewise.
3824         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3825         transliteration tables.
3826
3827         * locale/gen-translit.pl: New file.
3828         * locale/C-translit.h.in: New file.
3829         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3830         data pointers with data from this file.
3831         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3832         and gen-translit.pl.
3833         Add rule to generate C-translit.h.
3834         * intl/tst-translit.c (main): Update for now performed
3835         transliteration.
3836
3837         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3838         (it's no input error).
3839         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3840         * stdio-common/scanf12.c: Correct expected result for first scanf.
3841
3842         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3843         of multibyte character strings in %s format with precision.
3844
3845 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3846
3847         * locale/programs/ld-collate.c (collate_read): Allow collating
3848         symbols and elements be named in reorder-after instructions.
3849         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3850
3851         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3852         duplication with generated name, not the name of the first
3853         character.
3854         Patch by Yong Li <yong.li@asu.edu>.
3855
3856         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3857         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3858
3859 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3860
3861         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3862         allocations only if a non-main arena cannot be extended.
3863
3864 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3865
3866         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3867         in DF_1_NODEFLIB handling.
3868
3869 2000-07-21  Andreas Jaeger  <aj@suse.de>
3870
3871         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3872         own rule.
3873
3874         * libio/fwide.c: Include <wchar.h> for prototype.
3875
3876 2000-07-21  Greg McGary  <greg@mcgary.org>
3877
3878         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3879         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3880         Define in terms of chunk_at_offset.
3881         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3882         (next_bin, prev_bin): offset by size of real array elements.
3883         (chunk_align): Make `m' a scalar, since that's how it's used.
3884
3885 2000-07-21  Greg McGary  <greg@mcgary.org>
3886
3887         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3888         UNCHECK_BOUNDS.
3889         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3890         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3891         Wrap bounds around argv & envp and each of their string members.
3892         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3893         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3894         symbol in BP_SYM ().  Discard bounds of address arg.
3895         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3896         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3897         Discard bounds on address arg, add bounds to return value.
3898
3899 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3900
3901         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3902         * elf/filter.c: New file.
3903         * elf/filtmod1.c: New file.
3904         * elf/filtmod2.c: New file.
3905
3906         * elf/rtld.c: Define _dl_bind_not variable.
3907         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3908         * elf/dl-support.c: Likewise.
3909         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3910         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3911         _dl_bind_not.
3912         (profile_fixup): Likewise.
3913
3914         * libio/Makefile (routines): Add fwide.
3915         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3916         fwide now.  Internal calls to _IO_fwide must do locking themselves
3917         or don't need locking.
3918         * libio/fwide.c: New file.
3919
3920         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3921
3922         * elf/Makefile: Add no modules for nodelete test.
3923         * elf/nodelmod3.c: New file.
3924         * elf/nodelmod4.c: New file.
3925         * elf/nodelete.c: Also test case where dependency of dlopen() object
3926         is marked nodelete.
3927
3928         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3929         * elf/nodlopen.c: New file.
3930         * elf/nodlopenmod.c: New file.
3931         * include/dlfcn.h: Define __RTLD_DLOPEN.
3932         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3933         and this is a dlopen() call, do not load the binary.
3934         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3935         * dlfcn/dlopenold.c: Likewise.
3936         * configure.in: Add test for -z nodelete option.
3937         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3938
3939 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3940
3941         Make Hesiod NSS module thread-safe.
3942
3943         * hesiod/README.hesiod: Update.
3944
3945         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3946         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3947         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3948         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3949         hesiod-proto.
3950         * hesiod/nss_hesiod/hesiod-init.c: New file.
3951         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3952         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3953         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3954         * hesiod/nss_hesiod/hesiod-service.c
3955         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3956         looking up services by port number.
3957         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3958
3959         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3960         * hesiod/hesiod.h: Likewise.
3961         * hesiod/hesiod_p.h: Likewise.
3962
3963 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3964
3965         Fix problems with `struct __res_state' getting too big.
3966         * resolv/resolv.h (struct __sockaddr_in): New definition.
3967         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3968         the private parts of the structure to save some space.
3969         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3970         (struct sockaddr_in *) in call to sock_eq.
3971         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3972
3973 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3974
3975         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3976         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3977         with nodelete.
3978         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3979         to _dl_map_object.  Return immediately if no object loaded.
3980         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3981         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3982         if it exists into l_flags_1 word.
3983         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3984         it to determine whether loading is wanted or not.
3985         (_dl_map_object): Likewise.
3986         Call _dl_map_object_from_fd with new parameter.
3987         * sysdeps/generic/ldsodefs.h: Update prototype.
3988         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3989         * elf/rtld.c: Likewise.
3990         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3991         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3992         * elf/noload.c: New file.
3993         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3994         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3995         * sysdeps/mips/bits/dlfcn.h: Likewise.
3996         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3997         (tests-nodelete-yes): Define.
3998         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3999         Add rules to build nodelete and modules.
4000         * elf/nodelete.c: New file.
4001         * elf/nodelmod1.c: New file.
4002         * elf/nodelmod2.c: New file.
4003         * configure.in: Add test for -z nodelete option.
4004         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
4005
4006         * libio/Makefile (tests): Add tst_wprintf2.
4007         (tst_wprintf2-ARGS): Define.
4008         * libio/tst_wprintf2.c: New file.
4009         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
4010
4011         * libio/wfiledoalloc.c: Only allocate external buffer if this
4012         hasn't happened yet.
4013
4014         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
4015         something in the buffer.  gconv call can write up to end of the
4016         buffer, not only _IO_write_end.
4017         (_IO_wfile_overflow): Allocate also external buffer.
4018
4019 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
4020
4021         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
4022         strings with precision in vfwprintf correctly.
4023         * stdio-common/vfprintf.c: Fix completely broken handling of
4024         unbuffered wide character streams.
4025         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
4026
4027         * resolv/Makefile (distribute): Add README.
4028
4029         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
4030
4031 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
4032
4033         Update resolver code to BIND 8.2.3-T5B.
4034
4035         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
4036         __res_nclose.
4037         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
4038         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
4039         __res_search.
4040         * resolv/Banner: BIND-8.2.3-T5B.
4041
4042         * resolv/base64.c: Update from BIND 8.2.3-T5B.
4043         * resolv/herror.c: Likewise.
4044         * resolv/inet_addr.c: Likewise.
4045         * resolv/inet_net_ntop.c: Likewise.
4046         * resolv/inet_net_pton.c: Likewise.
4047         * resolv/inet_neta.c: Likewise.
4048         * resolv/inet_ntop.c: Likewise.
4049         * resolv/nsap_addr.c: Likewise.
4050         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
4051         IPv6 addresses (ISC bug #520).
4052
4053         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
4054         * resolv/ns_parse.c: Likewise.
4055         * resolv/ns_netint.c: Likewise.
4056         * resolv/ns_samedomain.c: Likewise.
4057         * resolv/ns_ttl.c: Likewise.
4058         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
4059         RCS ID in object file.
4060
4061         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
4062         * resolv/res_mkquery.c: Likewise.
4063         * resolv/res_query.c: Likewise.
4064         * resolv/res_init.c: Likewise.
4065         (res_setoptions): Mark internal.
4066         * resolv/res_send.c: Likewise.
4067         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
4068         by using poll instead.
4069         * resolv/res_comp.c: Likewise.
4070         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
4071         weak alias for __dn_expand.
4072         * resolv/res_data.c: Likewise.
4073         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
4074         in _res.options.  Avoids a potential security risk by avoiding a
4075         close (0).
4076         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
4077         res_mkquery, res_query, res_querydomain adn res_search weak
4078         aliases for __res_mkquery, __res_query, __res_querydomain and
4079         __res_search.
4080         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
4081         instead to avoid close(0).
4082         (res_init): Always use the static resolver context.
4083         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
4084         alias for __res_init.
4085
4086         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
4087         RES_SET_H_ERRNO and accompanying comment to...
4088         * include/resolv.h: ... here.
4089
4090         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
4091         * resolv/arpa/nameser_compat.h: Likewise.
4092
4093 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4094
4095         * nss/makedb.c (main): Compare result of load_db with
4096         NSS_STATUS_SUCCESS and not 0.
4097         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
4098
4099         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
4100
4101 2000-07-18  Greg McGary  <greg@mcgary.org>
4102
4103         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
4104         (EXTEND_BUFFER): Use it.
4105
4106 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4107
4108         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
4109         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
4110         __builtin_return_address.
4111         * dlfcn/dlopenold.c: Likewise.
4112         * dlfcn/dlsym.c: Likewise.
4113         * dlfcn/dlvsym.c: Likewise.
4114         * elf/dl-profstub.c: Likewise.
4115         * malloc/malloc.c: Likewise.
4116         * sysdeps/generic/machine-gmon.h: Likewise.
4117         Based on a patch by schwidefsky@de.ibm.com.
4118
4119 2000-07-18  Andreas Jaeger  <aj@suse.de>
4120
4121         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
4122         NULL to elf_machine_fixup_plt t argument to silence GCC.
4123
4124         * include/string.h: Add prototype for __memchr.
4125
4126         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
4127
4128         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4129         instead of memrchr.
4130
4131 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4132
4133         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4134
4135         * locale/C-ctype.c: Add initializers for gap elements.
4136         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4137         for gap elements.
4138
4139 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4140
4141         * nscd/nscd.c (print_version): Update copyright year.
4142
4143 2000-07-17  Greg McGary  <greg@mcgary.org>
4144
4145         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4146         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4147         signature argnames with angle-brackets for use as word delimiters,
4148         and to induce syntax errors for any args not handled.  Split
4149         multi-echo echoes and comment each stage.
4150         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4151         * sysdeps/unix/inet/syscalls.list: Likewise.
4152         * sysdeps/unix/mman/syscalls.list: Likewise.
4153         * sysdeps/unix/syscalls.list: Likewise.
4154         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4155         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4156         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4157         * sysdeps/unix/sysv/syscalls.list: Likewise.
4158         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4159
4160         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4161         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4162         qualifiers.  Don't check NULL-terminator of argv & envp.
4163         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4164         unbounded pointer type in word-size assertion.
4165         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4166         cases to stifle warnings.
4167
4168         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4169         _IO_file_attach.
4170         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4171
4172         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4173         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4174         ptr as __unbouned.
4175
4176         * Makerules (o-objects): Supplement with $(o-objects$o).
4177         * string/Makefile (o-objects.ob): Add variable to pull
4178         unbounded versions of memcpy, memset and memchr into libc_b.
4179
4180         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4181         rather than non-existent __ubp_memchr.
4182         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4183         (_CHECK_STRING, _CHECK_N): New macros.
4184         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4185         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4186         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4187         Add weak alias "memchr".
4188         * sysdeps/generic/memchr.c: Likewise.
4189         * sysdeps/i386/memchr.S: Likewise.
4190         * sysdeps/ia64/memchr.S: Likewise.
4191         * sysdeps/m68k/memchr.S: Likewise.
4192         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4193         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4194         * sysdeps/vax/memchr.s: Likewise.
4195
4196         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4197
4198         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4199         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4200         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4201         __BOUNDED_POINTERS__.
4202         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4203         for __BOUNDED_POINTERS__.
4204
4205 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4206
4207         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4208         field of struct __gconv_trans_data differently.  Don't pass NULL to
4209         trans_init_fct.  Simplify list append operation.
4210
4211 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4212
4213         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4214         not only those having tsearch.
4215
4216 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4217
4218         * locale/langinfo.h: Add placeholder values in enum for removed
4219         LC_CTYPE entries.
4220
4221 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4222
4223         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4224         chain if the PHDR check fails.
4225
4226 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4227
4228         * nss/getent.c (print_hosts): Make sure we always print a space
4229         between numeric addresses and hostnames.
4230
4231 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4232
4233         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4234         i.e. if n_mmaps_max>0.
4235
4236 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4237
4238         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4239         values to remove possible clash with other AI_* constants.
4240         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4241         hexadecimal constants to stress the fact they're in fact
4242         bit flags.
4243
4244 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4245
4246         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4247         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4248         instead of res_init.
4249
4250 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4251
4252         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4253         parameters of memset calls to avoid warnings.
4254
4255 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4256
4257         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4258         necessary.
4259
4260         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4261         Patch by Greg McGary <greg@mcgary.org>.
4262
4263         * io/Makefile (tests): Add tst-getcwd.
4264         * io/tst-getcwd.c: New file.
4265
4266         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4267
4268 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4269
4270         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4271         structure.
4272
4273 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4274
4275         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4276         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4277
4278 2000-07-12  H.J. Lu  <hjl@gnu.org>
4279
4280         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4281         GLIBC_2.2.
4282         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4283         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4284         (sysdep-routines): Add clone2.
4285         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4286
4287 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4288
4289         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4290         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4291
4292 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4293
4294         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4295         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4296         Change type of si_band from "int" to "long".
4297         (si_imm) [USE_GNU]: Define
4298         (si_isr) [USE_GNU]: Ditto.
4299         (ILL_BREAK) [USE_GNU]: Ditto.
4300         (FPE_DECOVF) [USE_GNU]: Ditto.
4301         (FPE_DECDIV) [USE_GNU]: Ditto.
4302         (FPE_DECERR) [USE_GNU]: Ditto.
4303         (FPE_INVASC) [USE_GNU]: Ditto.
4304         (FPE_INVDEC) [USE_GNU]: Ditto.
4305         (TRAP_BRANCH) [USE_GNU]: Ditto.
4306         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4307
4308 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4309
4310         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4311         bits/sigcontext as struct mcontext does not depend on it.
4312
4313         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4314
4315 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4316
4317         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4318
4319 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4320
4321         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4322
4323 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4324
4325         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4326
4327 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4328
4329         * intl/Makefile (test-srcs): Add tst-translit.
4330         (tests): Likewise.
4331         Add rules to build and run tst-translit.
4332         * intl/tst-translit.c: New file.
4333         * intl/tst-translit.sh: New file.
4334         * intl/translit.po: New file.
4335
4336 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4337
4338         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4339         transliteration function did its job, continue, don't stop.
4340
4341         * iconvdata/iso646.c: Little optimizations in body for conversion
4342         from UCS4.
4343
4344 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4345
4346         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4347
4348 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4349
4350         * configure.in: Check for pwd binary.
4351         * config.make.in: Add PWD_P to be subsituted.
4352         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4353
4354 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4355
4356         * iconvdata/Makefile (modules): Add GB18030.
4357         (distribute): Add gb18030.c.
4358         * iconvdata/gconv-modules: Add entries for GB18030 module.
4359         * iconvdata/gb18030.c: New file.
4360         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4361         and Wu Jian.
4362
4363 2000-07-13  Andreas Jaeger  <aj@suse.de>
4364
4365         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4366         patch.
4367
4368         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4369         * inet/getnetgrent.c (free_mem): Likewise.
4370         * misc/mntent.c (free_mem): Likewise.
4371         * nss/getXXbyYY.c (free_mem): Likewise.
4372         * nss/getXXent.c (free_mem): Likewise.
4373         * pwd/fgetpwent.c (free_mem): Likewise.
4374         * shadow/fgetspent.c (free_mem): Likewise.
4375
4376 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4377
4378         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4379         64-bit architecture correctly [PR libc/1794].
4380
4381 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4382
4383         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4384         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4385         report that we are out of memory.
4386         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4387         * elf/dl-libc.c (dlerror_run): Likewise.
4388         * elf/dl-open.c (_dl_open): Likewise.
4389         * elf/rtld.c (dl_main): Likewise.
4390         * elf/dl-error.c: Define _dl_out_of_memory.
4391         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4392         the error string.
4393         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4394         [PR libc/1813].
4395
4396         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4397
4398         * iconv/loop.c: Fix comment.
4399
4400         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4401
4402 2000-07-13  Andreas Jaeger  <aj@suse.de>
4403
4404         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4405         getcwd (NULL, size) with size > 0.
4406         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4407
4408 2000-07-13  Andreas Jaeger  <aj@suse.de>
4409
4410         * posix/Makefile: Remove build rules for libposix.
4411
4412 2000-07-13  Andreas Schwab  <schwab@suse.de>
4413
4414         * sysdeps/generic/glob.c (glob): Fix memory leak.
4415         [SHELL]: Remove reference to undefined variable `files'.
4416         Fixes PR libc/1782.
4417
4418 2000-07-13  Andreas Jaeger  <aj@suse.de>
4419
4420         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4421         functions.
4422
4423         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4424         memory if it was allocated.
4425
4426 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4427
4428         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4429         step.
4430
4431         * iconv/gconv_open.c (__gconv_open): Reapply
4432         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4433
4434                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4435
4436         * iconv/gconv_open.c: Undo last two changes for now.  They break
4437         everything.
4438
4439 2000-07-12  Andreas Jaeger  <aj@suse.de>
4440
4441         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4442         compiler.
4443         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4444         (CFLAGS-dl-cache.c): Likewise.
4445         (CFLAGS-ldconfig.c): Added, passes directory locations.
4446
4447         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4448         locate cache.
4449         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4450         (main): Use configured LIBDIR and SLIBDIR.
4451
4452 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4453
4454         * math/bits/cmathcalls.h (cimag): Add __THROW.
4455         (creal, conj): Likewise.
4456         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4457         by negative value.
4458
4459 2000-07-12  H.J. Lu  <hjl@gnu.org>
4460
4461         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4462         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4463
4464 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4465
4466         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4467         it is wrong.
4468
4469 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4470
4471         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4472
4473 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4474
4475         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4476         __modname.
4477
4478 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4479
4480         * iconv/gconv_open.c (__gconv_open): Initialize
4481         result->__steps[cnt].__data.
4482
4483 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4484
4485         * nss/getent.c (services_keys): Pass port number in network byte
4486         order in call to getservbyport.
4487
4488 2000-07-11  Andreas Jaeger  <aj@suse.de>
4489
4490         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4491         source dir.
4492         * intl/Makefile (do-gettext-test): Likewise.
4493         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4494
4495 2000-07-11  Andreas Schwab  <schwab@suse.de>
4496
4497         * Makeconfig (run-program-prefix): New rule.
4498         (built-program-cmd): Use run-program-prefix.
4499
4500 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4501
4502         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4503         and NOEXPR unconditionally available.
4504
4505 2000-07-12  Greg McGary  <greg@mcgary.org>
4506
4507         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4508         * sysdeps/posix/open64.c: Likewise.
4509         * sysdeps/generic/fegetenv.c: Likewise.
4510         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4511         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4512         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4513         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4514         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4515         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4516
4517 2000-07-11  Greg McGary  <greg@mcgary.org>
4518
4519         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4520         Add extra level of macro expansion.
4521         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4522         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4523         is available at the time `select' prototype is declared.
4524         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4525         Collect non-versioned weak aliases.  Consider only non-versioned
4526         aliases for the user-visible systemcall name.  Do checks inline with
4527         call to primitive system call.
4528         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4529         stand-alone bounds checks to suppress unused value warnings.
4530         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4531
4532 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4533
4534         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4535         file descriptor checking in SUID programs for the Hurd.
4536
4537         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4538         res_hostalias instead of __hostalias for thread-safety.
4539
4540 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4541
4542         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4543         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4544
4545 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4546
4547         * include/features.h: Include ISO C99 features if the compiler used
4548         is an ISO C99 compiler.
4549         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4550
4551 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4552
4553         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4554
4555 2000-07-10  Andreas Jaeger  <aj@suse.de>
4556
4557         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4558         it's overridden by libpthreads.
4559         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4560         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4561         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4562         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4563         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4564
4565         * malloc/Makefile: Run tst-mtrace only with shared libs.
4566
4567         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4568         with shared libs.
4569
4570 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4571
4572         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4573         that gpreg really points to the GOT section of the calling object.
4574         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4575         checking a start address of first one.
4576         Fix typos.
4577         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4578         Likewise.
4579
4580         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4581
4582 2000-07-10  Andreas Jaeger  <aj@suse.de>
4583
4584         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4585         (string_alias->strong_alias).
4586
4587 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4588
4589         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4590
4591 2000-07-07  Greg McGary  <greg@mcgary.org>
4592
4593         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4594         have no names without leading underscores.
4595
4596 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4597
4598         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4599         U007E.
4600
4601         * stdio-common/Makefile (tests): Remove tst-printf here...
4602         (tests-srcs): ...and add it here.
4603         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4604         Add rules to run tst-printf.sh.
4605         * stdio-common/tst-printf.c: Move code around so that there is really
4606         no further output where it's stated.
4607         * stdio-common/tst-printf.sh: New file.
4608
4609 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4610
4611         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4612         (do_write): Renamed from pwrite.
4613         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4614         `struct _IO_cookie_file'.
4615
4616 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4617
4618         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4619         detected.
4620         * malloc/tst-mtrace.sh: Run mtrace script.
4621
4622 2000-07-07  Greg McGary  <greg@mcgary.org>
4623
4624         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4625         Move all three components of a bounded pointer.
4626
4627 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4628
4629         * locale/programs/locale.c (write_locales): Don't simply add all
4630         directories found in the subdir, test whether at least the
4631         LC_CTYPE file is in there.
4632
4633 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4634
4635         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4636         * iconvdata/euc-kr.c: Likewise.
4637
4638         * stdio-common/vfprintf.c (process_string_arg): Check result of
4639         wcrtomb call and bail out if it failed.
4640
4641         * malloc/Makefile (test-srcs): Add tst-mtrace.
4642         (distribute): Add tst-mtrace.sh.
4643         Add rule to run tst-mtrace.sh.
4644         * malloc/tst-mtrace.c: New file.
4645         * malloc/tst-mtrace.sh: New file.
4646
4647         * include/signal.h: Declare __libc_sigaction.
4648         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4649         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4650         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4651         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4652         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4653         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4654         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4655
4656         * configure.in: Fix CFLAGS-memprofstat.c definition after
4657         2000-06-19 change.
4658         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4659
4660 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4661
4662         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4663         instead of NULL to elf_machine_fixup_plt t argument.
4664         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4665         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4666         cast.
4667
4668 2000-07-06  Andreas Jaeger  <aj@suse.de>
4669
4670         * crypt/Makefile (LDLIBS-cert): Removed.
4671         (LDLIBS-md5c-test): Removed.
4672         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4673         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4674
4675 2000-07-06  Andreas Jaeger  <aj@suse.de>
4676
4677         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4678         of the proc system is "proc".
4679
4680         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4681         thread library for static programs.
4682
4683 2000-07-06  Greg McGary  <greg@mcgary.org>
4684
4685         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4686         New macros.
4687         * sysdeps/generic/strcpy.c: Add bounds checks.
4688         * sysdeps/unix/fxstat.c: Likewise.
4689         * sysdeps/unix/xstat.c: Likewise.
4690         * sysdeps/unix/common/lxstat.c: Likewise.
4691         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4692         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4693         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4694         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4695         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4696         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4697         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4698         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4699         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4700         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4701         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4702         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4703         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4704         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4705         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4706         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4707         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4708         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4709         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4710         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4711         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4712         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4713         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4714         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4715         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4716         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4717         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4718         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4719         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4720         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4721         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4722         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4723         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4724         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4725         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4726         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4727         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4728         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4729         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4730         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4731         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4732         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4733         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4734         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4735         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4736         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4737         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4738         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4739         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4740         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4741         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4742         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4743         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4744         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4745         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4746         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4747         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4748         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4749         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4750         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4751         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4752         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4753         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4754         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4755
4756         * string/endian.h (__LONG_LONG_PAIR): New macro.
4757         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4758         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4759         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4760         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4761         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4762         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4763         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4764         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4765         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4766         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4767         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4768         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4769
4770         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4771
4772 2000-07-06  Andreas Jaeger  <aj@suse.de>
4773
4774         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4775         Initialize result.
4776
4777         * math/test-fpucw.c: Include <stdio.h> for printf.
4778
4779 2000-07-05  Greg McGary  <greg@mcgary.org>
4780
4781         * sysdeps/generic/bp-checks.h: New file.
4782         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4783         with list of #include files.
4784         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4785         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4786         Don't generate BP thunk if `V' appears in signature.
4787         Generate thunks with complete bounds checks.
4788         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4789         * sysdeps/unix/inet/syscalls.list: Likewise.
4790         * sysdeps/unix/mman/syscalls.list: Likewise.
4791         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4792         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4793         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4794         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4795
4796 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4797
4798         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4799         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4800         If mount not in the file fall back on /proc.
4801
4802         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4803         string got copied in.
4804         Patch by Solar Designer <solar@false.com>.
4805
4806 2000-07-05  Andreas Jaeger  <aj@suse.de>
4807
4808         * manual/install.texi (Installation): Update information about
4809         add-ons.
4810         (Configuring and compiling): Update for glibc 2.2.
4811
4812 2000-07-04  Andreas Jaeger  <aj@suse.de>
4813
4814         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4815         (_FPU_IEEE): Likewise.
4816
4817         * math/Makefile (tests): Add test-fpucw.
4818
4819         * math/test-fpucw.c (main): New file.
4820
4821 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4822
4823         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4824
4825         * locale/programs/ld-collate.c (collate_output): Also write out the
4826         collation sequence values and the wide character string for the
4827         collation symbol table.
4828
4829         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4830         * posix/fnmatch_loop.c: Implement collating symbol handling.
4831         * posix/tst-fnmatch.input: Add more tests, especially for collating
4832         symbol handling.
4833
4834         * posix/regex.c: Fix comment.
4835
4836 2000-07-05  Andreas Jaeger  <aj@suse.de>
4837
4838         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4839         (_FPU_GETCW): Remove extra colon.
4840         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4841
4842         * posix/fnmatch_loop.c (FCT): Only declare len if
4843         !WIDE_CHAR_VERSION to silence GCC.
4844
4845         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4846         prototype.
4847         * sysdeps/generic/strchrnul.c: Likewise.
4848         * sysdeps/generic/strlen.c: Likewise.
4849         * sysdeps/generic/strchr.c: Likewise.
4850         * sysdeps/generic/memchr.c: Likewise.
4851
4852 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4853
4854         * posix/fnmatch_loop.c: Implement equivalence class handling.
4855         * posix/tst-fnmatch.input: Add tests for equivalence class
4856         handling.
4857
4858         * posix/fnmatch_loop.c: Improve performance for single-byte
4859         character sets by not using btowc.
4860
4861         * posix/tst-fnmatch.input: Add tests for locale dependent
4862         behaviour.
4863         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4864
4865         * posix/tst-fnmatch.input: Add more test cases.
4866
4867         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4868         are not aligned to alignof(md5_uint32) do it before calling
4869         __md5_process_bytes.
4870         * crypt/md5.c: Make sure buffers are aligned.
4871         * crypt/md5.h: Likewise.
4872         Reported by Solar Designer <solar@false.com>.
4873
4874         * crypt/Makefile: Add dependencies for test programs.
4875
4876         * Rules: Define LC_ALL=C in environments of all programs we run.
4877
4878         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4879
4880 2000-07-03  H.J. Lu  <hjl@gnu.org>
4881
4882         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4883         is 2 + elem + offset, not 2 + elem + offset + 2.
4884
4885 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4886
4887         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4888         suite.
4889         * posix/Makefile (tests): Add tst-fnmatch.
4890         (tst-fnmatch-ENV): Define.
4891         * posix/tst-fnmatch.c: New file.
4892         * posix/tst-fnmatch.sh: New file.
4893
4894 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4895
4896         * locale/programs/charmap.c (charmap_read): Prepend
4897         the condition filename == NULL.
4898
4899 2000-07-03  Greg McGary  <greg@mcgary.org>
4900
4901         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4902
4903         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4904         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4905
4906         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4907         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4908         (FILEBUF_LITERAL): Add cast for CHAIN init.
4909         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4910         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4911         Revert type of `fp' to _IO_FILE*.
4912         (_IO_iter_file): Remove cast.
4913         (_IO_iter_next): Elide intermediate member reference.
4914
4915         * sysdeps/powerpc/strchr.S:  Check bounds.
4916         Wrap extern symbols in BP_SYM ().
4917
4918 2000-07-03  Andreas Jaeger  <aj@suse.de>
4919
4920         * dlfcn/Makefile (generated): New.
4921
4922 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4923
4924         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4925         (__uflow): Likewise.
4926         (__underflow): Likewise.
4927         * libio/wgenops.c (__wunderflow): Likewise.
4928         * stdio-common/tst-unbputc.c: New file.
4929         * stdio-common/tst-unbputc.sh: New file.
4930         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4931
4932         * po/en_GB.po: New file.
4933         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4934
4935 2000-07-01  Andreas Jaeger  <aj@suse.de>
4936
4937         * intl/Makefile (generated-dirs): New.
4938
4939         * elf/Makefile (generated): trusted-dirs.h is always generated,
4940         move out of build-shared condition.
4941         (generated): Merge the two entries for build-shared.
4942
4943 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4944
4945         * debug/Makefile (distribute): Add xtrace.sh.
4946
4947 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4948
4949         * version.h (VERSION): Bump to 2.1.91.
4950
4951         * configure.in: Update warning comment.  glibc should not be
4952         broken anymore.
4953
4954         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4955         ioperm.c, sys/procfs.h, and sys/io.h.
4956
4957         * sysdeps/powerpc/Dist: Add bp-asm.h.
4958
4959         * assert/Depend: Add localedata.
4960         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4961         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4962
4963         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4964         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4965         relocation address to prevent unaligned trap.
4966         Suggested by Richard Henderson <rth@cygnus.com>.
4967
4968 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4969
4970         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4971         if redirecting and either redirection is done using defines or
4972         not optimizing.
4973
4974 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4975
4976         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4977         generated expressions.
4978         Patch by Darren McClelland <dmcclell@zetec.com>.
4979
4980         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4981         since zic uses setlocale and gettext but we cannot make it use the
4982         new locale data since zic calls a shell which might not use the
4983         new libc.
4984
4985         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4986         handling the internation currency symbol.  POSIX says that the
4987         fourth character is used to separate the currency symbol from the
4988         value.  Therefore it does not have to be printed.  But we cannot
4989         remove the space if the currency symbol is printed before the
4990         number since this is what many locales expect.
4991
4992         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4993         whether this information is available.
4994
4995         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4996         buffers in case the translation is too large.  Remember allocated
4997         memory blocks in a list.
4998         (free_mem): Free memory for translations.
4999
5000         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
5001
5002         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
5003         information is available set the string length to zero.
5004
5005         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
5006
5007 2000-06-30  Greg McGary  <greg@mcgary.org>
5008
5009         * sysdeps/powerpc/bp-asm.h: New file.
5010         * sysdeps/powerpc/__longjmp.S:  Check bounds.
5011         Wrap extern symbols in BP_SYM ().
5012         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
5013         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
5014         * sysdeps/powerpc/setjmp.S: Likewise.
5015         * sysdeps/powerpc/add_n.S: Likewise.
5016         * sysdeps/powerpc/addmul_1.S: Likewise.
5017         * sysdeps/powerpc/lshift.S: Likewise.
5018         * sysdeps/powerpc/rshift.S: Likewise.
5019         * sysdeps/powerpc/mul_1.S: Likewise.
5020         * sysdeps/powerpc/sub_n.S: Likewise.
5021         * sysdeps/powerpc/submul_1.S: Likewise.
5022         * sysdeps/powerpc/strlen.S: Likewise.
5023         * sysdeps/powerpc/memset.S: Likewise.
5024         * sysdeps/powerpc/stpcpy.S: Likewise.
5025         * sysdeps/powerpc/strcmp.S: Likewise.
5026         * sysdeps/powerpc/strcpy.S: Likewise.
5027         * sysdeps/powerpc/elf/bzero.S: Likewise.
5028
5029         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
5030         Line up operands column with tabs.
5031
5032 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
5033
5034         * elf/Makefile (LDFLAGS-origtest): Actually add it.
5035
5036         * sysdeps/ia64/htonl.S: New file.
5037         * sysdeps/ia64/htons.S: New file.
5038         * sysdeps/ia64/memcpy.S: Replace with version which does not use
5039         floating point registers.
5040         Patches by Dan Pop <Dan.Pop@cern.ch>.
5041
5042 2000-06-30  Andreas Jaeger  <aj@suse.de>
5043
5044         * posix/Makefile (tests): tst-exec and tst-spawn only work with
5045         shared libraries.
5046
5047         * io/Makefile (CFLAGS-test-lfs.c): New.
5048         (tests): Add test-lfs.
5049
5050         * io/test-lfs.c: New file.
5051
5052 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
5053
5054         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
5055         instruction.
5056
5057 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
5058
5059         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
5060
5061 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
5062
5063         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
5064         alias to the fstatfs call.
5065
5066         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
5067         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
5068
5069         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
5070         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
5071
5072         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
5073         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
5074         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
5075         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
5076
5077         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
5078         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
5079
5080         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
5081         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
5082
5083         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
5084         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
5085
5086         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
5087
5088 2000-06-29  Andreas Jaeger  <aj@suse.de>
5089
5090         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
5091         with syslog.
5092         (print_err_message): Likewise.
5093         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
5094
5095 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5096
5097         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
5098         used as words is properly aligned.
5099
5100         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
5101         data files.
5102
5103 2000-06-29  Greg McGary  <greg@mcgary.org>
5104
5105         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
5106         * sysdeps/unix/make-syscalls.sh: Handle signatures of
5107         length 7..9, just in case...
5108         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
5109
5110         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
5111         (POP_ERRNO_LOCATION_RETURN): Fold insns.
5112         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
5113         (PUSH_SIGNAL_MASK): New macro.
5114         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
5115         LEAVE is unnecessary.  Check bounds of jmp_buf.
5116         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
5117         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
5118         immediately before tail-call.
5119         * sysdeps/i386/setjmp.S: Likewise.
5120         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5121         * sysdeps/i386/bsd-setjmp.S: Likewise.
5122
5123 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
5124
5125         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
5126         versioned_symbol.
5127         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
5128         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5129         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5130         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5131         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5132         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5133         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5134         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5135
5136 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5137
5138         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5139         we later need to calling free().
5140         Patch by Matt Wilson <msw@redhat.com>.
5141
5142         * stdio-common/tst-printf.c: Add test for above problem.
5143
5144 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5145
5146         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5147         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5148
5149 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5150
5151         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5152         prototype for abs().
5153         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5154
5155 2000-06-23  Andreas Jaeger  <aj@suse.de>
5156
5157         * config.h.in: Don't use regparm with bounded pointers.
5158
5159 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5160
5161         * stdlib/grouping.h: Correctly handle multibyte thousands
5162         separator and decimal point.
5163         * stdlib/stdtod.c: Likewise.
5164         * sysdeps/generic/strtol.c: Likewise.
5165
5166         * locale/categories.def: Add entries for wide character decimal point
5167         and thousands separator in numeric and monetary category.
5168
5169 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5170
5171         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5172         second definition and initialization of decimal.
5173
5174 2000-06-28  Greg McGary  <greg@mcgary.org>
5175
5176         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5177         out.
5178         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5179         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5180         in.
5181         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5182         (struct _IO_FILE_plus *).
5183         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5184         THIS, since _IO_JUMPS no longer does it implicitly.
5185         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5186         arg type as (struct _IO_FILE_plus *).
5187         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5188         arg as (_IO_strfile *).
5189         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5190         Declare 1st arg as (_IO_strfile *).
5191         * libio/fileops.c (_IO_new_file_init): Declare
5192         arg type as (struct _IO_FILE_plus *).
5193         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5194         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5195         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5196         Declare iteration pointer as (struct _IO_FILE_plus *).
5197         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5198                 (struct _IO_FILE_plus *).
5199         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5200         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5201         (_IO_check_libio): Set user-visible handles to
5202         (struct _IO_FILE_plus *).
5203         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5204         to (struct _IO_FILE_plus *).
5205
5206         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5207         whose high bound includes vtable to all functions that will use
5208         vtable.  For streambufs, pass pointer whose bounds include struct
5209         _IO_strfile.
5210         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5211         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5212         * libio/iofopen.c (_IO_new_fopen): Likewise.
5213         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5214         * libio/iofopen64.c (_IO_fopen64): Likewise.
5215         * libio/iopopen.c (_IO_new_popen): Likewise.
5216         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5217         * libio/memstream.c (open_memstream): Likewise.
5218         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5219         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5220         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5221         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5222         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5223         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5224         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5225         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5226         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5227         * stdlib/strfmon.c (__strfmon_l): Likewise.
5228         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5229         (vfprintf): Qualify computed-goto targets as unbounded.
5230
5231 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5232
5233         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5234         thousands separator correctly.
5235
5236         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5237         * stdio-common/vfwscanf.c: Likewise.
5238
5239 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5240
5241         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5242         count into signatures for most calls.
5243
5244 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5245
5246         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5247         the generic parser now.
5248
5249 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5250
5251         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5252         table entries are 32 bit on the ia64 (as specified by the ABI),
5253         not 64 bit as on the Alpha.
5254
5255         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5256         change of objects to use 32 bit hash table indices (see above).
5257
5258 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5259
5260         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5261         prototype for abs().
5262
5263 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5264
5265         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5266         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5267         may have been reached.
5268
5269 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5270
5271         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5272         symbols in multi-character weights correctly.
5273
5274         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5275         depending on whether the input string is empty or not.
5276
5277         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5278         given state and not avoiding this by modifying a local object.
5279         * wcsmbs/wcrtomb.c: Likewise.
5280
5281         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5282         object since some incomplete characters might be in there.
5283
5284         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5285         sequences with first byte 0x8e correctly.
5286
5287         * iconvdata/jis0208.h: Remove redundant test.
5288
5289 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5290
5291         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5292         Add it where it is needed now.
5293
5294         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5295         the input charset into account when generating the hash table.
5296         (allocate_arrays): Correct setting default width.  Not all empty slots
5297         in the table are filled, only those not covert explicitly by the
5298         locale description and in the charset.
5299
5300         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5301         return values from the wctrans function.
5302
5303         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5304         wide character version.
5305         For %C handling, test correct pointer variable for NULL.
5306
5307         * wcsmbs/wctob.c: Handle WEOF special.
5308
5309         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5310
5311         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5312         always-true test to avoid warning.
5313
5314 2000-06-27  Greg McGary  <greg@mcgary.org>
5315
5316         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5317         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5318         (symbol_version, default_symbol_version): Factor redundant
5319         definitions out of conditional.
5320
5321 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5322
5323         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5324         not obstack_blank.
5325
5326 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5327
5328         * include/libc-symbols.h (symbol_version): Add extra level of
5329         macro expansion.
5330         (default_symbol_version): Likewise.
5331
5332 2000-06-26  Greg McGary  <greg@mcgary.org>
5333
5334         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5335         for BP return value & push implicit struct-return pointer to
5336         __errno_location.
5337         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5338         (SYSCALL_ERROR_HANDLER): Likewise.
5339         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5340         (SYSCALL_ERROR_HANDLER): Likewise.
5341
5342         * Makeconfig: Add missing comment.
5343         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5344         BP-flavored startup object.
5345         ($(objpfx)b$(start-installed-name)): New rule.
5346         * include/libc-symbols.h (symbol_set_declare): Change type
5347         of `__start_##set' and `__stop_##set' to pointer-to-function.
5348         (symbol_set_declare): Change type of `set' to array of
5349         pointer-to-function.
5350         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5351         pointer-to-function.
5352
5353         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5354
5355         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5356         Remove clock_* and timer_* entries.
5357         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5358         arg-count with signatures.
5359
5360         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5361         Check bounds of arguments.
5362         * sysdeps/i386/addmul_1.S: Likewise.
5363         * sysdeps/i386/lshift.S: Likewise.
5364         * sysdeps/i386/mul_1.S: Likewise.
5365         * sysdeps/i386/rshift.S: Likewise.
5366         * sysdeps/i386/sub_n.S: Likewise.
5367         * sysdeps/i386/submul_1.S: Likewise.
5368         * sysdeps/i386/i586/add_n.S: Likewise.
5369         * sysdeps/i386/i586/addmul_1.S: Likewise.
5370         * sysdeps/i386/i586/lshift.S: Likewise.
5371         * sysdeps/i386/i586/rshift.S: Likewise.
5372         * sysdeps/i386/i586/sub_n.S: Likewise.
5373         * sysdeps/i386/i686/add_n.S: Likewise.
5374
5375         * sysdeps/i386/memchr.S: Likewise.
5376         * sysdeps/i386/memcmp.S: Likewise.
5377         * sysdeps/i386/rawmemchr.S: Likewise.
5378         * sysdeps/i386/i586/bzero.S: Likewise.
5379         * sysdeps/i386/i586/memcpy.S: Likewise.
5380         * sysdeps/i386/i586/mempcpy.S: Likewise.
5381         * sysdeps/i386/i586/memset.S: Likewise.
5382         * sysdeps/i386/i686/bzero.S: Likewise.
5383         * sysdeps/i386/i686/memcpy.S: Likewise.
5384         * sysdeps/i386/i686/mempcpy.S: Likewise.
5385         * sysdeps/i386/i686/memset.S: Likewise.
5386
5387         * sysdeps/i386/stpcpy.S: Likewise.
5388         * sysdeps/i386/stpncpy.S: Likewise.
5389         * sysdeps/i386/strchr.S: Likewise.
5390         * sysdeps/i386/strchrnul.S: Likewise.
5391         * sysdeps/i386/strcspn.S: Likewise.
5392         * sysdeps/i386/strpbrk.S: Likewise.
5393         * sysdeps/i386/strrchr.S: Likewise.
5394         * sysdeps/i386/strspn.S: Likewise.
5395         * sysdeps/i386/strtok.S: Likewise.
5396         * sysdeps/i386/strtok_r.S: Likewise.
5397         * sysdeps/i386/i486/strcat.S: Likewise.
5398         * sysdeps/i386/i486/strlen.S: Likewise.
5399         * sysdeps/i386/i586/strchr.S: Likewise.
5400         * sysdeps/i386/i586/strcpy.S: Likewise.
5401         * sysdeps/i386/i586/strlen.S: Likewise.
5402         * sysdeps/i386/i686/strcmp.S: Likewise.
5403         * sysdeps/i386/i686/strtok.S: Likewise.
5404         * sysdeps/i386/i686/strtok_r.S: Likewise.
5405
5406         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5407         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5408         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5409         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5410         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5411
5412         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5413         * sysdeps/i386/mul_1.S: Likewise.
5414         * sysdeps/i386/submul_1.S: Likewise.
5415         * sysdeps/i386/i586/add_n.S: Likewise.
5416         * sysdeps/i386/i586/addmul_1.S: Likewise.
5417         * sysdeps/i386/i586/lshift.S: Likewise.
5418         * sysdeps/i386/i586/mul_1.S: Likewise.
5419         * sysdeps/i386/i586/rshift.S: Likewise.
5420         * sysdeps/i386/i586/sub_n.S: Likewise.
5421         * sysdeps/i386/i586/submul_1.S: Likewise.
5422
5423 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5424
5425         * rt/Makefile (librt-routines): Add clock_nanosleep.
5426         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5427         * sysdeps/generic/clock_nanosleep.c: New file.
5428         * sysdeps/unix/clock_nanosleep.c: New file.
5429         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5430         * time/time.h: Declare clock_nanosleep.
5431
5432 2000-06-26  Greg McGary  <greg@mcgary.org>
5433
5434         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5435         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5436         (ALIGN): Cleanup surrounding conditionals.
5437
5438         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5439         Call ENTER/LEAVE macros.
5440         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5441         * sysdeps/i386/submul_1.S: Likewise.
5442
5443         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5444         syntax.  Define & use symbolic argument stack offsets.  Call
5445         ENTER/LEAVE macros.
5446         * sysdeps/i386/i586/mul_1.S: Likewise.
5447         * sysdeps/i386/i586/submul_1.S: Likewise.
5448
5449 2000-06-25  Greg McGary  <greg@mcgary.org>
5450
5451         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5452         not as bcopy.
5453
5454 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5455
5456         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5457         * iconvdata/gen-8bit-gap.sh: Likewise.
5458         * iconvdata/gen-8bit.sh: Likewise.
5459
5460         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5461
5462         * locale/programs/ld-collate.c (collate_read): Don't actually read
5463         the copy locale if we are ignoring the content.
5464
5465         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5466         unknown character.
5467
5468         * locale/programs/ld-collate.c: Correct handling of different
5469         collation sections.
5470         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5471         as extra parameter from which to copy category information.
5472         Change all callers.
5473         (load_locale): Likewise.
5474         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5475         and load_locale.
5476         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5477         * locale/programs/locfile.h: Likewise.
5478         * locale/programs/locfile-kw.gperf: Add entry for script.
5479         * locale/programs/locfile-token.h: Add tok_script.
5480
5481         * locale/programs/locale.c: Update copyright year.
5482         * locale/programs/localedef.c: Likewise.
5483
5484 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5485
5486         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5487         Jens Moeller <jens.moeller@waii.com>.
5488
5489 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5490
5491         * locale/programs/ld-name.c (name_finish): Add missing format
5492         specifier to test for name_fmt.
5493
5494         * locale/programs/ld-address.c (iso639): Correct length of string
5495         elements.
5496         (iso3166): Likewise.
5497
5498         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5499
5500         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5501         Define.
5502
5503         * elf/elf.h (NT_PRFPXREG): Define.
5504
5505 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5506
5507         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5508         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5509
5510 2000-06-23  Andreas Schwab  <schwab@suse.de>
5511
5512         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5513         with signatures.
5514
5515 2000-06-23  Andreas Jaeger  <aj@suse.de>
5516
5517         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5518
5519         * io/test-stat.c: Add copyright header, mention Maciej.
5520
5521         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5522         SYS_mincore, SYS_madvise): Added.
5523
5524         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5525         execve.
5526
5527 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5528
5529         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5530         (CFLAGS-tst_putwc.c): New definition.
5531         * libio/tst_getwc.c: New file.
5532         * libio/tst_getwc.input: New file.
5533         * libio/tst_putwc.c: New file.
5534
5535         * include/string.h: Add prototype for __strdup.
5536
5537 2000-06-22  Greg McGary  <greg@mcgary.org>
5538
5539         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5540         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5541         Fix signatures.
5542
5543 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5544
5545         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5546
5547 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5548
5549         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5550
5551 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5552
5553         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5554         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5555
5556 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5557
5558         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5559         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5560         and __S_TYPEISSHM.
5561         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5562         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5563         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5564         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5565         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5566         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5567         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5568         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5569         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5570         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5571         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5572         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5573         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5574         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5575         S_TYPEISSHM.
5576
5577 2000-06-22  Andreas Jaeger  <aj@suse.de>
5578
5579         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5580         with signatures.
5581
5582         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5583
5584         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5585
5586 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5587
5588         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5589         ahead.
5590
5591 2000-06-21  Greg McGary  <greg@mcgary.org>
5592
5593         * Makerules (elide-routines.*, elide-bp-thunks):
5594         Define unconditionally.
5595
5596 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5597
5598         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5599
5600 2000-06-21  Andreas Jaeger  <aj@suse.de>
5601
5602         * io/Makefile (tests): Add test-stat.
5603         (CFLAGS-test-stat.c): New.
5604
5605         * io/test-stat.c: New file from Maciej W. Rozycki
5606         <macro@ds2.pg.gda.pl>.
5607
5608 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5609
5610         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5611         in __rlimit_resource to make them match the kernel order.
5612         rlim_t is always 64 bit, use __rlim64_t to declare it
5613         unconditionally.
5614
5615 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5616
5617         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5618         RLIM_INFINITY before defining it to avoid clash with kernel header
5619
5620 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5621
5622         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5623
5624 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5625
5626         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5627
5628 2000-06-21  Andreas Jaeger  <aj@suse.de>
5629
5630         * stdio-common/temptest.c: Include <stdlib.h>.
5631         * stdio-common/tst-fileno.c: Likewise.
5632         * stdio-common/scanf4.c: Likewise.
5633         * stdio-common/scanf5.c: Likewise.
5634         * time/clocktest.c: Likewise.
5635         * posix/test-vfork.c: Likewise.
5636         * posix/globtest.c: Likewise.
5637         * io/test-utime.c: Likewise.
5638         * wctype/test_wcfuncs.c: Likewise.
5639         * crypt/cert.c: Likewise.
5640
5641         * stdio-common/tst-printfsz.c: Include <string.h>.
5642         * libio/tst_swscanf.c: Likewise.
5643         * libio/tst_wscanf.c: Likewise.
5644         * posix/runtests.c: Likewise.
5645         * posix/tst-getaddrinfo.c: Likewise.
5646         * posix/wordexp-test.c: Likewise.
5647         * misc/tst-efgcvt.c: Likewise.
5648
5649         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5650         * nss/test-netdb.c: Likewise.
5651
5652         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5653         supported kernel for MIPS.
5654
5655         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5656         * rt/aio_suspend.c: Likewise.
5657
5658 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5659
5660         * math/libm-test.inc: Include <string.h>.
5661
5662 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5663
5664         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5665
5666 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5667
5668         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5669         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5670
5671 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5672
5673         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5674
5675 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5676
5677         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5678
5679 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5680
5681         * locale/programs/ld-collate.c (insert_value): Now take string and
5682         length instead of struct token* parameter.  Adjust use of token.
5683         (handle_ellipsis): Likewise.
5684         (collate_read): Allow <Uxxxx> names and transform them into names
5685         to be passed to insert_value and handle_ellipsis.
5686
5687         * locale/programs/ld-ctype.c (uninames): New array with names of
5688         digits in <Uxxxxxxxx> format.
5689         (ctype_finish): Correct search for space character value.  Likewise
5690         for default outdigits values.
5691
5692 2000-06-20  Greg McGary  <greg@mcgary.org>
5693
5694         * Makerules (objects): Add BP thunks.
5695
5696 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5697
5698         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5699         in width definitions.
5700
5701 2000-06-20  Andreas Jaeger  <aj@suse.de>
5702
5703         * sysdeps/mips/fpu/libm-test-ulps: New file.
5704
5705         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5706         first.
5707
5708         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5709
5710         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5711
5712 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5713
5714         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5715         change in gconv_builtin.h.
5716
5717         * malloc/Makefile: Change all references to memprof into memusage.
5718         * malloc/memprof.c: Rename to...
5719         * malloc/memusage.c: ...this.  New file.
5720         * malloc/memprof.sh: Rename to...
5721         * malloc/memusage.sh: ...this.  New file.
5722         * malloc/memprofstat.c: Rename to...
5723         * malloc/memusagestat.c: ...this.  New file.
5724         * sysdeps/alpha/memprof.h: Rename to..
5725         * sysdeps/alpha/memusage.h: ...this.  New file.
5726         * sysdeps/arm/memprof.h: Rename to..
5727         * sysdeps/arm/memusage.h: ...this.  New file.
5728         * sysdeps/generic/memprof.h: Rename to..
5729         * sysdeps/generic/memusage.h: ...this.  New file.
5730         * sysdeps/i386/memprof.h: Rename to..
5731         * sysdeps/i386/memusage.h: ...this.  New file.
5732         * sysdeps/ia64/memprof.h: Rename to..
5733         * sysdeps/ia64/memusage.h: ...this.  New file.
5734         * sysdeps/m68k/memprof.h: Rename to..
5735         * sysdeps/m68k/memusage.h: ...this.  New file.
5736         * sysdeps/mips/memprof.h: Rename to..
5737         * sysdeps/mips/memusage.h: ...this.  New file.
5738         * sysdeps/powerpc/memprof.h: Rename to..
5739         * sysdeps/powerpc/memusage.h: ...this.  New file.
5740         * sysdeps/sparc/memprof.h: Rename to..
5741         * sysdeps/sparc/memusage.h: ...this.  New file.
5742         * sysdeps/sh/memprof.h: Rename to..
5743         * sysdeps/sh/memusage.h: ...this.  New file.
5744
5745         * elf/sprof.c (print_version): Update year.
5746
5747         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5748         table entry values.  Use D_PTR.
5749         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5750         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5751
5752 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5753
5754         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5755         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5756         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5757         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5758
5759 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5760
5761         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5762
5763 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5764
5765         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5766         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5767         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5768
5769         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5770
5771         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5772         kernel change.
5773
5774         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5775         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5776         structure.
5777         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5778         implementation.
5779
5780 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5781
5782         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5783
5784 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5785
5786         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5787
5788 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5789
5790         * iconv/gconv_int.h (strict gconv_module): Remove all members
5791         associated with regular expressions.  Use a simple string as the
5792         from name.
5793         * iconv/gconv_db.c: Remove code handling regular expressions.
5794         * iconv/gconv_conf.c: Likewise.
5795         * iconv/iconv_prog.c: Likewise.
5796         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5797
5798         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5799         General namespace cleanup.
5800         (struct __gconv_trans_data): Add next field.
5801         (struct __gconv_step_data): Make __trans a pointer.
5802         * iconv/gconv_conf.c: Split out code to find gconv directories from
5803         __gconv_read_conf in new functions.
5804         * iconv/gconv_int.h: Define new data structure and declare new
5805         functions for handling of gconv directory list.
5806         * iconv/gconv_open.c: Allow more than one error handling step being
5807         used.  Call function to load error handling module if it is none
5808         of the builtin transformations.
5809         * iconv/gconv_close.c: Add code to free transliteration data.
5810         * iconv/gconv_trans.c: Add functions to load and unload modules
5811         implementing transliteration etc.
5812         * iconv/skeleton.c: Call all context functions now that more than
5813         one module is allowed.
5814         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5815         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5816         where the full error handling using transliteration is needed.
5817         * iconvdata/8bit-gap.c: Likewise.
5818         * iconvdata/8bit-generic.c: Likewise.
5819         * iconvdata/ansi_x3.110.c: Likewise.
5820         * iconvdata/big5.c: Likewise.
5821         * iconvdata/big5hkscs.c: Likewise.
5822         * iconvdata/euc-cn.c: Likewise.
5823         * iconvdata/euc-jp.c: Likewise.
5824         * iconvdata/euc-kr.c: Likewise.
5825         * iconvdata/euc-tw.c: Likewise.
5826         * iconvdata/gbgbk.c: Likewise.
5827         * iconvdata/gbk.c: Likewise.
5828         * iconvdata/iso-2022-cn.c: Likewise.
5829         * iconvdata/iso-2022-jp.c: Likewise.
5830         * iconvdata/iso-2022-kr.c: Likewise.
5831         * iconvdata/iso646.c: Likewise.
5832         * iconvdata/iso8859-1.c: Likewise.
5833         * iconvdata/iso_6937-2.c: Likewise.
5834         * iconvdata/iso_6937.c: Likewise.
5835         * iconvdata/johab.c: Likewise.
5836         * iconvdata/sjis.c: Likewise.
5837         * iconvdata/t.61.c: Likewise.
5838         * iconvdata/uhc.c: Likewise.
5839         * iconvdata/unicode.c: Likewise.
5840         * iconvdata/utf-16.c: Likewise.
5841         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5842         structure correctly after last change.
5843         * wcsmbs/btowc.c: Likewise.
5844         * wcsmbs/mbrtowc.c: Likewise.
5845         * wcsmbs/mbsnrtowcs.c: Likewise.
5846         * wcsmbs/mbsrtowcs.c: Likewise.
5847         * wcsmbs/wcrtomb.c: Likewise.
5848         * wcsmbs/wcsnrtombs.c: Likewise.
5849         * wcsmbs/wcsrtombs.c: Likewise.
5850         * wcsmbs/wctob.c: Likewise.
5851
5852         * localedata/Makefile: Set -Wno-format for some files since gcc does
5853         not know all the format specifiers.
5854
5855 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5856
5857         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5858         unneeded code.
5859         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5860
5861 2000-06-18  Andreas Jaeger  <aj@suse.de>
5862
5863         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5864         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5865
5866 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5867
5868         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5869         LINUX_LINK_MAX.
5870         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5871
5872         * locale/programs/ld-ctype.c (ctype_output): Really write out
5873         mboutdigits information.
5874         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5875         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5876         * localedata/tests/trans.def: Add outdigit information.
5877
5878         * localedata/tst-mbswcs3.c: Remove comment.
5879
5880         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5881         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5882         * libio/tst_wprintf.c (main): Add test for I flag.
5883
5884         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5885         * locale/langinfo.h: Add entries for translit_ignore information.
5886         * locale/categories.def: Add entries for new LC_CTYPE elements.
5887         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5888         pointer instead of "" where possible.
5889         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5890         * intl/Depend: Add localedata.
5891         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5892         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5893
5894 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5895
5896         * locale/langinfo.h: Add entries for default_missing information.
5897         * locale/C-ctype.c: Add initializers for new fields.
5898         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5899         information.
5900         * locale/categories.h: Add entries for all LC_CTYPE values.
5901         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5902         information.
5903
5904         * localedata/tst-trans.c: Write out an error message if class is
5905         not found.
5906
5907         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5908         * iconv/gconv_open.c: Remove error handling specification from `from'
5909         character set name.
5910         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5911         new parameter to always enable transliteration.
5912         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5913         change.
5914         (struct locale_data): Add new members use_translit and options.
5915         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5916         character set name contained modifier TRANSLIT.
5917         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5918         and options fields.
5919         (_nl_unload_locale): Free options string if necessary.
5920         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5921         the locale names suggested this.
5922         * locale/C-address.c: Add two new initialilzers to adjust data
5923         structure for new format.
5924         * locale/C-collate.c: Likewise.
5925         * locale/C-ctype.c: Likewise.
5926         * locale/C-identification.c: Likewise.
5927         * locale/C-measurement.c: Likewise.
5928         * locale/C-messages.c: Likewise.
5929         * locale/C-monetary.c: Likewise.
5930         * locale/C-name.c: Likewise.
5931         * locale/C-numeric.c: Likewise.
5932         * locale/C-paper.c: Likewise.
5933         * locale/C-telephone.c: Likewise.
5934         * locale/C-time.c: Likewise.
5935
5936         * locale/setlocale.c: Add some more __builtin_expect.
5937
5938 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5939
5940         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5941         unsigned char **.
5942         (__gconv_init_fct): Remove two parameters.
5943         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5944         gconv_transliterate.  Remove two parameters.
5945         Change prototypes of builtin functions according to __gconv_fct change.
5946         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5947         != NULL only during error handling.  Stop in this case after the
5948         conversion.
5949         * iconv/gconv_trans.c: Replace with real implementation for
5950         __gconv_transliterate.
5951         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5952         * iconv/gconv.c: Change calls to downstream functions once again.
5953         Use NULL for the fifth parameter instead of pointer to output buffer.
5954         * libio/iofwide.c: Likewise.
5955         * wcsmbs/btowc.c: Likewise.
5956         * wcsmbs/mbrtowc.c: Likewise.
5957         * wcsmbs/mbsnrtowcs.c: Likewise.
5958         * wcsmbs/mbsrtowcs.c: Likewise.
5959         * wcsmbs/wcrtomb.c: Likewise.
5960         * wcsmbs/wcsnrtombs.c: Likewise.
5961         * wcsmbs/wcsrtombs.c: Likewise.
5962         * wcsmbs/wctob.c: Likewise.
5963         * iconv/gconv_simple.c: Remove two parameters from error handling
5964         function call.
5965         * iconvdata/8bit-gap.c: Likewise.
5966         * iconvdata/8bit-generic.c: Likewise.
5967         * iconvdata/ansi_x3.110.c: Likewise.
5968         * iconvdata/big5.c: Likewise.
5969         * iconvdata/big5hkscs.c: Likewise.
5970         * iconvdata/euc-cn.c: Likewise.
5971         * iconvdata/euc-jp.c: Likewise.
5972         * iconvdata/euc-kr.c: Likewise.
5973         * iconvdata/euc-tw.c: Likewise.
5974         * iconvdata/gbgbk.c: Likewise.
5975         * iconvdata/gbk.c: Likewise.
5976         * iconvdata/iso-2022-cn.c: Likewise.
5977         * iconvdata/iso-2022-jp.c: Likewise.
5978         * iconvdata/iso-2022-kr.c: Likewise.
5979         * iconvdata/iso646.c: Likewise.
5980         * iconvdata/iso8859-1.c: Likewise.
5981         * iconvdata/iso_6937-2.c: Likewise.
5982         * iconvdata/iso_6937.c: Likewise.
5983         * iconvdata/johab.c: Likewise.
5984         * iconvdata/sjis.c: Likewise.
5985         * iconvdata/t.61.c: Likewise.
5986         * iconvdata/uhc.c: Likewise.
5987         * iconvdata/unicode.c: Likewise.
5988         * iconvdata/utf-16.c: Likewise.
5989
5990 2000-06-15  Greg McGary  <greg@mcgary.org>
5991
5992         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5993         of callnum assignment.  Tolerate callnum expressions containing
5994         parens.
5995
5996 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5997
5998         * login/Makefile (utmpd): Remove rule to build utmpd.
5999
6000         * csu/Versions: Move libgcc frame handling functions from here...
6001         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
6002         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
6003         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
6004         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
6005         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
6006         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
6007         New file.
6008         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
6009
6010         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
6011
6012         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
6013
6014 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6015
6016         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
6017         compatibility.
6018         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
6019         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
6020         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
6021         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
6022
6023 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
6024
6025         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
6026         defined, terminate quotes and read them after the comment char.
6027         * configure.in (HAVE_SECTION_QUOTES): Test whether
6028         __attribute__((section ("x"))) puts quotes around x or not.
6029         * config.h.in (HAVE_SECTION_QUOTES): Add.
6030         * configure: Rebuilt.
6031
6032 2000-06-14  Andreas Jaeger  <aj@suse.de>
6033
6034         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
6035         depending on the configure option --sysconfdir.
6036         Closes PR libc/1762.
6037         Patch by Andreas Schwab <schwab@suse.de>.
6038
6039         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
6040         entry point.
6041         Reported by Jim Pick <jim@jimpick.com>.
6042
6043 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
6044
6045         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
6046         crashing the application.  Emit some simple error message.
6047         Reported by mju@panasas.com [PR libc/1769].
6048
6049 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6050
6051         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
6052
6053         * crypt/Makefile (distribute): Add md5.h.
6054
6055         * Makefile (distribute): Add include/shlib-compat.h.
6056
6057         * Make-dist: Search for tests also in sysdeps hierachy.
6058
6059         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
6060         ufc.c, speeds.c, README.ufc-crypt, and Banner.
6061
6062         * sysdeps/sparc/Subdirs: New file.
6063
6064         * locale/Makefile (distribute): Add weightwc.h and
6065         programs/localedef.h.
6066
6067         * time/Makefile (distribute): Add datemsk.
6068
6069         * sysdeps/ia64/Dist: Add softpipe.h.
6070
6071         * sysdeps/unix/sysv/aix/Dist: New file.
6072
6073         * posix/setpgrp.c: Moved to...
6074         * sysdeps/generic/setpgrp.c: ...here.  New file.
6075         * io/mknod.c: Moved to...
6076         * sysdeps/generic/mknod.c: ...here.  New file.
6077
6078         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
6079
6080         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
6081
6082         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
6083
6084         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
6085         gprsave0.S, gprrest1.S, and gprrest0.S.
6086
6087         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
6088
6089         * posix/Makefile (routines): Add spawnattr_getsigmask,
6090         spawnattr_getschedpolicy, spawnattr_getschedparam,
6091         spawnattr_setsigmask, spawnattr_setschedpolicy, and
6092         spawnattr_setschedparam.
6093         * posix/Versions: Add posix_spawnattr_getschedpolicy,
6094         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
6095         posix_spawnattr_setschedparam.
6096
6097         * posix/spawnattr_setschedparam.c: Fix typo.
6098
6099         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
6100         Correct typo.
6101
6102         * login/programs/utmpd.c: Removed.
6103         * login/programs/utmpd.h: Removed.
6104         * login/programs/utmpd-private.h: Removed.
6105
6106         * Makefile (distribute): Add include/db_185.h and include/db.h.
6107
6108         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
6109         iso-ir-165.h.
6110
6111         * elf/Makefile (distribute): Add missing files.
6112
6113         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
6114         * elf/eval.c: Moved to...
6115         * dlfcn/eval.c: ...here.  New file.
6116
6117         * Makefile (distribute): Also distribute ChangeLog.1?.
6118
6119         * Make-dist (+tsrcs): Remove .args handling here as well.
6120
6121         * rt/Makefile (tests): Add tst-timer.
6122         * sysdeps/generic/tst-timer.c: New file.
6123
6124         * Makerules (sources): Don't add BP sources here.
6125
6126         * login/Makefile (distribute): Remove xtmp.h.
6127
6128         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6129         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6130
6131 2000-06-13  Andreas Jaeger  <aj@suse.de>
6132
6133         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6134         Patch by Ralf Baechle <ralf@gnu.org>.
6135
6136 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6137
6138         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6139         for mincore syscall.
6140
6141         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6142         __BOUNDED_POINTERS__ is not defined.
6143
6144 2000-06-07  Greg McGary  <greg@mcgary.org>
6145
6146         * sysdeps/generic/bp-sym.h: New file.
6147         * sysdeps/generic/bp-start.h: New file.
6148         * sysdeps/i386/elf/start.S: Designate BP symbols.
6149         * sysdeps/generic/libc-start.c: Wrap bounds around
6150         argv & envp and each of their string members.
6151
6152 2000-06-07  Greg McGary  <greg@mcgary.org>
6153
6154         * sysdeps/unix/make-syscalls.sh: Add comments to
6155         output that aid debugging & comprehension.
6156         Map simple syscall signatures to number of args.
6157         Generate BP syscall thunk definitions.
6158         * sysdeps/generic/bp-thunks.h: New file.
6159         * sysdeps/unix/syscalls.list: Replace arg-count with
6160         simple return+arg signature.
6161         * sysdeps/unix/common/syscalls.list: Likewise.
6162         * sysdeps/unix/inet/syscalls.list: Likewise.
6163         * sysdeps/unix/mman/syscalls.list: Likewise.
6164         * sysdeps/unix/sysv/syscalls.list: Likewise.
6165         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6166         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6167
6168 2000-06-07  Greg McGary  <greg@mcgary.org>
6169
6170         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6171         for all files *.[cS].
6172         (CFLAGS-.ob): Don't optimize sibling calls.
6173         (bppfx): New variable.
6174         * Makerules (elide-bp-thunks): New variable.
6175         (elide-routines.*): Elide BP-* files for all but *.ob.
6176         (sources): Include bp-thunks.
6177
6178 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6179
6180         * iconv/gconv_simple.c: Remove unnecessary prototype.
6181
6182         * iconv/gconv_trans.c: Pretty print.
6183
6184         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6185
6186         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6187         minimal kernel versions.  Add information about IA-64 kernel.
6188
6189         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6190         specific minimal supported kernel versions to be specified.
6191
6192         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6193         step data structure.
6194         * wcsmbs/btowc.c: Likewise.
6195         * wcsmbs/mbrtowc.c: Likewise.
6196         * wcsmbs/mbsnrtowcs.c: Likewise.
6197         * wcsmbs/mbsrtowcs.c: Likewise.
6198         * wcsmbs/wcrtomb.c: Likewise.
6199         * wcsmbs/wcsnrtombs.c: Likewise.
6200         * wcsmbs/wcsrtombs.c: Likewise.
6201         * wcsmbs/wctob.c: Likewise.
6202
6203         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6204         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6205
6206         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6207
6208         * misc/sys/cdefs.h: Remove one more __P.
6209
6210         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6211         Reported by HJ Lu.
6212
6213         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6214         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6215         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6216
6217 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6218             Yutaka Niibe  <gniibe@chroot.org>
6219
6220         * configure.in: Add machine sh3, sh4.
6221         * elf/elf.h: Add SH specific declarations of relocations.
6222         * shlib-versions: Add sh*-*-linux* cases.
6223
6224 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6225
6226         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6227         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6228         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6229         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6230         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6231         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6232
6233         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6234         instead of KERNEL_MATH_EMULATION.
6235         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6236         KERNEL_MATH_EMULATION.
6237
6238         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6239         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6240         * sysdeps/sh/dl-machine.h: ...here.  New file.
6241         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6242         and include generic SH version.
6243         * sysdeps/sh/sh3/bits/endian.h: Move to...
6244         * sysdeps/sh/bits/endian.h: ...here.  New file.
6245         * sysdeps/sh/sh4/bits/endian.h: Removed.
6246         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6247         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6248         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6249
6250         * include/libc-symbols.h (link_warning): Work around a change in
6251         GAS which warns about changing section attributes.
6252         Proposed by Nick Clifton <nickc@redhat.com>.
6253
6254 2000-06-12  H.J. Lu  <hjl@gnu.org>
6255
6256         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6257
6258 2000-06-11  H.J. Lu  <hjl@gnu.org>
6259
6260         * sysdeps/i386/fpu/Versions: New file.
6261
6262 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6263
6264         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6265         parameters.
6266         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6267         exists.
6268
6269 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6270
6271         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6272         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6273         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6274
6275         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6276         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6277         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6278
6279 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6280             Yutaka Niibe  <gniibe@chroot.org>
6281
6282         * sysdeps/sh/Dist: New file.
6283         * sysdeps/sh/Implies: New file.
6284         * sysdeps/sh/elf/initfini.c: New file.
6285         * sysdeps/sh/gmp-mparam.h: New file.
6286         * sysdeps/sh/init-first.c: New file.
6287         * sysdeps/sh/machine-gmon.h: New file.
6288         * sysdeps/sh/memcpy.S: New file.
6289         * sysdeps/sh/memprof.h: New file.
6290         * sysdeps/sh/memset.S: New file.
6291         * sysdeps/sh/sh3/__longjmp.S: New file.
6292         * sysdeps/sh/sh3/bits/endian.h: New file.
6293         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6294         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6295         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6296         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6297         * sysdeps/sh/sh3/dl-machine.h: New file.
6298         * sysdeps/sh/sh3/setjmp.S: New file.
6299         * sysdeps/sh/sh4/__longjmp.S: New file.
6300         * sysdeps/sh/sh4/bits/endian.h: New file.
6301         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6302         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6303         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6304         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6305         * sysdeps/sh/sh4/dl-machine.h: New file.
6306         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6307         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6308         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6309         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6310         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6311         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6312         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6313         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6314         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6315         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6316         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6317         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6318         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6319         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6320         * sysdeps/sh/sh4/setjmp.S: New file.
6321         * sysdeps/sh/elf/start.S: New file.
6322         * sysdeps/sh/sys/ucontext.h: New file.
6323         * sysdeps/sh/strlen.S: New file.
6324         * sysdeps/sh/sysdep.h: New file.
6325         * sysdeps/unix/sh/sysdep.S: New file.
6326         * sysdeps/unix/sh/sysdep.h: New file.
6327         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6328         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6329         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6330         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6331         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6332         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6333         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6334         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6335         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6336         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6337         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6338         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6339         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6340         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6341         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6342         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6343         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6344         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6345         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6346         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6347         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6348         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6349         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6350         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6351         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6352         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6353         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6354         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6355         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6356         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6357         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6358         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6359         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6360         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6361         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6362         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6363         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6364         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6365         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6366         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6367         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6368         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6369         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6370         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6371         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6372         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6373         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6374         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6375         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6376         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6377
6378 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6379
6380         * Rules (%.out): Define GCONV_PATH in the environment.
6381         * assert/Depend: New file.
6382         * iconvdata/Depend: New file.
6383         * intl/Depend: New file.
6384         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6385         * intl/tst-gettext.sh: Likewise.
6386         * iconv/Makefile (routines): Add gconv_trans.
6387         * iconv/gconv_trans.c: New file.
6388         * iconv/gconv.h (struct __gconv_trans_data): New type.
6389         (__gconv_fct): New parameter with starting position in output buffer.
6390         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6391         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6392         (struct __gconv_step): Add new member __trans.
6393         * iconv/gconv_int.h: Pretty print prototypes.
6394         (gconv_transliterate): New prototype.
6395         (__BUILTIN_TRANS): Update for new conversion function interface.
6396         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6397         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6398         in names, find appropriate function, and install in the conversion
6399         steps it can be used.
6400         * iconv/skeleton.c: Add additional parameter for beginning of output
6401         buffer.  Change calls of downstream functions.
6402         * iconv/loop.c: Change loop function interface completely.  Pass in
6403         step and step_data structure.  Remove optimization for BODY with
6404         NEED_LENGTH_TEST == 0.
6405         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6406         appropriate error handling code to use transliteration steps.  Remove
6407         optimization for BODY with NEED_LENGTH_TEST == 0.
6408         * iconvdata/8bit-gap.c: Likewise.
6409         * iconvdata/8bit-generic.c: Likewise.
6410         * iconvdata/ansi_x3.110.c: Likewise.
6411         * iconvdata/big5.c: Likewise.
6412         * iconvdata/big5hkscs.c: Likewise.
6413         * iconvdata/euc-cn.c: Likewise.
6414         * iconvdata/euc-jp.c: Likewise.
6415         * iconvdata/euc-kr.c: Likewise.
6416         * iconvdata/euc-tw.c: Likewise.
6417         * iconvdata/gbgbk.c: Likewise.
6418         * iconvdata/gbk.c: Likewise.
6419         * iconvdata/iso-2022-cn.c: Likewise.
6420         * iconvdata/iso-2022-jp.c: Likewise.
6421         * iconvdata/iso-2022-kr.c: Likewise.
6422         * iconvdata/iso646.c: Likewise.
6423         * iconvdata/iso8859-1.c: Likewise.
6424         * iconvdata/iso_6937-2.c: Likewise.
6425         * iconvdata/iso_6937.c: Likewise.
6426         * iconvdata/johab.c: Likewise.
6427         * iconvdata/sjis.c: Likewise.
6428         * iconvdata/t.61.c: Likewise.
6429         * iconvdata/uhc.c: Likewise.
6430         * iconvdata/unicode.c: Likewise.
6431         * iconvdata/utf-16.c: Likewise.
6432         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6433         DL_CALL_FCT.
6434         * wcsmbs/btowc.c: Likewise.
6435         * wcsmbs/mbrtowc.c: Likewise.
6436         * wcsmbs/mbsnrtowcs.c: Likewise.
6437         * wcsmbs/mbsrtowcs.c: Likewise.
6438         * wcsmbs/wcrtomb.c: Likewise.
6439         * wcsmbs/wcsnrtombs.c: Likewise.
6440         * wcsmbs/wcsrtombs.c: Likewise.
6441         * wcsmbs/wctob.c: Likewise.
6442
6443 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6444
6445         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6446         other header files.  Mention about 128-byte cache line sizes.
6447         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6448         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6449         for current calling sequence.
6450         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6451
6452         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6453         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6454
6455         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6456         and setrlimit syscalls for backwards compatibility.
6457
6458 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6459
6460         * iconv/skeleton.c:  Rename converted written to correcter name
6461         irreversible.
6462         * iconv/gconv.c: Rename converted variable to correcter name
6463         irreversible.
6464         * iconv/gconv_int.h: Likewise.
6465         * iconv/gconv_simple.c: Likewise.
6466         * iconv/iconv.c: Likewise.
6467         * iconv/loop.c: Likewise.
6468         * iconvdata/8bit-gap.c: Likewise.
6469         * iconvdata/8bit-generic.c: Likewise.
6470         * iconvdata/ansi_x3.110.c: Likewise.
6471         * iconvdata/big5.c: Likewise.
6472         * iconvdata/big5hkscs.c: Likewise.
6473         * iconvdata/euc-cn.c: Likewise.
6474         * iconvdata/euc-jp.c: Likewise.
6475         * iconvdata/euc-kr.c: Likewise.
6476         * iconvdata/gbgbk.c: Likewise.
6477         * iconvdata/gbk.c: Likewise.
6478         * iconvdata/iso-2022-cn.c: Likewise.
6479         * iconvdata/iso-2022-jp.c: Likewise.
6480         * iconvdata/iso-2022-kr.c: Likewise.
6481         * iconvdata/iso646.c: Likewise.
6482         * iconvdata/iso8859-1.c: Likewise.
6483         * iconvdata/iso_6937-2.c: Likewise.
6484         * iconvdata/iso_6937.c: Likewise.
6485         * iconvdata/johab.c: Likewise.
6486         * iconvdata/sjis.c: Likewise.
6487         * iconvdata/t.61.c: Likewise.
6488         * iconvdata/uhc.c: Likewise.
6489         * iconvdata/unicode.c: Likewise.
6490         * iconvdata/utf-16.c: Likewise.
6491
6492         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6493         __cmsg_data field with __extension__.
6494
6495 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6496
6497         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6498
6499 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6500
6501         * iconv/gconv_simple.c: Fix various small bugs in several
6502         functions.
6503
6504         * iconv/loop.c: Fix comment.
6505
6506 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6507
6508         * elf/link.h: Remove libc internal declarations.
6509         * include/link.h: Move them here.
6510
6511 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6512
6513         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6514         Patch by Dan Pop <Dan.Pop@cern.ch>.
6515
6516         Rewrite error message handling.
6517         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6518         _dl_catch_error.
6519         * elf/dl-error (struct catch): Add objname member.
6520         (_dl_signal_error): Take new parameter with object name.  When
6521         passing message on simply store object name and duplicate error
6522         message.
6523         (_dl_catch_error): Take new parameter.  Store object name in the
6524         place pointed to.
6525         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6526         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6527         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6528         (dlerror): Add objname to asprintf() parameters.
6529         (_dl_error_run): Pass new parameter to _dl_catch_error.
6530         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6531         * elf/dl-open.c (_dl_open): Likewise.
6532         * elf/rtld.c (dl_main): Likewise.
6533         * elf/dl-close.c: Mark error messages with N_().
6534         * elf/dl-deps.c: Likewise.
6535         * elf/dl-error.c: Likewise.
6536         * elf/dl-load.c: Likewise.
6537         * elf/dl-open.c: Likewise.
6538         * elf/dl-reloc.c: Likewise.
6539         * elf/dl-support.c: Likewise.
6540         * elf/dl-sym.c: Likewise.
6541         * elf/dl-version.c: Likewise.
6542         * elf/dl-lookup.c: Add comments about problems with error message
6543         translations.
6544         * elf/dl-reloc.c: Likewise.
6545         * elf/dl-version.c: Likewise.
6546
6547 2000-06-09  H.J. Lu  <hjl@gnu.org>
6548
6549         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6550         after freeing it.
6551
6552         * dlfcn/Makefile (distribute): Add failtestmod.c.
6553         (tests): Add failtest.
6554         Add rules to build and run failtest.
6555         * dlfcn/failtest.c: New file.
6556         * dlfcn/failtestmod.c: New file.
6557
6558 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6559
6560         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6561         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6562         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6563         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6564         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6565
6566 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6567
6568         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6569         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6570
6571 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6572             Ulrich Drepper  <drepper@redhat.com>
6573
6574         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6575         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6576         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6577         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6578         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6579         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6580
6581 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6582
6583         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6584         to find correct mount point despite wrong information from the
6585         kernel.
6586
6587 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6588
6589         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6590         the address of a symbol so function pointers are handled properly.
6591
6592 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6593
6594         * sysdeps/i386/Dist: Add bp-asm.h.
6595
6596         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6597         defaultdir variable instead of "/var/shm" everywhere.
6598         (defaultdir): Change to /dev/shm/.
6599
6600 2000-06-08  Greg McGary  <greg@mcgary.org>
6601
6602         * sysdeps/i386/bp-asm.h: New file.
6603         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6604         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6605         frame-pointer chain when debugging.
6606         * sysdeps/i386/add_n.S: Likewise.
6607         * sysdeps/i386/addmul_1.S: Likewise.
6608         * sysdeps/i386/lshift.S: Likewise.
6609         * sysdeps/i386/memchr.S: Likewise.
6610         * sysdeps/i386/memcmp.S: Likewise.
6611         * sysdeps/i386/mul_1.S: Likewise.
6612         * sysdeps/i386/rawmemchr.S: Likewise.
6613         * sysdeps/i386/rshift.S: Likewise.
6614         * sysdeps/i386/stpcpy.S: Likewise.
6615         * sysdeps/i386/stpncpy.S: Likewise.
6616         * sysdeps/i386/strchr.S: Likewise.
6617         * sysdeps/i386/strchrnul.S: Likewise.
6618         * sysdeps/i386/strcspn.S: Likewise.
6619         * sysdeps/i386/strpbrk.S: Likewise.
6620         * sysdeps/i386/strrchr.S: Likewise.
6621         * sysdeps/i386/strspn.S: Likewise.
6622         * sysdeps/i386/strtok.S: Likewise.
6623         * sysdeps/i386/sub_n.S: Likewise.
6624         * sysdeps/i386/submul_1.S: Likewise.
6625         * sysdeps/i386/elf/setjmp.S: Likewise.
6626         * sysdeps/i386/i486/strcat.S: Likewise.
6627         * sysdeps/i386/i486/strlen.S: Likewise.
6628         * sysdeps/i386/i586/add_n.S: Likewise.
6629         * sysdeps/i386/i586/lshift.S: Likewise.
6630         * sysdeps/i386/i586/memcpy.S: Likewise.
6631         * sysdeps/i386/i586/memset.S: Likewise.
6632         * sysdeps/i386/i586/rshift.S: Likewise.
6633         * sysdeps/i386/i586/strchr.S: Likewise.
6634         * sysdeps/i386/i586/strcpy.S: Likewise.
6635         * sysdeps/i386/i586/strlen.S: Likewise.
6636         * sysdeps/i386/i586/sub_n.S: Likewise.
6637         * sysdeps/i386/i686/add_n.S: Likewise.
6638         * sysdeps/i386/i686/memcpy.S: Likewise.
6639         * sysdeps/i386/i686/mempcpy.S: Likewise.
6640         * sysdeps/i386/i686/memset.S: Likewise.
6641         * sysdeps/i386/i686/strcmp.S: Likewise.
6642
6643 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6644
6645         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6646
6647         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6648         256 and don't use OPEN_MAX.
6649
6650         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6651         use it instead of LINK_MAX.
6652         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6653
6654 2000-06-08  Andreas Jaeger  <aj@suse.de>
6655
6656         * libio/genops.c (_IO_list_lock): Only compile body if we're
6657         thread safe.
6658         (_IO_list_unlock): Likewise.
6659         (_IO_list_resetlock): Likewise.
6660
6661 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6662
6663         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6664         unless user defined it.
6665
6666         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6667         if not defined by the user.
6668
6669         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6670         * libio/iofwrite.c (_IO_fwrite): Likewise.
6671
6672         * time/time.h: Add missing __THROW for clock_getcpuclockid
6673         prototype.
6674
6675         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6676         * include/elf.h: Include also <dl-dtprocnum.h>.
6677         * elf/dl-deps.c: Likewise.
6678         * elf/dl-lookup.c: Likewise.
6679         * elf/dl-runtime.c: Likewise.
6680         * elf/dl-version.c: Likewise.
6681         * elf/do-rel.h: Likewise.
6682         * elf/dynamic-link.h: Likewise.
6683         * elf/link.h: Likewise.
6684         * elf/rtld.c: Likewise.
6685         * sysdeps/generic/dl-dtprocnum.h: New file.
6686         * sysdeps/ia64/dl-dtprocnum.h: New file.
6687         * sysdeps/mips/dl-dtprocnum.h: New file.
6688         * sysdeps/sparc/dl-dtprocnum.h: New file.
6689
6690         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6691
6692         * elf/do-lookup.h: Add some __builtin_expect.
6693
6694         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6695
6696         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6697         (_dl_dynamic_weak): New variable.
6698         * elf/dl-support.c: Likewise.
6699         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6700         * elf/do-lookup.h: If we find a weak definition treat it like a
6701         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6702         case treat it like before.
6703
6704         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6705         is in main program.
6706         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6707
6708         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6709         using l_map_start and l_map_end.
6710
6711         * elf/dl-version.c: Add __builtin_expect in many places.
6712
6713         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6714         Update.
6715
6716 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6717
6718         Lock for stdio stream list becomes global, for use in LinuxThreads.
6719
6720         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6721         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6722         _IO_list_resetlock): New interface for iterating global list of
6723         streams without accessing the _IO_list_all global variable,
6724         and for manipulating the lock which protects this list.
6725         * libio/libioP.h: Likewise.
6726         * libio/Version: Add entries for the new functions.
6727
6728         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6729         pointer to _IO_FILE.
6730
6731 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6732
6733         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6734         BIT() must actually be BITw().
6735
6736         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6737
6738         * locale/programs/charmap.c: Allow string arguments for
6739         code_set_name and repertoiremap.
6740
6741 2000-06-07  Andreas Jaeger  <aj@suse.de>
6742
6743         * elf/Makefile: Build ldconfig only when building shared libraries.
6744
6745 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6746
6747         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6748         __USE_ISOC99.
6749         (fdimf, __fdim, fdim): Likewise.
6750
6751 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6752
6753         * locale/findlocale.c: Add __builtin_expect in many places.
6754         * locale/loadlocale.c: Likewise.
6755
6756 2000-06-06  Greg McGary  <greg@mcgary.org>
6757
6758         * sysdeps/mips/elf/start.S: Trim redundant code.
6759
6760         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6761         Use C comments throughout.  Line up operands column with tabs.
6762         * sysdeps/powerpc/strchr.S: Likewise.
6763         * sysdeps/powerpc/strcmp.S: Likewise.
6764         * sysdeps/powerpc/strcpy.S: Likewise.
6765         * sysdeps/powerpc/strlen.S: Likewise.
6766
6767         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6768         Get low part of &__curbrk with @l.
6769
6770 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6771
6772         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6773         * iconvdata/unicode.c: Likewise.
6774         * iconvdata/uhc.c: Likewise.
6775         * iconvdata/t.61.c: Likewise.
6776         * iconvdata/sjis.c: Likewise.
6777         * iconvdata/johab.c: Likewise.
6778         * iconvdata/iso_6937.c: Likewise.
6779         * iconvdata/iso_6937-2.c: Likewise.
6780         * iconvdata/iso8859-1.c: Likewise.
6781         * iconvdata/iso646.c: Likewise.
6782         * iconvdata/iso-2022-kr.c: Likewise.
6783         * iconvdata/iso-2022-jp.c: Likewise.
6784         * iconvdata/iso-2022-cn.c: Likewise.
6785         * iconvdata/gbgbk.c: Likewise.
6786         * iconvdata/gbk.c: Likewise.
6787         * iconvdata/euc-kr.c: Likewise.
6788         * iconvdata/euc-jp.c: Likewise.
6789         * iconvdata/euc-cn.c: Likewise.
6790
6791 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6792
6793         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6794         * iconvdata/big5.c: Likewise.
6795         * iconvdata/ansi_x3.110.c: Likewise.
6796         * iconvdata/8bit-generic.c: Likewise.
6797         * iconvdata/8bit-gap.c: Likewise.
6798         * iconv/loop.c: Likewise.
6799         * iconv/gconv_db.c: Likewise.
6800         * iconv/gconv_dl.c: Likewise.
6801         * iconv/gconv_simple.c: Likewise.
6802         * iconv/skeleton.c: Likewise.
6803
6804         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6805         (struct __gconv_step_data): Rename __is_last to __flags.
6806         * iconv/gconv_close.c: Change all uses of __is_last.
6807         * iconv/skeleton.c: Likewise.
6808         * iconvdata/iso-2022-cn.c: Likewise.
6809         * iconvdata/iso-2022-jp.c: Likewise.
6810         * iconvdata/iso-2022-kr.c: Likewise.
6811         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6812         Recognize IGNORE error handling, set flag, and remove from name.
6813         * iconv/loop.c (ignore_errors_p): Define.
6814         Add flags parameter to both functions.
6815         * iconv/skeleton.c: Pass flags to all conversion functions.
6816         * iconv/gconv_simple.c: Add flags parameter to all functions.
6817         Don't return error for invald error if ignore flag is set.
6818         (ucs4_internal_loop_single): Add missing pointer increment.
6819         (internal_ucs4le_loop_single): Likewise.
6820         * iconv/iconv_prog.c: Implement handling of -c parameter.
6821         * iconvdata/8bit-gap.c: Don't return error for invald error if
6822         ignore flag is set.
6823         * iconvdata/8bit-generic.c: Likewise.
6824         * iconvdata/ansi_x3.110.c: Likewise.
6825         * iconvdata/big5.c: Likewise.
6826         * iconvdata/big5hkscs.c: Likewise.
6827         * iconvdata/euc-cn.c: Likewise.
6828         * iconvdata/euc-jp.c: Likewise.
6829         * iconvdata/euc-kr.c: Likewise.
6830         * iconvdata/gbgbk.c: Likewise.
6831         * iconvdata/gbk.c: Likewise.
6832         * iconvdata/iso-2022-cn.c: Likewise.
6833         * iconvdata/iso-2022-jp.c: Likewise.
6834         * iconvdata/iso-2022-kr.c: Likewise.
6835         * iconvdata/iso646.c: Likewise.
6836         * iconvdata/iso8859-1.c: Likewise.
6837         * iconvdata/iso_6937-2.c: Likewise.
6838         * iconvdata/iso_6937.c: Likewise.
6839         * iconvdata/johab.c: Likewise.
6840         * iconvdata/sjis.c: Likewise.
6841         * iconvdata/t.61.c: Likewise.
6842         * iconvdata/uhc.c: Likewise.
6843         * iconvdata/unicode.c: Likewise.
6844         * iconvdata/utf-16.c: Likewise.
6845         * libio/fileops.c: Likewise.
6846         * libio/iofwide.c: Likewise.
6847         * wcsmbs/btowc.c: Likewise.
6848         * wcsmbs/mbrtowc.c: Likewise.
6849         * wcsmbs/mbsnrtowcs.c: Likewise.
6850         * wcsmbs/mbsrtowcs.c: Likewise.
6851         * wcsmbs/wcrtomb.c: Likewise.
6852         * wcsmbs/wcsnrtombs.c: Likewise.
6853         * wcsmbs/wcsrtombs.c: Likewise.
6854         * wcsmbs/wctob.c: Likewise.
6855
6856         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6857         an error.
6858
6859 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6860
6861         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6862         counter for the object we are releasing, just decrement it.
6863         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6864
6865 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6866
6867         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6868         if -ffast-math.
6869
6870 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6871
6872         * iconvdata/big5hkscs.c: New file.
6873         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6874
6875         * iconvdata/gconv-modules: Add entry for new module.
6876         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6877         (distribute): Add big5hkscs.c.
6878
6879 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6880
6881         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6882         inlines to match prototypes in mathcalls.h.
6883         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6884         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6885         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6886         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6887
6888 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6889
6890         * elf/elf.h (SHT_SUNW_move): Define.
6891
6892         * elf/elf.h: Add more Solaris compatiblity definitions.
6893
6894 2000-06-03  Andreas Jaeger  <aj@suse.de>
6895
6896         * sysdeps/powerpc/dl-start.S: Close open comment.
6897
6898 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6899
6900         * inet/Versions: Fix typo in rresvport_af export.
6901
6902 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6903
6904         * math/tgmath.h: Pretty print.
6905
6906 2000-06-02  Andreas Jaeger  <aj@suse.de>
6907
6908         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6909         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6910
6911 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6912
6913         * elf/rtld.c (process_envvars): Test for = after variable name.
6914
6915 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6916
6917         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6918         have extra call to __gmon_start__, use the pointer we already have.
6919
6920         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6921         shifting.
6922
6923         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6924         binutils.  gas now emits a jump through the PLT instead of a
6925         relative jump if the jump target is an exported symbol.
6926
6927 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6928
6929         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6930
6931 2000-05-31  Andreas Jaeger  <aj@suse.de>
6932
6933         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6934         gregset_t.
6935
6936         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6937         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6938
6939         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6940         syscall.
6941         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6942
6943 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6944
6945         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6946
6947         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6948         * locale/localeconv.c: Make function versioned (with same definition).
6949
6950         * elf/Makefile (modules-names): Strip before using it.
6951
6952 2000-05-30  Andreas Jaeger  <aj@suse.de>
6953
6954         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6955         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6956         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6957         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6958         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6959         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6960
6961 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6962
6963         * Makefile: Add GNU make magic.
6964
6965         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6966         Removed.
6967         * inet/rcmd.c: Remove __P.  Remove unused variables.
6968         (iruserfopen): Make first parameter const.
6969         (ruserok_sa): Return result of ruserok2_sa.
6970         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6971         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6972         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6973         (ruserpass): Check results of memory allocation.
6974         * include/netdb.h: Add prototype for ruserpass.
6975
6976 2000-05-29  Andreas Jaeger  <aj@suse.de>
6977
6978         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6979         for all platforms.
6980
6981 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6982
6983         * inet/rcmd.c (rresvport_af): Use correct port number.
6984
6985 2000-05-26  Andreas Schwab  <schwab@suse.de>
6986
6987         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6988         entries in all-sonames.
6989         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6990         preserving the old name if different for compatibility.
6991
6992 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6993
6994         * posix/Makefile (tests): Add tst-spawn.
6995         (tst-spawn-ARGS): New variable.
6996         * posix/tst-spawn.c: New file.
6997
6998         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6999         * posix/spawn_faction_adddup2.c: Likewise.
7000         * posix/spawn_faction_addopen.c: Likewise.
7001         * posix/spawni.c: Correctly test for success of dup2 calls.
7002
7003         * posix/tst-preadwrite.c: Check success of malloc call.
7004
7005 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7006
7007         * posix/Makefile (tests): Add tst-exec.
7008         (tst-exec-ARGS): New variable.
7009         * posix/tst-exec.c: New file.
7010
7011         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
7012
7013 2000-05-04  Andreas Jaeger  <aj@suse.de>
7014
7015         * string/string.h: Remove __strdup prototype, it's not needed in
7016         this file anymore.
7017
7018 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7019
7020         * posix/Makefile (tests): Add tst-fork.
7021         * posix/tst-fork.c: New file.
7022
7023         * resolv/inet_pton.c: Loose __P.
7024
7025 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7026
7027         * libio/libioP.h (_IO_CHECK_WIDE): Define.
7028         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
7029         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
7030         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
7031         _IO_CHECK_WIDE fails.
7032
7033 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
7034
7035         * po/da.po: New file.
7036
7037         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
7038         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
7039
7040         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
7041         (Other iconv Implementations): Fix typo.
7042         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
7043
7044 2000-05-27  Andreas Jaeger  <aj@suse.de>
7045
7046         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
7047         normal version now.
7048         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
7049         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
7050         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
7051         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
7052         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
7053         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
7054
7055         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
7056         endianness to decide how to pass arguments.
7057         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
7058
7059         * elf/vismain.c: Use test-skeleton interface.
7060         (TEST_FUNCTION): New macro.
7061         (do_test): Renamed from main.
7062
7063 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
7064
7065         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
7066         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
7067
7068         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
7069         handling of AI_V4MAPPED flag.
7070
7071         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
7072         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
7073         perform lookup for T_A type and tell getanswer_r to convert the
7074         result with new argument.
7075         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
7076         Don't convert addresses from IPv4 to IPv6 here.
7077         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
7078         IPv6 is wanted.  Allow qtype and type from reply to disagree if
7079         IPv4 mapping has to be done.  Perform mappings if required by the
7080         caller and not if RES_USE_INET6 bit in _res.options is set.
7081         Add several __builtin_expect.
7082
7083 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
7084
7085         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
7086
7087         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
7088         NULL.
7089
7090         * posix/tst-preadwrite.c: Allow parallel execution of
7091         tst-preadwrite and tst-preadwrite64.
7092
7093         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
7094         * posix/tst-truncate.c: New file.
7095         * posix/tst-truncate64.c: New file.
7096
7097         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
7098         was switched.
7099
7100         * posix/Makefile (tests): Add tst-preadwrite64.
7101         * posix/tst-preadwrite.c: Alloc file being used also for testing
7102         pread64 and pwrite64.
7103         * posix/tst-preadwrite64.c: New file.
7104
7105 2000-05-26  Andreas Jaeger  <aj@suse.de>
7106
7107         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
7108         of arguments dependend on endianness.
7109         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
7110
7111         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
7112         normal version now.
7113         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
7114         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
7115         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
7116         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
7117
7118         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
7119         endianness to check how to pass argument.
7120         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
7121
7122         * elf/ldconfig.h: Update parameter list for process_elf_file.
7123
7124         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
7125         Add parameter file_length and pass it ot process_elf*file.
7126
7127         * sysdeps/generic/readelflib.c (check_ptr): New.
7128         (process_elf_file): Use check_ptr to check all accesses to the
7129         mmapped file. Add parameter file_length.
7130
7131         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7132         library names.
7133
7134         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7135         Closes PR libc/1573, reported by Bradley White
7136         <bww@laurelnetworks.com>.
7137
7138 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7139
7140         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7141         __FAST_MATH__ is defined.
7142
7143 2000-05-22  Andreas Jaeger  <aj@suse.de>
7144
7145         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7146         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7147
7148         * manual/math.texi (FP Function Optimizations): Document gcc
7149         -ffast-math behaviour with mathinlines.
7150
7151         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7152         functions unless -ffast-math is given to gcc.
7153
7154 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7155
7156         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7157         __sincosl): Guard with __USE_GNU.
7158
7159 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7160
7161         * csu/Makefile (routines): Add check_fds.
7162         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7163         binaries.  Add various __builtin_expect.
7164         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7165         * sysdeps/generic/check_fds.c: ...here.  New file.
7166
7167         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7168         binaries if file /etc/suid-debug is available.
7169
7170         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7171         and wcseqorder members.
7172         (struct locale_collate_t): Likewise.
7173         (collate_finish): Assign collation sequence value to each character.
7174         Create tables for output.
7175         (collate_output): Write out tables with collation sequence information.
7176         * locale/C-collate.c: Provide C locale data for collation sequence
7177         table.
7178         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7179         _NL_COLLATE_COLLSEQWC.
7180         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7181         _NL_COLLATE_COLLSEQWC.
7182         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7183         include fnmatch_loop.c.
7184         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7185         character is matched by range expression.  Use collation sequence
7186         table.  Outside glibc fall back on simple character value comparison.
7187
7188 2000-05-24  Andreas Jaeger  <aj@suse.de>
7189
7190         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7191         words.
7192
7193         * intl/Makefile: Run gettext-test only if msgfmt is available.
7194
7195         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7196         Define it for newer kernels.
7197
7198 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7199
7200         * elf/dl-sym.c: Minor cleanups.
7201
7202         * configure.in: Add test for .protected.
7203         * config.make.in: Add have-protected variable.
7204         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7205         (tests-vis-yes): Add vismain.
7206         (modules-names): Add $(modules-vis-$(have-protected)).
7207         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7208         Add rules to generate and run vismain.
7209         * elf/vismain.c: New file.
7210         * elf/vismod1.c: New file.
7211         * elf/vismod2.c: New file.
7212         * elf/vismod3.c: New file.
7213
7214 2000-05-23  Andreas Jaeger  <aj@suse.de>
7215
7216         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7217
7218         * manual/search.texi (Array Sort Function): Document that qsort is
7219         not necessarily in-place.
7220
7221         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7222         Closes PR libc/1731.
7223
7224         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7225         * dirent/scandir64.c: Likewise.
7226         * pwd/getpw.c: Likewise.
7227         * stdlib/bsearch.c (bsearch): Likewise.
7228         * stdlib/tst-strtoll.c: Likewise.
7229         * localedata/collate-test.c: Likewise.
7230         * localedata/xfrm-test.c: Likewise.
7231         * posix/bsd-getpgrp.c: Likewise.
7232         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7233         * sysdeps/generic/bits/siginfo.h: Likewise.
7234         * sysdeps/generic/bits/sockaddr.h: Likewise.
7235         * sysdeps/generic/sys/swap.h: Likewise.
7236         * sysdeps/generic/sys/sysinfo.h: Likewise.
7237         * sysdeps/generic/vfork.c: Likewise.
7238         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7239         * sysdeps/mach/hurd/fdopen.c: Likewise.
7240         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7241         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7242         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7243         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7244         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7245         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7246         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7247
7248         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7249         * shadow/lckpwdf.c: Likewise.
7250         * stdlib/tst-strtol.c: Likewise.
7251         * sysdeps/generic/tcsetattr.c: Likewise.
7252         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7253         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7254
7255 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7256
7257         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7258         free it and set to (void *) -1.
7259
7260 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7261
7262         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7263         not the second character in the range.
7264         * stdio-common/tstscanf.c (main): Add testcase for the above.
7265         Reported by jik@kamens.brookline.ma.us.
7266
7267 2000-05-21  H.J. Lu  <hjl@gnu.org>
7268
7269         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7270         with noexec and noplt parameter.
7271         (do_lookup): Likewise.
7272
7273         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7274         do_lookup.  Support STV_PROTECTED.
7275         (_dl_lookup_symbol_skip): Likewise.
7276         (_dl_lookup_versioned_symbol): Likewise.
7277         (_dl_lookup_versioned_symbol_skip): Likewise.
7278
7279         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7280
7281         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7282
7283 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7284
7285         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7286         * sysdeps/i386/bits/huge_val.h: Likewise.
7287         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7288         * sysdeps/m68k/bits/huge_val.h: Likewise.
7289         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7290         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7291
7292 2000-05-22  Andreas Jaeger  <aj@suse.de>
7293
7294         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7295         change in iconv.h.
7296
7297 2000-05-19  Andreas Jaeger  <aj@suse.de>
7298
7299         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7300         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7301         breaks compilation without linuxthreads.
7302
7303 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7304
7305         * sysdeps/ia64/memccpy.S: New file.
7306         * sysdeps/ia64/memchr.S: New file.
7307         * sysdeps/ia64/memcmp.S: New file.
7308         * sysdeps/ia64/memcpy.S: New file.
7309         * sysdeps/ia64/memmove.S: New file.
7310         * sysdeps/ia64/memset.S: New file.
7311         * sysdeps/ia64/strcat.S: New file.
7312         * sysdeps/ia64/strchr.S: New file.
7313         * sysdeps/ia64/strcmp.S: New file.
7314         * sysdeps/ia64/strcpy.S: New file.
7315         * sysdeps/ia64/strlen.S: New file.
7316         * sysdeps/ia64/strncmp.S: New file.
7317         * sysdeps/ia64/strncpy.S: New file.
7318         * sysdeps/ia64/softpipe.h: New file.
7319         Patches by Dan Pop <Dan.Pop@cern.ch>.
7320
7321         * manual/memory.texi: Document memory handling functions (mlock,
7322         munlock, mlockall, munlockall, brk, and sbrk)
7323         * manual/time.texi: Document timespec and friends.
7324         * manual/conf.texi: Fix references.
7325         * manual/ctype.texi: Likewise.
7326         * manual/errno.texi: Likewise.
7327         * manual/intro.texi: Likewise.
7328         * manual/locale.texi: Likewise.
7329         * manual/sysinfo.texi: Likewise.
7330         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7331
7332 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7333
7334         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7335         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7336
7337 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7338
7339         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7340         dxfer_direction.
7341
7342 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7343
7344         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7345         * locale/localeconv.c: Initialize new elements from ISO C99.
7346         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7347         new standard elements.
7348         * locale/categories.def: Adjust accordingly.
7349
7350         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7351         * iconv/iconv.c: Likewise.
7352         * conform/data/iconv.h-data: Likewise.
7353         * iconv/iconv_prog.c (process_block): Remove const from second
7354         parameter.
7355         (main): Remove const from addr definition.
7356         * manual/charset.texi (Generic Conversion Interface): Remove from
7357         inbuf parameter of iconv.
7358
7359         * intl/dcigettext.c: Fix typo in comment.
7360
7361 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7362
7363         * resolv/res_libc.c (_res): Initialize _sock to -1.
7364
7365 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7366
7367         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7368         (fopencookie@@GLIBC_2.2): New.
7369         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7370         (fopencookie@GLIBC_2.0): New.
7371         * libio/Versions: Add fopencookie to GLIBC_2.2.
7372
7373 2000-05-18  Andreas Jaeger  <aj@suse.de>
7374
7375         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7376         Closes PR libc/1731.
7377
7378         * manual/arith.texi (Parsing of Integers): Fix typo.
7379         Closes PR libc/1744, reported by blp@gnu.org.
7380
7381 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7382
7383         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7384         __extension__ to hexadecimal floating constant notation.
7385         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7386         Likewise.
7387         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7388         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7389         Likewise.
7390         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7391         HUGE_VALL): Likewise.
7392         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7393         HUGE_VALL): Likewise.
7394         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7395
7396 2000-05-17  Andreas Jaeger  <aj@suse.de>
7397
7398         * string/envz.h: Add pure attributes if possible.
7399
7400         * string/argz.h: argz_count is a pure function.
7401
7402         * string/strings.h: Add pure and const attributes if possible.
7403
7404         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7405         possibly searching through the whole memory.
7406         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7407
7408 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7409
7410         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7411         not yet defined.
7412         (_dl_cache_check_flags): Likewise.
7413         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7414         dl-cache.h.
7415
7416 2000-05-17  Andreas Jaeger  <aj@suse.de>
7417
7418         * manual/creature.texi (Feature Test Macros): Remove paragraph
7419         since the description is wrong.
7420         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7421
7422         * scripts/config.sub: New version.
7423         * scripts/config.guess: Likewise.
7424         * manual/texinfo.tex: Likewise.
7425
7426         * time/test_time.args: Removed.
7427         * time/Makefile (test_time-ARGS): Added contents here instead.
7428
7429         * posix/tstgetopt.args: Removed.
7430         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7431
7432         * Rules: Allow arguments for test files to be specified in
7433         Makefile with testname-ARGS; remove rules with .args in it.
7434
7435         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7436         remove old bogus rule for opendir-tst1.args.
7437
7438         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7439
7440         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7441         into objdir.  This allows a readonly sourcetree.
7442         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7443
7444 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7445             David Huggins-Daines <dhd@linuxcare.com>
7446
7447         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7448         cache_data in case of only new cache format correctly.
7449
7450         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7451         cache_file_new.
7452
7453         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7454         struct cache_file_new.
7455
7456         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7457         present.
7458
7459         * elf/cache.c (save_cache): Align struct new_file_cache.
7460         (print_cache): Likewise.
7461
7462 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7463
7464         * elf/soinit.c (__libc_global_ctors): Move
7465         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7466         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7467         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7468         variable, don't define it to __res_state call.
7469
7470 2000-05-13  Andreas Jaeger  <aj@suse.de>
7471
7472         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7473         Linux 2.3.99pre7.
7474         (AF_PPPOX): Likewise.
7475         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7476         (AF_PPPOX): Likewise.
7477
7478 2000-05-12  Andreas Jaeger  <aj@suse.de>
7479
7480         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7481         Reported by tmoestl@gmx.net, closes PR libc/1732.
7482
7483 2000-05-11  Jan Hubicka  <jh@suse.cz>
7484
7485         * misc/sys/cdefs.h: Add support for pure attribute.
7486
7487         * include/string.h: Add __attribute_pure__ to various functions.
7488         * string/string.h: Likewise.
7489
7490 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7491
7492         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7493         argument.
7494         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7495         R_SPARC_UA64.
7496         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7497
7498 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7499
7500         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7501         at proper place.  Compute the high nibble correctly.
7502
7503 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7504
7505         * elf/ldconfig.c: Include elf.h.
7506
7507         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7508         (_dl_vsym): Likewise.
7509         Reported by Owen Taylor <otaylor@redhat.com>.
7510
7511         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7512         always.
7513
7514 2000-05-08  Andreas Jaeger  <aj@suse.de>
7515
7516         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7517
7518         * intl/bindtextdom.c (set_binding_values): Add prototype.
7519
7520 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7521
7522         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7523         call to elf_machine_fixup_plt.
7524         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7525         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7526
7527 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7528
7529         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7530         they are not dlclose'd from underneath us.
7531
7532 2000-05-08  Andreas Schwab  <schwab@suse.de>
7533
7534         * posix/execle.c: Fix size parameter of memcpy.
7535
7536 2000-05-08  Andreas Schwab  <schwab@suse.de>
7537
7538         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7539         getpagesize syscall if available.
7540
7541 2000-05-08  Andreas Jaeger  <aj@suse.de>
7542
7543         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7544         set errno.
7545
7546 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7547
7548         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7549         sizeof(struct link_map *) chunks, not in bytes.
7550
7551 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7552
7553         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7554         only needed for locale.
7555         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7556         It's only needed for catgets.
7557         Patches by Greg McGary <gkm@eng.ascend.com>.
7558
7559 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7560
7561         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7562         Remove duplicate <errno.h> include.  Remove inclusion of
7563         <libintl.h> and "nsswitch.h".
7564         (set_cloexec_flag): New function, broken out of dbopen.
7565         (dbopen): Changed return type to `enum
7566         nss_status'.  Mostly rewritten to make sure that we do not report
7567         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7568         (internal_setent): Change return type to nss_status.
7569         Document, and make sure that the function
7570         behaves accordingly.  Make dynamically loading the database
7571         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7572         failed.
7573         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7574         unecessary casts.
7575         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7576         documentation.
7577         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7578         c_get function member.
7579         * nss/nss_db/nss_db.h: Add and tweak some comments.
7580         (DBT): Move typedef before NSS_DBC typedef.
7581         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7582
7583 2000-05-07  H.J. Lu  <hjl@gnu.org>
7584
7585         * csu/initfini.c: Moved to ....
7586         * sysdeps/generic/initfini.c: ...here.
7587
7588         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7589
7590 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7591
7592         * manual/resource.texi: Document POSIX scheduling functions.
7593         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7594
7595         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7596         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7597
7598         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7599         for x since promotion in comparison might leads to unexpected
7600         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7601
7602         * iconv/Makefile (tests): Add tst-iconv1.
7603         * iconv/tst-iconv1.c: New file.
7604         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7605         empty input buffer over full output buffer.
7606         (ucs4_internal_loop): Likewise.
7607         (ucs4_internal_loop_unaligned): Likewise.
7608         (internal_ucs4le_loop): Likewise.
7609         (internal_ucs4le_loop_unaligned): Likewise.
7610         (ucs4le_internal_loop): Likewise.
7611         (ucs4le_internal_loop_unaligned): Likewise.
7612         Reported by yaoz@nih.gov.
7613
7614 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7615
7616         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7617         returned != __GCONV_OK, there is nothing to clean up.
7618
7619 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7620
7621         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7622         OUTPUT_CHARSET environment variables.
7623
7624 2000-05-06  Andreas Jaeger  <aj@suse.de>
7625
7626         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7627         (struct cache_file_new): New.
7628         (struct file_entry): New (moved from cache.c).
7629         (struct cache_file): New (moved from cache.c).
7630
7631         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7632         from _dl_load_cache_lookup.
7633         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7634         the different cache formats.
7635         New variable cache_new for new format.
7636
7637         * elf/ldconfig.h: Change according to changes in cache.c and
7638         ldconfig.c; remove cache_libcmp; add opt_format.
7639
7640         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7641         stuff that's defined in those headers.
7642         Add hwcap to struct lib_entry.
7643         (opt_format): New variable to select cache format.
7644         (options): Add format parameter.
7645         (is_hwcap): New function.
7646         (path_hwcap): New function.
7647         (parse_opt): Handle new format parameter.
7648         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7649
7650         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7651         ldconfig is part of glibc.
7652         Include dl-cache.h and remove stuff that's defined there.
7653         (struct cache_entry): Add new member hwcap.
7654         (print_entry): Print hwcap, cleanup a bit.
7655         (print_cache): Print new and old formats.
7656         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7657         (save_cache): Save new and old formats.
7658         (add_to_cache): Handle hwcap.
7659
7660         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7661         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7662         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7663         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7664         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7665         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7666
7667 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7668
7669         * intl/dcigettext.c (alignof): New macro.
7670         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7671         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7672         freemem_size to 0.
7673
7674 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7675
7676         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7677         return value.
7678
7679 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7680
7681         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7682         (mempcpy): Correct typo is parameter list.
7683
7684 2000-05-06  Andreas Jaeger  <aj@suse.de>
7685
7686         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7687         functions unless -ffast-math is given to gcc.
7688
7689 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7690
7691         * po/ko.po: Update from translation team.
7692
7693 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7694
7695         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7696         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7697         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7698         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7699         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7700         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7701
7702         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7703         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7704         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7705
7706         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7707         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7708         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7709         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7710
7711         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7712         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7713
7714 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7715
7716         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7717         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7718
7719         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7720         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7721
7722         * sysdeps/ia64/Implies: New file.
7723         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7724         * sysdeps/ia64/Makefile: New file.
7725         * sysdeps/ia64/gmp-mparam.h: New file,
7726
7727         * sysdeps/ia64/elf/start.S: New file.
7728
7729         * sysdeps/ia64/bits/fenv.h: New file.
7730
7731 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7732
7733         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7734
7735 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7736
7737         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7738         ia64 has 64 bit .hash entries just as the Alpha.
7739
7740 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7741
7742         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7743
7744 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7745
7746         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7747         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7748         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7749         * sysdeps/ia64/fpu/fegetenv.c: New file.
7750         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7751         * sysdeps/ia64/fpu/fegetround.c: New file.
7752         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7753         * sysdeps/ia64/fpu/fesetenv.c: New file.
7754         * sysdeps/ia64/fpu/fesetround.c: New file.
7755         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7756         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7757         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7758         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7759         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7760
7761 2000-05-05  Andreas Jaeger  <aj@suse.de>
7762
7763         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7764
7765         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7766         (_dl_string_hwcap): New, does nothing.
7767
7768         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7769         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7770         (_dl_string_hwcap): New function, converts from string to hwcap
7771         encoding.
7772         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7773         (_DL_HWCAP_COUNT): New.
7774         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7775         (_dl_string_hwcap): New function, converts from string to hwcap
7776         encoding.
7777         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7778         (_DL_HWCAP_COUNT): New.
7779         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7780         (_dl_string_hwcap): New function, converts from string to hwcap
7781         encoding.
7782
7783 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7784
7785         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7786         * sysdeps/ia64/Dist: New file.
7787
7788         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7789         parameter to mprotect and for variable assignments.
7790
7791 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7792
7793         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7794         validity of map before dereferencing it.
7795
7796         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7797
7798 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7799
7800         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7801         lookup to the arguments to elf_machine_fixup_plt().
7802
7803         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7804         of the symbol being resolved to input argument list and make the
7805         function return the pointer to the reloc.
7806
7807         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7808         return valuie to lookup_t and return the value.
7809         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7810         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7811         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7812         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7814         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7815
7816         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7817         Make it an inline function returning value after calling
7818         __elf_machine_fixup_plt().
7819
7820         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7821         symbol address.
7822
7823         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7824         obtain the symbol address.
7825
7826         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7827         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7828
7829         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7830         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7831         inline on non ia64.
7832
7833 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7834
7835         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7836         symbol address of an object.
7837
7838         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7839         the symbol address of an object.
7840
7841         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7842         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7843         (_dl_lookup_symbol_skip): Likewise.
7844         (_dl_lookup_versioned_symbol): Likewise.
7845         (_dl_lookup_versioned_symbol_skip): Likewise.
7846
7847 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7848
7849         * elf/rtld.c (_dl_start): Get the function pointer return address
7850         via _dl_start_address for architectures that need a function
7851         pointer descriptor rather than just a pointer (ia64).
7852
7853         * sysdeps/generic/dl-lookupcfg.h: New file.
7854         * sysdeps/ia64/dl-lookupcfg.h: New file.
7855         * sysdeps/ia64/dl-machine.h: New file.
7856         * sysdeps/ia64/dl-symaddr.c: New file.
7857         * sysdeps/ia64/dl-fptr.c: New file.
7858
7859         * elf/elf.h: Add IA-64 specific definitions.
7860
7861 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7862
7863         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7864         end of enum.
7865
7866 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7867
7868         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7869         happy.
7870
7871 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7872
7873         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7874         symbol.  Call _dl_init rather than the old way.
7875
7876 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7877
7878         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7879         test for pointer in range of DSO address space.
7880
7881 2000-05-04  Andreas Jaeger  <aj@suse.de>
7882
7883         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7884
7885 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7886
7887         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7888         calls of _nl_make_l10nflist.
7889
7890         * libio/stdio.h: Make fseeko and ftello prototypes available is
7891         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7892
7893         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7894         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7895
7896 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7897
7898         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7899         before calling tfind.
7900
7901 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7902
7903         * resolv/resolv.h (res_querydomain): Remove redefinition to
7904         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7905
7906 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7907
7908         * po/gl.po: Update from translation team.
7909
7910         * manual/intro.texi (Program Basics): Change section title.
7911         * manual/process.texi: Fix reference.
7912         (Executing a File): Add reference exec in other section.
7913         * manual/signal.texi: Fix reference.
7914         * manual/startup.texi: Document syscall function.
7915         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7916
7917 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7918
7919         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7920         * intl/bindtextdom.c (set_binding_values): New function.
7921         (bindtextdomain): Call it.
7922         (bind_textdomain_codeset): New function.
7923         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7924         (free_mem): Free each binding's codeset.
7925         * intl/gettextP.h (struct binding): Add codeset field.
7926         (_nl_find_domain): Add domainbinding argument.
7927         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7928         Pass it to _nl_make_l10nflist.
7929         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7930         (_nl_make_l10nflist): Add domainbinding argument.
7931         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7932         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7933         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7934         locale_charset().
7935         * manual/message.texi: New node "Charset conversion in gettext".
7936
7937 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7938
7939         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7940         appropriate.  Handle possible __read error.
7941
7942 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7943
7944         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7945         compiler builtin.
7946         * intl/loadinfo.h (__builtin_expect): Likewise.
7947         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7948         __builtin_expect where appropriate.
7949         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7950         * intl/localealias.c (extend_alias_table): Return an error indicator.
7951         (read_alias_file): Bail out if extend_alias_table fails.
7952
7953 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7954
7955         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7956         * intl/localealias.c: Likewise.
7957
7958 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7959
7960         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7961         Initialize domain->plural and domain->nplurals even if there is no
7962         nullentry.
7963
7964 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7965
7966         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7967         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7968         In case of failure, goto converted.
7969
7970 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7971
7972         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7973         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7974         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7975         __gconv_open.
7976
7977 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7978
7979         * intl/dcigettext.c (transcmp): Compare the domains as well.
7980         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7981         not before.
7982         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7983         <errno.h>.
7984
7985 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7986
7987         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7988         Reported by Bruno Haible.
7989
7990 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7991
7992         * manual/arith.texi: Remove @w from @itemize.
7993
7994 2000-05-02  Andreas Jaeger  <aj@suse.de>
7995
7996         * conform/data/tar.h-data: Add some checks for specific values.
7997
7998         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7999         and RAND_MAX.
8000
8001         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
8002         FOPEN_MAX.
8003
8004         * conform/data/netinet/in.h-data: Add exact checks for the values
8005         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
8006
8007         * conform/data/float.h-data: Add some minimal values.
8008
8009         * conform/conformtest.pl: Test for macros with string constants,
8010         check for minimum and maximum values.
8011         Add limits.h to headers.
8012
8013         * conform/data/cpio.h-data: Test for value of MAGIC.
8014
8015         * conform/data/limits.h-data: New file.
8016
8017 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
8018
8019         * math/Makefile (headers): Add bits/fenvinline.h.
8020
8021 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
8022
8023         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
8024         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
8025
8026         * posix/Versions: Change posix_spawnattr_getdefault and
8027         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
8028         and posix_spawnattr_setsigdefault respectively.
8029         * posix/spawn.h: Likewise.
8030         * posix/spawnattr_getdefault.h: Likewise.
8031         * posix/spawnattr_setdefault.h: Likewise.
8032         * conform/data/spawn.h-data: Likewise.
8033
8034 2000-05-01  Andreas Jaeger  <aj@suse.de>
8035
8036         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
8037
8038 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8039
8040         * manual/sysinfo.texi: Document getdomainname, setdomainname
8041         and sysctl.
8042         * manual/string.texi: Fix typo.
8043         * manual/terminal.texi: Document gtty and stty.
8044         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8045
8046 2000-04-30  Andreas Jaeger  <aj@suse.de>
8047
8048         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
8049         accordance with Austin Draft.
8050
8051 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
8052
8053         * catgets/gencat.c (read_input_file): Use isblank and not isspace
8054         to recognize second character in comment line.
8055
8056         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
8057         ENOBUFS if we are out of memory.
8058
8059         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
8060         available if __USE_XOPEN2K.
8061         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8062         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8063         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8064         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8065         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8067         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
8068         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8069
8070 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8071
8072         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
8073         Recognize option -s, -c, and -l.
8074
8075 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
8076
8077         * nscd/nscd.c: Start new session for nscd, drop privilegs
8078         to configured user if requested and no -S parameter are used.
8079         * nscd/nscd.conf: Add new option "server-user".
8080         * nscd/nscd_conf.c: Add support for new "server-user" option.
8081         * nscd/nscd.h: Add declaration for server_user variable.
8082         Based on patch by Chris Wing <wingc@engin.umich.edu>
8083
8084 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8085
8086         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
8087         that changing the __restore and __restore_rt signal return code
8088         will break GDB.
8089
8090 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8091
8092         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
8093         <sys/user.h>.
8094
8095 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
8096
8097         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
8098
8099 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
8100
8101         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
8102         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
8103         arpa/inet.h.
8104         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
8105         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
8106         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
8107         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
8108         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
8109         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
8110         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
8111         posix_fallocate, and posix_madvise.
8112         * conform/data/netdb.h-data: New file.
8113         * conform/data/pthread.h-data: Add pthread_barrier_t,
8114         pthread_barrierattr_t, pthread_barrier_destroy,
8115         pthread_barrier_init, pthread_barrier_wait,
8116         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
8117         pthread_barrierattr_init, pthread_barrierattr_setpshared,
8118         pthread_condattr_getclock, pthread_condattr_setclock,
8119         pthread_getcpuclockid, pthread_mutex_timedlock,
8120         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8121         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
8122         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
8123         * conform/data/sched.h-data: Add sched_ss_low_priority,
8124         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
8125         SCHED_SPORADIC.
8126         * conform/data/semaphore.h-data: Add sem_timedwait.
8127         * conform/data/signal.h-data: Add SIGIO.
8128         * conform/data/spawn.h-data: New file.
8129         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8130         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8131         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8132         Fix typo in gmtime_r definition.
8133         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8134         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8135         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8136         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8137         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8138         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8139         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8140         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8141         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8142         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8143         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8144         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8145         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8146         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8147         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8148         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8149         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8150         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8151         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8152         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8153         typo in off_t definition.
8154         * conform/data/net/if.h-data: New file.
8155         * conform/data/netinet/in.h-data: New file.
8156         * conform/data/netinet/tcp.h-data: New file.
8157         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8158         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8159         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8160         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8161         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8162         and posix_typed_mem_open.
8163         * conform/data/sys/socket.h-data: New file.
8164         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8165         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8166         pthread_barrierattr_t, and pthread_spinlock_t.
8167         * conform/data/sys/un.h-data: New file.
8168         * conform/data/sys/utsname.h-data: New file.
8169
8170         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8171         parameter.
8172         * inet/gethstbyad.c (gethostbyname): Likewise.
8173         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8174         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8175         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8176         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8177         Likewise.
8178         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8179         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8180         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8181         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8182         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8183         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8184         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8185         and second parameter.
8186
8187         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8188         == NULL.
8189
8190 2000-04-29  Andreas Jaeger  <aj@suse.de>
8191
8192         * conform/data/arpa/inet.h-data: New file.
8193
8194 2000-04-28  Geoff Clare <gwc@unisoft.com>
8195
8196         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8197         path passed to ftw() or nftw() is an empty string.
8198         Closes PR libc/1710.
8199
8200 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8201
8202         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8203         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8204         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8205         * localedata/tst-mbswcs4.c: New file.
8206         * localedata/tst-mbswcs5.c: New file.
8207
8208         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8209         == NULL.  Little optimization.
8210
8211         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8212         DT_PREINIT_ARRAYSZ).
8213         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8214
8215         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8216         overflows in conversion from ASCII.
8217
8218 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8219
8220         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8221         * Makerules (full_config_sysdirs): Likewise.
8222         * MakeTAGS (full_config_sysdirs): Likewise.
8223
8224 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8225
8226         * .cvsignore: Remove linuxthreads.
8227         * po/.cvsignore: Remove *.pot.
8228         * posix/glob/.cvsignore: Removed.
8229         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8230
8231 2000-04-25  Andreas Jaeger  <aj@suse.de>
8232
8233         * conform/Makefile (distribute): Also distribute contents of
8234         subdirectories.
8235
8236         * Makerules (no_deps): Remove abi-versions.h.
8237
8238         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8239
8240 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8241
8242         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8243         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8244         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8245         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8246         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8247         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8248         objects.
8249
8250 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8251
8252         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8253
8254 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8255
8256         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8257         * intl/l10nflist.c: Likewise.
8258
8259 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8260
8261         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8262         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8263         * intl/textdomain.c [!_LIBC]: Likewise.
8264         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8265         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8266         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8267         syntax error.
8268
8269 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8270
8271         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8272         character set conversion also in the case the translation was found
8273         after a hash collision or through binary search.  Store the maximum
8274         index together with the converted message.  Use iconv() when available.
8275         In case of out of memory during conversion, return the unconverted
8276         translated string, not NULL.
8277
8278 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8279
8280         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8281         to avoid name clashes with the ia32 linker.
8282
8283 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8284
8285         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8286         handling.
8287
8288 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8289
8290         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8291         strtoumax, strfry, and memfrob.
8292         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8293         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8294
8295         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8296         if this function is available.
8297
8298         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8299         all values.
8300
8301 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8302
8303         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8304
8305 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8306
8307         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8308         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8309         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8310         * localedata/tst-mbswcs3.c: New file.
8311
8312 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8313
8314         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8315         characters.  Don't handle incomplete characters as errors.
8316         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8317         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8318         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8319         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8320         * localedata/tst-mbswcs2.c: New file.
8321
8322         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8323         stored character in state in UNPACK_BYTES macro.
8324         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8325         test for available characters, handle result of BODY code correctly.
8326         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8327         (distribute): Add tst-mbswcs.sh.
8328         Add rule to run tst-mbswcs.sh.
8329         * localedata/tst-mbswcs.sh: New file.
8330         * localedata/tst-mbswcs1.c: New file.
8331
8332 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8333
8334         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8335         allocation fixups centrally, fix __builtin_expect call, return NULL
8336         on failure, not NIS_NOMEMORY.
8337
8338 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8339
8340         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8341
8342         * intl/loadinfo.h (internal_function): Define if not already defined.
8343
8344 2000-04-27  Andreas Jaeger  <aj@suse.de>
8345
8346         * intl/libintl.h: Fix typo, reported by Bruno Haible
8347         <haible@clisp.cons.org>.
8348
8349 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8350
8351         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8352         setting the state to GMON_PROF_BUSY.
8353
8354 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8355
8356         * elf/dl-profile.c (_dl_start_profile): define all variables which
8357         do not have to be global as local variables.
8358
8359         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8360         patch.  Keep needed tests for failed memory allocation.
8361
8362         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8363         __builtin_expect saying that we don't normally expect to profile.
8364
8365         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8366         __builtin_expect where desirable.
8367
8368 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8369
8370         * manual/Makefile (chapters): Add syslog.
8371         * manual/syslog.texi: New file.
8372         * manual/math.texi: Fix references.
8373         * manual/terminal.texi: Likewise.
8374         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8375
8376 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8377
8378         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8379         stdlib.h was not included or __USE_XOPEN not defined.
8380
8381 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8382
8383         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8384         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8385
8386 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * manual/examples/subopt.c (mount_opts): Add missing terminating
8389         entry.
8390         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8391
8392         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8393         * libio/ftello.c: Likewise.
8394         * libio/ftello64.c: Likewise.
8395         * libio/ioftell.c: Likewise.
8396         * sysdeps/generic/memrchr.c: Likewise.
8397         * sysdeps/posix/libc_fatal.c: Likewise.
8398         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8399         * misc/fstab.c: Include <string.h> for strcmp prototype.
8400         * sysdeps/generic/ldsodefs.h: Likewise.
8401         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8402         Patch by Kurt Roeckx <Q@ping.be>.
8403
8404         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8405         Remove db-open.  Change all uses.
8406         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8407
8408 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8409
8410         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8411         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8412         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8413         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8414         with .set noat/at to shut up warnings.
8415         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8416         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8417         compilation if __NR_pciconfig_iobase is not defined.
8418         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8419         Add alias.
8420
8421 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8422
8423         * manual/sysinfo.texi: Fix typo.
8424         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8425         Replace "high precision time" with "high accuracy clock".
8426         Fix language.
8427         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8428
8429         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8430         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8431         instead of malloc.
8432         * nis/nis_subr.c: Use __builtin_expect.
8433         * nis/ypclnt.c: Likewise.
8434         * nis/nis_getservlist.c: Likewise.
8435         * nis/nis_creategroup.c: Likewise.
8436
8437         * nis/nis_callback.c (__nis_create_callback): Check result of
8438         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8439         (__nis_destroy_callback): Fix memory leaks.
8440
8441 2000-04-21  Andreas Jaeger  <aj@suse.de>
8442
8443         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8444         * sysdeps/mips/mips64/add_n.S: Likewise.
8445         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8446         * sysdeps/mips/mips64/lshift.S: Likewise.
8447         * sysdeps/mips/mips64/mul_1.S: Likewise.
8448         * sysdeps/mips/mips64/rshift.S: Likewise.
8449         * sysdeps/mips/mips64/setjmp.S: Likewise.
8450         * sysdeps/mips/mips64/sub_n.S: Likewise.
8451         * sysdeps/mips/mips64/submul_1.S: Likewise
8452         * sysdeps/unix/mips/sysdep.S: Likewise.
8453
8454         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8455         and update comment.  The strtab from _dl_relocate_object can be
8456         used.
8457
8458 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8459
8460         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8461         * iconv/iconv_close.c (iconv_close): Likewise.
8462         * iconv/iconv_open.c (iconv_open): Likewise.
8463
8464         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8465         __builtin_expect where useful.
8466
8467         * grp/initgroups.c (initgroups): Test for result of memory
8468         allocation and punt if it fails.
8469
8470         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8471         * grp/fgetgrent.c (fgetfrent): Likewise.
8472         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8473
8474 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8475
8476         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8477
8478 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8479
8480         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8481         don't search for NUL byte to decrement counter.
8482         Reported by Ulrich.Brink@sap.com.
8483
8484         * iconv/gconv_simple.c: Define separate functions to convert from
8485         UCS4/UCS4-LE to the internal encoding.
8486         * iconv/gconv_builtin.h: Use separate functions to convert from
8487         UCS4/UCS4-LE to the internal encoding.
8488         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8489         __gconv_transform_ucs4le_internal.
8490
8491         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8492         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8493
8494         * iconv/skeleton.c: Add some more __builtin_expect.
8495         * iconv/loop.c: Likewise.
8496
8497 2000-03-08  H.J. Lu  <hjl@gnu.org>
8498
8499         * posix/regex.c (regex_compile): Correctly handle "\{" when
8500         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8501
8502 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8503
8504         * manual/stdio.texi: Give advise about handling error when using
8505         stream functions.
8506         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8507
8508 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8509
8510         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8511         field to nelems * sizeof (uint32_t).
8512         * locale/programs/ld-address.c (address_output): Align word fields
8513         properly.
8514         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8515         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8516         field.
8517         Avoid giving arbitrary garbage in the crncystr field.
8518         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8519         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8520         fields.
8521         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8522         Don't restart idx pointers to idx end at the decimal_point_wc field.
8523         * locale/programs/ld-time.c (time_output): week_1stday should be
8524         word, not byte.  Align it properly.
8525
8526 2000-04-19  H.J. Lu  <hjl@gnu.org>
8527
8528         * csu/gmon-start.c (_start): Declared as "extern void".
8529         (etext): Likewise.
8530
8531 2000-04-18  Andreas Jaeger  <aj@suse.de>
8532
8533         * manual/install.texi (Running make install): Don't mention utmpd
8534         anymore.
8535
8536 2000-04-18  Andreas Jaeger  <aj@suse.de>
8537
8538         * linuxthreads/Versions: Use ld instead of ld.so.
8539
8540         * elf/Makefile (ld-map): Use ld.map.
8541
8542         * Versions.def: Use ld instead of ld.so.
8543         * elf/Versions: Likewise.
8544         * sysdeps/mach/hurd/Versions: Likewise.
8545
8546 2000-04-20  Andreas Jaeger  <aj@suse.de>
8547
8548         * elf/rtld.c (print_statistics): Move ifndef further up.
8549         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8550         (dl_main): Likewise.
8551
8552 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8553
8554         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8555         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8556
8557         * po/cs.po: Update from translation team.
8558
8559         * sysdeps/generic/updwtmp.c: Remove daemon support.
8560
8561         * login/Makefile (routines): Remove utmp_daemon.
8562
8563         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8564         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8565         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8566         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8567
8568         * elf/rtld.c: Display statitics option also if hp timing is not
8569         available.
8570
8571         * login/programs/connection.c: Removed.
8572         * login/programs/database.c Removed.
8573         * login/programs/error.c: Removed.
8574         * login/programs/request.c: Removed.
8575         * login/programs/xtmp.c: Removed.
8576         * login/programs/xtmp.h: Removed.
8577         * login/Makefile: Remove rules for utmpd.
8578         * login/README.utmpd: Removed.
8579         * login/utmp_daemon.c: Removed.
8580         * login/getutent_r.c: Remove references to daemon functions.
8581         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8582         declaration.
8583
8584 2000-04-18  Andreas Jaeger  <aj@suse.de>
8585
8586         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8587         2.2 for libnsl, libresolv, librt, libnss_*.
8588
8589         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8590
8591         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8592
8593 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8594
8595         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8596         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8597         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8598         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8599         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8600         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8601         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8602         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8603         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8604         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8605         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8606         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8607         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8608         it here.
8609         * sysdeps/unix/sysv/aix/msync.c: New file.
8610         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8611         * sysdeps/unix/sysv/aix/net/if.h: New file.
8612         * sysdeps/unix/sysv/aix/pipe.c: New file.
8613         * sysdeps/unix/sysv/aix/poll.c: New file.
8614         * sysdeps/unix/sysv/aix/rename.c: New file.
8615         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8616         * sysdeps/unix/sysv/aix/select.c: New file.
8617         * sysdeps/unix/sysv/aix/semctl.c: New file.
8618         * sysdeps/unix/sysv/aix/semget.c: New file.
8619         * sysdeps/unix/sysv/aix/semop.c: New file.
8620         * sysdeps/unix/sysv/aix/sendto.c: New file.
8621         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8622         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8623         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8624         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8625         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8626         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8627         * sysdeps/unix/sysv/aix/setsid.c: New file.
8628         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8629         * sysdeps/unix/sysv/aix/shmat.c: New file.
8630         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8631         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8632         * sysdeps/unix/sysv/aix/shmget.c: New file.
8633         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8634         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8635         * sysdeps/unix/sysv/aix/socket.c: New file.
8636         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8637         * sysdeps/unix/sysv/aix/speed.c: New file.
8638         * sysdeps/unix/sysv/aix/symlink.c: New file.
8639         * sysdeps/unix/sysv/aix/sync.c: New file.
8640         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8641         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8642         * sysdeps/unix/sysv/aix/times.c: New file.
8643         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8644         * sysdeps/unix/sysv/aix/umask.c: New file.
8645         * sysdeps/unix/sysv/aix/unlink.c: New file.
8646         * sysdeps/unix/sysv/aix/ustat.c: New file.
8647         * sysdeps/unix/sysv/aix/utimes.c: New file.
8648
8649 2000-04-18  Andreas Jaeger  <aj@suse.de>
8650
8651         * manual/startup.texi (Environment Access): Fix putenv prototype
8652         according to recent changes.
8653         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8654         PR libc/1692.
8655
8656         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8657         needed.
8658
8659 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8660
8661         * posix/Makefile (tests): Add tst-getaddrinfo.
8662         * posix/tst-getaddrinfo.c: New file.
8663
8664 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8665
8666         * manual/sysinfo.texi: Document that umount2 is not widely available.
8667
8668         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8669         signal timing is not really implemented.
8670
8671 2000-04-17  Andreas Jaeger  <aj@suse.de>
8672
8673         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8674
8675 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8676
8677         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8678         and inst_libdir.
8679
8680 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8681
8682         * manual/intro.texi: Change reference from System Information to
8683         System Management.
8684         * manual/users.texi: Likewise.
8685         * manual/conf.texi: Likewise.
8686         * manual/sysinfo.texi: Document mount, umount, and umount2.
8687         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8688
8689 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8690
8691         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8692         Create wnumstr as well as numstr to support wide character output
8693         correctly.
8694
8695 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8696
8697         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8698         modification and move it...
8699         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8700         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8701         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8702         switch to $(LD) on sparc-linux.
8703
8704 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8705
8706         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8707         and setresuid from sysdep_routines.
8708
8709 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8710
8711         * manual/Makefile (chapters): Add resource.
8712
8713         * manual/time.texi: Move section on resources to...
8714         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8715         and vtimes.
8716         * manual/setjmp.texi: Adjust back reference.
8717         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8718
8719         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8720         definition.
8721         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8722         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8723         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8724         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8725         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8726         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8727         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8728         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8729         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8730         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8731         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8732         * sysdeps/unix/sysv/aix/Implies: New file.
8733         * sysdeps/unix/sysv/aix/Versions: New file.
8734         * sysdeps/unix/sysv/aix/bind.c: New file.
8735         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8736         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8737         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8738         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8739         * sysdeps/unix/sysv/aix/chdir.c: New file.
8740         * sysdeps/unix/sysv/aix/chmod.c: New file.
8741         * sysdeps/unix/sysv/aix/chroot.c: New file.
8742         * sysdeps/unix/sysv/aix/creat.c: New file.
8743         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8744         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8745         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8746         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8747         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8748         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8749         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8750         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8751         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8752         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8753         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8754         * sysdeps/unix/sysv/aix/link.c: New file.
8755         * sysdeps/unix/sysv/aix/madvise.c: New file.
8756         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8757         * sysdeps/unix/sysv/aix/mknod.c: New file.
8758         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8759         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8760         * sysdeps/unix/sysv/aix/msgget.c: New file.
8761         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8762
8763 2000-04-17  Andreas Jaeger  <aj@suse.de>
8764
8765         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8766         as suggested by Ulrich Drepper.
8767         (__dl_runtime_resolve): Remove unused variable, initialize sym
8768         directly.
8769         (RTLD_START): Document OFFSET_GP_GOT.
8770         (OFFSET_GP_GOT): New magic value.
8771         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8772         (elf_machine_got_rel): Only declare strtab if needed.
8773         (elf_machine_relplt): Removed, it's not needed.
8774         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8775
8776         * sysdeps/mips/add_n.S: Add newline at EOF.
8777         * sysdeps/mips/rshift.S: Likewise.
8778         * sysdeps/mips/mul_1.S: Likewise.
8779         * sysdeps/mips/lshift.S: Likewise.
8780         * sysdeps/mips/addmul_1.S: Likewise.
8781
8782 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8783
8784         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8785
8786         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8787         * elf/dl-lookup.c: Likewise.
8788         * elf/dl-init.c (_dl_init): Likewise.
8789         * elf/dl-fini.c (_dl_fini): Likewise.
8790         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8791         * elf/dl-close.c (_dl_close): Likewise.
8792         * elf/rtld.c (_dl_start_final): Likewise.
8793
8794         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8795
8796 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8797
8798         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8799         only fall back on using Linux.
8800
8801         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8802         Before testing versions check that we actually loaded the object
8803         and whether we are in trace mode.  If not loaded during tracing don't
8804         test versions in this object.
8805         (_dl_check_all_versions): Take new parameter and pass to
8806         _dl_check_map_versions.
8807         * sysdeps/generic/ldsodefs.h: Update prototypes for
8808         _dl_check_all_versions and _dl_check_map_versions.
8809         * elf/rtld.c (struct version_check_args): Add dotrace.
8810         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8811         (dl_main): Pass info about trace mode to version_check_doit.
8812         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8813         _dl_check_all_versions.
8814
8815         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8816         and getutmpx.
8817         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8818
8819         * manual/argp.texi: Document index parameter of argp_parse.
8820         Fix typo.
8821         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8822
8823 2000-04-14  Andreas Jaeger  <aj@suse.de>
8824
8825         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8826         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8827
8828         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8829
8830 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8831
8832         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8833         compat_symbol call for old adjtime.
8834
8835         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8836         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8837
8838         * posix/Makefile (headers): Add spawn.h.
8839         (distribute): Add spawn_int.h.
8840         (routines): Add spawn_faction_init, spawn_faction_destroy,
8841         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8842         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8843         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8844         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8845         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8846         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8847         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8848         posix_spawnattr_init, posix_spawnattr_destroy,
8849         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8850         posix_spawnattr_getflags, posix_spawnattr_setflags,
8851         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8852         and posix_spawnp.
8853         * posix/spawn.c: New file.
8854         * posix/spawn.h: New file.
8855         * posix/spawn_faction_addclose.c: New file.
8856         * posix/spawn_faction_adddup2.c: New file.
8857         * posix/spawn_faction_addopen.c: New file.
8858         * posix/spawn_faction_destroy.c: New file.
8859         * posix/spawn_faction_init.c: New file.
8860         * posix/spawn_int.h: New file.
8861         * posix/spawnattr_destroy.c: New file.
8862         * posix/spawnattr_getdefault.c: New file.
8863         * posix/spawnattr_getflags.c: New file.
8864         * posix/spawnattr_getpgroup.c: New file.
8865         * posix/spawnattr_getschedparam.c: New file.
8866         * posix/spawnattr_getschedpolicy.c: New file.
8867         * posix/spawnattr_getsigmask.c: New file.
8868         * posix/spawnattr_init.c: New file.
8869         * posix/spawnattr_setdefault.c: New file.
8870         * posix/spawnattr_setflags.c: New file.
8871         * posix/spawnattr_setpgroup.c: New file.
8872         * posix/spawnattr_setschedparam.c: New file.
8873         * posix/spawnattr_setschedpolicy.c: New file.
8874         * posix/spawnattr_setsigmask.c: New file.
8875         * posix/spawni.c: New file.
8876         * posix/spawnp.c: New file.
8877
8878         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8879         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8880
8881 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8882
8883         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8884         * malloc/malloc.c: Implement posix_memalign for glibc.
8885         * include/stdlib.h: Add prototype for __posix_memalign.
8886         * stdlib/stdlib.h: Add prototype for posix_memalign.
8887
8888 2000-04-14  Andreas Jaeger  <aj@suse.de>
8889
8890         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8891         symidx correctly.
8892         (elf_machine_got_rel): Cast sym correctly.
8893
8894         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8895         * sysdeps/mips/addmul_1.S: Likewise.
8896         * sysdeps/mips/lshift.S: Likewise.
8897         * sysdeps/mips/mul_1.S: Likewise.
8898         * sysdeps/mips/rshift.S: Likewise.
8899         * sysdeps/mips/sub_n.S: Likewise.
8900         * sysdeps/mips/submul_1.S: Likewise.
8901
8902         * stdlib/stdlib.h: Fix typo in comment.
8903
8904         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8905         2.2 for libdl, ld and libm.
8906
8907         * sysdeps/generic/madvise.c: Fix typos.
8908
8909         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8910
8911         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8912
8913         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8914         warnings.
8915
8916 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8917
8918         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8919         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8920         Make old name weak alias.
8921         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8922         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8923         Make old name weak alias.
8924         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8925
8926         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8927         posix_fallocate, and posix_fallocate64.
8928         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8929         posix_fallocate, and posix_fallocate64.
8930         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8931         posix_fallocate, and posix_fallocate64.
8932         * sysdeps/generic/fadvise.c: New file.
8933         * sysdeps/generic/fadvise64.c: New file.
8934         * sysdeps/generic/fallocate.c: New file.
8935         * sysdeps/generic/fallocate64.c: New file.
8936         * sysdeps/posix/fallocate.c: New file.
8937         * sysdeps/posix/fallocate64.c: New file.
8938         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8939         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8940         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8941         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8942         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8943         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8944         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8945         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8946         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8947
8948         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8949         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8950
8951 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8952
8953         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8954         * misc/sys/mman.h (posix_madvise): Add prototype.
8955         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8956         old name and posix_madvise weak aliases.
8957         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8958         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8959         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8960         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8961         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8962         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8963         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8964
8965 2000-04-13  Andreas Jaeger  <aj@suse.de>
8966
8967         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8968         versioning.
8969         (elf_machine_got_rel): Only add runtime display if needed.
8970         (elf_machine_got_rel): Handle symbol versioning.
8971
8972 2000-04-13  Andreas Jaeger  <aj@suse.de>
8973
8974         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8975
8976         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8977         default.
8978
8979         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8980         with some applications.
8981         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8982
8983         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8984         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8985         * sysdeps/mips/setjmp.S: Likewise.
8986
8987         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8988
8989 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8990
8991         * posix/globtest.sh: Work around inconsistency with expanding ~/
8992         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8993
8994 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8995
8996         * posix/getconf.c: Add support for many more POSIX options.
8997         * sysdeps/posix/sysconf.c: Likewise.
8998         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8999         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
9000         _POSIX_SHELL.
9001         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
9002         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
9003         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
9004         CLOCK_THREAD_CPUTIME_ID.
9005         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
9006         CLOCK_PROCESS_CPUTIME_ID.
9007         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
9008         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
9009         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
9010         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
9011
9012         * malloc/Makefile (tests): Add tst-calloc.
9013         * malloc/tst-calloc.c: New file.
9014
9015         * sysdeps/arm/libm-test-ulps: New file.
9016
9017         * malloc/malloc.c: Undo all of today's changes.
9018
9019         * locale/programs/locale.c (show_info): Don't try to look into
9020         data for LC_ALL (there is none).
9021
9022         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
9023         avoid writing over boundary.
9024         Patch by Greg McGary <gkm@eng.ascend.com>.
9025
9026         * sysdeps/arm/memprof.h: New file.
9027
9028 2000-04-12  Andreas Jaeger  <aj@suse.de>
9029
9030         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
9031
9032         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
9033         for memmem declaration.
9034
9035 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
9036
9037         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
9038         to -1.
9039         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
9040
9041         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
9042         mode is invalid.
9043         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9044         Patch by Bart Veer <bartv@redhat.com>.
9045
9046         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
9047         function interface.
9048
9049 2000-04-11  Andreas Jaeger  <aj@suse.de>
9050
9051         * sysdeps/mips/dl-machine.h: Update some comments.
9052         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
9053
9054 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9055
9056         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
9057         _POSIX_SHARED_MEMORY_OBJECTS.
9058
9059         * rt/Makefile (tests): Add tst-shm.
9060         Add rules to generate tst-shm.
9061         * rt/tst-shm.c: New file.
9062
9063         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
9064         for descriptor.
9065
9066         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
9067         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
9068         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
9069         * sysdeps/generic/shm_open.c: New file.
9070         * sysdeps/generic/shm_unlink.c: New file.
9071         * sysdeps/unix/sysv/linux/shm_open.c: New file.
9072         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
9073         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
9074          __endmntent, __getmntent_r, __setmntent, and __statfs.
9075
9076         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
9077         fragmentation by allocating new memory at the end instead of
9078         reallocating.
9079
9080         * posix/globtest.sh: Fix last change.
9081
9082 2000-04-10  Philip Blundell  <philb@gnu.org>
9083
9084         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
9085         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
9086         IPV6_DROP_MEMBERSHIP.
9087         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
9088         Likewise.
9089
9090 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9091
9092         * elf/readlib (process_file): Close streams in case of an error.
9093
9094 2000-04-09  Andreas Jaeger  <aj@suse.de>
9095
9096         * elf/readlib.c (process_file): Check if file is big enough to
9097         contain aout and ELF headers.
9098         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
9099
9100 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
9101
9102         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
9103
9104 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
9105
9106         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
9107         stream unbuffered.
9108         * rt/Makefile (tests): Add tst-clock.
9109         Add rules to build tst-clock.
9110         * rt/tst-clock.c: New file.
9111         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
9112         about initialization of nsec.
9113         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
9114         about initialization of freq.  Set retval to zero if successful.
9115         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
9116
9117 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9118
9119         * Versions.def (librt): Add GLIBC_2.2.
9120         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
9121         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
9122         timer_getoverr, timer_gettime, and timer_settime.
9123         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
9124         clock_settime, timer_create, timer_delete, timer_getoverrun,
9125         timer_gettime, and timer_settime.
9126         * sysdeps/generic/clock_getcpuclockid.c: New file.
9127         * sysdeps/generic/get_clockfreq.c: New file.
9128         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9129         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9130         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9131         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9132         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9133         * sysdeps/unix/i386/i686/Implies: New file.
9134         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9135         * time/Makefile (routines): Move clock_getres, clock_gettime,
9136         clock_settime, timer_create, timer_delete, timer_getoverr,
9137         timer_gettime, and timer_settime to rt/Makefile.
9138         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9139         clock_settime, timer_create, timer_delete, timer_getoverrun,
9140         timer_gettime, and timer_settime.
9141         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9142
9143         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9144         and not const as attribute name.
9145
9146 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9147
9148         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9149
9150 2000-04-10  Andreas Schwab  <schwab@suse.de>
9151
9152         * posix/globtest.sh: Skip tests that depend on unreadable
9153         directories if run as root.
9154
9155 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9156
9157         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9158         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9159
9160 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9161
9162         * sysdeps/unix/clock_gettime.c: New file.
9163         * sysdeps/unix/clock_settime.c: New file.
9164         * sysdeps/posix/clock_getres.c: New file.
9165
9166         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9167
9168         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9169         lseek call be passing in a buffer which never allow a successful
9170         first getdents syscall if not at leas the initial entry can be
9171         stored in the user buffer.
9172
9173         * localedata/Makefile: Add rules to clean up directories created by
9174         new strfmon tests.
9175
9176 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9177
9178         * localedata/tst-fmon.data: Added new tests for strfmon()
9179         using test locales with all combinations of cs_precedes,
9180         sign_posn and sep_by_space.
9181         * localedata/tst-fmon.sh: Updated to support the new tests.
9182         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9183         the localedef source for the new strfmon() test locale.
9184         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9185         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9186         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9187         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9188         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9189         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9190         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9191         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9192         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9193         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9194         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9195         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9196         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9197         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9198
9199         * stdlib/strfmon.c: Correct problems with missing or extra
9200         spaces for unusual combinations of sign_posn and sep_by_space.
9201         Improved left-precision alignment code.
9202
9203 2000-04-07  Andreas Jaeger  <aj@suse.de>
9204
9205         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9206
9207 2000-04-10  Andreas Jaeger  <aj@suse.de>
9208
9209         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9210
9211 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9212
9213         Implement handling of restartable conversion functions according to
9214         ISO C.
9215         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9216         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9217         * iconv/gconv.c: Pass additional parameter to conversion function.
9218         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9219         (internal_ucs4le_loop_single): New function.
9220         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9221         (__gconv_transform_internal_ascii): Likewise.
9222         (__gconv_transform_internal_utf8): Likewise.
9223         (__gconv_transform_utf8_internal): Likewise.
9224         (__gconv_transform_ucs2_internal): Likewise.
9225         (__gconv_transform_internal_ucs2): Likewise.
9226         (__gconv_transform_ucs2reverse_internal): Likewise.
9227         (__gconv_transform_internal_ucs2reverse): Likewise.
9228         (internal_ucs4le_loop_unaligned): Before return
9229         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9230         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9231         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9232         * iconv/loop.c: Fit in definition of function to convert one character
9233         for processing of left-over bytes from the state object.
9234         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9235         inend to match names in loop functions.
9236         (RESET_INPUT_BUFFER): Change apprpriately.
9237         (gconv): If needed, call function to process bytes from the state
9238         object.  Similar at the end: store left over bytes if input is
9239         incomplete.
9240         Take extra argument and add new argument to all calls of the
9241         conversion function.
9242         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9243         information in the state object to not conflict with length count.
9244         * iconvdata/iso-2022-jp.c: Likewise.
9245         * iconvdata/iso-2022-kr.c: Likewise.
9246         * iconvdata/unicode.c: Adjust for change change in parameters of
9247         skeleton function.
9248         * iconvdata/utf-16.c: Likewise.
9249         * libio/iofwide.c: Add new parameter to all calls of conversion
9250         function.
9251         * wcsmbs/btowc.c: Likewise.
9252         * wcsmbs/mbrtowc.c: Likewise.
9253         * wcsmbs/mbsnrtowcs.c: Likewise.
9254         * wcsmbs/mbsrtowcs.c: Likewise.
9255         * wcsmbs/wcrtomb.c: Likewise.
9256         * wcsmbs/wcsnrtombs.c: Likewise.
9257         * wcsmbs/wcsrtombs.c: Likewise.
9258         * wcsmbs/wctob.c: Likewise.
9259
9260         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9261         MAX_NEEDED_INPUT.
9262
9263 2000-04-07  Andreas Jaeger  <aj@suse.de>
9264
9265         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9266         newer kernels.
9267
9268 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9269
9270         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9271         element a union to allow byte access.
9272         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9273         mbstate_t.
9274         * iconvdata/iso-2022-jp.c: Likewise.
9275         * iconvdata/iso-2022-kr.c: Likewise.
9276         * wcsmbs/mbsinit.c: Likewise.
9277         * stdlib/mblen.c: Likewise.
9278         * stdio-common/printf-parse.h: Likewise.
9279
9280 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9281
9282         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9283         kernel does not allow relative seeks on descriptors associated
9284         with directories.  Go back to get the position in the directory
9285         every time we enter the function.  Return -1 and set errno if one
9286         entry could be read from the kernel but does not fit into the
9287         buffer passed in by the user.
9288
9289         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9290         Support ..(2).. ellipsis.
9291         (parse_charmap): Recognize ..(2).. etc and pass step down.
9292         Correctly generate names for UCS4 characters.
9293
9294         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9295         (ctype_finish): We know the wide character value for <SP>,
9296         don't search.
9297         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9298         (charclass_ucs4_ellipsis): Likewise.
9299         (read_translit_ignore_entry): Store ellipsis step.
9300         (ctype_read): Recognize ..(2).. etc and pass step down.
9301
9302         * locale/programs/linereader.c (lr_token): When seeing comment
9303         character ignore only rest of line in sources but stop at escaped
9304         newline.
9305         Recognize ..(2).. and ....(2).....
9306
9307         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9308         and tok_ellipsis4_2.
9309
9310 2000-04-06  Andreas Jaeger  <aj@suse.de>
9311
9312         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9313         removed, remove it here also.
9314         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9315         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9316         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9317         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9318
9319 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9320
9321         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9322         include bits/sigcontext.h.
9323         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9324
9325 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9326
9327         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9328         collation symbol definition.  Value in quivalence definition must
9329         be defined, don't check that it is not.
9330
9331         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9332         values as character names.
9333
9334         * locale/programs/ld-ctype.c (get_character): Handle missing
9335         repertoire map correctly.
9336
9337 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9338
9339         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9340         because it is used in generic code.
9341         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9342         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9343         * intl/gettext.c: Include <locale.h>.
9344         * intl/ngettext.c: Likewise.
9345
9346 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9347
9348         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9349         socklen_t type for size.
9350         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9351         init function interface.
9352         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9353         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9354         sys/ucontext.h.
9355         (__jmp_buf): Declare the whole type structure here, don't use
9356         ucontext.
9357
9358 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9359
9360         * iconv/skeleton.c (put16u): Fix typo.
9361         Reported by Bruno Haible <haible@ilog.fr>.
9362
9363         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9364         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9365         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9366         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9367         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9368         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9369
9370         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9371         * Makefile (distribute): Add abi-versions.awk and
9372         firstversions.awk.
9373         Patches by Torsten Duwe <duwe@caldera.de>.
9374
9375 2000-04-05  Andreas Schwab  <schwab@suse.de>
9376
9377         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9378
9379 2000-04-05  Andreas Schwab  <schwab@suse.de>
9380
9381         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9382         entry point, used on Hurd.
9383
9384 2000-04-04  Andreas Jaeger  <aj@suse.de>
9385
9386         * intl/Makefile: Only run the gettext test with shared libraries.
9387
9388 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9389
9390         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9391         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9392
9393 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9394
9395         * Makeconfig: Undo last change.
9396         * configure.in: If --disable-shared was given, don't set VERSIONING,
9397         don't define DO_VERSIONING, and don't give scare warning for no
9398         versioning.
9399         * configure: Regenerated.
9400
9401 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9402
9403         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9404
9405 2000-04-04  Andreas Jaeger  <aj@suse.de>
9406
9407         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9408
9409 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9410
9411         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9412         STV_HIDDEN and STV_INTERNAL during lookup.
9413         (profile_fixup): Likewise.
9414         * elf/dl-reloc.c (RESOLVE): Likewise.
9415
9416         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9417         unaligned so that it compiles for system which need unaligned
9418         access handling.
9419
9420 2000-04-04  Andreas Schwab  <schwab@suse.de>
9421
9422         * elf/cache.c (print_entry): Only look at the type field when
9423         printing the type.
9424
9425 2000-04-04  Andreas Schwab  <schwab@suse.de>
9426
9427         * iconvdata/big5.c (BODY): Fix typo.
9428
9429 2000-04-04  Andreas Schwab  <schwab@suse.de>
9430
9431         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9432         function interface.  Remove unused _dl_start_user entry point.
9433
9434 2000-04-03  Andreas Jaeger  <aj@suse.de>
9435
9436         * include/arpa/inet.h (__inet_aton): Add protoype.
9437
9438 2000-04-01  Andreas Jaeger  <aj@suse.de>
9439
9440         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9441
9442         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9443         * sysdeps/mach/mips/thread_state.h: Likewise.
9444
9445         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9446         * sysdeps/generic/fegetenv.c: Likewise.
9447         * sysdeps/generic/fesetenv.c: Likewise.
9448         * sysdeps/generic/feupdateenv.c: Likewise.
9449         * sysdeps/generic/fraiseexcpt.c: Likewise.
9450         * sysdeps/generic/fsetexcptflg.c: Likewise.
9451         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9452         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9453         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9454         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9455
9456 2000-04-02  H.J. Lu  <hjl@gnu.org>
9457
9458         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9459
9460 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9461
9462         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9463         (add_name_to_object): Add cast in malloc call.
9464         (fillin_rpath): Optimize loop to initialize ->status a bit.
9465
9466         * sysdeps/i386/dl-machine.h: Undo last change.
9467         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9468         Restore %edx register after call here.
9469
9470         * sysdeps/arm/atomicity.h: New file.
9471         Contributed by Jesper Skov <jskov@redhat.com>.
9472
9473 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9474
9475         * Makeconfig (preprocess-versions): Undo last change.
9476         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9477
9478         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9479         here, before we might move the stack.
9480         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9481         (init1): And not here.
9482
9483         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9484         change, to restore argc value in call-clobbered register after
9485         RTLD_START_SPECIAL_INIT, which will contain a call.
9486
9487         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9488         allocating and initializing L->l_initfini.
9489
9490         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9491
9492 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9493
9494         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9495         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9496         (open_path): Change type of fourth parameter.  Make pointer to array
9497         of pointers.  Create variable dirs with original type.
9498         Track whether any directory for the object exists and if not,
9499         change *DIRSP to (void*) -1 to signal there is no such search path.
9500         (_dl_map_object): Change all calls of open_path.
9501         Rewrite decompose_rpath calls.
9502
9503 2000-03-31  Andreas Schwab  <schwab@suse.de>
9504
9505         * string/strfry.c: Declare STATE as array of char instead of int
9506         and do not initialize it (done by initstate_r).  Pass correct
9507         size.
9508
9509 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9510
9511         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9512
9513         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9514         instruction out of the code.
9515
9516 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9517
9518         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9519         element at this position.
9520
9521         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9522         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9523         l_reldeps elements.
9524         * elf/dl-lookup.c (add_dependency): New function.
9525         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9526         dynamically loaded object.
9527         (_dl_lookup_symbol_skip): Likewise.
9528         (_dl_lookup_versioned_symbol): Likewise.
9529         (_dl_lookup_versioned_symbol_skip): Likewise.
9530         * elf/dl-open.c: Don't define _dl_load_lock here...
9531         * elf/rtld.c: ...but here...
9532         * elf/dl-support.c: ...and here.
9533         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9534         through relocation.
9535         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9536         relocations.
9537         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9538         anymore.
9539         * dlfcn/glrefmain.c: Add one more debug message.
9540
9541         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9542         command line.
9543         * Makerules (sysd-versions): Use ( ) instead of { }.
9544
9545         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9546         optimize for the non-debugging case.
9547         * elf/dl-lookup.c: Likewise.
9548         * sysdeps/generic/libc-start.c: Likewise.
9549
9550 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9551
9552         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9553         (init1): Don't initialize __environ here, since init already does it.
9554         (first_init): New function, broken out of _init.
9555         (_hurd_stack_setup): Use it.
9556         [SHARED] (_dl_init_first): New function, renamed from old _init.
9557         (init1) [SHARED]: Don't call posixland_init here.
9558         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9559         [SHARED] (_init): Define as alias for posixland_init.
9560         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9561         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9562         RTLD_START_SPECIAL_INIT before calling initializers.
9563         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9564         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9565         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9566         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9567
9568         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9569         since we define the function with the name `tmpfile'.
9570
9571         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9572         * hurd/Versions: Likewise.
9573
9574 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9575
9576         * elf/dl-runtime.c (fixup): Fix typo in comment.
9577
9578         * resolv/netdb.h (getnameinfo): All length parameters are of type
9579         socklen_t.
9580         * inet/getnameinfo.c: Likewise.
9581
9582 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9583
9584         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9585         (gethostname): Change type of second parameter to socklen_t.
9586         * include/unistd.h (__gethostname): Change type of second
9587         parameter to socklen_t.
9588         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9589         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9590         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9591         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9592         Likewise.
9593         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9594         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9595         Allow definition elsewhere.
9596         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9597         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9598         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9599         * sysdeps/generic/bits/types.h: Define __socklen_t.
9600         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9601         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9602         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9603         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9604         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9605         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9606         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9607
9608         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9609         (inet_lnaof): Likewise.
9610         (inet_netof): Likewise.
9611         (inet_network): Likewise.
9612         (inet_aton): Likewise.
9613         (inet_makeaddr): Change parameter types to in_addr_t.
9614         (inet_neta): Likewise.
9615         (inet_ntop): Change type of last parameter to socklen_t.
9616         (inet_aton): Only make available if __USE_MISC.
9617         (inet_neta): Likewise.
9618         (inet_net_ntop): Likewise.
9619         (inet_net_pton): Likewise.
9620         (inet_nsap_ntoa): Likewise.
9621
9622         * inet/in.h: Define in_port_t type.
9623         Define in_addr_t type.
9624         (struct in_addr): Use in_addr_t in definition.
9625         (IN_CLASSA): Use cast to in_addr_t.
9626         (IN_CLASSB): Likewise.
9627         (IN_CLASSC): Likewise.
9628         (IN_CLASSD): Likewise.
9629         (IN_EXPERIMENTAL): Likewise.
9630         (IN_BADCLASS): Likewise.
9631         (INADDR_ANY): Likewise.
9632         (INADDR_BROADCAST): Likewise.
9633         (INADDR_NONE): Likewise.
9634         (INADDR_LOOPBACK): Likewise.
9635         (INADDR_UNSPEC_GROUP): Likewise.
9636         (INADDR_ALLHOSTS_GROUP): Likewise.
9637         (INADDR_ALLRTRS_GROUP): Likewise.
9638         (INADDR_MAX_LOCAL_GROUP): Likewise.
9639         (struct sockaddr_in): Use in_port_t for sin_port element.
9640         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9641         Use uint8_t instead of u_int8_t.
9642
9643         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9644         Call __inet_aton instead of inet_aton.
9645         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9646
9647         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9648         (innetgr): Likewise.
9649         (struct addrinfo): Use socklen_t for ai_addrlen element.
9650
9651         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9652         IPV6_RECVERR): New defines.
9653
9654         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9655         * inet/getnetbyad.c: Likewise.
9656         * inet/getnetbyad_r.c: Likewise.
9657         * nis/nss_nis/nis-network.c: Likewise.
9658         * nis/nssplus_nis/nisplus-network.c: Likewise.
9659         * nss/nss_files/files-network.c: Likewise.
9660         * resolv/netdb.h: Define uint32_t if not already happened.
9661         Include bits/netdb.h.  Remove definition of struct netent.
9662         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9663         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9664         * sysdeps/generic/bits/netdb.h: New file.
9665         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9666
9667         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9668         (tests): Add glrefmain.
9669         Add rules to build modules and run tests.  Ignore result of glrefmain
9670         for now since it fails.
9671         * dlfcn/glrefmain.c: New file.
9672         * dlfcn/glreflib1.c: New file.
9673         * dlfcn/glreflib2.c: New file.
9674
9675         * test-skeleton.c: Include <string.h> for strsignal prototype.
9676
9677         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9678         to be missing.
9679
9680         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9681         former init-first.h.  Initialize __libc_multiple_libcs.
9682
9683 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9684
9685         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9686         #if expression for use of unaligned function to the one used in
9687         the definition of these functions.
9688         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9689         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9690         (internal_ucs4le_loop_unaligned): New function.
9691
9692         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9693         (tests): Add order.
9694         (module-names): Add dep1, dep2, dep3, and dep4.
9695         Add dependencies for dep* modules and order.
9696         Define rule for order.out which checks the result.
9697         * elf/dep1.c: New file.
9698         * elf/dep2.c: New file.
9699         * elf/dep3.c: New file.
9700         * elf/dep4.c: New file.
9701         * elf/order.c: New file.
9702
9703         * elf/dl-init.c: Fix typo in comment.
9704
9705 2000-03-31  Andreas Jaeger  <aj@suse.de>
9706
9707         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9708         init function interface.
9709         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9710
9711 2000-03-31  Andreas Jaeger  <aj@suse.de>
9712
9713         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9714         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9715         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9716         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9717         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9718
9719         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9720         anymore, update comment.
9721
9722         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9723
9724         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9725         SHLIB_COMPAT - the struct is always needed.
9726
9727 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9728
9729         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9730         * elf/dl-support.c: Define _dl_starting_up.
9731
9732 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9733
9734         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9735         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9736
9737         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9738
9739         * elf/Makefile (dl-routines): Remove preinit.
9740         * elf/Versions: Remove _dl_preinit.
9741         * elf/dl-preinit.c: Removed.  Move content into...
9742         * elf/dl-init.c: ...here.
9743         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9744
9745         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9746         elements.
9747
9748 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9749
9750         * stdlib/strfmon.c: Corrected problems with the code that
9751         sets default values for [np]_sep_by_space and
9752         [np]_sign_posn; also the new positive/negative alignment
9753         code from the previous patch was not quite right for
9754         [np]_sign_posn = 0.
9755
9756         * localedata/tst-fmon.data: Changes corresponding to the
9757         two sets of fixes made to stdlib/strfmon.c.
9758
9759 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9760
9761         * malloc/malloc.c: Declare bit flags UL so that they will not
9762         default to int size when being inverted.
9763
9764 2000-03-29  Andreas Jaeger  <aj@suse.de>
9765
9766         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9767         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9768
9769 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9770             Ralf Baechle <ralf@uni-koblenz.de>
9771
9772         * Makeconfig: Introduce new variable SHARED to mark code used in
9773         the shared library.
9774         * elf/dl-close.c: Use it instead of PIC.
9775         * elf/dl-load.c: Likewise.
9776         * elf/dl-open.c: Likewise.
9777         * hurd/geteuids.c: Likewise.
9778         * include/libc-symbols.h: Likewise.
9779         * include/shlib-compat.h: Likewise.
9780         * libio/freopen.c: Likewise.
9781         * linuxthreads/cancel.c: Likewise.
9782         * linuxthreads/pthread.c: Likewise.
9783         * linuxthreads/wrapsyscall.c: Likewise.
9784         * nss/nsswitch.c: Likewise.
9785         * stdio-common/vfprintf.c: Likewise.
9786         * sysdeps/arm/init-first.c: Likewise.
9787         * sysdeps/i386/init-first.c: Likewise
9788         * sysdeps/generic/init-first.c: Likewise.
9789         * sysdeps/generic/libc-start.c: Likewise.
9790         * sysdeps/mips/init-first.c: Likewise.
9791         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9792         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9793         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9794         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9795         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9796
9797         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9798
9799 2000-03-29  Andreas Jaeger  <aj@suse.de>
9800
9801         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9802         Use D_PTR to access relocated entries in l_info.
9803         (elf_machine_rela): Likewise.
9804
9805         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9806         Likewise.
9807         (elf_machine_rela): Likewise.
9808
9809         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9810         Likewise.
9811         (__elf_machine_fixup_plt): Likewise.
9812         (__process_machine_rela): Likewise.
9813
9814         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9815         (elf_machine_rela): Likewise.
9816
9817         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9818         (elf_machine_rel): Likewise.
9819
9820         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9821         (elf_machine_fixup_plt): Likewise.
9822         (elf_machine_rela): Likewise.
9823
9824 2000-03-29  Andreas Jaeger  <aj@suse.de>
9825
9826         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9827         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9828         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9829         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9830         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9831         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9832         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9833         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9834         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9835         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9836         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9837         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9838         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9839         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9840         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9841
9842         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9843         macros, remove K&R prototypes.
9844
9845 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9846
9847         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9848         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9849         (PR libc/1677).
9850
9851 2000-03-30  Andreas Jaeger  <aj@suse.de>
9852
9853         * misc/sys/cdefs.h: Remove K&R support.
9854
9855 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9856
9857         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9858         more cases.
9859         * iconv/loop.c: Likewise.
9860
9861 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9862
9863         * iconv/loop.c (put16): Remove __const. Fix access index.
9864         (put32): Remove __const. Use uint32_t instead of uint16_t.
9865         * iconv/skeleton.c: Likewise.
9866
9867 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9868
9869         * mach/Versions (libc: GLIBC_2.0)
9870         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9871         __vm_allocate on this.
9872         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9873         mutex- and spinlock-related symbols on this.
9874         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9875         New version set.  Lock-related symbols go here instead in this case.
9876         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9877         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9878         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9879         * hurd/Versions
9880         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9881         Put them here instead.
9882         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9883         New version set.  Those cthreads symbols go here instead in this case.
9884         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9885
9886 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9887
9888         * elf/dl-init.c (_dl_init): We don't need to call constructors
9889         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9890
9891         Implement dynamic determination of constructor/destructor order in
9892         the dynamic linker.
9893         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9894         (GLIBC_2.2): Add _dl_init.
9895         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9896         r_duplist is not anymore allocated separately.  l_initfini is and
9897         therefore free it if necessary.
9898         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9899         malloc block.  Otherwise allocate l_initfini list only.
9900         Put dependencies for the object in l_initfini list.
9901         Sort dependencies for the object to be loaded topologically.
9902         * elf/dl-fini.c: Before running the destructors sort the topologically.
9903         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9904         call constructors instead of iterating over the pointers.  Get list of
9905         objects for which to run constructors from l_initfini element. Accept
9906         argc, argv, and env as parameters and pass them to the constructors.
9907         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9908         with size of dynamic section.
9909         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9910         _dl_init_next and calling constructors ourself.
9911         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9912         Take argc, argv, and env as parameters and pass them to the
9913         constructors.  Rewrite to call all constructors and not iterate over
9914         the pointers.
9915         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9916         precompute l_initcount and l_preinitcount.
9917         * elf/link.h (struct link_map): Add l_ldnum member.
9918         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9919         l_initcount, and l_preinitcount.  Add l_initfini.
9920         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9921         one for _dl_init.
9922         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9923         function interface.
9924         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9925         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9926         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9927         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9928         conventions now match.
9929
9930         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9931         effect for shared objects.  Don't emit message and call only for
9932         static library.
9933
9934 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9935
9936         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9937         CSA_Z243.4-1985-1..UCS2.
9938         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9939         ISO-8859-10..UCS2.
9940
9941 2000-03-29  Andreas Jaeger  <aj@suse.de>
9942
9943         * include/unistd.h: Remove duplicate entry for __rmdir.
9944         Remove declaration of __mkdir since __mkdir is declared in
9945         sys/stat.h.
9946
9947         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9948         by Michael Deutschmann <michael@talamasca.ocis.net>.
9949
9950         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9951         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9952         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9953         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9954         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9955
9956 2000-03-28  Andreas Jaeger  <aj@suse.de>
9957
9958         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9959         declaration, the prototype is defined via bits/mathcalls.h.
9960         (__sincosf): Likewise.
9961         (__sincosl): Likewise.
9962         (ldexp): Likewise.
9963         (ldexpf): Likewise.
9964         (ldexpl): Likewise.
9965         (__finite): Likewise.
9966         (__inline_mathcodeNP): New macro without prototype
9967         declarations.
9968         (__inline_mathcodeNP2): Likewise.
9969         (__inline_mathcodeNP3): Likewise.
9970         (__inline_mathcodeNP_): Likewise.
9971         (__inline_mathcodeNP2_): Likewise.
9972         (__inline_mathcodeNP3_): Likewise.
9973         (__inline_mathopNP): Likewise.
9974         (__inline_mathop_declNP): Likewise.
9975         (__inline_mathop_declNP_): Likewise.
9976         (__inline_mathcode_): Use __inline_mathcodeNP_.
9977         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9978         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9979         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9980         (__expm1l): Don't define prototype, the prototype is defined via
9981         bits/mathcalls.h.
9982         (exp): Likewise.
9983         (__expl): Likewise.
9984         (tan): Likewise.
9985         (atan2): Likewise.
9986         (__atan2l): Likewise.
9987         (fmod): Likewise.
9988         (pow): Likewise.
9989         (fabsf): Likewise.
9990         (fabsl): Likewise.
9991         (__fabsl): Likewise.
9992         (asin): Likewise.
9993         (acos): Likewise.
9994         (sinh): Likewise.
9995         (cosh): Likewise.
9996         (tanh): Likewise.
9997         (floor): Likewise.
9998         (ceil): Likewise.
9999         (expm1): Likewise.
10000         (log1p): Likewise.
10001         (asinh): Likewise.
10002         (acosh): Likewise.
10003         (atanh): Likewise.
10004         (hypot): Likewise.
10005         (logb): Likewise.
10006         (fma): Likewise.
10007         (drem): Likewise.
10008         (sqrt): Likewise.
10009         (__sqrtl): Likewise.
10010         (sin): Likewise.
10011         (cos): Likewise.
10012         (atan): Likewise.
10013         (log): Likewise.
10014         (log10): Likewise.
10015         (asinh): Likewise.
10016         (log2): Likewise.
10017         (rint): Likewise.
10018
10019 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
10020
10021         * Makerules: If make variable md5 is defined to yes after
10022         generating dependencies generate MD5 sum for the object.
10023
10024         * iconv/gconv_builtin.h: Fix length in transformation definition
10025         for UNICODEBIG.
10026
10027         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
10028
10029         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
10030         allow as well reading from/writing to unaligned addresses on machines
10031         which don't support this in hardware.  Use FCTNAME macro to define
10032         function name.  Include the file a second time for platforms which
10033         need special unaligned handling.
10034         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
10035         to access potentially unaligned addresses.  These macros are intended
10036         to be used only outside the loops.
10037         (unaligned): New definition.  In case the machine can handle unaligned
10038         access define as zero.  Otherwise as a variable which is initialized
10039         as nonzero in case the buffer passed in at runtime is unaligned with
10040         respect to the character set encoding involved.
10041         Call aligned or unaligned looop functions according to unaligned
10042         variable.
10043         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
10044         of direct casting pointer to potentially handle unaligned memory
10045         accesses.
10046         * iconvdata/8bit-generic.c: Likewise.
10047         * iconvdata/ansi_x3.110.c: Likewise.
10048         * iconvdata/big5.c: Likewise.
10049         * iconvdata/euc-cn.c: Likewise.
10050         * iconvdata/euc-jp.c: Likewise.
10051         * iconvdata/euc-kr.c: Likewise.
10052         * iconvdata/euc-tw.c: Likewise.
10053         * iconvdata/gbk.c: Likewise.
10054         * iconvdata/iso-2022-cn.c: Likewise.
10055         * iconvdata/iso-2022-jp.c: Likewise.
10056         * iconvdata/iso-2022-kr.c: Likewise.
10057         * iconvdata/iso646.c: Likewise.
10058         * iconvdata/iso_6937-2.c: Likewise.
10059         * iconvdata/iso_6937.c: Likewise.
10060         * iconvdata/johab.c: Likewise.
10061         * iconvdata/sjis.c: Likewise.
10062         * iconvdata/t.61.c: Likewise.
10063         * iconvdata/uhc.c: Likewise.
10064         * iconvdata/unicode.c: Likewise.
10065         * iconvdata/utf-16.c: Likewise.
10066
10067         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
10068         prototypes.
10069
10070         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
10071         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
10072         public.
10073         * malloc/mcheck.h (mcheck_check_all): Declare.
10074
10075         * stdio-common/Makefile (tests): Add tst-obprintf.
10076
10077 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
10078
10079         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
10080         Declare pthread_sigmask.
10081
10082         * csu/version.c: Add 2000 to copyright years.
10083         Remove Emacs local variables section.
10084
10085 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10086
10087         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
10088         __gconv_transform_internal_ucs2little): Remove declarations.
10089         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
10090         __gconv_transform_internal_ucs2): Never need to bswap_16.
10091         (__gconv_transform_ucs2reverse_internal,
10092         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
10093
10094 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10095
10096         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
10097         obsoleting version not being defined at all, in which case the
10098         result is always true.
10099
10100         * Makeconfig (preprocess-versions): New canned sequence for running
10101         cpp on shlib-versions and the like.
10102         (soversions.i): Use it.
10103         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
10104         Versions.def and Versions files.
10105
10106 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10107
10108         * stdio-common/tst-obprintf.c (main): Add another check to see
10109         obstack_printf handling all possible beginnings of the block
10110         inside an obstack chunk.
10111
10112         * locale/programs/localedef.c: Use __malloc_initialize_hook to
10113         install mcheck handler.
10114
10115         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
10116         handling problem.
10117
10118 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
10119
10120         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
10121
10122         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
10123         on [HAVE_ELF && DO_VERSIONING].
10124
10125 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
10126
10127         * stdio-common/tst-obprintf.c: New file.
10128
10129 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10130
10131         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10132         _IO_OVERFLOW directly instead through __overflow.
10133
10134         * locale/programs/localedef.c (construct_output_path): If path
10135         contains a / compute the end of the directory name correctly.
10136
10137         * include/features.h: Undef and document __USE_XOPEN2K.
10138
10139         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10140         whenever a function is called.  Initiated by calling mcheck_pedantic
10141         instead of mcheck.
10142         * malloc/mcheck.h: Declare mcheck_pedantic.
10143         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10144         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10145         for now.
10146
10147 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10148
10149         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10150         * dlfcn/dlopenold.c: Likewise.
10151         * nss/getXXbyYY_r.c: Likewise.
10152         * nss/getXXent_r.c: Likewise.
10153         * hurd/hurdinit.c: Likewise.
10154         * hurd/compat-20.c: Likewise.
10155         * libio/oldiofopen.c: Likewise.
10156         * libio/oldiofclose.c: Likewise.
10157         * libio/oldiofdopen.c: Likewise.
10158         * libio/oldfileops.c: Likewise.
10159         * libio/oldstdfiles.c: Likewise.
10160         * libio/oldiofsetpos.c: Likewise.
10161         * libio/oldiofgetpos.c: Likewise.
10162         * libio/oldiofgetpos64.c: Likewise.
10163         * libio/oldiofsetpos64.c: Likewise.
10164         * libio/oldiopopen.c: Likewise.
10165         * libio/oldpclose.c: Likewise.
10166         * libio/oldtmpfile.c: Likewise.
10167         * libio/freopen.c (freopen): Likewise.
10168         * libio/iofclose.c (_IO_new_fclose): Likewise.
10169
10170         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10171         (reboot): Declare it.
10172
10173         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10174
10175         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10176
10177         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10178
10179         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10180         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10181         We need this for the sbrk decl, which can be included without Unix98.
10182
10183 2000-03-20  Richard Henderson  <rth@cygnus.com>
10184
10185         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10186         argument to yperr2nss is an int, not size_t.
10187         * posix/regex.c (print_partial_compiled_pattern): Cast all
10188         ptrdiff_t to long for printing.
10189         (print_compiled_pattern): Use Z for printing size_t.
10190         * posix/testfnm.c (tests): Avoid trigraphs.
10191         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10192         Use a C comment, not an assembly comment.
10193
10194         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10195         of __ASSUME_32BITUIDS.
10196
10197 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10198
10199         * libio/iofopncook.c: Remove K&R prototypes.
10200
10201 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10202
10203         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10204         an initial value of 1024 instead of RLIM_INFINITY.
10205
10206         * Versions.def (libmachuser, libhurduser): Remove these sections,
10207         since these libraries do not presently use symbol versions.
10208
10209         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10210         is RLIM_INFINITY, return -1 instead.
10211
10212 2000-03-24  Andreas Jaeger  <aj@suse.de>
10213
10214         * Makefile (postclean): Added soversions.i.
10215
10216 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10217
10218         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10219         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10220         and _FPU_IEEE.  Change _FPU_RESERVED.
10221
10222 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10223
10224         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10225
10226 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10227
10228         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10229         (gaih_inet): Remove unused duplicate variable.
10230
10231         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10232         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10233         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10234         only flavors supported by this function anyway.
10235
10236 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10237
10238         * stdlib/strfmon.c: Corrected problems with missing signs and
10239         missing or extra spaces; allow for sign strings longer than
10240         one character; add padding to ensure positive and negative
10241         formats are aligned when a left precision is used.
10242
10243 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10244
10245         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10246         Patch by John Mizel <John.Mizel@msdw.com>.
10247
10248 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10249
10250         * manual/install.texi: Remove references to crypt add-on.
10251
10252 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10253
10254         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10255         section while taking the _hurd_rlimit_lock.
10256         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10257
10258 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10259
10260         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10261         using $(LN_S).
10262
10263         * sysdeps/mach/hurd/if_index.c: New file.
10264
10265         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10266         * sysdeps/gnu/net/if.h: here.
10267         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10268         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10269         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10270         functions and `struct if_nameindex' type.
10271         * socket/Makefile (headers): Add net/if.h here.
10272         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10273         * sysdeps/mach/hurd/Dist: Remove it here.
10274         * sysdeps/unix/sysv/linux/Dist: And here.
10275         * sysdeps/generic/if_index.c: Include <net/if.h>.
10276
10277 2000-03-24  Andreas Jaeger  <aj@suse.de>
10278
10279         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10280         access relocated entries in l_info.
10281         (elf_machine_got_rel): Likewise.
10282         (elf_machine_runtime_setup): Likewise.
10283         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10284         (elf_machine_runtime_setup): Likewise.
10285         (__dl_runtime_resolve): Likewise.
10286
10287 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10288
10289         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10290         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10291         according to RFC 2553.
10292         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10293         * inet/getnameinfo.c: Likewise.
10294         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10295
10296 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10297
10298         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10299         Remove no-op pointer increment.
10300
10301 2000-03-23  Andreas Jaeger  <aj@suse.de>
10302
10303         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10304         follow change for libio.h from 2000-03-10.
10305
10306 2000-03-23  Andreas Jaeger  <aj@suse.de>
10307
10308         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10309         change.
10310         * elf/dl-debug.c: Likewise.
10311         * elf/dl-deps.c: Likewise.
10312         * elf/dl-error.c: Likewise.
10313         * elf/dl-fini.c: Likewise.
10314         * elf/dl-init.c: Likewise.
10315         * elf/dl-load.c: Likewise.
10316         * elf/dl-lookup.c: Likewise.
10317         * elf/dl-minimal.c: Likewise.
10318         * elf/dl-object.c: Likewise.
10319         * elf/dl-open.c: Likewise.
10320         * elf/dl-preinit.c: Likewise.
10321         * elf/dl-profile.c: Likewise.
10322         * elf/dl-profstub.c: Likewise.
10323         * elf/dl-reloc.c: Likewise.
10324         * elf/dl-runtime.c: Likewise.
10325         * elf/dl-support.c: Likewise.
10326         * elf/dl-symbol.c: Likewise.
10327         * elf/dl-version.c: Likewise.
10328         * elf/rtld.c: Likewise.
10329         * elf/sprof.c: Likewise.
10330         * sysdeps/generic/dl-cache.c: Likewise.
10331         * sysdeps/generic/dl-origin.c: Likewise.
10332         * sysdeps/generic/dl-sysdep.c: Likewise.
10333         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10334         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10335         * sysdeps/generic/libc-start.c: Likewise.
10336         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10337         * sysdeps/powerpc/dl-machine.c: Likewise.
10338         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10339         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10340         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10341         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10342
10343         * elf/ldsodefs.h: Move file to ...
10344         * sysdeps/generic/ldsodefs.h: ... here.
10345
10346         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10347
10348         * sysdeps/mips/elf/ldsodefs.h: New file.
10349
10350         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10351         entries in l_info.
10352         (_dl_check_map_versions): Likewise.
10353         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10354         * elf/dl-load.c (_dl_init_paths): Likewise.
10355         (_dl_map_object): Likewise.
10356         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10357         (elf_get_dynamic_info): Likewise.
10358         * elf/do-lookup.h (FCT): Likewise.
10359         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10360         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10361         * elf/dl-addr.c (_dl_addr): Likewise.
10362         * elf/dl-runtime.c (profile_fixup): Likewise.
10363         (fixup): Likewise.
10364         * elf/dl-init.c (_dl_init_next): Likewise.
10365         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10366         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10367         (DISTINGUISH_LIB_VERSIONS): Likewise.
10368         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10369         (elf_machine_rel): Likewise.
10370
10371         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10372         for writable dynamic section.
10373
10374 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10375
10376         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10377         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10378
10379 2000-03-22  Andreas Jaeger  <aj@suse.de>
10380
10381         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10382         from latest Linux kernel.
10383
10384 2000-03-21  Andreas Jaeger  <aj@suse.de>
10385
10386         * Versions.def: Add version 2.1.4.
10387
10388 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10389
10390         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10391         * libio/oldiofopen.c: Likewise.
10392         * libio/oldiofclose.c: Likewise.
10393         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10394
10395 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10396
10397         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10398         indicating the first version set to obsolete the conditionalized code.
10399         (compat_symbol): New macro.
10400         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10401         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10402         integer values to the ABI_* macros for supported versions.
10403         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10404         compat_symbol macro.
10405
10406 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10407
10408         * nscd/connections.c (nscd_run): Pretty print.
10409         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10410
10411         * manual/charset.texi: Fix typos.  Rephrase.
10412         * manual/process.texi: Likewise.
10413         * manual/signal.texi: Likewise.
10414         Patches by Mike Coleman <mkc@kc.net>.
10415
10416         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10417         versions.
10418         * libio/iofdopen.c: Likewise.
10419         * libio/iofgetpos.c: Likewise.
10420         * libio/iofgetpos64.c: Likewise.
10421         * libio/iofopen.c: Likewise.
10422         * libio/iofsetpos.c: Likewise.
10423         * libio/iofsetpos64.c: Likewise.
10424         * libio/iopopen.c: Likewise.
10425         * libio/oldiofopen.c: Likewise.
10426         * libio/pclose.c: Likewise.
10427         * sysdeps/gnu/siglist.c: Likewise.
10428         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10429
10430         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10431         chance to expand VERSION_##lib##_##version.
10432
10433         * libio/fileops.c: Use new macros from shlib-compat.h to define
10434         versions.
10435         * libio/iofclose.c: Likewise.
10436         * libio/oldiofclose.c: Likewise.
10437         Patch by Roland McGrath <roland@frob.com>.
10438
10439 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10440
10441         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10442         Lay out struct sigcontext according to what really gets passed on
10443         the stack.
10444         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10445         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10446         (prgregset_t, prfpregset_t): Define to elf_* types.
10447         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10448         Define to correct value.
10449         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10450         sigcontext.
10451         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10452
10453 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10454
10455         * scripts/firstversions.awk: Allow multiple version sets in the
10456         "earliest version" specification, meaning that version sets in the
10457         gaps between listed versions should be folded into the earliest later
10458         version that is explicitly listed.
10459         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10460         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10461
10462 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10463
10464         * iconv/gconv_builtin.c: Include <endian.h>.
10465         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10466         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10467         according to current platform.
10468         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10469         __gconv_transform_internal_ucs2reverse, and
10470         __gconv_transform_internal_ucs4le.
10471         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10472         __gconv_transform_ucs2reverse_internal and
10473         __gconv_transform_internal_ucs2reverse.
10474         * iconvdata/Makefile (modules): Add UNICODE.
10475         (distribute): Add unicode.c.
10476         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10477         * iconvdata/unicode.c: New file.
10478
10479         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10480         determine byte order of input and convert accordingly.
10481
10482         * iconvdata/utf-16.c (gconv_init): Fix typo.
10483
10484 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10485
10486         * iconvdata/gconv-modules: Fix typo.
10487
10488         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10489         more messages.
10490
10491         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10492
10493 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10494
10495         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10496
10497 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10498
10499         * misc/Makefile (routines): Add mincore.
10500
10501 2000-03-20  Andreas Jaeger  <aj@suse.de>
10502
10503         * sysdeps/generic/mincore.c: New stub file.
10504
10505         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10506         from latest Linux kernel.
10507
10508 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10509
10510         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10511         _SC_GETPW_R_SIZE_MAX.
10512
10513 2000-03-20  Richard Henderson  <rth@cygnus.com>
10514
10515         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10516         in GLIBC_2.1.4.
10517
10518 2000-03-20  Richard Henderson  <rth@cygnus.com>
10519
10520         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10521         of arithmetic instructions.
10522
10523         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10524         with the fpcr.  Protect from INV exception.
10525         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10526         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10527         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10528
10529         * sysdeps/alpha/fpu/s_copysign.c: New.
10530         * sysdeps/alpha/fpu/s_copysignf.c: New.
10531         * sysdeps/alpha/fpu/s_fabs.c: New.
10532         * sysdeps/alpha/fpu/s_fabsf.c: New.
10533         * sysdeps/alpha/fpu/s_rint.c: New.
10534         * sysdeps/alpha/fpu/s_rintf.c: New.
10535
10536         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10537
10538         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10539         Kill sethae.
10540         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10541         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10542         Use physical addresses not KSEG addresses.
10543         (io_system): Add PYXIS.
10544         (io): Remove hae.reg, sys, hae_shift.
10545         (stb_mb, stw_mb, stl_mb, __sethae): New.
10546         (inline_outb, inline_outw, inline_outl): Don't set hae.
10547         (inline_inb, inline_inw, inline_inl): Likewise.
10548         (dense_sethae): New null function.
10549         (struct cpuinfo_data): New.
10550         (process_cpuinfo): Use local and stack variables, not static.
10551         Move readlink check here from init_iosys.
10552         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10553         (_iopl): Simplify.
10554         (_hae_shift): Calculate it here.
10555         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10556         add pciconfig_iobase.
10557
10558 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10559
10560         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10561         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10562
10563         * scripts/versions.awk: Fixed version renaming code to distinguish
10564         libraries properly.
10565
10566 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10567
10568         * include/stdlib.h: Add prototype for __cxa_atexit.
10569
10570         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10571         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10572
10573 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10574
10575         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10576         existing rtld-installed-name.
10577         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10578         replace existing rtld-installed-name using $(symbolic-link-prog).
10579
10580 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10581
10582         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10583         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10584         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10585         but not the former.
10586
10587 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10588
10589         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10590         glob64.  Since there is no glob64 in the LFS proposal applications
10591         can assume that glob handles LFS situations.  glob64 is only needed
10592         if alternative filesystem functions are used.
10593
10594 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10595
10596         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10597         when GLOB_DOOFFS is set; correct handling of patterns
10598         containing escaped wildcards (and no unescaped ones);
10599         GLOB_ERR flag was being ignored in some situations.
10600
10601         * posix/globtest.c, posix/globtest.sh: Updated to include
10602         tests for the problems fixed by the above changes to glob.c.
10603
10604         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10605
10606 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10607
10608         * Makeconfig (soversion.i): Use only first match for each lib.
10609
10610         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10611
10612         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10613         rather than $(sysd-dirs-done) to protect these rules.
10614
10615         * Makerules (version-renames.def): Target removed.
10616         (Versions.all): Depend on soversions.i directly and parse it.
10617
10618         * Makeconfig (soversions.i): New target, input-reading parts of
10619         soversions.mk generation moved here; result is a canonicalized
10620         list "LIB VERSION [SET]" for this configuration.
10621         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10622         * Makerules (version-renames.def): New target, generated from
10623         soversions.i with contents that was in $(map-firstversions).
10624         (Versions.all): Don't depend on soversions.mk, depend on
10625         version-renames.def instead; just cat it into the input.
10626
10627         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10628         for $(map-firstversions), which better handles it being empty.
10629
10630         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10631         supported version for libc 0.2.90.libio to GLIBC_2.2.
10632
10633         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10634         and use it to emit new variable `map-firstversions'.
10635         * scripts/firstversions.awk: New file.
10636         * Makerules (Versions.all): Use scripts/firstversions.awk and
10637         the $(map-firstversions) value to generate a modified versions list
10638         that includes renames in "A = B" syntax for each version set earlier
10639         than the "earliest symbol version" named in shlib-versions.
10640         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10641         rename version set A to B in the output to the intermediate file.
10642         * scripts/abi-versions.awk: New file.
10643         * Makerules (abi-versions.h): New target, generated by that script.
10644         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10645         * include/shlib-compat.h: New file, uses that generated header.
10646
10647 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10648
10649         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10650         after stripping # comments, and then run it through cpp.
10651         This allows things like "%ifdef FOO" based on config.h settings.
10652         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10653
10654         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10655         and other errors that indicate a pseudo-receive happened, grok through
10656         the message buffer for port rights that need references fixed up.
10657
10658 2000-03-16  Andreas Jaeger  <aj@suse.de>
10659
10660         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10661
10662         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10663
10664         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10665         from latest Linux kernel.
10666         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10667
10668         * misc/sys/mman.h: Add prototype for mincore.
10669
10670 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10671
10672         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10673         entry for GLIBC_2.0 version of setrlimit.
10674         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10675
10676 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10677
10678         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10679         * nis/nss_compat/compat-initgroups.c: Likewise.
10680         * nis/nss_nis/nis-initgroups.c: Likewise.
10681         * nis/nss_nis/nis-netgrp.c: Likewise.
10682         * nis/nss_nis/nis-proto.c: Likewise.
10683         * nis/nss_nis/nis-rpc.c: Likewise.
10684         * nis/nss_nis/nis-service.c: Likewise.
10685         * nis/ypclnt.c: Likewise.
10686
10687 2000-03-16  Andreas Jaeger  <aj@suse.de>
10688
10689         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10690         doesn't exist, correct checks.  Fixes PR libc/1649.
10691
10692 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10693
10694         * nscd/hstcache.c: Restore correct UID.
10695         * nscd/pwdcache.c: Likewise.
10696         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10697
10698 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10699
10700         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10701         macros for register names, in line with 2000-03-14 linux change.
10702
10703         * sysdeps/mach/sched_yield.c: New file.
10704
10705 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10706
10707         * sysdeps/generic/lockfile.c: Include <stdio.h>
10708         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10709         case <libio.h> defined them.
10710         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10711         from __internal_*.
10712         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10713         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10714
10715         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10716         for more pleasing parse error.
10717
10718 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10719
10720         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10721         memory for eras.
10722         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10723
10724         * elf/Makefile: Add rules to compile and run constload1 test.
10725         * elf/constload1.c: New file.
10726         * elf/constload2.c: New file.
10727         * elf/constload3.c: New file.
10728
10729 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10730
10731         * sysdeps/posix/open64.c: Make __open64 weak alias.
10732         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10733         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10734         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10735         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10736         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10737         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10738         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10739         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10740         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10741         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10742
10743 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10744
10745         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10746         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10747
10748 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10749
10750         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10751         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10752
10753 2000-03-08  Andreas Jaeger  <aj@suse.de>
10754
10755         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10756
10757 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10758
10759         * timezone/africa: Update from tzdata2000d.
10760         * timezone/asia: Likewise.
10761         * timezone/australasia: Likewise.
10762         * timezone/europe: Likewise.
10763         * timezone/northamerica: Likewise.
10764         * timezone/southamerica: Likewise.
10765
10766         * po/fr.po: Update from translation team.
10767         * po/de.po: Likewise.
10768
10769         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10770         last parameter.  Move code to add map to global scope from here...
10771         * elf/dl-open.c (dl_open_worker): ...here.
10772         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10773         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10774
10775         * locale/programs/ld-collate.c (collate_read): Fix warning.
10776
10777         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10778         values and macros for register names.
10779
10780         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10781         returned by seek cookie function is -1.
10782
10783 2000-03-14  Andreas Jaeger  <aj@suse.de>
10784
10785         * locale/localeconv.c (localeconv): Fix typo.
10786         Reported by Andre Charbonneau <andrec@corel.com>.
10787
10788 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10789
10790         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10791         since modules depend on it counting the number of times the conversion
10792         function got called.
10793
10794         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10795
10796         * iconv/gconv.h: Pretty print.
10797
10798 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10799
10800         * posix/wordexp-test.c: Correct one of the tests added in the last
10801         change.  Really get the root passwd entry to check again ~root.
10802
10803 2000-03-10  Andreas Jaeger  <aj@suse.de>
10804
10805         * manual/filesys.texi (Working Directory): Fix last patch.
10806         Patch by Martin Buchholz  <martin@xemacs.org>.
10807
10808 2000-03-10  Andreas Jaeger  <aj@suse.de>
10809
10810         * manual/creature.texi (Feature Test Macros): Fix language.
10811
10812 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10813
10814         * mach/devstream.c (devstream_write, devstream_read): New functions.
10815         (input, output): Functions removed.
10816         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10817         using only the vanilla fopencookie interface.
10818
10819         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10820         as macro for __io_functions.
10821         (funcsio): Use cookie_io_functions_t type name.
10822         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10823
10824         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10825         fopencookie.
10826         (fopencookie): Use it.
10827         * libio/libio.h: Declare _IO_cookie_init.
10828         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10829         _IO_cookie_init.
10830
10831         * libio/libio.h (__io_seek_fn): Fix second argument type
10832         to be a pointer, in line with the manual and the old stdio.
10833         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10834
10835         * sysdeps/generic/bits/stdio-lock.h: New file.
10836         This is a stub with #error, but that's better than no file at all.
10837
10838 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10839
10840         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10841         * manual/message.texi (Using gettextized software): Doc Fixes.
10842         * manual/message.texi (Message Translation): Doc Fixes.
10843         * manual/filesys.texi (File Size): Doc Fixes.
10844         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10845         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10846         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10847         * manual/install.texi: Doc Fixes.
10848         * manual/search.texi (Hash Search Function): Doc Fixes.
10849         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10850         * FAQ.in: Doc Fixes.
10851         * config.h.in: Doc Fixes.
10852         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10853         Doc Fixes.  `allows to' is not correct English.
10854
10855         * elf/rtld.c: Doc fixes.
10856         * manual/creature.texi (Feature Test Macros): Doc fixes.
10857         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10858
10859         * manual/filesys.texi (Working Directory): Check for ERANGE to
10860         avoid infloop.
10861
10862 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10863
10864         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10865         conditions so as not to clobber the final '\0' when there is only one
10866         element in the vector.
10867
10868 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10869
10870         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10871         broken by 2000-02-27 change.
10872
10873         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10874
10875 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10876
10877         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10878         argument type, for 2000-02-22 change in signal/signal.h declaration.
10879
10880 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10881
10882         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10883         to getdirentries64 (no __), since the Linux implementation
10884         has no __ name, and there is no declaration for the __ name.
10885
10886         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10887
10888         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10889         sed regexp so as not to break directory names including /../ within.
10890
10891         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10892         The sysdeps/generic file is right for BSD.  This file was in fact the
10893         Hurd file, but the only difference was the WNOREAP flag that was never
10894         actually implemented or used anywhere.
10895
10896         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10897         since AC_PATH_PROG already does it for us.
10898         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10899         correctness and sh portability.  I replaced the broken check
10900         with a more sensible implementation of the apparently intended
10901         semantics, which might still be questionable.  Using expr causes
10902         a non-numeric value for `perl -V:apiversion` to be accepted,
10903         refusing to use only a perl that reports a number less than 5;
10904         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10905         * configure: Regenerated.
10906
10907 2000-03-08  Andreas Jaeger  <aj@suse.de>
10908
10909         * manual/crypt.texi: Fix paths.
10910
10911 2000-03-07  Andreas Jaeger  <aj@suse.de>
10912
10913         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10914         were swapped.
10915         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10916         libc/1636.
10917
10918 2000-03-06  Andreas Jaeger  <aj@suse.de>
10919
10920         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10921         in __sgn1l, otherwise g++ fails to parse this.
10922         Reported by Sean Chen <sean.chen@turbolinux.com>.
10923
10924 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10925
10926         * configure.in: Compute sizeof-long-double.
10927         * configure: Regenerated.
10928         * config.make.in: Make sizeof-long-double available to sub-makes.
10929
10930 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10931
10932         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10933         call.
10934
10935 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10936
10937         * Makeconfig (rpath-dirs): Add crypt.
10938         (all-subdirs): Remove md5crypt.
10939         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10940         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10941         * sysdeps/generic/crypt-entry.c: Delete.
10942         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10943         * sysdeps/generic/crypt.h: Delete.
10944         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10945         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10946         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10947         * sysdeps/generic/des_impl.c: Delete.
10948         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10949         * crypt/sysdeps: Delete.
10950         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10951         * md5-crypt/Versions: Move to crypt/.
10952         * md5-crypt/md5-crypt.c: Move to crypt/.
10953         * md5-crypt/md5.c: Move to crypt/.
10954         * md5-crypt/md5c-test.c: Move to crypt/.
10955         * md5-crypt/md5test.c: Move to crypt/.
10956         * md5-crypt: Delete.
10957         * crypt/Makefile: Adjust for new structure.
10958
10959 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10960
10961         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10962         define to 1 if not defined.
10963
10964 2000-03-03  Andreas Jaeger  <aj@suse.de>
10965
10966         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10967
10968 2000-03-03  Andreas Jaeger  <aj@suse.de>
10969
10970         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10971         cases.
10972         (xdr_int64_t): Correctly handle lower half.
10973         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10974
10975 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10976
10977         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10978         call.
10979
10980 2000-03-02  Andreas Jaeger  <aj@suse.de>
10981
10982         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10983         2.3.43.
10984
10985 2000-03-02  Andreas Jaeger  <aj@suse.de>
10986
10987         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10988
10989 2000-03-01  Andreas Jaeger  <aj@suse.de>
10990
10991         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10992         (tests): Added tst-getdate.
10993
10994         * time/tst-getdate.c: New file.
10995
10996         * time/datemsk: New file, needed for tst-getdate.
10997
10998 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10999
11000         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
11001
11002 2000-02-17  H.J. Lu  <hjl@gnu.org>
11003
11004         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
11005
11006         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
11007         available.
11008         (svcudp_recv): Set up message with the new "xp_pad" field for
11009         IP_PKTINFO.
11010         (svcudp_reply): Support IP_PKTINFO if available.
11011
11012 2000-03-01  Andreas Jaeger  <aj@suse.de>
11013
11014         * time/getdate.c (check_mday): Fix check for february.
11015         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
11016         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
11017
11018 2000-03-02  Andreas Jaeger  <aj@suse.de>
11019
11020         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
11021         g++ fails to parse this.
11022         Reported by Sean Chen <sean.chen@turbolinux.com>.
11023
11024 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11025
11026         * io/creat.c: Moved to...
11027         * sysdeps/generic/creat.c: ...here.
11028         * io/creat64.c: Moved to...
11029         * sysdeps/generic/creat64.c: ...here.
11030         * io/lockf.c: Moved to...
11031         * sysdeps/generic/lockf.c: ...here.
11032
11033         * crypt/crypt.texi: Moved to...
11034         * manual/crypt.texi: ...here.
11035         * crypt/examples/genpass.c: Moved to...
11036         * manual/examples/genpass.c: ...here.
11037         * crypt/examples/mygenpass.c: Moved to...
11038         * manual/examples/mygenpass.c: ...here.
11039         * crypt/examples/testpass.c: Moved to...
11040         * manual/examples/testpass.c: ...here.
11041
11042         * manual/Makefile (chapters): Add crypt.
11043         * manual/conf.texi: Add usual header for not-last chapter.
11044         * manual/crypt.texi: Add special header for last chapter.
11045
11046 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11047
11048         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
11049         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
11050         complain if there is no crypt add-on.
11051         * crypt/configure: Removed.
11052
11053         * crypt/crypt.texi: Update documentation of US export restrictions
11054         to match the 14 Jan 2000 regulations.
11055
11056 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
11057
11058         * crypt: New subdirectory, merged in from the crypt add-on.
11059
11060 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
11061
11062         * include/unistd.h: Add __rmdir and __mkdir prototypes.
11063
11064
11065 See ChangeLog.10 for earlier changes.