0af077bd8df1d0e1cc3d6993b9e5ba54a4d9e00c
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
2
3         * locale/programs/ld-collate.c (collate_read): Fix typo in handling
4         of decimal ellipsis.
5
6 2000-09-11  Bruno Haible <haible@clisp.cons.org>
7
8         * locale/programs/ld-collate.c (collate_read): Always initialize
9         error_section.next.
10
11 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
12
13         * locale/programs/ld-collate.c (collate_finish): Upper bound for
14         ruleidx is 128, not 256.
15
16 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
17
18         * locale/programs/ld-collate.c (collate_read): Correct check for
19         already inserted entries.
20
21 2000-09-10  Bruno Haible <haible@clisp.cons.org>
22
23         * iconv/skeleton.c (FUNCTION_NAME): Handle unaligned access in
24         second try as well.
25
26 2000-09-10  Bruno Haible <haible@clisp.cons.org>
27
28         * iconv/skeleton.c (FUNCTION_NAME): Optimize an `if' if
29         MAX_NEEDED_FROM > 1 && MAX_NEEDED_TO > 1.
30
31 2000-09-10  Bruno Haible <haible@clisp.cons.org>
32
33         * iconv/skeleton.c (gconv_init): Replace all uses of RESET_STATE with
34         SAVE_RESET_STATE.
35
36 2000-09-10  Bruno Haible  <haible@clisp.cons.org>
37
38         * iconvdata/utf-7.c: New file.
39         * iconvdata/gconv-modules (UTF-7): New module entries.
40         * iconvdata/Makefile (modules): Add UTF-7.
41         (distribute): Add utf-7.c.
42         * iconvdata/testdata/UTF-7: New file.
43         * iconvdata/testdata/UTF-7..UTF8: New file.
44         * iconvdata/TESTS (UTF-7): New entry.
45         * iconvdata/run-iconv-test.sh: Fix confusing output.
46
47 2000-09-11  Ulrich Drepper  <drepper@redhat.com>
48
49         * sysdeps/posix/tempname.c (__gen_tempname): Use __lxstat and __xstat.
50
51 2000-09-10  David S. Miller  <davem@redhat.com>
52
53         * sysdeps/sparc/sparc32/__longjmp.S (__longjmp): Correct %fp
54         frame pointer offset for non-fast path.
55
56 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
57
58         * locale/programs/3level.h (*_init): Initialize level1, level2,
59         and level3 as well.
60         (*_add): Remove a few unnecessary conditionals.
61
62 2000-09-05  Wolfram Gloger  <wg@malloc.de>
63
64         * malloc/thread-m.h [_LIBC]: Even if not linking with libpthread,
65         ensure usability of mutex as an `in use' flag.
66
67 2000-09-10  Ulrich Drepper  <drepper@redhat.com>
68
69         * shlib-versions: Simplify libm entries.  Correct a few Hurd entries.
70
71         * sysdeps/generic/initfini.c: Rewrite slightly to get rid of the
72         ugly GMON_WEAK_START hack.
73         Patch by Philip Blundell <philb@gnu.org>.
74
75         * sysdeps/i386/i486/bits/string.h: Pretty printing.
76
77 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
78
79         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
80         and PPC_ICBI asm for broken compilers.
81         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
82
83 2000-09-09  Andreas Jaeger  <aj@suse.de>
84
85         * manual/message.texi (Advanced gettext functions): Fix typo.
86
87         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
88         strncpy prototype.
89
90 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
91
92         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
93         warnings.
94         * sysdeps/ia64/memccpy.S: Likewise.
95         Patches by Jim Wilson <wilson@redhat.com>.
96
97         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
98         before trying to read /proc.
99         Patch by Matt Wilson <msw@redhat.com>.
100         * include/sys/utsname.h: Declare __uname.
101         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
102         * sysdeps/mach/hurd/uname.c: Likewise.
103         * sysdeps/unix/syscalls.list: Likewise.
104
105         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
106         unloading a bit.
107
108 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
109
110         * posix/getopt.c (_getopt_internal): When long_only is set always
111         recognize conflicts just like before.
112
113 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
114
115         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
116
117 2000-09-08  Greg McGary  <greg@mcgary.org>
118
119         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
120         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
121         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
122
123 2000-09-08  Andreas Jaeger  <aj@suse.de>
124
125         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
126
127         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
128
129         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
130         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
131         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
132
133 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
134
135         * iconvdata/tst-tables.sh: Enable EUC-KR test.
136
137         * elf/dl-load.c (lose): Decrement _nl_loaded.
138         (_dl_map_object_from_fd): Don't try to dlopen executables.
139
140         * iconvdata/tst-tables.sh: Actually return with an error if
141         something goes wrong.
142         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
143         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
144
145         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
146
147         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
148         * iconvdata/tst-table-from.c: Include <string.h>.
149         (try): Correct cast in iconv call.
150
151         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
152         too.
153         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
154         (sysdep_routines): Remove dl-start.
155         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
156
157         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
158
159         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
160         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
161
162 2000-09-06  Andreas Schwab  <schwab@suse.de>
163
164         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
165
166 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
167
168         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
169
170         * scripts/config.sub: Strip out -unknown for Linux targets.
171         Patch by Scott Bambrough <scottb@netwinder.org>.
172
173         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
174         add one more test.
175
176 2000-09-07  Andreas Jaeger  <aj@suse.de>
177
178         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
179
180         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
181         syscalls.
182
183         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
184
185         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
186         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
187
188         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
189
190         * stdlib/tst-bsearch.c (main): Add more test cases.
191
192         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
193         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
194         Reported by GOTO Masanori <gotom@debian.or.jp>.
195
196 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
197
198         * posix/Makefile (tests): Add tst-dir.
199         (tst-dir-ARGS): New variable.
200         * posix/tst-dir.c: New file.
201
202 2000-09-07  Andreas Jaeger  <aj@suse.de>
203
204         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
205         (SYS_fcntl64): New.
206
207         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
208
209 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
210
211         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
212         use the hack with tryopen_o_directory to determine at runtime
213         whether it works.
214         * sysdeps/unix/sysv/linux/opendir.c: New file.
215         * sysdeps/unix/sysv/linux/kernel-features.h: Define
216         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
217
218         * catgets/Depend: New file.  Add intl.
219         * catgets/Makefile (tests): Add tst-catgets.
220         (generated): Remove de.msg.
221         (generated-dirs): Add de.
222         Add dependency if tst-catgets output on de/libc.cat.
223         * catgets/tst-catgets.c: New file.
224
225         * po/ja.po: New file.
226         * po/el.po: Update from translation team.
227
228         * wcsmbs/Depend: New file.
229         * wcsmbs/Makefile (tests): Add tst-btowc.
230         (tst-btowc-ENV): Define.
231         * wcsmbs/tst-btowc.c: New file.
232
233         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
234         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
235
236         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
237
238         * stdlib/Makefile (tests): Add tst-bsearch.
239         * stdlib/tst-bsearch.c: New file.
240
241         * posix/getopt.c (_getopt_internal): Don't recognize an option
242         name as ambiguous if it's a prefix for more than one name but the
243         other struct option values are identical.
244
245         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
246         Don't depend on visual inspection of the output file to recognize
247         errors.
248         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
249
250 2000-09-06  Andreas Jaeger  <aj@suse.de>
251
252         * sysdeps/alpha/soft-fp/Dist: New file.
253         * sysdeps/i386/soft-fp/Dist: New file.
254         * sysdeps/mips/mips64/soft-fp/Dist: New file.
255         * sysdeps/mips/soft-fp/Dist: New file.
256         * sysdeps/powerpc/soft-fp/Dist: New file.
257         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
258         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
259
260         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
261         Use sysdep_routines instead of routines to fix make dist failure.
262         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
263         out code).
264         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
265
266         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
267         sysdep_headers instead of headers for make dist.
268
269         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
270         Likewise.
271
272 2000-09-06  Andreas Schwab  <schwab@suse.de>
273
274         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
275
276 2000-09-06  Andreas Jaeger  <aj@suse.de>
277
278         * soft-fp/Makefile (distribute): Remove ChangeLog.
279
280         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
281         sysdep_routines instead of routines for make dist.
282
283 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
284
285         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
286         compatibility check for old stream and call _IO_wide in doubt.
287         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
288         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
289         needed tst for such an old structure and don't do anything.
290         * libio/freopen.c: Remove declaration of _IO_stdin_used.
291
292 2000-09-06  Andreas Jaeger  <aj@suse.de>
293
294         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
295         sysdep-dl-routines and sysdep_routines instead of rtld-routines
296         and dl-routines.
297
298         * soft-fp/ChangeLog: Merged with this file.
299
300 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
301
302         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
303
304         * soft-fp/Makefile (distribute): Add the math functions, too.
305
306         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
307
308 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
309
310         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
311         as a statement.
312
313         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
314         * soft-fp/sysdeps/powerpc/q_*: New files.
315
316 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
317
318         * stdio-common/vfprintf.c (process_string_arg): Handle precision
319         in wide char case correctly.  Don't allocate too long temporary
320         strings with alloca.
321
322         * stdio-common/Makefile (tests): Add tst-swprintf.
323         (tst-swprintf-ENV): New variable.
324         * stdio-common/tst-swprintf.c: New file.
325
326 2000-09-05  Andreas Jaeger  <aj@suse.de>
327
328         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
329         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
330         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
331
332 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
333
334         * configure.in: Strip out "unknown" from configuration names.
335
336 2000-09-05  Andreas Jaeger  <aj@suse.de>
337
338         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
339
340         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
341         * sysdeps/sparc/sparc32/Implies: Likewise.
342         * sysdeps/powerpc/Implies: Likewise.
343
344         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
345         * libio/oldiofgetpos64.c: Likewise.
346
347         * soft-fp/Makefile (distribute): Remove configure.
348
349         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
350
351         * soft-fp/configure: Remove.
352
353         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
354         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
355
356         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
357         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
358
359         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
360         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
361
362         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
363         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
364
365         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
366         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
367
368         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
369         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
370
371         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
372         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
373
374         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
375         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
376
377         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
378         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
379
380         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
381         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
382
383         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
384         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
385
386         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
387         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
388
389         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
390         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
391
392         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
393         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
394
395         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
396         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
397
398         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
399         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
400
401         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
402         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
403
404         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
405         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
406
407         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
408         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
409
410         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
411         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
412
413         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
414         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
415
416         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
417         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
418
419         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
420         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
421
422         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
423         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
424
425         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
426         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
427
428         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
429         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
430
431         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
432         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
433
434         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
435         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
436
437         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
438         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
439
440         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
441         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
442
443         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
444         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
445
446         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
447         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
448
449         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
450         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
451
452         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
453         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
454
455         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
456         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
457
458         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
459         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
460
461         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
462         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
463
464         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
465         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
466
467         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
468         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
469
470         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
471         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
472
473         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
474         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
475
476         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
477         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
478
479         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
480         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
481
482         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
483         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
484
485         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
486         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
487
488         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
489         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
490
491         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
492         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
493
494         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
495         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
496
497         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
498         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
499
500         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
501         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
502
503         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
504         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
505
506         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
507         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
508
509         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
510         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
511
512         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
513         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
514
515         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
516         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
517
518         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
519         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
520
521         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
522         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
523
524         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
525         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
526
527         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
528         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
529
530         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
531         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
532
533         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
534         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
535
536         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
537         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
538
539         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
540         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
541
542         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
543         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
544
545         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
546         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
547
548         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
549         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
550
551         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
552         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
553
554         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
555         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
556
557         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
558         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
559
560         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
561         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
562
563         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
564         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
565
566         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
567         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
568
569         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
570         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
571
572         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
573         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
574
575         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
576         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
577
578         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
579         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
580
581         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
582         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
583
584         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
585         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
586
587         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
588         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
589
590         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
591         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
592
593         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
594         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
595
596         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
597         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
598
599         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
600         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
601
602         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
603         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
604
605         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
606         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
607
608         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
609         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
610
611         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
612         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
613
614         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
615         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
616
617         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
618         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
619
620         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
621         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
622
623         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
624         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
625
626         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
627         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
628
629         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
630         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
631
632         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
633         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
634
635         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
636         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
637
638         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
639         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
640
641         * soft-fp/sysdeps/powerpc/Versions: Move from here...
642         * sysdeps/powerpc/soft-fp/Versions: ... to here.
643
644         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
645         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
646
647         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
648         change symbol version.
649         * libio/oldiofgetpos64.c: Likewise.
650         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
651
652         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
653         typo.
654         Reported by dyky@kondara.org, closes PR libc/1886.
655
656         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
657         libc/1880.
658
659 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
660
661         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
662         script when ^C is hit.
663
664         * locale/programs/localedef.c (construct_output_path): Correct
665         computation of endp after asprintf.
666         * locale/programs/locfile.c (write_locale_data): Don't add extra
667         slash in filename.
668
669 2000-09-05  Andreas Jaeger  <aj@suse.de>
670
671         * scripts/config.guess: New upstream version.
672         * scripts/config.sub: Likewise.
673         * manual/texinfo.tex: Likewise.
674
675 2000-09-04  Andreas Schwab  <schwab@suse.de>
676
677         * elf/Makefile (all-dl-routines): New variable.
678         (elide-routines.os): Use it instead of $(dl-routines).
679         (all-rtld-routines): New variable.
680         (extra-objs): Use it instead of $(rtld-routines).
681         ($(objpfx)dl-allobjs.os): Likewise.
682         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
683         sysdep-dl-routines and sysdep_routines instead of rtld-routines
684         and dl-routines.
685
686 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
687
688         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
689         Set fname to NULL if the module wasn't found.
690
691 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
692
693         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
694         true if trans->name already ends in ".so".
695
696 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
697
698         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
699         void.
700         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
701         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
702         (__gconv_release_shlib): Change return type to void.
703         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
704         step->__counter here.
705         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
706         if the reference is zero.
707         (release_step): New function.
708         (gen_steps): Always initialize the __counter to 1. Use release_step.
709         Don't call the destructor on the step whose initializer failed.
710         (increment_counter): Use release_step. Don't normally run destructors
711         here.
712         (__gconv_close_transform): Use release_step.
713
714 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
715
716         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
717         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
718
719 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
720
721         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
722         If the first byte is 0x8E, don't ask for 4 bytes until it has been
723         verified that the second byte is valid. Leave it to cns11643_to_ucs4
724         to check for incomplete input.
725         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
726         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
727         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
728         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
729         0x9f9d..0x9fa5.
730         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
731         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
732         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
733         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
734         upto index 0x0052.
735
736 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
737
738         * iconv/gconv_db.c (find_derivation): Always use the least-cost
739         solution.
740
741 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
742
743         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
744         are invalid.
745
746 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
747
748         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
749         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
750         U+007E.
751
752 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
753
754         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
755
756 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
757
758         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
759
760 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
761
762         * iconvdata/tst-tables.sh: New file.
763         * iconvdata/tst-table.sh: New file.
764         * iconvdata/tst-table-from.c: New file.
765         * iconvdata/tst-table-to.c: New file.
766         * iconvdata/tst-table-charmap.sh: New file.
767         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
768         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
769         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
770         ISIRI-3342.irreversible, SJIS.irreversible.
771         (tests): Add dependency on tst-tables.out.
772         (tst-tables.out, tst-tables-clean): New rules.
773         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
774         * iconvdata/ISIRI-3342.irreversible: New file.
775         * iconvdata/EUC-JP.irreversible: New file.
776         * iconvdata/SJIS.irreversible: New file.
777
778 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
779
780         * manual/locale.texi (General Numeric): Update description of
781         representation of the grouping information in the locale data.
782         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
783
784 2000-09-04  Andreas Jaeger  <aj@suse.de>
785
786         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
787         * iconv/iconv_prog.c (options): Fix typo.
788         Reported by dyky@kondara.org, closes PR libc/1885.
789
790 2000-09-04  Andreas Jaeger  <aj@suse.de>
791
792         * sysdeps/generic/fegetenv.c: It's __fegetenv.
793         Reported by Rob Levin <lilo@transvirtual.com>.
794
795 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
796
797         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
798         to the typedefs of __timezone_ptr_t.
799         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
800
801 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
802
803         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
804         the loop.
805
806 2000-09-01  H.J. Lu  <hjl@gnu.org>
807
808         * Makeconfig (built-program-cmd): Don't use the dynamic linker
809         to run a binary if it is in $(tests-static).
810
811         * Rules (binaries-static): Add $(tests-static).
812
813 2000-09-02  Andreas Jaeger  <aj@suse.de>
814
815         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
816
817         * libio/fmemopen.c (fmemopen_close): Revert one part of last
818         patch.
819
820 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
821
822         * iconvdata/big5hkscs.c: Regenerated from charmap.
823         * iconvdata/testdata/BIG5HKSCS: Regenerated.
824         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
825
826         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
827         statement.  General cleanup.
828
829 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
830
831         * wctype/wcfuncs.c (iswblank): New function.
832         * wctype/wcfuncs_l.c (__iswblank_l): New function.
833         * wctype/wcextra.c: Remove file.
834         * wctype/wcextra_l.c: Remove file.
835         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
836
837 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
838
839         * locale/programs/ld-collate.c (collate_output): Remove redundant
840         assert call.
841         * string/strcoll.c: Likewise.
842         * string/strxfrm.c: Include assert.h.  Add assert calls like in
843         string/strcoll.c.
844
845 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
846
847         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
848         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
849         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
850         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
851         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
852         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
853         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
854         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
855         _NL_CTYPE_GAP5/6 respectively.
856
857         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
858         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
859         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
860         Don't initialize __ctype_names and __ctype_width.
861         * wctype/cname-lookup.h: Remove file.
862         * wctype/Makefile (distribute): Remove cname-lookup.h.
863         * wctype/wchar-lookup.h: Include stdint.h.
864         * wctype/wctype.c (__wctype): Assume new locale format.
865         * wctype/wctype_l.c (__wctype_l): Likewise.
866         * wctype/iswctype.c: Don't include cname-lookup.h.
867         (__iswctype): Assume new locale format.
868         * wctype/iswctype_l.c: Don't include cname-lookup.h.
869         (__iswctype_l): Assume new locale format.
870         * wctype/wctrans.c: Don't include ctype.h.
871         (wctrans): Assume new locale format.
872         * wctype/wctrans_l.c (__wctrans_l): Likewise.
873         * wctype/towctrans.c: Don't include cname-lookup.h.
874         (__towctrans): Assume new locale format.
875         * wctype/towctrans_l.c: Don't include cname-lookup.h.
876         (__towctrans_l): Assume new locale format.
877         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
878         localeinfo.h instead.
879         (__NO_WCTYPE): Remove unused macro.
880         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
881         declarations.
882         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
883         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
884         (towlower, towupper): Likewise.
885         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
886         localeinfo.h instead.
887         (__NO_WCTYPE): Remove unused macro.
888         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
889         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
890         __iswxdigit_l): Assume new locale format.
891         (__towlower_l, __towupper_l): Likewise.
892         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
893         (__ctype32_b): Remove declaration.
894         (internal_wcwidth): Assume new locale format.
895         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
896         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
897         to map32_b, rename width_3level to width.
898         (ctype_output): Always create new locale format. Don't emit
899         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
900         (allocate_arrays): Always create new locale format.
901
902         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
903         * locale/weightwc.h (findidx): Assume new locale format.
904         * string/strcoll.c (wcscoll): Remove local variables size, layers,
905         names.
906         * string/strxfrm.c (wcsxfrm): Likewise.
907         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
908         local variable collseq to 'const char *'.
909         (SUFFIX): Don't use, don't undefine.
910         * posix/fnmatch.c: Remove SUFFIX definition.
911         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
912         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
913         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
914         (collate_finish): Always create new locale format. Remove local
915         variables min_total, act_size.
916         (collate_output): Always create new locale format. Remove local
917         variables table_size, names, tablewc. Rename tablewc_3level to
918         tablewc.
919
920 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
921
922         * locale/programs/ld-collate.c (obstack_int32_grow,
923         obstack_int32_grow_fast): New inline functions.
924         (output_weightwc, collate_output): Use them where possible.
925
926 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
927
928         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
929         patch (_mode -> _flags).
930
931         * libio/Makefile (headers): Add stdio_ext.h.
932         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
933         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
934         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
935         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
936         __fsetlocking, and _flushlbf.
937         * libio/__fbufsize.c: New file.
938         * libio/__flbf.c: New file.
939         * libio/__fpending.c: New file.
940         * libio/__fpurge.c: New file.
941         * libio/__freadable.c: New file.
942         * libio/__freading.c: New file.
943         * libio/__fsetlocking.c: New file.
944         * libio/__fwritable.c: New file.
945         * libio/__fwriting.c: New file.
946         * libio/stdio_ext.h: New file.
947         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
948         * libio/libio.h (_IO_USER_LOCK): Define.
949         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
950         test _IO_USER_LOCK flag first.
951
952         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
953         malloc fails.
954
955 2000-09-01  Andreas Jaeger  <aj@suse.de>
956
957         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
958
959         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
960
961 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
962
963         * math/Makefile (tests): Add tst-defintions.
964         * math/tst-definitions.c: New file.
965
966         * stdlib/Makefile (headers): Add bits/wchar.h.
967         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
968         * sysdeps/generic/bits/wchar.h: New file.
969         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
970         file to define WCHAR_MIN and WCHAR_MAX.
971         Change UINT*8_MAX and UIN*16_MAX value to type int.
972         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
973         file to define WCHAR_MIN and WCHAR_MAX.
974         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
975         int values.
976         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
977         * sysdeps/generic/bits/mathdef.h: Likewise.
978         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
979         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
980         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
981         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
982         * locale/locale.h (struct lconv): Add __ prefix to the new members
983         if not C99.
984         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
985         imaxdiv optimizations.
986         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
987         * sysdeps/wordsize-64/ldiv.c: Likewise.
988         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
989         const fenv_t*.
990         * sysdeps/generic/bits/fenv.h: Likewise.
991         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
992         * sysdeps/ia64/bits/fenv.h: Likewise.
993         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
994         * sysdeps/mips/bits/fenv.h: Likewise.
995         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
996         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
997         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
998
999         * inet/rcmd.c: Use *stat64 instead of *stat internally.
1000         * inet/ruserpass.c: Likewise.
1001         * catgets/open_catalog.c: Likewise.
1002         * intl/loadmsgcat.c: Likewise.
1003         * io/getdirname.c: Likewise.
1004         * locale/loadlocale.c: Likewise.
1005         * misc/getusershell.c: Likewise.
1006         * stdlib/canonicalize.c: Likewise.
1007         * sysdeps/posix/euidaccess.c: Likewise.
1008         * sysdeps/posix/isfdtype.c: Likewise.
1009         * sysdeps/posix/posix_fallocate.c: Likewise.
1010         * sysdeps/posix/tempname.c: Likewise.
1011         * sysdeps/unix/grantpt.c: Likewise.
1012         * sysdeps/unix/opendir.c: Likewise.
1013         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
1014         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
1015         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1016         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
1017         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1018         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1019         * sysvipc/ftok.c: Likewise.
1020         * time/getdate.c: Likewise.
1021
1022         * time/getdate.c: Add extra access test.
1023
1024 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
1025
1026         * version.h (VERSION): Bump to 2.1.93.
1027
1028         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
1029         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
1030
1031         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
1032         Make this a new rule depending on tst-gettext.out and run mtrace.
1033         * intl/tst-gettext.c: Call mtrace.
1034         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
1035
1036         * elf/dl-reloc.c: Add a few more __builtin_expect.
1037
1038         * configure.in: Remove --with-gettext option.
1039
1040         * intl/dcigettext.c (free_mem): Correct freeing of
1041         _nl_domain_bindings list.
1042
1043         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
1044         allocated memory.
1045
1046         * intl/locale.alias: Add aliases for bokmal and nynorsk.
1047
1048         * locale/iso-639.def: Fix 639-1 code for Bokmal.
1049
1050         * stdio-common/itoa-digits.c: Move upper digits to...
1051         * stdio-common/itoa-udigits.c: ...here.  New file.
1052         * stdio-common/Makefile (routines): Add itoa-udigits.
1053
1054         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
1055         relocate ld.so don't add supprt for relocations which should not
1056         appear in ld.so.
1057
1058         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
1059         __secure_getenv.  Instead test __libc_enable_secure once.
1060
1061         * io/pwd.c (main): Provide a good example, use *_unlocked function.
1062
1063 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1064
1065         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
1066         whether the new record should be freed if it's a duplicate.
1067         (add_module): Adjust insert_module call.
1068         (__gconv_read_conf): Likewise.
1069         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
1070         mtrace-tst-loading.
1071         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
1072
1073         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
1074         _dl_all_init_dirs.
1075         * include/link.h (struct r_search_path_struct): New.
1076         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1077         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1078         _dl_all_init_dirs.
1079         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1080         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1081         added at startup time.
1082         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1083         contains element to remember fact that we can free memory.
1084         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1085         (_dl_init_all_dirs): New variable.
1086         (fillin_rpath): Save one malloc call.
1087         (decompose_rpath): Change interface.  New first parameter points to
1088         r_search_path_struct.
1089         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1090         deletable.  Set _dl_init_all_paths value.
1091         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1092         parameter replaced with r_search_path_struct *.  Information about
1093         freeing now contained in r_search_path_struct.
1094         (_dl_map_object): Adjust for above changes.
1095
1096         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1097
1098         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1099         when adding new entries.
1100
1101         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1102         since the object being loaded can be unloaded.
1103
1104         * iconvdata/Makefile (tests): Add tst-loading.
1105         * iconvdata/tst-loading.c: New file.
1106
1107 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1108
1109         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1110         When comparing a char with an int, always cast the char to
1111         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1112         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1113
1114 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * time/strftime.c (my_strftime): Add compatibility code for use
1117         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1118
1119         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1120         return 0 for success but always < 0 on failure.
1121
1122         * nss/getXXbyYY_r.c: Define result to *result before including
1123         digits_dots.c.
1124
1125 2000-08-30  Andreas Jaeger  <aj@suse.de>
1126
1127         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1128
1129 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1130
1131         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1132         official file.
1133         * iconvdata/TESTS: Add BIG5HKSCS entry.
1134         * iconvdata/testdata/BIG5HKSCS: New file.
1135         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1136
1137         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1138         always true.
1139
1140         * libio/iogetline.c: Set mode before the loop in case n==0.
1141         * libio/iogetwline.c: Likewise.
1142
1143 2000-08-29  H.J. Lu  <hjl@gnu.org>
1144
1145         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1146         of fp->_mode < 0.
1147         (_IO_new_file_overflow): Likewise.
1148         * libio/genops.c (_IO_flush_all): Likewise.
1149         * libio/ioftell.c (_IO_ftell): Likewise.
1150
1151 2000-08-29  Akira Higuchi  <a@kondara.org>
1152
1153         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1154         and __end_fct fields of struct __gconv_step.
1155         * iconv/Makefile (tests): Add iconv-bug2.
1156         * iconv/iconv-bug2.c: New file.
1157
1158         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1159         instead of 'inptr - inend' to ksc5601_to_ucs4.
1160
1161         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1162
1163         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1164         character or shift sequence is found at the end of the input
1165         string, return__GCONV_INCOMPLETE_INPUT instead of
1166         __GCONV_EMPTY_INPUT.
1167         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1168         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1169
1170         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1171         __GCONV_ILLEGAL_INPUT for 8bit characters.
1172
1173 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1174
1175         * signal/signal.h (sigpause): Move __THROW before __asm__.
1176
1177         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1178         names don't match don't return.
1179         Patch by Olaf Kirch <okir@flash.lst.de>.
1180
1181 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1182
1183         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1184
1185 2000-08-27  H.J. Lu  <hjl@gnu.org>
1186
1187         * posix/Makefile (otherlibs): Add for building with static-nss
1188         for "make check".
1189
1190 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1191
1192         * libio/stdio.h: Add fmemopen prototype.
1193
1194 2000-08-25  Andreas Jaeger  <aj@suse.de>
1195
1196         * libio/Makefile (routines): Add fmemopen.
1197         (tests): Add test-fmemopen.
1198         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1199         * libio/test-fmemopen.c: New file.
1200         * libio/fmemopen.c: New file.
1201         Patches by Hanno Mueller <kontakt@hanno.de>.
1202
1203 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1204
1205         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1206         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1207
1208         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1209         to avoid crashing statically linked applications.
1210
1211 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1212
1213         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1214         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1215
1216         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1217         If the result is fits in the buffer, copy only as many bytes as needed.
1218
1219         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1220         buffer after copying numbuf into it.
1221         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1222
1223 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1224
1225         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1226         the result.  When string_len < len, don't clear the rest of the buffer.
1227
1228 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1229
1230         Support for new LC_COLLATE format.
1231         * locale/coll-lookup.h: New file.
1232         * locale/weightwc.h (findidx): When size == 0, call
1233         collidx_table_lookup.
1234         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1235         * wcsmbs/wcsxfrm.c: Likewise.
1236         * posix/fnmatch.c: Likewise.
1237         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1238         collseq_table_lookup.
1239         * locale/programs/3level.h: New file.
1240         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1241         by including "3level.h".
1242         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1243         collseq_table): New types, defined by including "3level.h".
1244         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1245         (encoding_mask, encoding_byte): Remove.
1246         (utf8_encode): Use simple shifts instead.
1247         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1248         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1249         (collate_output): New local variable tablewc_3level. When
1250         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1251         tablewc_3level instead of tablewc. Change format of TABLEWC and
1252         COLLSEQWC entries written to the file.
1253         * locale/C-collate.c (collseqwc): Change format.
1254         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1255         of COLLSEQWC.
1256         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1257
1258 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1259
1260         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1261         (locale_ctype_t): New charnames_idx field.
1262         (ctype_startup): Initialize charnames_idx field.
1263         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1264
1265 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1266
1267         * locale/C-ctype.c: Switch to new locale format.
1268         (_nl_C_LC_CTYPE_names): Remove array.
1269         (STRUCT_CTYPE_CLASS): New macro.
1270         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1271         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1272         New three-level tables.
1273         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1274         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1275         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1276         12 class tables and 2 map tables at the end.
1277         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1278         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1279         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1280         New declarations.
1281         (b): Remove trailing semicolon.
1282         (__ctype_names, __ctype_width): Don't initialize.
1283         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1284
1285 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1286
1287         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1288         is guaranteed to be allocated with the same malloc() and may be
1289         passed to free().
1290         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1291         been set to empty by an earlier open_path call, don't pass it again.
1292
1293 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1294
1295         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1296         we are not optimizing.
1297
1298         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1299         inclusion.
1300
1301         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1302         really match EOF.
1303         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1304
1305 2000-08-28  Andreas Jaeger  <aj@suse.de>
1306
1307         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1308
1309 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1310
1311         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1312         getpeername.  Use ISO C style function definition.
1313         (getpeername): Provide weak alias.
1314         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1315         setrlimit.  Use ISO C style function definition.
1316         (setrlimit): Provide weak alias.
1317
1318 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1319
1320         * shlib-versions: Add a rule for S/390 to the libm version list.
1321         * sysdeps/s390/Versions: New file.
1322         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1323         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1324         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1325         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1326         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1327         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1328         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1329         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1330         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1331         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1332         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1333         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1334         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1335         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1336         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1337         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1338         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1339         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1340
1341 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1342
1343         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1344         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1345
1346         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1347         * elf/dl-close.c (_dl_close): Print debug message if object is not
1348         unloaded.
1349         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1350         returning to caller.
1351
1352         * po/zh.po: Renamed to...
1353         * po/zh_TW.po: ...this.
1354
1355 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1356
1357         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1358
1359         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1360         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1361         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1362         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1363
1364 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1365
1366         * locale/programs/ld-collate.c (insert_weights): Also update
1367         backpointer of next element.
1368         (collate_read): Allow definition of new collation symbols in stage 2.
1369         Symbol after reorder-after can be UCS4 value.
1370         Allow reordering of collation symbols and elements.
1371         Do not only move reorder entry in new position.  Instead call
1372         insert_weight to do this and read the weights.
1373
1374         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1375
1376         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1377         to determine invalid locale name.
1378         * locale/findlocale.c (_nl_find_locale): Likewise.
1379
1380         * posix/annexc.c: Correct test for unavailable feature.
1381
1382         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1383         __inline.
1384
1385 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1386
1387         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1388         syscall.
1389
1390         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1391         (sysdep_routines): Add oldgetrlimit64.
1392
1393         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1394         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1395         (tests): Add unload, reldep, reldep2, and reldep3.
1396         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1397         and reldepmod4.
1398         Add rules to build and run unload, reldep, reldep2, and reldep3.
1399         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1400         Don't create relocation dependency if it is nonzero.
1401         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1402         can never happen here.
1403         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1404         Don't create relocation dependency if it is nonzero.
1405         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1406         stuff.  This can never happen here.
1407         * sysdeps/generic/ldsodefs.h: Change prototypes.
1408         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1409         _dl_lookup_up and _dl_lookup_versioned_symbol.
1410         (RESOLV): Likewise.
1411         * elf/dl-runtime.c (fixup): Likewise.
1412         (profile_fixup): Likewise.
1413         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1414         _dl_lookup_symbol.
1415         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1416         * elf/rtld.c (dl_main): Likewise.
1417         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1418         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1419         and pass down the caller map.
1420         (_dl_vsym): Likewise.
1421         * elf/reldep.c: New file.
1422         * elf/reldep2.c: New file.
1423         * elf/reldep3.c: New file.
1424         * elf/reldepmod1.c: New file.
1425         * elf/reldepmod2.c: New file.
1426         * elf/reldepmod3.c: New file.
1427         * elf/reldepmod4.c: New file.
1428         * elf/unload.c: New file.
1429         * elf/unloadmod.c: New file.
1430
1431         * elf/do-lookup.h: Remove unused undef_name parameter.
1432         * elf/dl-lookup.c: Adjust callers.
1433
1434 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1435
1436         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1437         irreversible in recursive call of conversion function to signal that
1438         no error handling is wanted.
1439         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1440         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1441         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1442         recursive error handling call, otherwise to &lirreversible.  Use it
1443         for calls to conversion functions.
1444         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1445         transliterating.
1446         (ucs4_internal_loop_unaligned): Likewise.
1447         (ucs4le_internal_loop): Likewise.
1448         (ucs4le_internal_loop_unaligned): Likewise.
1449
1450 2000-08-25  Greg McGary  <greg@mcgary.org>
1451
1452         * sysdeps/i386/memchr.S: Check high bound against chars
1453         actually scanned.
1454         * sysdeps/i386/memcmp.S: Likewise.
1455         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1456         account for pointers that lie one beyond end-of-buffer.
1457
1458 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1459
1460         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1461         * elf/nodelete.c (fini_ran): New global variable.
1462         (do_test): Before every dlclose call clear fini_ran and test
1463         afterwards that it is not set by the destructors.
1464         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1465         * elf/nodelmod2.c: Likewise.
1466         * elf/nodelmod4.c: Likewise.
1467
1468 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1469
1470         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1471         getrlimit to the list.
1472
1473 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1474
1475         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1476         long double format so use ldbl-96 instead of ldbl-128.
1477
1478 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1479
1480         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1481         even if bits 10 a 11 are non-zero.
1482         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1483
1484         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1485         included before building gnu/lib-names.h
1486         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1487
1488         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1489         marked DF_1_NODELETE.
1490
1491         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1492         since we call sigaction in the child.
1493
1494 2000-08-25  Andreas Jaeger  <aj@suse.de>
1495
1496         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1497         gconv-modules.
1498
1499 2000-08-25  Andreas Jaeger  <aj@suse.de>
1500
1501         * manual/arith.texi (Control Functions): Clarify possible
1502         arguments.  Closes PR libc/1856.
1503
1504 2000-08-24  H.J. Lu  <hjl@gnu.org>
1505
1506         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1507         * malloc/Makefile (tests): Likewise.
1508
1509 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1510
1511         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1512
1513 2000-08-24  Andreas Jaeger  <aj@suse.de>
1514
1515         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1516         only if LIBGD is available.
1517
1518 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1519
1520         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1521         problems with now restrict parameter types.
1522         (convaddr4to6): Likewise.
1523
1524 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1525
1526         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1527         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1528         * sysdeps/s390/fpu/fegetexcept.c: New file.
1529         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1530         FPC_VALID_MASK.
1531
1532 2000-08-24  Andreas Jaeger  <aj@suse.de>
1533
1534         * malloc/Makefile (extra-objs): Add memusagestat.o.
1535         (generated): Added memusage and memusagestat for make clean.
1536
1537         * libio/tst_putwc.c (do_test): Delete temporary file.
1538         Move inclusion of test-skeleton to front to have prototype for
1539         add_temp_file.
1540
1541         * posix/Makefile (generated): Add wordexp-tst.out.
1542
1543 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1544
1545         * resolv/res_hconf.c (free_mem): Remove not needed if.
1546
1547         * time/tzset.c (free_mem): New function.
1548         * string/strsignal.c (free_mem): New function.
1549         * inet/inet_ntoa.c (free_mem): New function.
1550         * sunrpc/clnt_perr.c (free_mem): New function.
1551
1552 2000-08-24  Andreas Jaeger  <aj@suse.de>
1553
1554         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1555         * sysdeps/unix/sysv/syscalls.list: Likewise.
1556
1557         * posix/unistd.h: Move internal prototypes from here ...
1558         * include/unistd.h: ... to here.
1559
1560         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1561
1562 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1563
1564         * grp/initgroups.c (initgroups): Deallocate groups array.
1565         Reported by jani.raiha@sonera.com [PR libc/1868].
1566
1567         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1568         * sysdeps/alpha/Dist: Likewise.
1569
1570 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1571
1572         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1573         destructor).  Reported by Solar Designer <solar@false.com>.
1574
1575         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1576         avoid adding double slashes.
1577
1578 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1579
1580         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1581         out of the __REDIRECT macro.
1582
1583 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1584
1585         * stdio-common/vfscanf.c: Add %F format support.
1586
1587         * locale/programs/ld-ctype.c (ctype_output): Make sure
1588         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1589         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1590         (ctype_read): Enable returning of wide character strings for reading
1591         transliteration information.
1592
1593 2000-08-23  Andreas Jaeger  <aj@suse.de>
1594
1595         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1596         Use static __inline instead of _EXTERN_INLINE.
1597
1598         * misc/sys/select.h: Move prototypes of __select from here ...
1599         * include/sys/select.h: ... to here.
1600
1601         * socket/sys/socket.h: Move prototypes of __send and __connect
1602         from here....
1603         * include/sys/socket.h: ... to here.
1604
1605         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1606         lr_error.
1607
1608 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1609
1610         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1611         __setrlimit as strong name. Takes only 2 arguments.
1612
1613         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1614         takes only 2 arguments.
1615
1616 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1617
1618         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1619
1620         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1621
1622 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1623
1624         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1625         default_missing character being specified, pick the first
1626         representable.
1627
1628 2000-08-23  Andreas Jaeger  <aj@suse.de>
1629
1630         * include/wchar.h: Add some pure attributes.
1631
1632         * time/time.h: Add const attribute for dysize.
1633
1634         * include/stdlib.h: Add malloc attribute to __posix memalign.
1635
1636         * stdlib/stdlib.h: Add some pure and malloc attributes.
1637         * wcsmbs/wchar.h: Likewise.
1638
1639         * dirent/dirent.h: Add some pure attributes.
1640         * include/dirent.h: Likewise.
1641
1642 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1643
1644         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1645         on 64bit arches.
1646
1647 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1648
1649         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1650         missing buffer size checks.
1651
1652 2000-08-23  Andreas Jaeger  <aj@suse.de>
1653
1654         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1655         strong name.
1656         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1657
1658         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1659         otherwise __LINUX_KERNEL_VERSION might not be defined.
1660         (MIN): Define if not already defined.
1661
1662 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1663
1664         * stdio-common/vfprintf.c: Handle %F format.
1665         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1666         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1667
1668         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1669
1670         * po/zh.po: New file.
1671
1672         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1673         enough room in target buffer.
1674         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1675         * iconvdata/bug-iconv1.c: New file.
1676         * iconvdata/Makefile (tests): Add bug-iconv1.
1677
1678         * locale/iso-4217.def: Update entry for Nicaragua.
1679
1680 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1681
1682         * hurd/hurdsig.c: Rearrange headers a bit.
1683         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1684         when cthreads is being used.
1685
1686 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1687
1688         * elf/Makefile (distribute): Add dl-osinfo.h.
1689         * sysdeps/generic/dl-osinfo.h: New file.
1690         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1691         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1692         if defined.
1693         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1694         only for !SHARED case.  Get the code from dl-osinfo.h.
1695
1696         * stdlib/random_r.c: Cleanups.
1697         * stdlib/tst-random.c: New file.
1698         * stdlib/Makefile (tests): Add tst-random.
1699         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1700
1701 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1702
1703         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1704         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1705         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1706         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1707
1708 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1709
1710         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1711         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1712         (__syscall__sysctl): Add.
1713
1714 2000-08-21  Andreas Jaeger  <aj@suse.de>
1715
1716         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1717         libc/1864).
1718         * stdlib/tst-strtoll.c: Likewise.
1719
1720 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1721
1722         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1723         correctly.
1724         (__initstate_r): Set errno on error.
1725         (__random_r): Likewise.
1726         (__setstate_r): Correct offset when computing
1727         new rptr and fptr.  Test for arg_state being NULL.
1728         Reported by Michael Fischer <fischer@cs.yale.edu>.
1729
1730         * posix/regex.h: Add macro definitions to allow compiling outside
1731         glibc.
1732
1733         * sysdeps/i370/Implies: Removed.
1734         * sysdeps/mvs/Implies: Removed.
1735
1736         * catgets/catgets.c (catopen): Filter out env_var values with / if
1737         necessary.
1738
1739         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1740         locale name after all getenvs.
1741
1742         * configure.in: Allow sed versions like 3.02.8.
1743         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1744
1745 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1746
1747         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1748
1749 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1750
1751         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1752         of gethostbyname2_r call.
1753
1754         * intl/locale.alias: Add aliases for Korean.
1755
1756 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1757
1758         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1759         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1760         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1761         * sysdeps/s390/fpu/fegetenv.c: New file.
1762         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1763         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1764         * sysdeps/s390/fpu/fenv_libc.h: New file.
1765         * sysdeps/s390/fpu/fesetenv.c: New file.
1766         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1767         * sysdeps/s390/fpu/feupdateenv.c: New file.
1768         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1769         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1770         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1771         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1772         * sysdeps/s390/fpu/ftestexcept.c: New file.
1773         * sysdeps/s390/fpu/libm-test-ulps: New file.
1774         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1775         * sysdeps/s390/initfini.c: New file.
1776         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1777         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1778         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1779         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1780         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1781         sys/procfs.h as proposed by Mark Kettenis.
1782         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1783
1784 2000-08-21  Andreas Jaeger  <aj@suse.de>
1785
1786         * include/poll.h: Include include/sys/poll.h to get __poll
1787         declaration.
1788
1789         * io/sys/poll.h: Move __poll declaration from here...
1790         * include/sys/poll.h: ...to here.
1791
1792         * include/sys/socket.h (__getpeername): Add declaration.
1793
1794         * include/wchar.h (__vswprintf): Add declaration.
1795
1796         * include/stdio.h (__flockfile): Add declaration.
1797         (__funlockfile): Likewise.
1798
1799 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1800
1801         * misc/sys/cdefs.h: Define __restrict_arr.
1802         * include/sys/time.h: Add restrict where required by AGd4.
1803         * inet/arpa/inet.h: Likewise.
1804         * io/sys/stat.h: Likewise.
1805         * io/sys/statvfs.h: Likewise.
1806         * misc/search.h: Likewise.
1807         * misc/sys/select.h: Likewise.
1808         * posix/glob.h: Likewise.
1809         * posix/regex.h: Likewise.
1810         * posix/spawn.h: Likewise.
1811         * posix/unistd.h: Likewise.
1812         * rt/aio.h: Likewise.
1813         * signal/signal.h: Likewise.
1814         * socket/sys/socket.h: Likewise.
1815         * stdlib/ucontext.h: Likewise.
1816         * streams/stropts.h: Likewise.
1817         * string/string.h: Likewise.
1818         * time/time.h: Likewise.
1819         * time/sys/time.h: Likewise.
1820
1821         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1822         and posix_spawnattr_setscheparam.
1823
1824         * libio/stdio.h: Make cuserid prototype again available for all
1825         XPG versions.
1826
1827         * argp/argp-help.c: Unify use of function aliases to make more compact
1828         PLT.
1829         * include/libintl.h: Likewise.
1830         * inet/rcmd.c: Likewise.
1831         * intl/dcigettext.c: Likewise.
1832         * libio/iofputws.c: Likewise.
1833         * libio/iofputws_u.c: Likewise.
1834         * libio/iogetwline.c: Likewise.
1835         * libio/swprintf.c: Likewise.
1836         * malloc/malloc.c: Likewise.
1837         * nss/digits_dots.c: Likewise.
1838         * posix/fnmatch.c: Likewise.
1839         * posix/spawn_faction_addclose.c: Likewise.
1840         * posix/spawn_faction_adddup2.c: Likewise.
1841         * posix/spawn_faction_addopen.c: Likewise.
1842         * posix/spawni.c: Likewise.
1843         * posix/wordexp.c: Likewise.
1844         * posix/spawni.c: Likewise.
1845         * resolv/res_hconf.c: Likewise.
1846         * resolv/res_init.c: Likewise.
1847         * shadow/lckpwdf.c: Likewise.
1848         * signal/sighold.c: Likewise.
1849         * signal/sigrelse.c: Likewise.
1850         * stdio-common/printf-parse.h: Likewise.
1851         * stdio-common/printf-prs.c: Likewise.
1852         * stdio-common/printf_fp.c: Likewise.
1853         * stdio-common/vfprintf.c: Likewise.
1854         * stdio-common/vfscanf.c: Likewise.
1855         * stdlib/rpmatch.c: Likewise.
1856         * sunrpc/create_xid.c: Likewise.
1857         * sunrpc/key_call.c: Likewise.
1858         * sysdeps/generic/setrlimit64.c: Likewise.
1859         * sysdeps/generic/utmp_file.c: Likewise.
1860         * sysdeps/generic/vlimit.c: Likewise.
1861         * sysdeps/posix/posix_fallocate.c: Likewise.
1862         * sysdeps/posix/posix_fallocate64.c: Likewise.
1863         * sysdeps/posix/sigpause.c: Likewise.
1864         * sysdeps/posix/sigset.c: Likewise.
1865         * sysdeps/unix/grantpt.c: Likewise.
1866         * sysdeps/unix/bsd/ualarm.c: Likewise.
1867         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1868         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1869         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1870         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1871         * time/strftime.c: Likewise.
1872         * wcsmbs/wcscoll.c: Likewise.
1873         * wcsmbs/wcsxfrm.c: Likewise.
1874
1875         * time/tst-getdate.c (main): Make error messages more human readable.
1876
1877         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1878         postinc/predec instruction.
1879         (_FPU_SETCW): Likewise.
1880         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1881
1882 2000-08-20  Andreas Jaeger  <aj@suse.de>
1883
1884         * time/tst-getdate.c (main): Increase error in case of wrong
1885         conversion.
1886         Fix typo in test case.
1887
1888 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1889
1890         * ctype/ctype.h (isblank): Make available if ISO C99.
1891         * wctype/wctype.h (iswblank): Make available if ISO C99.
1892         * math/math.h (signgam): Don't make available if ISO C99.
1893         * math/tgmath.h (tgamma): Renamed from gamma.
1894         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1895
1896         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1897         Pretty printing.
1898         * intl/plural.y (new_exp): Take number of optional parameters in
1899         second parameter.  Test for correct number of parameters and free
1900         correctly in case of failure.  Adjust all callers.
1901         (yylex): Allow ';' as terminator character.
1902
1903 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1904
1905         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1906         walt_digits.
1907
1908         * locale/findlocale.c (free_mem): Also free here->filename.
1909
1910         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1911
1912         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1913         first test.
1914         (feexcp_nomask_test): Correct printf args.
1915         (feexcp_mask_test): Likewise.
1916
1917 2000-08-19  Andreas Jaeger  <aj@suse.de>
1918
1919         * inet/tst-gethnm.c: Include string.h to provide prototype for
1920         strcmp.
1921
1922         * malloc/mtrace.pl (usage): Inform about --help.
1923
1924 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1925
1926         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1927         size HEAP_MAX_SIZE.
1928
1929 2000-08-19  Andreas Jaeger  <aj@suse.de>
1930
1931         * shlib-versions: Remove libnss_db, libdb and libdb1.
1932
1933 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1934
1935         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1936         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1937         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1938         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1939         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1940         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1941         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1942         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1943         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1944         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1945         getdents.
1946         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1947         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1948
1949 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1950
1951         * include/glob.h (__glob64): Add prototype.
1952         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1953         define glob and glob_in_dir.
1954         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1955         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1956         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1957         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1958         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
1959         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
1960         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
1961         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
1962
1963 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1964
1965         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
1966
1967 2000-08-17  Andreas Jaeger  <aj@suse.de>
1968
1969         * math/test-fenv.c (fe_single_test): New function.
1970         (fe_env_tests): Use fe_single_test.
1971         (feenable_test): New tests for feenable/fedisable and
1972         fegetexcpetions.
1973         (feexcp_mask_test): New function.
1974         (feexcp_nomask_test): New function.
1975
1976 2000-08-19  Richard Henderson  <rth@cygnus.com>
1977
1978         * sysdeps/alpha/fpu/fenv_libc.h: New file.
1979         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
1980         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
1981         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1982         * sysdeps/alpha/fpu/fegetround.c: Likewise.
1983         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
1984         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
1985         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
1986         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
1987         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
1988         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
1989         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
1990         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
1991         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
1992         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
1993         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
1994         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
1995
1996 2000-08-19  Andreas Jaeger  <aj@suse.de>
1997
1998         * elf/constload1.c: Include <stdio.h> for puts prototype.
1999
2000 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
2001
2002         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
2003         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
2004         a dynamically loaded object remove old l_initfini list.
2005         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
2006         remove some dynamically allocated memory blocks in the dynamic
2007         loading data structures.
2008         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
2009         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
2010         Instead call _dl_check_map_versions only for the dependencies.
2011         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
2012         information of initial objects as not free-able.
2013         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
2014         element.
2015
2016         * elf/filter.c: Call mtrace.
2017         * elf/restest1.c: Likewise.  Close the objects.
2018         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
2019         debug information.
2020
2021         * elf/constload1.c: Add comment explaining not freed memory.
2022
2023 2000-08-18  Andreas Jaeger  <aj@suse.de>
2024
2025         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
2026         alignment for structs stat and stat64.
2027         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
2028
2029 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2030
2031         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
2032         handling.  Patch by Richard Henderson <rth@twiddle.net>.
2033
2034         * nss/Versions: Remove libnss_db information.
2035
2036 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2037
2038         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
2039         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
2040         * sysdeps/sparc/fpu/fegetexcept.c: New file.
2041         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
2042
2043         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
2044         to match Solaris.
2045
2046 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
2047
2048         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
2049         (_FPU_SETCW): Likewise.
2050         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2051
2052         * stdio-common/printf_fp.c: Fix chars_needed computation.
2053         Patch by Greg McGary <greg@mcgary.org>.
2054
2055 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2056
2057         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
2058         _dl_loaded are NULL.
2059
2060 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2061
2062         * manual/arith.texi (feholdexcept): Returns 0 on success.
2063
2064 2000-08-17  Andreas Jaeger  <aj@suse.de>
2065
2066         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
2067         (ifr_newname): New.
2068         Reported by Andi Kleen <ak@suse.de>.
2069
2070 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
2071
2072         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
2073         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
2074         * sysdeps/alpha/fpu/fegetexcept.c: New file.
2075
2076 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2077
2078         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2079         of buf->st_ino and kbuf->st_ino, not __st_ino.
2080         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2081         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2082         directive so that only linux/getdents.c is used, not some
2083         architecture specific one.
2084
2085 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2086
2087         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2088         enabled, not disabled exceptions.
2089         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2090         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2091
2092 2000-08-17  Greg McGary  <greg@mcgary.org>
2093
2094         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2095         from test program name when constructing suffix for $(LDLIBS-*).
2096         (bounded-thread-library): New variable.
2097         * crypt/Makefile
2098         [build-shared, build-static] (libcrypt-dep): Remove variable.
2099         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2100         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2101         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2102         (librt-tests): Add variable.  (tests): Use it.
2103         [build-shared, build-static]
2104         ($(addprefix $(objpfx),$(tests)),
2105         $(addprefix $(objpfx),$(librt-tests))):
2106         Consolidate individual dependencies.
2107         [build-bounded]
2108         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2109         Add dependencies.
2110         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2111         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2112         * misc/Makefile
2113         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2114         * rt/Makefile
2115         [build-shared, build-static]
2116         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2117         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2118
2119 2000-08-17  Greg McGary  <greg@mcgary.org>
2120
2121         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2122         * sysdeps/unix/make-syscalls.sh: Likewise.
2123         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2124         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2125         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2126         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2127         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2128
2129 2000-08-17  Greg McGary  <greg@mcgary.org>
2130
2131         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2132         Wrap extern symbols in BP_SYM ().
2133         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2134         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2135         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2136         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2137         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2138         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2139         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2140         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2141         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2142         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2143
2144 2000-08-16  Andreas Schwab  <schwab@suse.de>
2145
2146         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2147         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2148         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2149
2150 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2151
2152         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2153         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2154         * elf/dl-support.c: Define _nl_nloaded.
2155         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2156         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2157         object to global list.
2158         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2159         from _dl_loaded list.
2160         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2161         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2162         number here.
2163
2164         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2165         unmask, exceptions.
2166         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2167         exceptions.
2168         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2169
2170 2000-08-16  Andreas Jaeger  <aj@suse.de>
2171
2172         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2173
2174 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2175
2176         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2177
2178 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2179
2180         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2181         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2182         (sysdep_routines): Add oldgetrlimit64.
2183         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2184         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2185
2186         * include/link.h: Undo last patches.  Hurd now has stat64.
2187         * elf/Makefile: Likewise.
2188         * elf/dl-load.c: Likewise.
2189         * elf/dl-misc.c: Likewise.
2190         * elf/dl-profile.c: Likewise.
2191         * sysdeps/generic/sysd-link.h: Removed.
2192         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2193
2194         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2195         thread event callback function.
2196         (__aio_notify_only): Use function above.
2197         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2198
2199 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2200
2201         * sysdeps/mach/hurd/lseek64.c: New file.
2202
2203 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2204
2205         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2206         Remove typedefs.
2207         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2208         typedefs.
2209         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2210         typedefs.
2211         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2212
2213 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2214
2215         * sysdeps/mach/hurd/xstatconv.c: New file.
2216         * sysdeps/mach/hurd/fxstat64.c: New file.
2217         * sysdeps/mach/hurd/lxstat64.c: New file.
2218         * sysdeps/mach/hurd/xstat64.c: New file.
2219         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2220
2221 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2222
2223         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2224         Initialize, needed for change in common symbol handling in newer
2225         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2226
2227 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2228
2229         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2230         * elf/constload2.c: Add destructor to unload constload3.
2231
2232         * include/link.h: Include sysd-link.h.
2233         * sysdeps/generic/sysd-link.h: New file.
2234         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2235         * elf/Makefile (distribute): Add sysd-link.h.
2236         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2237         types and functions directly.
2238         * elf/dl-misc.c: Likewise.
2239         * elf/dl-profile.c: Likewise.
2240
2241         * elf/loadfail.c (main): Close all successfully loaded objects.
2242
2243         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2244         free wd.
2245         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2246         there is already one.
2247
2248         * elf/dl-close.c: Pretty print.
2249
2250 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2251
2252         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2253         global (with file scope).  Add __libc_subfreeres function to free the
2254         string.
2255         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2256         in ttyname function.
2257
2258         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2259
2260         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2261
2262         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2263         mapping them to /x5c and /x7e respectively.
2264
2265         * locale/programs/ld-ctype.c: Add support for more definitions after
2266         copy statement.
2267
2268 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2269
2270         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2271         * sysdeps/unix/sysv/linux/kernel-features.h
2272         (__ASSUME_GETDENTS64_SYSCALL): Define.
2273         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2274         syscall if available to get d_type fields.
2275         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2276         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2277         __lxstat64): Export at GLIBC_2.2.
2278         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2279         Likewise.
2280         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2281         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2282         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2283         getdirentries64, versionsort64): Remove.
2284         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2285         getdirentries64, versionsort64): Remove.
2286
2287 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2288
2289         * posix/Makefile: Remove rules to generate glob package.
2290
2291         * posix/Makefile (tests): Add tst-regexloc.
2292         (tst-regexloc-ENV): Add LOCPATH.
2293         * posix/tst-regexloc.c: New file.
2294
2295 2000-08-12  Andreas Jaeger  <aj@suse.de>
2296
2297         * include/features.h (__STDC_ISO_10646__): Define.
2298         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2299
2300 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2301
2302         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2303
2304         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2305         for revision 6 and up).
2306
2307         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2308         including <time.h>.
2309         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2310         to get definitions of just these types.
2311
2312         * signal/signal.h: Define thread signal handling functions also for
2313         POSIX95.
2314
2315         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2316         POSIX95.
2317         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2318         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2319         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2320         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2321
2322         * sysvipc/sys/shm.h: Define pid_t for XPG.
2323
2324         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2325         they are not anymore required here.
2326
2327         * wcsmbs/wchar.h: Make the various wide char string and stream
2328         functions available for the respective XPG versions.
2329
2330         * nss/Makefile: Remove rules to build and distribute nss_db.
2331
2332         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2333         * sysdeps/generic/scandir64.c: Likewise.
2334         * sysdeps/generic/versionsort64.c: Likewise.
2335
2336 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2337             Benjamin Koznik  <bkoz@redhat.com>
2338
2339         * libio/fileops.c: Merge with libstdc++-v3.
2340         * libio/genops.c: Likewise.
2341         * libio/iofclose.c: Likewise.
2342         * libio/iofopen.c: Likewise.
2343         * libio/iofwide.c: Likewise.
2344         * libio/libio.h: Likewise.
2345         * libio/libioP.h: Likewise.
2346         * libio/stdfiles.c: Likewise.
2347         * libio/stdio.c: Likewise.
2348         * libio/wfileops.c: Likewise.
2349         * libio/wgenops.c: Likewise.
2350
2351         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2352
2353 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2354
2355         * locale/programs/localedef.c: Implement --prefix option to allow
2356         writing in standard places of alternative install directories.
2357
2358         * posix/regex.c (compile_range): Implement collation sequence
2359         handling for glibc.  Use simple character ordering otherwise and
2360         not strcoll.
2361
2362 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2363
2364         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2365
2366 2000-08-12  Andreas Jaeger  <aj@suse.de>
2367
2368         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2369         __USE_FILE_OFFSET64 correctly for locking.
2370         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2371
2372 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2373
2374         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2375         Define for 2.4.1 on sparc as well.
2376         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2377         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2378         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2379         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2380
2381 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2382
2383         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2384         defined.
2385
2386 2000-08-12  Andreas Jaeger  <aj@suse.de>
2387
2388         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2389         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2390
2391         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2392         mips2 for assembler.
2393
2394         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2395         if fnctl64 is not available for F_*LK*64.
2396
2397         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2398
2399 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2400
2401         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2402         Define for 2.4.1 on x86.
2403         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2404         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2405         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2406
2407         * dirent/dirent.h: Define DT_WHT.
2408
2409         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2410         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2411         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2412         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2413         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2414         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2415
2416 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2417
2418         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2419         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2420         * inet/Makefile (tests): Add tst-gethnm.
2421         * inet/tst-gethnm.c: New file.
2422
2423         * rt/aio_cancel.c: If canceling a specific request which is running
2424         *really* do nothing.
2425         * rt/aio_misc.h: Add `done' to states of a request.
2426         * rt/aio_misc.c: Add several tests for the correct state.
2427         Simplify request table memory handling.
2428
2429 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2430
2431         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2432         * dirent/scandir64.c: Move...
2433         * sysdeps/generic/scandir64.c: ...here.
2434         * dirent/alphasort64.c: Move...
2435         * sysdeps/generic/alphasort64.c: ...here.
2436         * dirent/versionsort64.c: Move...
2437         * sysdeps/generic/versionsort64.c: ...here.
2438         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2439         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2440         Export symbols at GLIBC_2.2.
2441         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2442         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2443         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2444         __versionsort64): Add prototypes.
2445         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2446         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2447         unused prototype.
2448         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2449         and GLIBC_2.2.
2450         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2451         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2452         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2453         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2454         __u_quad_t.
2455         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2456         Adjust for kernel-2.4.0-test6 layout.
2457         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2458         GLIBC_2.1 and GLIBC_2.2.
2459         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2460         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2461         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2462         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2463         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2464         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2465         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2466         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2467         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2468         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2469         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2470         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2471         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2472         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2473         __u_quad_t.
2474         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2475         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2476         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2477         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2478         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2479         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2480         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2481         __u_quad_t.
2482         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2483         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2484         Define.
2485         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2486         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2487         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2488         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2489         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2490         Define.
2491         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2492         alpha/readdir.c.
2493         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2494         alpha/readdir_r.c
2495         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2496         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2497         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2498         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2499         st_ino from __st_ino.
2500         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2501         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2502         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2503         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2504         set __st_ino in addition to st_ino.
2505         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2506         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2507         __old_getdents64 as well.
2508         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2509         getdirentries64 and old_getdirentries64 as well.
2510         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2511         __GETDENTS): Define.
2512         (GETDENTS64): Remove.
2513         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2514         Define.
2515         (GETDENTS64): Remove.
2516         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2517         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2518         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2519         as well.
2520         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2521         __old_readdir64_r as well.
2522         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2523         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2524
2525 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2526
2527         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2528         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2529         define of the kernel.
2530         Add missing __SEG_PSTKOVF definition.
2531         Adjust the padding of struct siginfo and struct sigevent to
2532         match the fact that sigval_t is 64 bit.
2533
2534 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2535
2536         * timezone/zic.c: Update from tzcode2000f.
2537         * timezone/australasia: Update from tzdata2000f.
2538         * timezone/europe: Likewise.
2539         * timezone/southamerica: Likewise.
2540         * timezone/yearistype: Likewise.
2541
2542 2000-08-10  Andreas Jaeger  <aj@suse.de>
2543
2544         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2545         stat with current MIPS kernel.
2546
2547 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2548
2549         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2550         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2551         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2552         Remove the junk that's only relevant in the Linux kernel itself.
2553         Add a warning saying that this file is now obsolete, and include
2554         <sys/procfs.h>.
2555         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2556         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2557         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2558         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2559         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2560         and add the notice that the file is primarily there for GDB.
2561         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2562
2563 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2564
2565         * time/tzfile.c (__tzfile_compute): __tzstring zones
2566         from zone_names.
2567
2568 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2569
2570         * resolv/resolv.h (__res_state): Surround prototype with
2571         __BEGIN_DECLS/__END_DECLS.
2572         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2573
2574 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2575
2576         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2577         Make independant of asm/resource.h from the Linux kernel.
2578
2579 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2580
2581         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2582
2583 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2584
2585         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2586         * locale/Makefile (locale-CPPFLAGS): Likewise.
2587
2588 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2589
2590         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2591         for AMD processors.
2592
2593 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2594
2595         * misc/Versions (mincore): Export at GLIBC_2.2.
2596
2597 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2598
2599         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2600
2601 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2602
2603         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2604         socketpair.  Made socketpair a weak alias.
2605         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2606         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2607         conforming, but fall back on the old protocol if the socket server
2608         doesn't support it.
2609         * include/sys/socket.h: Add prototype for __socketpair.
2610
2611 2000-08-09  Andreas Schwab  <schwab@suse.de>
2612
2613         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2614         long long modifier is seen.
2615
2616         * elf/nodelete.c (do_test): Remove reference to undefined member
2617         sa_restorer.
2618         * rt/tst-aio4.c (do_test): Likewise.
2619
2620         * configure.in: Add `-lm' when checking for libgd.
2621         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2622         linking.
2623
2624 2000-08-09  Andreas Jaeger  <aj@suse.de>
2625
2626         * configure.in: Change required make versions.
2627
2628         * manual/install.texi (Tools for Compilation): Document required
2629         make version.
2630         (Supported Configurations): Update list of supported
2631         configurations.
2632
2633 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2634
2635         * locale/linereader.c (get_string): Don't print an error is a string
2636         contains an unknown character.
2637
2638 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2639
2640         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2641         (new_symbol): Take new parameters with name of the symbol.
2642         Adjust callers.
2643         (handle_ellipsis): Don't only allow character symbols.
2644         (collate_read): Allow string of collating elements contain invalid
2645         characters; ignore entry in this case.
2646         Handle ellipsis of collating symbols before first order_start.
2647         Allow ellipsis in state 0.
2648
2649 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2650
2651         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2652         error message.
2653         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2654
2655 2000-08-04  Greg McGary  <greg@mcgary.org>
2656
2657         * posix/regex.c (SET_HIGH_BOUND): New macro.
2658         (MOVE_BUFFER_POINTER): Use it.
2659         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2660         (EXTEND_BUFFER): Use it.
2661
2662 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2663
2664         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2665         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2666         _wide_data but from _IO_FILE directly.
2667         * libio/iofclose.c: Likewise.
2668         * libio/wfileops.c: Likewise.
2669
2670         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2671         * libio/libioP.h: Change prototypes.
2672
2673 2000-08-03  Greg McGary  <greg@mcgary.org>
2674
2675         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2676         frame pointer early so that we save caller's frame pointer.
2677         * sysdeps/i386/elf/setjmp.S: Likewise.
2678
2679         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2680         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2681
2682         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2683         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2684         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2685
2686 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2687
2688         * iconvdata/big5.c: Updated.
2689         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2690
2691 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2692
2693         * Makeconfig (all-subdirs): Add conform.
2694         * conform/Makefile: Include ../Rules.
2695
2696         * Makefile (README): Add rules to generate here as well.
2697
2698 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2699
2700         * version.h (VERSION): Bump to 2.1.92.
2701
2702         * sysdeps/ia64/Dist: Add _mcount.S.
2703
2704         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2705
2706         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2707
2708         * elf/Makefile (distribute): Add missing modules.
2709
2710         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2711
2712         * posix/regex.c (compile_range): Translate range start and end
2713         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2714
2715         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2716         asm/resource.h.
2717
2718         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2719
2720 2000-08-02  Andreas Jaeger  <aj@suse.de>
2721
2722         * elf/elf.h (EM_S390): Added.
2723         (R_390_*): New relocs for S390.
2724
2725         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2726         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2727         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2728         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2729         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2730         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2731         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2732         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2733         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2734         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2735         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2736         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2737         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2738         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2739         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2740         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2741         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2742         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2743         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2744         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2745         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2746         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2747         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2748         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2749         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2750         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2751         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2752         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2753         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2754         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2755         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2756         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2757         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2758         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2759         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2760         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2761         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2762         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2763         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2764         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2765         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2766         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2767         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2768         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2769         * sysdeps/s390/sysdep.h: New file.
2770         * sysdeps/s390/sys/ucontext.h: New file.
2771         * sysdeps/s390/sub_n.S: New file.
2772         * sysdeps/s390/strncpy.S: New file.
2773         * sysdeps/s390/strcpy.S: New file.
2774         * sysdeps/s390/stackinfo.h: New file.
2775         * sysdeps/s390/setjmp.S: New file.
2776         * sysdeps/s390/s390-mcount.S: New file.
2777         * sysdeps/s390/mul_1.S: New file.
2778         * sysdeps/s390/memusage.h: New file.
2779         * sysdeps/s390/memset.S: New file.
2780         * sysdeps/s390/memcpy.S: New file.
2781         * sysdeps/s390/memchr.S: New file.
2782         * sysdeps/s390/machine-gmon.h: New file.
2783         * sysdeps/s390/ldbl2mpn.c: New file.
2784         * sysdeps/s390/gmp-mparam.h: New file.
2785         * sysdeps/s390/fpu/fpu_control.h: New file.
2786         * sysdeps/s390/fpu/fesetround.c: New file.
2787         * sysdeps/s390/fpu/fegetround.c: New file.
2788         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2789         * sysdeps/s390/fpu/bits/fenv.h: New file.
2790         * sysdeps/s390/ffs.c: New file.
2791         * sysdeps/s390/elf/start.S: New file.
2792         * sysdeps/s390/elf/setjmp.S: New file.
2793         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2794         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2795         * sysdeps/s390/dl-machine.h: New file.
2796         * sysdeps/s390/bzero.S: New file.
2797         * sysdeps/s390/bsd-setjmp.S: New file.
2798         * sysdeps/s390/bsd-_setjmp.S: New file.
2799         * sysdeps/s390/bits/string.h: New file.
2800         * sysdeps/s390/bits/setjmp.h: New file.
2801         * sysdeps/s390/bits/huge_val.h: New file.
2802         * sysdeps/s390/bits/endian.h: New file.
2803         * sysdeps/s390/bits/byteswap.h: New file.
2804         * sysdeps/s390/bcopy.S: New file.
2805         * sysdeps/s390/backtrace.c: New file.
2806         * sysdeps/s390/atomicity.h: New file.
2807         * sysdeps/s390/asm-syntax.h: New file.
2808         * sysdeps/s390/addmul_1.S: New file.
2809         * sysdeps/s390/add_n.S: New file.
2810         * sysdeps/s390/abort-instr.h: New file.
2811         * sysdeps/s390/__longjmp.c: New file.
2812         * sysdeps/s390/Makefile: New file.
2813         * sysdeps/s390/Implies: New file.
2814         * sysdeps/s390/Dist: New file.
2815         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2816
2817 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2818
2819         Remove incompatible IPv6 extension of RPC.
2820         * sunrpc/Makefile: Undo changes.
2821         * sunrpc/rpc_main.c: Likewise.
2822         * sunrpc/rpc/clnt.h: Likewise.
2823         * sunrpc/rpc/svc.h: Likewise.
2824         * sunrpc/bindrsvprt6.c: Removed.
2825         * sunrpc/clnt_tcp6.c: Removed.
2826         * sunrpc/clnt_udp6.c: Removed.
2827         * sunrpc/svc_tcp6.c: Removed.
2828         * sunrpc/svc_udp6.c: Removed.
2829
2830         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2831         dgettext, and dcgettetxt.
2832
2833         * intl/locale.alias: Update japanese aliases.
2834
2835         * sysdeps/ia64/bits/byteswap.h: New file.
2836         Patch by Dan Pop <Dan.Pop@cern.ch>.
2837
2838         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2839         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2840
2841 2000-07-13  H.J. Lu  <hjl@gnu.org>
2842
2843         * posix/regex.c (re_max_failures): Set to 4000.
2844
2845 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2846
2847         * gnulib/Makefile (tests): Add tst-gcc.
2848         * gnulib/tst-gcc.c: New file.
2849
2850         * assert/Makefile (routines): Add __assert.
2851         * assert/Versions: Export __assert for glibc 2.2.
2852         * assert/__assert.c: New file.
2853         * assert/assert.h: Declare __assert.
2854
2855 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2856
2857         * locale/localeinfo.h (_ISCTYPE): New macro.
2858         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2859         LC_CTYPE locale format.
2860         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2861         (ctype_output): Output class_b[nr] right before class_3level[nr].
2862         (allocate_arrays): Fill class_b, similarly to class_3level.
2863
2864 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2865             Joseph S. Myers  <jsm28@cam.ac.uk>
2866
2867         * math/tgmath.h: Make standard compliant.  Don't ask how.
2868
2869 2000-07-04  H.J. Lu  <hjl@gnu.org>
2870
2871         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2872         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2873         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2874
2875 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2876
2877         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2878         (__USE_LARGEFILE): Add an explanation.
2879         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2880         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2881
2882 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2883
2884         * libio/Makefile: Enable exception handling for genops, wgenops,
2885         fileops, and wfileops.
2886
2887 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2888
2889         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2890         acount that elf/rtld's main program might remove some varibales
2891         from the environment if we're trying to be secure.  Move the Hurd
2892         startup data if necessary, or, if we there is no startup data,
2893         make sure the magical convention that ARGV[0] is stored just after
2894         the environment list.
2895
2896 2000-08-01  Philip Blundell  <philb@gnu.org>
2897
2898         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2899         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2900         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2901         oldsetrlimit for GLIBC_2.0.
2902
2903 2000-08-01  Andreas Jaeger  <aj@suse.de>
2904
2905         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2906         (LINE_PARSER): Allow any number of spaces between ip address and
2907         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2908
2909         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2910
2911         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2912         constants in.
2913
2914         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2915         _nss_nisplus_getipnodebyname_r.
2916
2917         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2918         now, getipnodebyname is deprecated.
2919         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2920         Likewise.
2921
2922         * inet/Makefile (routines): Don't build getipnodebyaddr and
2923         friends.
2924
2925         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2926
2927         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2928
2929         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2930
2931         * wctype/Makefile (distribute): Add wchar-lookup.h.
2932
2933         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2934
2935         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2936
2937 2000-08-01  Andreas Schwab  <schwab@suse.de>
2938
2939         * Make-dist (dist): Resolve `..' in file names.
2940
2941 2000-08-01  Andreas Jaeger  <aj@suse.de>
2942
2943         * stdio-common/Makefile (distribute): Remove removed files, add
2944         new files.
2945
2946         * Makefile (distribute): Remove include/db_185.h and db.h.
2947
2948         * include/db_185.h: Remove, it's not needed anymore.
2949         * include/db.h: Likewise.
2950
2951 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2952
2953         * inet/Makefile (tests): Remove tst-ipnode.
2954         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2955         now.
2956
2957 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2958
2959         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
2960         endp statements have already been added.
2961
2962 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
2963
2964         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
2965         <sysdeps/ia64/sysdep.h>.
2966
2967         * sysdeps/ia64/_mcount.S: New file.
2968
2969         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
2970         __gmon_start__.  Fix up extraneous whitespace.
2971
2972 2000-01-12  H.J. Lu  <hjl@gnu.org>
2973
2974         * sysdeps/ia64/elf/initfini.c: New file.
2975
2976 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2977
2978         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
2979         dependency between branch and ar.pfs write.
2980
2981 2000-07-31  H.J. Lu  <hjl@gnu.org>
2982
2983         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
2984         handle the wchar_t array.
2985
2986 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2987
2988         * iconvdata/gb18030.c: Don't map to and from positions in ISO
2989         10646 which are not yet assigned.
2990         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
2991
2992 2000-07-31  Andreas Jaeger  <aj@suse.de>
2993
2994         * inet/Versions: Remove getipnodebyaddr and friends from
2995         GLIBC_2.2.
2996
2997         * resolv/netdb.h: Remove getipnodebyaddr and friends.
2998
2999 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3000
3001         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
3002         ch >= 0x81 && ch2 < 0x40 as invalid.
3003
3004 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3005
3006         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
3007         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
3008
3009 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3010
3011         * iconvdata/johab.c (BODY for TO_LOOP): After calling
3012         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
3013
3014 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3015
3016         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
3017         0xb8.
3018         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
3019
3020 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3021
3022         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
3023
3024 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3025
3026         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
3027         (from_ucs4): Change values of U+00A4 and U+00ED.
3028         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
3029
3030 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3031
3032         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
3033         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
3034
3035 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3036
3037         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
3038         * iconvdata/isiri-3342.h: New file.
3039         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
3040         treat 0x80 as a gap.
3041
3042 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
3043
3044         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
3045         (utf8_encode): Use simple shifts instead.  Fix return value.
3046
3047 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
3048
3049         * timezone/private.h: Update from tzcode2000e.
3050         * timezone/asia: Update from tzdata2000e.
3051         * timezone/australasia: Likewise.
3052         * timezone/europe: Likewise.
3053         * timezone/northamerica: Likewise.
3054         * timezone/zone-tab: Likewise.
3055
3056 2000-07-30  Ralf Baechle  <ralf@gnu.org>
3057
3058         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
3059         the order of struct sigaltstack members is different.
3060
3061 2000-07-26  Philip Blundell  <philb@gnu.org>
3062
3063         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
3064
3065 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
3066
3067         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
3068         * locale/programs/ld-ctype.c: Adjust for this.
3069
3070         * locale/programs/ld-collate.c: Add more alignment checks.
3071         * locale/string/strcoll.c: Likewise.
3072
3073 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
3074
3075         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3076         outside USE_IN_LIBIO block.
3077
3078 2000-07-26  Philip Blundell  <philb@gnu.org>
3079
3080         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3081         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3082
3083 2000-07-28  Philip Blundell  <philb@gnu.org>
3084
3085         * math/test-fpucw.c: Ignore reserved bits in control word.
3086
3087 2000-07-28  Philip Blundell  <philb@gnu.org>
3088
3089         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3090         (ret): Redefine to PSEUDO_RET.
3091         (PSEUDO): Remove jump to syscall_error.
3092
3093 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3094
3095         * resolv/README: Add some information about using the resolver in
3096         multi-threaded code and with C++.  Spelling fixes.
3097
3098 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3099
3100         * resolv/resolv.h (struct __sockaddr_in): Remove.
3101         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3102
3103 2000-07-29  Greg McGary  <greg@mcgary.org>
3104
3105         * Rules (test-bp-inputs, make-test-out): New variables.
3106         ($(objpfx)%-bp.out): New rule.
3107         ($(objpfx)%.out): Rewrite in terms of new variables.
3108
3109         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3110         internal function that uses vtable.
3111         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3112         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3113
3114         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3115         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3116         (chunk_align): Likewise.
3117
3118         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3119         in a way that conforms to decl, and avoids spurious bounds violation.
3120
3121         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3122         * sysdeps/generic/frame.h: Likewise.
3123         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3124         around return value.
3125         (__backtrace): Qualify frame-pointer chain and return address
3126         pointers as __unbounded.  Wrap bounds around variable `current'.
3127         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3128         around return value.
3129         (catch_segfault): Qualify frame-pointer chain and return address
3130         pointers as __unbounded.  Wrap bounds around variable `current'.
3131         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3132         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3133         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3134         __unbounded.
3135         (__backtrace): Qualify frame-pointer chain and return address
3136         pointers as __unbounded.  Wrap bounds around variable `current'.
3137
3138         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3139         * sysdeps/i386/mul_1.S: Likewise.
3140         * sysdeps/i386/submul_1.S: Likewise.
3141         * sysdeps/i386/i586/addmul_1.S: Likewise.
3142         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3143         * sysdeps/i386/i586/submul_1.S: Likewise.
3144
3145 2000-07-27  Andreas Jaeger  <aj@suse.de>
3146
3147         * libio/Depend: New file, libio needs localedata for tests.
3148         * posix/Depend: Likewise.
3149
3150 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3151
3152         * stdio-common/_i18n_itoa.c: Removed.
3153         * stdio-common/_i18n_itoa.h: Removed.
3154         * stdio-common/_i18n_itowa.c: Removed.
3155         * stdio-common/_i18n_itowa.h: Removed.
3156         * stdio-common/_i18n_number.h: New file.
3157         * stdio-common/Depend: New file.
3158         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3159         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3160         printing.  Change printing of numbers with locale specific digits to
3161         use new code in _i18n_number.h.
3162         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3163         _i18n_itowa.
3164
3165         * stdio-common/bug13.c: Improve messages.
3166
3167         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3168         (set_class_defaults): Always search also for Uxxxx names.
3169         Detect insufficient number of outdigits.
3170
3171         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3172
3173 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3174
3175         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3176         _NL_CTYPE_MAP_NAMES.
3177         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3178         * wctype/wcfuncs.c (towlower, towupper): Use them.
3179         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3180         * wctype/wctrans.c (wctrans): Likewise.
3181         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3182
3183 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3184
3185         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3186         Use the optimized version of this function outside glibc as well.
3187
3188 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3189
3190         * locale/indigits.h (indigit_value): Correct.
3191         * locale/indigitswc.h (indigitwc_value): Correct.
3192         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3193         conversion, add GROUP checking for it, fix GROUP number
3194         conversion with strlen(thousands) > 1.
3195         Honour width correctly in the presence of floating
3196         decimal points and thousands separators.
3197         * stdio-common/tst-sscanf.c: New test.
3198         * stdio-common/Makefile: Add it to tests.
3199         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3200         thousands separators and group argument is non-zero.
3201
3202 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3203
3204         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3205         starts at GLIBC_2.2.
3206
3207 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3208
3209         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3210         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3211         _test_and_set.
3212         (headers): Add sys/tas.h.
3213         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3214         GLIBC_2.2 from libc.
3215         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3216         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3217         _test_and_set.
3218
3219 2000-07-28  Andreas Jaeger  <aj@suse.de>
3220
3221         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3222
3223         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3224         ($(objpfx)tst-dladdr.out): new.
3225         (tests): Add tst-dladdr.
3226         ($(objpfx)glrefmain): Use libdl.
3227
3228         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3229         <vs@caldera.de>.
3230
3231 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3232
3233         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3234         ftruncate(64) calls.
3235
3236 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3237
3238         * intl/tst-translit.c: Include string.h to get prototype for
3239         strcmp().
3240
3241 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3242
3243         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3244         name and add weak alias for __fork.
3245
3246         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3247         & pwrite to use __libc_<name> as strong names instead of
3248         __syscall_<name>.
3249
3250         * include/sched.h: Add clone2 prototype.
3251
3252 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3253
3254         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3255         procedure name twice.
3256
3257 2000-07-27  Philip Blundell  <philb@gnu.org>
3258
3259         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3260
3261 2000-07-27  Andreas Jaeger  <aj@suse.de>
3262
3263         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3264         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3265         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3266         Reported by Andi Kleen <ak@suse.de>.
3267
3268         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3269         (do_wait): Test requests with aio_return64.
3270         (do_test): Change callers of do_wait.
3271
3272 2000-07-26  Andreas Jaeger  <aj@suse.de>
3273
3274         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3275         (do_wait): Test requests with aio_return.
3276         (do_test): Change callers of do_wait.
3277
3278 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3279
3280         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3281         from request list.  Don't do the list handling here, call
3282         __aio_remove_request.
3283         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3284         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3285         request might already be processed.  Don't do the list handling
3286         here, call __aio_remove_request.
3287
3288         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3289         LIO_DSYNC.
3290
3291         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3292         are missing.
3293
3294 2000-07-27  Greg McGary  <greg@mcgary.org>
3295
3296         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3297         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3298         in union init.  Pass zero for ignored semnum arg to semctl.
3299         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3300
3301 2000-07-26  Greg McGary  <greg@mcgary.org>
3302
3303         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3304         data structure pointers as __unbounded.
3305         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3306         * sysdeps/generic/bp-semctl.h: New file.
3307         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3308         pointers as __unbounded.  Check bounds of syscall args.
3309         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3310         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3311         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3312         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3313         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3314         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3315         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3316         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3317         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3318         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3319         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3320         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3321         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3322         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3323         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3324         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3325
3326 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3327
3328         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3329         by default.
3330         * locale/C-ctype.c: Likewise.
3331         * wcsmbs/wcsmbsload.c: Likewise.
3332
3333 2000-07-26  Greg McGary  <greg@mcgary.org>
3334
3335         * Makeconfig (+link-bounded, link-libc-bounded,
3336         link-extra-libs-bounded): New variables.
3337         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3338         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3339         * Rules (tests-bp.out): New variable.
3340         (tests): Conditionally add BP tests.
3341         (binaries-bounded): Add variable and associated rule.
3342         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3343         Move conditional stuff after place where condition is defined.
3344
3345         * malloc/malloc.c (bp-checks.h): Add #include.
3346         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3347         (_bin_at): Add unbounded version of bin_at.
3348         (IAV, chunk_alloc): Use unbounded _bin_at.
3349         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3350         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3351         Wrap BOUNDED_N around return value.
3352         (chunk_realloc): Adjust oldsize once.
3353
3354         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3355         (__ubp_memchr): Add correct decl.
3356         (_CHECK_STRING): Use __ubp_memchr.
3357         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3358         New alias for unbounded-pointer __memchr.
3359         * sysdeps/i386/memchr.S: Likewise.
3360         * sysdeps/ia64/memchr.S: Likewise.
3361         * sysdeps/m68k/memchr.S: Likewise.
3362         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3363         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3364         * sysdeps/vax/memchr.s: Likewise.
3365
3366         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3367         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3368         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3369         * sysdeps/i386/i686/strtok.S: Likewise.
3370         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3371         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3372
3373         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3374         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3375
3376         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3377         bounds of copy_result to mount_proc.
3378
3379 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3380
3381         * wctype/wctype.h (__wctrans_l): New declaration.
3382         * wctype/wctrans_l.c: New file.
3383         * wctype/Makefile (routines): Add wctrans_l.
3384
3385 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3386
3387         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3388         Patch by MacGyver <macgyver@tos.net>.
3389
3390 2000-07-26  Andreas Jaeger  <aj@suse.de>
3391
3392         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3393         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3394         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3395
3396         * rt/tst-aio.c (test_file): Fix typo.
3397         * rt/tst-aio64.c (test_file): Likewise.
3398
3399         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3400         * rt/Makefile: Add rules to build and run tst-aio3.
3401
3402         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3403         it's not needed and confuses only.
3404
3405 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3406
3407         * resolv/res_init.c: Add support for nameserver communication with
3408         IPv6.
3409         * resolv/res_send.c: Likewise.
3410         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3411         in nsaddrs field.
3412         Patch by <venaas@nvg.ntnu.no>.
3413
3414 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3415
3416         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3417         (wcwidth_table_get): New function.
3418         (wcwidth_table_add): Call it.
3419         (wctrans_table_get): New function.
3420         (wctrans_table_add): Call it.
3421
3422 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3423
3424         * rt/lio_listio.c (lio_listio): Always disable individual
3425         notification.
3426         * rt/Makefile: Add rules to build and run tst-aio2.
3427         * rt/tst-aio2.c: New file.
3428
3429         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3430         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3431
3432 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3433
3434         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3435         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3436         leading and trailing spaces from host, user and domain name.
3437
3438 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3439
3440         * csu/defs.awk: Add support for need_endp.
3441
3442 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3443
3444         * resolv/resolv.h: Remove __P from res_send_qhook and
3445         res_send_rhook typedefs.
3446
3447 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3448
3449         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3450
3451 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3452
3453         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3454
3455 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3456
3457         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3458         calling thread, set the cancellation flag and return success
3459         instead of EINTR.
3460
3461 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3464         * libio/tst-widetext.c: New file.
3465         * libio/tst-widetext.input: New file.
3466
3467         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3468
3469         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3470         empty external buffer correctly.
3471
3472 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3473
3474         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3475         __STRING(entry) and not #entry.
3476         (_RTLD_EPILOGUE): Likewise.
3477         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3478
3479 2000-07-25  Andreas Jaeger  <aj@suse.de>
3480
3481         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3482         according to changes in test program, run also with static only
3483         builds.
3484         ($(objpfx)tst-printf.out): Likewise.
3485
3486         * stdio-common/tst-unbputc.sh: Likewise.
3487         * stdio-common/tst-printf.sh: Likewise.
3488
3489 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3490
3491         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3492
3493         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3494         loop.
3495
3496         * libio/fileops.c: Pretty print.
3497
3498 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3499
3500         * wctype/wchar-lookup.h: New file.
3501         * wctype/iswctype.c: Include "wchar-lookup.h".
3502         (__iswctype): Support alternate locale format with 3-level tables.
3503         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3504         * wctype/towctrans.c (__towctrans): Likewise.
3505         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3506         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3507         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3508         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3509         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3510         __iswxdigit, towlower, towupper): Support alternate locale format
3511         with 3-level tables.
3512         * wctype/wcextra.c (iswblank): Likewise.
3513         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3514         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3515         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3516         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3517         format with 3-level tables.
3518         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3519         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3520         format, return a 3-level table pointer.
3521         * wctype/wctype_l.c (__wctype_l): Likewise.
3522         * wctype/wctrans.c (wctrans): Likewise.
3523         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3524         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3525         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3526         (iswctype): Remove macro definition.
3527         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3528         (internal_wcwidth): Support alternate locale format with 3-level
3529         tables.
3530         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3531         New nl_items.
3532         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3533         Define them as being type "word".
3534         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3535         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3536         __ctype32_width): New exported variables.
3537         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3538         alternate locale format. Don't initialize __ctype_names and
3539         __ctype_width in the alternate locale format.
3540         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3541         * locale/programs/localedef.c (oldstyle_tables): New variable.
3542         (OPT_OLDSTYLE): New macro.
3543         (options): Add --old-style option.
3544         (parse_opt): Handle --old-style option.
3545         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3546         map_offset, class_3level, map_3level, width_3level members.
3547         (ctype_output): Support for alternate locale format: Computation of
3548         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3549         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3550         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3551         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3552         now contain both class and map tables.
3553         (struct wctype_table): New type.
3554         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3555         functions.
3556         (struct wcwidth_table): New type.
3557         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3558         functions.
3559         (struct wctrans_table): New type.
3560         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3561         functions.
3562         (allocate_arrays): Support for alternate locale format: Set
3563         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3564         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3565         to the first 256 characters. Compute ctype->map_3level. Set
3566         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3567         instead of ctype->width.
3568
3569 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3570
3571         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3572         string functions.
3573
3574 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3575
3576         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3577         in wide characters, not bytes.
3578         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3579         into file.
3580
3581 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3582
3583         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3584         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3585         LC_MEASUREMENT, LC_IDENTIFICATION.
3586
3587         * locale/xlocale.h (struct __locale_struct): Increase size of
3588         __locales array.
3589         * locale/duplocale.c (__duplocale): Copy newly added categories as
3590         well.
3591         * locale/freelocale.c (__freelocale): Free newly added categories.
3592         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3593         If a base is given, use it, don't simply return it.
3594
3595 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3596
3597         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3598         variables, copied_key and copied_salt, instead of boolean variables.
3599
3600 2000-07-24  Andreas Jaeger  <aj@suse.de>
3601
3602         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3603         check for offset.
3604
3605         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3606         initgroups_function, adopted prototype for change from 2000-07-23.
3607         (initgroups): Follow type change.
3608
3609         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3610         & PAGE_MASK case, reformat.
3611
3612         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3613         from stdin and setup environment.
3614
3615 2000-07-24  Andreas Schwab  <schwab@suse.de>
3616
3617         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3618
3619 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3620
3621         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3622         more.  Patch by scarlet@mit.edu [PR libc/1799].
3623
3624         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3625         [PR libc/1792].
3626
3627         * argp/argp-parse.c (parser_finalize): Reverse order in which
3628         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3629
3630         * grp/initgroups.c (initgroups): Don't limit the possible number
3631         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3632         the setgroups call while the call fails and descrease the number
3633         of groups each round.
3634         The name of the initgroups function in the NSS modules changed.
3635         (compat_call): Adapt for dynamic resizing.
3636         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3637         Implement dynamic resizing.
3638         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3639         Likewise.
3640         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3641         * hesiod/Versions: Change exported interface name.
3642         * nis/Versions: Change exported interface name.
3643
3644 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3645
3646         * locale/iso-639.def: Some errors corrected.
3647         Patch by Keld Simonsen.
3648
3649         * include/limits.h: Update non-gcc portion.
3650         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3651
3652 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3653
3654         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3655         program's data space, reallocate only the space that was just
3656         deallocated to release its backing space.
3657
3658 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3659
3660         * stdio-common/vfprintf.c (process_string_arg): For wide character
3661         version, handle precision also correctly.
3662
3663         * nss/nss_files/files-hosts.c: Correct problem with three or more
3664         entries with the same name.
3665
3666         * nss/nss_files/files-hosts.c: Implement multi handling.
3667         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3668
3669 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3670
3671         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3672         strcasecmp.
3673
3674         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3675         * malloc/Makefile: Likewise.
3676         * malloc/tst-mtrace.sh: Likewise.
3677         * posix/Makefile: Likewise.
3678         * posix/globtest.sh: Likewise.
3679         * posix/wordexp-tst.sh: Likewise.
3680         * string/Makefile: Likewise.
3681
3682 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3683
3684         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3685         size instead of LC_ALL to take into account the new locale
3686         categories.
3687
3688 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3689
3690         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3691         remainders of hash table.
3692         * locale/categories.def: Remove remainders of transliteration
3693         hash table.
3694         * locale/langinfo.h: Likewise.
3695         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3696         transliteration tables.
3697
3698         * locale/gen-translit.pl: New file.
3699         * locale/C-translit.h.in: New file.
3700         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3701         data pointers with data from this file.
3702         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3703         and gen-translit.pl.
3704         Add rule to generate C-translit.h.
3705         * intl/tst-translit.c (main): Update for now performed
3706         transliteration.
3707
3708         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3709         (it's no input error).
3710         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3711         * stdio-common/scanf12.c: Correct expected result for first scanf.
3712
3713         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3714         of multibyte character strings in %s format with precision.
3715
3716 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3717
3718         * locale/programs/ld-collate.c (collate_read): Allow collating
3719         symbols and elements be named in reorder-after instructions.
3720         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3721
3722         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3723         duplication with generated name, not the name of the first
3724         character.
3725         Patch by Yong Li <yong.li@asu.edu>.
3726
3727         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3728         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3729
3730 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3731
3732         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3733         allocations only if a non-main arena cannot be extended.
3734
3735 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3736
3737         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3738         in DF_1_NODEFLIB handling.
3739
3740 2000-07-21  Andreas Jaeger  <aj@suse.de>
3741
3742         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3743         own rule.
3744
3745         * libio/fwide.c: Include <wchar.h> for prototype.
3746
3747 2000-07-21  Greg McGary  <greg@mcgary.org>
3748
3749         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3750         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3751         Define in terms of chunk_at_offset.
3752         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3753         (next_bin, prev_bin): offset by size of real array elements.
3754         (chunk_align): Make `m' a scalar, since that's how it's used.
3755
3756 2000-07-21  Greg McGary  <greg@mcgary.org>
3757
3758         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3759         UNCHECK_BOUNDS.
3760         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3761         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3762         Wrap bounds around argv & envp and each of their string members.
3763         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3764         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3765         symbol in BP_SYM ().  Discard bounds of address arg.
3766         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3767         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3768         Discard bounds on address arg, add bounds to return value.
3769
3770 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3771
3772         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3773         * elf/filter.c: New file.
3774         * elf/filtmod1.c: New file.
3775         * elf/filtmod2.c: New file.
3776
3777         * elf/rtld.c: Define _dl_bind_not variable.
3778         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3779         * elf/dl-support.c: Likewise.
3780         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3781         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3782         _dl_bind_not.
3783         (profile_fixup): Likewise.
3784
3785         * libio/Makefile (routines): Add fwide.
3786         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3787         fwide now.  Internal calls to _IO_fwide must do locking themselves
3788         or don't need locking.
3789         * libio/fwide.c: New file.
3790
3791         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3792
3793         * elf/Makefile: Add no modules for nodelete test.
3794         * elf/nodelmod3.c: New file.
3795         * elf/nodelmod4.c: New file.
3796         * elf/nodelete.c: Also test case where dependency of dlopen() object
3797         is marked nodelete.
3798
3799         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3800         * elf/nodlopen.c: New file.
3801         * elf/nodlopenmod.c: New file.
3802         * include/dlfcn.h: Define __RTLD_DLOPEN.
3803         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3804         and this is a dlopen() call, do not load the binary.
3805         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3806         * dlfcn/dlopenold.c: Likewise.
3807         * configure.in: Add test for -z nodelete option.
3808         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3809
3810 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3811
3812         Make Hesiod NSS module thread-safe.
3813
3814         * hesiod/README.hesiod: Update.
3815
3816         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3817         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3818         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3819         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3820         hesiod-proto.
3821         * hesiod/nss_hesiod/hesiod-init.c: New file.
3822         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3823         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3824         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3825         * hesiod/nss_hesiod/hesiod-service.c
3826         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3827         looking up services by port number.
3828         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3829
3830         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3831         * hesiod/hesiod.h: Likewise.
3832         * hesiod/hesiod_p.h: Likewise.
3833
3834 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3835
3836         Fix problems with `struct __res_state' getting too big.
3837         * resolv/resolv.h (struct __sockaddr_in): New definition.
3838         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3839         the private parts of the structure to save some space.
3840         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3841         (struct sockaddr_in *) in call to sock_eq.
3842         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3843
3844 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3845
3846         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3847         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3848         with nodelete.
3849         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3850         to _dl_map_object.  Return immediately if no object loaded.
3851         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3852         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3853         if it exists into l_flags_1 word.
3854         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3855         it to determine whether loading is wanted or not.
3856         (_dl_map_object): Likewise.
3857         Call _dl_map_object_from_fd with new parameter.
3858         * sysdeps/generic/ldsodefs.h: Update prototype.
3859         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3860         * elf/rtld.c: Likewise.
3861         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3862         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3863         * elf/noload.c: New file.
3864         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3865         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3866         * sysdeps/mips/bits/dlfcn.h: Likewise.
3867         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3868         (tests-nodelete-yes): Define.
3869         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3870         Add rules to build nodelete and modules.
3871         * elf/nodelete.c: New file.
3872         * elf/nodelmod1.c: New file.
3873         * elf/nodelmod2.c: New file.
3874         * configure.in: Add test for -z nodelete option.
3875         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3876
3877         * libio/Makefile (tests): Add tst_wprintf2.
3878         (tst_wprintf2-ARGS): Define.
3879         * libio/tst_wprintf2.c: New file.
3880         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3881
3882         * libio/wfiledoalloc.c: Only allocate external buffer if this
3883         hasn't happened yet.
3884
3885         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3886         something in the buffer.  gconv call can write up to end of the
3887         buffer, not only _IO_write_end.
3888         (_IO_wfile_overflow): Allocate also external buffer.
3889
3890 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3891
3892         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3893         strings with precision in vfwprintf correctly.
3894         * stdio-common/vfprintf.c: Fix completely broken handling of
3895         unbuffered wide character streams.
3896         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3897
3898         * resolv/Makefile (distribute): Add README.
3899
3900         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3901
3902 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3903
3904         Update resolver code to BIND 8.2.3-T5B.
3905
3906         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3907         __res_nclose.
3908         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3909         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3910         __res_search.
3911         * resolv/Banner: BIND-8.2.3-T5B.
3912
3913         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3914         * resolv/herror.c: Likewise.
3915         * resolv/inet_addr.c: Likewise.
3916         * resolv/inet_net_ntop.c: Likewise.
3917         * resolv/inet_net_pton.c: Likewise.
3918         * resolv/inet_neta.c: Likewise.
3919         * resolv/inet_ntop.c: Likewise.
3920         * resolv/nsap_addr.c: Likewise.
3921         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3922         IPv6 addresses (ISC bug #520).
3923
3924         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3925         * resolv/ns_parse.c: Likewise.
3926         * resolv/ns_netint.c: Likewise.
3927         * resolv/ns_samedomain.c: Likewise.
3928         * resolv/ns_ttl.c: Likewise.
3929         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3930         RCS ID in object file.
3931
3932         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3933         * resolv/res_mkquery.c: Likewise.
3934         * resolv/res_query.c: Likewise.
3935         * resolv/res_init.c: Likewise.
3936         (res_setoptions): Mark internal.
3937         * resolv/res_send.c: Likewise.
3938         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3939         by using poll instead.
3940         * resolv/res_comp.c: Likewise.
3941         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3942         weak alias for __dn_expand.
3943         * resolv/res_data.c: Likewise.
3944         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3945         in _res.options.  Avoids a potential security risk by avoiding a
3946         close (0).
3947         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3948         res_mkquery, res_query, res_querydomain adn res_search weak
3949         aliases for __res_mkquery, __res_query, __res_querydomain and
3950         __res_search.
3951         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3952         instead to avoid close(0).
3953         (res_init): Always use the static resolver context.
3954         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3955         alias for __res_init.
3956
3957         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
3958         RES_SET_H_ERRNO and accompanying comment to...
3959         * include/resolv.h: ... here.
3960
3961         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
3962         * resolv/arpa/nameser_compat.h: Likewise.
3963
3964 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3965
3966         * nss/makedb.c (main): Compare result of load_db with
3967         NSS_STATUS_SUCCESS and not 0.
3968         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
3969
3970         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
3971
3972 2000-07-18  Greg McGary  <greg@mcgary.org>
3973
3974         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
3975         (EXTEND_BUFFER): Use it.
3976
3977 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3978
3979         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
3980         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
3981         __builtin_return_address.
3982         * dlfcn/dlopenold.c: Likewise.
3983         * dlfcn/dlsym.c: Likewise.
3984         * dlfcn/dlvsym.c: Likewise.
3985         * elf/dl-profstub.c: Likewise.
3986         * malloc/malloc.c: Likewise.
3987         * sysdeps/generic/machine-gmon.h: Likewise.
3988         Based on a patch by schwidefsky@de.ibm.com.
3989
3990 2000-07-18  Andreas Jaeger  <aj@suse.de>
3991
3992         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
3993         NULL to elf_machine_fixup_plt t argument to silence GCC.
3994
3995         * include/string.h: Add prototype for __memchr.
3996
3997         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
3998
3999         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
4000         instead of memrchr.
4001
4002 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
4003
4004         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
4005
4006         * locale/C-ctype.c: Add initializers for gap elements.
4007         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
4008         for gap elements.
4009
4010 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4011
4012         * nscd/nscd.c (print_version): Update copyright year.
4013
4014 2000-07-17  Greg McGary  <greg@mcgary.org>
4015
4016         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4017         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
4018         signature argnames with angle-brackets for use as word delimiters,
4019         and to induce syntax errors for any args not handled.  Split
4020         multi-echo echoes and comment each stage.
4021         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
4022         * sysdeps/unix/inet/syscalls.list: Likewise.
4023         * sysdeps/unix/mman/syscalls.list: Likewise.
4024         * sysdeps/unix/syscalls.list: Likewise.
4025         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4026         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4027         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4028         * sysdeps/unix/sysv/syscalls.list: Likewise.
4029         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
4030
4031         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
4032         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
4033         qualifiers.  Don't check NULL-terminator of argv & envp.
4034         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
4035         unbounded pointer type in word-size assertion.
4036         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
4037         cases to stifle warnings.
4038
4039         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
4040         _IO_file_attach.
4041         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4042
4043         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
4044         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
4045         ptr as __unbouned.
4046
4047         * Makerules (o-objects): Supplement with $(o-objects$o).
4048         * string/Makefile (o-objects.ob): Add variable to pull
4049         unbounded versions of memcpy, memset and memchr into libc_b.
4050
4051         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
4052         rather than non-existent __ubp_memchr.
4053         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
4054         (_CHECK_STRING, _CHECK_N): New macros.
4055         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
4056         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
4057         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
4058         Add weak alias "memchr".
4059         * sysdeps/generic/memchr.c: Likewise.
4060         * sysdeps/i386/memchr.S: Likewise.
4061         * sysdeps/ia64/memchr.S: Likewise.
4062         * sysdeps/m68k/memchr.S: Likewise.
4063         * sysdeps/sparc/sparc32/memchr.S: Likewise.
4064         * sysdeps/sparc/sparc64/memchr.S: Likewise.
4065         * sysdeps/vax/memchr.s: Likewise.
4066
4067         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
4068
4069         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
4070         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
4071         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
4072         __BOUNDED_POINTERS__.
4073         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
4074         for __BOUNDED_POINTERS__.
4075
4076 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4077
4078         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4079         field of struct __gconv_trans_data differently.  Don't pass NULL to
4080         trans_init_fct.  Simplify list append operation.
4081
4082 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4083
4084         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4085         not only those having tsearch.
4086
4087 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4088
4089         * locale/langinfo.h: Add placeholder values in enum for removed
4090         LC_CTYPE entries.
4091
4092 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4093
4094         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4095         chain if the PHDR check fails.
4096
4097 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4098
4099         * nss/getent.c (print_hosts): Make sure we always print a space
4100         between numeric addresses and hostnames.
4101
4102 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4103
4104         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4105         i.e. if n_mmaps_max>0.
4106
4107 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4108
4109         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4110         values to remove possible clash with other AI_* constants.
4111         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4112         hexadecimal constants to stress the fact they're in fact
4113         bit flags.
4114
4115 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4116
4117         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4118         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4119         instead of res_init.
4120
4121 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4122
4123         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4124         parameters of memset calls to avoid warnings.
4125
4126 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4127
4128         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4129         necessary.
4130
4131         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4132         Patch by Greg McGary <greg@mcgary.org>.
4133
4134         * io/Makefile (tests): Add tst-getcwd.
4135         * io/tst-getcwd.c: New file.
4136
4137         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4138
4139 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4140
4141         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4142         structure.
4143
4144 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4145
4146         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4147         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4148
4149 2000-07-12  H.J. Lu  <hjl@gnu.org>
4150
4151         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4152         GLIBC_2.2.
4153         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4154         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4155         (sysdep-routines): Add clone2.
4156         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4157
4158 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4159
4160         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4161         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4162
4163 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4164
4165         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4166         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4167         Change type of si_band from "int" to "long".
4168         (si_imm) [USE_GNU]: Define
4169         (si_isr) [USE_GNU]: Ditto.
4170         (ILL_BREAK) [USE_GNU]: Ditto.
4171         (FPE_DECOVF) [USE_GNU]: Ditto.
4172         (FPE_DECDIV) [USE_GNU]: Ditto.
4173         (FPE_DECERR) [USE_GNU]: Ditto.
4174         (FPE_INVASC) [USE_GNU]: Ditto.
4175         (FPE_INVDEC) [USE_GNU]: Ditto.
4176         (TRAP_BRANCH) [USE_GNU]: Ditto.
4177         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4178
4179 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4180
4181         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4182         bits/sigcontext as struct mcontext does not depend on it.
4183
4184         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4185
4186 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4187
4188         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4189
4190 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4191
4192         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4193
4194 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4195
4196         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4197
4198 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4199
4200         * intl/Makefile (test-srcs): Add tst-translit.
4201         (tests): Likewise.
4202         Add rules to build and run tst-translit.
4203         * intl/tst-translit.c: New file.
4204         * intl/tst-translit.sh: New file.
4205         * intl/translit.po: New file.
4206
4207 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4208
4209         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4210         transliteration function did its job, continue, don't stop.
4211
4212         * iconvdata/iso646.c: Little optimizations in body for conversion
4213         from UCS4.
4214
4215 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4216
4217         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4218
4219 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4220
4221         * configure.in: Check for pwd binary.
4222         * config.make.in: Add PWD_P to be subsituted.
4223         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4224
4225 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4226
4227         * iconvdata/Makefile (modules): Add GB18030.
4228         (distribute): Add gb18030.c.
4229         * iconvdata/gconv-modules: Add entries for GB18030 module.
4230         * iconvdata/gb18030.c: New file.
4231         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4232         and Wu Jian.
4233
4234 2000-07-13  Andreas Jaeger  <aj@suse.de>
4235
4236         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4237         patch.
4238
4239         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4240         * inet/getnetgrent.c (free_mem): Likewise.
4241         * misc/mntent.c (free_mem): Likewise.
4242         * nss/getXXbyYY.c (free_mem): Likewise.
4243         * nss/getXXent.c (free_mem): Likewise.
4244         * pwd/fgetpwent.c (free_mem): Likewise.
4245         * shadow/fgetspent.c (free_mem): Likewise.
4246
4247 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4248
4249         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4250         64-bit architecture correctly [PR libc/1794].
4251
4252 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4253
4254         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4255         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4256         report that we are out of memory.
4257         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4258         * elf/dl-libc.c (dlerror_run): Likewise.
4259         * elf/dl-open.c (_dl_open): Likewise.
4260         * elf/rtld.c (dl_main): Likewise.
4261         * elf/dl-error.c: Define _dl_out_of_memory.
4262         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4263         the error string.
4264         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4265         [PR libc/1813].
4266
4267         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4268
4269         * iconv/loop.c: Fix comment.
4270
4271         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4272
4273 2000-07-13  Andreas Jaeger  <aj@suse.de>
4274
4275         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4276         getcwd (NULL, size) with size > 0.
4277         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4278
4279 2000-07-13  Andreas Jaeger  <aj@suse.de>
4280
4281         * posix/Makefile: Remove build rules for libposix.
4282
4283 2000-07-13  Andreas Schwab  <schwab@suse.de>
4284
4285         * sysdeps/generic/glob.c (glob): Fix memory leak.
4286         [SHELL]: Remove reference to undefined variable `files'.
4287         Fixes PR libc/1782.
4288
4289 2000-07-13  Andreas Jaeger  <aj@suse.de>
4290
4291         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4292         functions.
4293
4294         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4295         memory if it was allocated.
4296
4297 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4298
4299         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4300         step.
4301
4302         * iconv/gconv_open.c (__gconv_open): Reapply
4303         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4304
4305                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4306
4307         * iconv/gconv_open.c: Undo last two changes for now.  They break
4308         everything.
4309
4310 2000-07-12  Andreas Jaeger  <aj@suse.de>
4311
4312         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4313         compiler.
4314         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4315         (CFLAGS-dl-cache.c): Likewise.
4316         (CFLAGS-ldconfig.c): Added, passes directory locations.
4317
4318         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4319         locate cache.
4320         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4321         (main): Use configured LIBDIR and SLIBDIR.
4322
4323 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * math/bits/cmathcalls.h (cimag): Add __THROW.
4326         (creal, conj): Likewise.
4327         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4328         by negative value.
4329
4330 2000-07-12  H.J. Lu  <hjl@gnu.org>
4331
4332         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4333         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4334
4335 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4336
4337         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4338         it is wrong.
4339
4340 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4341
4342         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4343
4344 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4345
4346         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4347         __modname.
4348
4349 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4350
4351         * iconv/gconv_open.c (__gconv_open): Initialize
4352         result->__steps[cnt].__data.
4353
4354 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4355
4356         * nss/getent.c (services_keys): Pass port number in network byte
4357         order in call to getservbyport.
4358
4359 2000-07-11  Andreas Jaeger  <aj@suse.de>
4360
4361         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4362         source dir.
4363         * intl/Makefile (do-gettext-test): Likewise.
4364         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4365
4366 2000-07-11  Andreas Schwab  <schwab@suse.de>
4367
4368         * Makeconfig (run-program-prefix): New rule.
4369         (built-program-cmd): Use run-program-prefix.
4370
4371 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4372
4373         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4374         and NOEXPR unconditionally available.
4375
4376 2000-07-12  Greg McGary  <greg@mcgary.org>
4377
4378         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4379         * sysdeps/posix/open64.c: Likewise.
4380         * sysdeps/generic/fegetenv.c: Likewise.
4381         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4382         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4383         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4384         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4385         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4386         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4387
4388 2000-07-11  Greg McGary  <greg@mcgary.org>
4389
4390         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4391         Add extra level of macro expansion.
4392         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4393         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4394         is available at the time `select' prototype is declared.
4395         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4396         Collect non-versioned weak aliases.  Consider only non-versioned
4397         aliases for the user-visible systemcall name.  Do checks inline with
4398         call to primitive system call.
4399         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4400         stand-alone bounds checks to suppress unused value warnings.
4401         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4402
4403 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4404
4405         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4406         file descriptor checking in SUID programs for the Hurd.
4407
4408         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4409         res_hostalias instead of __hostalias for thread-safety.
4410
4411 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4412
4413         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4414         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4415
4416 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4417
4418         * include/features.h: Include ISO C99 features if the compiler used
4419         is an ISO C99 compiler.
4420         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4421
4422 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4423
4424         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4425
4426 2000-07-10  Andreas Jaeger  <aj@suse.de>
4427
4428         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4429         it's overridden by libpthreads.
4430         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4431         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4432         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4433         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4434         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4435
4436         * malloc/Makefile: Run tst-mtrace only with shared libs.
4437
4438         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4439         with shared libs.
4440
4441 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4442
4443         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4444         that gpreg really points to the GOT section of the calling object.
4445         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4446         checking a start address of first one.
4447         Fix typos.
4448         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4449         Likewise.
4450
4451         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4452
4453 2000-07-10  Andreas Jaeger  <aj@suse.de>
4454
4455         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4456         (string_alias->strong_alias).
4457
4458 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4459
4460         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4461
4462 2000-07-07  Greg McGary  <greg@mcgary.org>
4463
4464         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4465         have no names without leading underscores.
4466
4467 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4468
4469         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4470         U007E.
4471
4472         * stdio-common/Makefile (tests): Remove tst-printf here...
4473         (tests-srcs): ...and add it here.
4474         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4475         Add rules to run tst-printf.sh.
4476         * stdio-common/tst-printf.c: Move code around so that there is really
4477         no further output where it's stated.
4478         * stdio-common/tst-printf.sh: New file.
4479
4480 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4481
4482         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4483         (do_write): Renamed from pwrite.
4484         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4485         `struct _IO_cookie_file'.
4486
4487 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4488
4489         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4490         detected.
4491         * malloc/tst-mtrace.sh: Run mtrace script.
4492
4493 2000-07-07  Greg McGary  <greg@mcgary.org>
4494
4495         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4496         Move all three components of a bounded pointer.
4497
4498 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4499
4500         * locale/programs/locale.c (write_locales): Don't simply add all
4501         directories found in the subdir, test whether at least the
4502         LC_CTYPE file is in there.
4503
4504 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4505
4506         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4507         * iconvdata/euc-kr.c: Likewise.
4508
4509         * stdio-common/vfprintf.c (process_string_arg): Check result of
4510         wcrtomb call and bail out if it failed.
4511
4512         * malloc/Makefile (test-srcs): Add tst-mtrace.
4513         (distribute): Add tst-mtrace.sh.
4514         Add rule to run tst-mtrace.sh.
4515         * malloc/tst-mtrace.c: New file.
4516         * malloc/tst-mtrace.sh: New file.
4517
4518         * include/signal.h: Declare __libc_sigaction.
4519         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4520         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4521         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4522         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4523         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4524         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4525         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4526
4527         * configure.in: Fix CFLAGS-memprofstat.c definition after
4528         2000-06-19 change.
4529         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4530
4531 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4532
4533         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4534         instead of NULL to elf_machine_fixup_plt t argument.
4535         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4536         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4537         cast.
4538
4539 2000-07-06  Andreas Jaeger  <aj@suse.de>
4540
4541         * crypt/Makefile (LDLIBS-cert): Removed.
4542         (LDLIBS-md5c-test): Removed.
4543         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4544         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4545
4546 2000-07-06  Andreas Jaeger  <aj@suse.de>
4547
4548         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4549         of the proc system is "proc".
4550
4551         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4552         thread library for static programs.
4553
4554 2000-07-06  Greg McGary  <greg@mcgary.org>
4555
4556         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4557         New macros.
4558         * sysdeps/generic/strcpy.c: Add bounds checks.
4559         * sysdeps/unix/fxstat.c: Likewise.
4560         * sysdeps/unix/xstat.c: Likewise.
4561         * sysdeps/unix/common/lxstat.c: Likewise.
4562         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4563         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4564         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4565         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4566         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4567         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4568         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4569         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4570         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4571         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4572         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4573         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4574         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4575         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4576         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4577         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4578         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4579         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4580         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4581         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4582         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4583         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4584         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4585         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4586         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4587         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4588         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4589         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4590         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4591         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4592         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4593         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4594         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4595         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4596         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4597         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4598         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4599         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4600         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4601         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4602         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4603         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4604         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4605         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4606         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4607         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4608         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4609         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4610         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4611         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4612         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4613         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4614         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4615         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4616         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4617         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4618         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4619         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4620         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4621         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4622         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4623         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4624         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4625         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4626
4627         * string/endian.h (__LONG_LONG_PAIR): New macro.
4628         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4629         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4630         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4631         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4632         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4633         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4634         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4635         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4636         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4637         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4638         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4639         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4640
4641         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4642
4643 2000-07-06  Andreas Jaeger  <aj@suse.de>
4644
4645         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4646         Initialize result.
4647
4648         * math/test-fpucw.c: Include <stdio.h> for printf.
4649
4650 2000-07-05  Greg McGary  <greg@mcgary.org>
4651
4652         * sysdeps/generic/bp-checks.h: New file.
4653         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4654         with list of #include files.
4655         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4656         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4657         Don't generate BP thunk if `V' appears in signature.
4658         Generate thunks with complete bounds checks.
4659         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4660         * sysdeps/unix/inet/syscalls.list: Likewise.
4661         * sysdeps/unix/mman/syscalls.list: Likewise.
4662         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4663         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4664         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4665         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4666
4667 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4668
4669         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4670         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4671         If mount not in the file fall back on /proc.
4672
4673         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4674         string got copied in.
4675         Patch by Solar Designer <solar@false.com>.
4676
4677 2000-07-05  Andreas Jaeger  <aj@suse.de>
4678
4679         * manual/install.texi (Installation): Update information about
4680         add-ons.
4681         (Configuring and compiling): Update for glibc 2.2.
4682
4683 2000-07-04  Andreas Jaeger  <aj@suse.de>
4684
4685         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4686         (_FPU_IEEE): Likewise.
4687
4688         * math/Makefile (tests): Add test-fpucw.
4689
4690         * math/test-fpucw.c (main): New file.
4691
4692 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4693
4694         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4695
4696         * locale/programs/ld-collate.c (collate_output): Also write out the
4697         collation sequence values and the wide character string for the
4698         collation symbol table.
4699
4700         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4701         * posix/fnmatch_loop.c: Implement collating symbol handling.
4702         * posix/tst-fnmatch.input: Add more tests, especially for collating
4703         symbol handling.
4704
4705         * posix/regex.c: Fix comment.
4706
4707 2000-07-05  Andreas Jaeger  <aj@suse.de>
4708
4709         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4710         (_FPU_GETCW): Remove extra colon.
4711         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4712
4713         * posix/fnmatch_loop.c (FCT): Only declare len if
4714         !WIDE_CHAR_VERSION to silence GCC.
4715
4716         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4717         prototype.
4718         * sysdeps/generic/strchrnul.c: Likewise.
4719         * sysdeps/generic/strlen.c: Likewise.
4720         * sysdeps/generic/strchr.c: Likewise.
4721         * sysdeps/generic/memchr.c: Likewise.
4722
4723 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4724
4725         * posix/fnmatch_loop.c: Implement equivalence class handling.
4726         * posix/tst-fnmatch.input: Add tests for equivalence class
4727         handling.
4728
4729         * posix/fnmatch_loop.c: Improve performance for single-byte
4730         character sets by not using btowc.
4731
4732         * posix/tst-fnmatch.input: Add tests for locale dependent
4733         behaviour.
4734         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4735
4736         * posix/tst-fnmatch.input: Add more test cases.
4737
4738         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4739         are not aligned to alignof(md5_uint32) do it before calling
4740         __md5_process_bytes.
4741         * crypt/md5.c: Make sure buffers are aligned.
4742         * crypt/md5.h: Likewise.
4743         Reported by Solar Designer <solar@false.com>.
4744
4745         * crypt/Makefile: Add dependencies for test programs.
4746
4747         * Rules: Define LC_ALL=C in environments of all programs we run.
4748
4749         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4750
4751 2000-07-03  H.J. Lu  <hjl@gnu.org>
4752
4753         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4754         is 2 + elem + offset, not 2 + elem + offset + 2.
4755
4756 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4757
4758         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4759         suite.
4760         * posix/Makefile (tests): Add tst-fnmatch.
4761         (tst-fnmatch-ENV): Define.
4762         * posix/tst-fnmatch.c: New file.
4763         * posix/tst-fnmatch.sh: New file.
4764
4765 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4766
4767         * locale/programs/charmap.c (charmap_read): Prepend
4768         the condition filename == NULL.
4769
4770 2000-07-03  Greg McGary  <greg@mcgary.org>
4771
4772         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4773
4774         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4775         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4776
4777         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4778         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4779         (FILEBUF_LITERAL): Add cast for CHAIN init.
4780         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4781         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4782         Revert type of `fp' to _IO_FILE*.
4783         (_IO_iter_file): Remove cast.
4784         (_IO_iter_next): Elide intermediate member reference.
4785
4786         * sysdeps/powerpc/strchr.S:  Check bounds.
4787         Wrap extern symbols in BP_SYM ().
4788
4789 2000-07-03  Andreas Jaeger  <aj@suse.de>
4790
4791         * dlfcn/Makefile (generated): New.
4792
4793 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4794
4795         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4796         (__uflow): Likewise.
4797         (__underflow): Likewise.
4798         * libio/wgenops.c (__wunderflow): Likewise.
4799         * stdio-common/tst-unbputc.c: New file.
4800         * stdio-common/tst-unbputc.sh: New file.
4801         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4802
4803         * po/en_GB.po: New file.
4804         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4805
4806 2000-07-01  Andreas Jaeger  <aj@suse.de>
4807
4808         * intl/Makefile (generated-dirs): New.
4809
4810         * elf/Makefile (generated): trusted-dirs.h is always generated,
4811         move out of build-shared condition.
4812         (generated): Merge the two entries for build-shared.
4813
4814 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4815
4816         * debug/Makefile (distribute): Add xtrace.sh.
4817
4818 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4819
4820         * version.h (VERSION): Bump to 2.1.91.
4821
4822         * configure.in: Update warning comment.  glibc should not be
4823         broken anymore.
4824
4825         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4826         ioperm.c, sys/procfs.h, and sys/io.h.
4827
4828         * sysdeps/powerpc/Dist: Add bp-asm.h.
4829
4830         * assert/Depend: Add localedata.
4831         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4832         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4833
4834         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4835         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4836         relocation address to prevent unaligned trap.
4837         Suggested by Richard Henderson <rth@cygnus.com>.
4838
4839 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4840
4841         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4842         if redirecting and either redirection is done using defines or
4843         not optimizing.
4844
4845 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4846
4847         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4848         generated expressions.
4849         Patch by Darren McClelland <dmcclell@zetec.com>.
4850
4851         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4852         since zic uses setlocale and gettext but we cannot make it use the
4853         new locale data since zic calls a shell which might not use the
4854         new libc.
4855
4856         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4857         handling the internation currency symbol.  POSIX says that the
4858         fourth character is used to separate the currency symbol from the
4859         value.  Therefore it does not have to be printed.  But we cannot
4860         remove the space if the currency symbol is printed before the
4861         number since this is what many locales expect.
4862
4863         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4864         whether this information is available.
4865
4866         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4867         buffers in case the translation is too large.  Remember allocated
4868         memory blocks in a list.
4869         (free_mem): Free memory for translations.
4870
4871         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4872
4873         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4874         information is available set the string length to zero.
4875
4876         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4877
4878 2000-06-30  Greg McGary  <greg@mcgary.org>
4879
4880         * sysdeps/powerpc/bp-asm.h: New file.
4881         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4882         Wrap extern symbols in BP_SYM ().
4883         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4884         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4885         * sysdeps/powerpc/setjmp.S: Likewise.
4886         * sysdeps/powerpc/add_n.S: Likewise.
4887         * sysdeps/powerpc/addmul_1.S: Likewise.
4888         * sysdeps/powerpc/lshift.S: Likewise.
4889         * sysdeps/powerpc/rshift.S: Likewise.
4890         * sysdeps/powerpc/mul_1.S: Likewise.
4891         * sysdeps/powerpc/sub_n.S: Likewise.
4892         * sysdeps/powerpc/submul_1.S: Likewise.
4893         * sysdeps/powerpc/strlen.S: Likewise.
4894         * sysdeps/powerpc/memset.S: Likewise.
4895         * sysdeps/powerpc/stpcpy.S: Likewise.
4896         * sysdeps/powerpc/strcmp.S: Likewise.
4897         * sysdeps/powerpc/strcpy.S: Likewise.
4898         * sysdeps/powerpc/elf/bzero.S: Likewise.
4899
4900         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4901         Line up operands column with tabs.
4902
4903 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4904
4905         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4906
4907         * sysdeps/ia64/htonl.S: New file.
4908         * sysdeps/ia64/htons.S: New file.
4909         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4910         floating point registers.
4911         Patches by Dan Pop <Dan.Pop@cern.ch>.
4912
4913 2000-06-30  Andreas Jaeger  <aj@suse.de>
4914
4915         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4916         shared libraries.
4917
4918         * io/Makefile (CFLAGS-test-lfs.c): New.
4919         (tests): Add test-lfs.
4920
4921         * io/test-lfs.c: New file.
4922
4923 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4924
4925         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4926         instruction.
4927
4928 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4929
4930         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4931
4932 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4933
4934         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4935         alias to the fstatfs call.
4936
4937         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4938         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4939
4940         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4941         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4942
4943         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4944         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4945         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4946         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4947
4948         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4949         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4950
4951         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4952         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4953
4954         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4955         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4956
4957         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
4958
4959 2000-06-29  Andreas Jaeger  <aj@suse.de>
4960
4961         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
4962         with syslog.
4963         (print_err_message): Likewise.
4964         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
4965
4966 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4967
4968         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
4969         used as words is properly aligned.
4970
4971         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
4972         data files.
4973
4974 2000-06-29  Greg McGary  <greg@mcgary.org>
4975
4976         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
4977         * sysdeps/unix/make-syscalls.sh: Handle signatures of
4978         length 7..9, just in case...
4979         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
4980
4981         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
4982         (POP_ERRNO_LOCATION_RETURN): Fold insns.
4983         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
4984         (PUSH_SIGNAL_MASK): New macro.
4985         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
4986         LEAVE is unnecessary.  Check bounds of jmp_buf.
4987         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
4988         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
4989         immediately before tail-call.
4990         * sysdeps/i386/setjmp.S: Likewise.
4991         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4992         * sysdeps/i386/bsd-setjmp.S: Likewise.
4993
4994 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
4995
4996         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
4997         versioned_symbol.
4998         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
4999         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
5000         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
5001         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
5002         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
5003         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
5004         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
5005         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
5006
5007 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5008
5009         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
5010         we later need to calling free().
5011         Patch by Matt Wilson <msw@redhat.com>.
5012
5013         * stdio-common/tst-printf.c: Add test for above problem.
5014
5015 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
5016
5017         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
5018         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
5019
5020 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5021
5022         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
5023         prototype for abs().
5024         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
5025
5026 2000-06-23  Andreas Jaeger  <aj@suse.de>
5027
5028         * config.h.in: Don't use regparm with bounded pointers.
5029
5030 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
5031
5032         * stdlib/grouping.h: Correctly handle multibyte thousands
5033         separator and decimal point.
5034         * stdlib/stdtod.c: Likewise.
5035         * sysdeps/generic/strtol.c: Likewise.
5036
5037         * locale/categories.def: Add entries for wide character decimal point
5038         and thousands separator in numeric and monetary category.
5039
5040 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5041
5042         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
5043         second definition and initialization of decimal.
5044
5045 2000-06-28  Greg McGary  <greg@mcgary.org>
5046
5047         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
5048         out.
5049         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
5050         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
5051         in.
5052         (_IO_JUMPS): Don't cast THIS--expect arg to be a
5053         (struct _IO_FILE_plus *).
5054         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
5055         THIS, since _IO_JUMPS no longer does it implicitly.
5056         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
5057         arg type as (struct _IO_FILE_plus *).
5058         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
5059         arg as (_IO_strfile *).
5060         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
5061         Declare 1st arg as (_IO_strfile *).
5062         * libio/fileops.c (_IO_new_file_init): Declare
5063         arg type as (struct _IO_FILE_plus *).
5064         * libio/oldfileops.c (_IO_old_file_init): Likewise.
5065         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
5066         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
5067         Declare iteration pointer as (struct _IO_FILE_plus *).
5068         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
5069                 (struct _IO_FILE_plus *).
5070         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
5071         * libio/oldstdfiles.c (_IO_list_all): Likewise.
5072         (_IO_check_libio): Set user-visible handles to
5073         (struct _IO_FILE_plus *).
5074         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
5075         to (struct _IO_FILE_plus *).
5076
5077         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5078         whose high bound includes vtable to all functions that will use
5079         vtable.  For streambufs, pass pointer whose bounds include struct
5080         _IO_strfile.
5081         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5082         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5083         * libio/iofopen.c (_IO_new_fopen): Likewise.
5084         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5085         * libio/iofopen64.c (_IO_fopen64): Likewise.
5086         * libio/iopopen.c (_IO_new_popen): Likewise.
5087         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5088         * libio/memstream.c (open_memstream): Likewise.
5089         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5090         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5091         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5092         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5093         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5094         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5095         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5096         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5097         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5098         * stdlib/strfmon.c (__strfmon_l): Likewise.
5099         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5100         (vfprintf): Qualify computed-goto targets as unbounded.
5101
5102 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5103
5104         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5105         thousands separator correctly.
5106
5107         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5108         * stdio-common/vfwscanf.c: Likewise.
5109
5110 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5111
5112         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5113         count into signatures for most calls.
5114
5115 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5116
5117         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5118         the generic parser now.
5119
5120 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5121
5122         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5123         table entries are 32 bit on the ia64 (as specified by the ABI),
5124         not 64 bit as on the Alpha.
5125
5126         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5127         change of objects to use 32 bit hash table indices (see above).
5128
5129 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5130
5131         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5132         prototype for abs().
5133
5134 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5135
5136         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5137         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5138         may have been reached.
5139
5140 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5141
5142         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5143         symbols in multi-character weights correctly.
5144
5145         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5146         depending on whether the input string is empty or not.
5147
5148         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5149         given state and not avoiding this by modifying a local object.
5150         * wcsmbs/wcrtomb.c: Likewise.
5151
5152         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5153         object since some incomplete characters might be in there.
5154
5155         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5156         sequences with first byte 0x8e correctly.
5157
5158         * iconvdata/jis0208.h: Remove redundant test.
5159
5160 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5161
5162         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5163         Add it where it is needed now.
5164
5165         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5166         the input charset into account when generating the hash table.
5167         (allocate_arrays): Correct setting default width.  Not all empty slots
5168         in the table are filled, only those not covert explicitly by the
5169         locale description and in the charset.
5170
5171         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5172         return values from the wctrans function.
5173
5174         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5175         wide character version.
5176         For %C handling, test correct pointer variable for NULL.
5177
5178         * wcsmbs/wctob.c: Handle WEOF special.
5179
5180         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5181
5182         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5183         always-true test to avoid warning.
5184
5185 2000-06-27  Greg McGary  <greg@mcgary.org>
5186
5187         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5188         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5189         (symbol_version, default_symbol_version): Factor redundant
5190         definitions out of conditional.
5191
5192 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5193
5194         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5195         not obstack_blank.
5196
5197 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5198
5199         * include/libc-symbols.h (symbol_version): Add extra level of
5200         macro expansion.
5201         (default_symbol_version): Likewise.
5202
5203 2000-06-26  Greg McGary  <greg@mcgary.org>
5204
5205         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5206         for BP return value & push implicit struct-return pointer to
5207         __errno_location.
5208         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5209         (SYSCALL_ERROR_HANDLER): Likewise.
5210         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5211         (SYSCALL_ERROR_HANDLER): Likewise.
5212
5213         * Makeconfig: Add missing comment.
5214         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5215         BP-flavored startup object.
5216         ($(objpfx)b$(start-installed-name)): New rule.
5217         * include/libc-symbols.h (symbol_set_declare): Change type
5218         of `__start_##set' and `__stop_##set' to pointer-to-function.
5219         (symbol_set_declare): Change type of `set' to array of
5220         pointer-to-function.
5221         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5222         pointer-to-function.
5223
5224         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5225
5226         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5227         Remove clock_* and timer_* entries.
5228         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5229         arg-count with signatures.
5230
5231         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5232         Check bounds of arguments.
5233         * sysdeps/i386/addmul_1.S: Likewise.
5234         * sysdeps/i386/lshift.S: Likewise.
5235         * sysdeps/i386/mul_1.S: Likewise.
5236         * sysdeps/i386/rshift.S: Likewise.
5237         * sysdeps/i386/sub_n.S: Likewise.
5238         * sysdeps/i386/submul_1.S: Likewise.
5239         * sysdeps/i386/i586/add_n.S: Likewise.
5240         * sysdeps/i386/i586/addmul_1.S: Likewise.
5241         * sysdeps/i386/i586/lshift.S: Likewise.
5242         * sysdeps/i386/i586/rshift.S: Likewise.
5243         * sysdeps/i386/i586/sub_n.S: Likewise.
5244         * sysdeps/i386/i686/add_n.S: Likewise.
5245
5246         * sysdeps/i386/memchr.S: Likewise.
5247         * sysdeps/i386/memcmp.S: Likewise.
5248         * sysdeps/i386/rawmemchr.S: Likewise.
5249         * sysdeps/i386/i586/bzero.S: Likewise.
5250         * sysdeps/i386/i586/memcpy.S: Likewise.
5251         * sysdeps/i386/i586/mempcpy.S: Likewise.
5252         * sysdeps/i386/i586/memset.S: Likewise.
5253         * sysdeps/i386/i686/bzero.S: Likewise.
5254         * sysdeps/i386/i686/memcpy.S: Likewise.
5255         * sysdeps/i386/i686/mempcpy.S: Likewise.
5256         * sysdeps/i386/i686/memset.S: Likewise.
5257
5258         * sysdeps/i386/stpcpy.S: Likewise.
5259         * sysdeps/i386/stpncpy.S: Likewise.
5260         * sysdeps/i386/strchr.S: Likewise.
5261         * sysdeps/i386/strchrnul.S: Likewise.
5262         * sysdeps/i386/strcspn.S: Likewise.
5263         * sysdeps/i386/strpbrk.S: Likewise.
5264         * sysdeps/i386/strrchr.S: Likewise.
5265         * sysdeps/i386/strspn.S: Likewise.
5266         * sysdeps/i386/strtok.S: Likewise.
5267         * sysdeps/i386/strtok_r.S: Likewise.
5268         * sysdeps/i386/i486/strcat.S: Likewise.
5269         * sysdeps/i386/i486/strlen.S: Likewise.
5270         * sysdeps/i386/i586/strchr.S: Likewise.
5271         * sysdeps/i386/i586/strcpy.S: Likewise.
5272         * sysdeps/i386/i586/strlen.S: Likewise.
5273         * sysdeps/i386/i686/strcmp.S: Likewise.
5274         * sysdeps/i386/i686/strtok.S: Likewise.
5275         * sysdeps/i386/i686/strtok_r.S: Likewise.
5276
5277         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5278         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5279         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5280         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5281         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5282
5283         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5284         * sysdeps/i386/mul_1.S: Likewise.
5285         * sysdeps/i386/submul_1.S: Likewise.
5286         * sysdeps/i386/i586/add_n.S: Likewise.
5287         * sysdeps/i386/i586/addmul_1.S: Likewise.
5288         * sysdeps/i386/i586/lshift.S: Likewise.
5289         * sysdeps/i386/i586/mul_1.S: Likewise.
5290         * sysdeps/i386/i586/rshift.S: Likewise.
5291         * sysdeps/i386/i586/sub_n.S: Likewise.
5292         * sysdeps/i386/i586/submul_1.S: Likewise.
5293
5294 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5295
5296         * rt/Makefile (librt-routines): Add clock_nanosleep.
5297         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5298         * sysdeps/generic/clock_nanosleep.c: New file.
5299         * sysdeps/unix/clock_nanosleep.c: New file.
5300         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5301         * time/time.h: Declare clock_nanosleep.
5302
5303 2000-06-26  Greg McGary  <greg@mcgary.org>
5304
5305         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5306         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5307         (ALIGN): Cleanup surrounding conditionals.
5308
5309         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5310         Call ENTER/LEAVE macros.
5311         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5312         * sysdeps/i386/submul_1.S: Likewise.
5313
5314         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5315         syntax.  Define & use symbolic argument stack offsets.  Call
5316         ENTER/LEAVE macros.
5317         * sysdeps/i386/i586/mul_1.S: Likewise.
5318         * sysdeps/i386/i586/submul_1.S: Likewise.
5319
5320 2000-06-25  Greg McGary  <greg@mcgary.org>
5321
5322         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5323         not as bcopy.
5324
5325 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5326
5327         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5328         * iconvdata/gen-8bit-gap.sh: Likewise.
5329         * iconvdata/gen-8bit.sh: Likewise.
5330
5331         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5332
5333         * locale/programs/ld-collate.c (collate_read): Don't actually read
5334         the copy locale if we are ignoring the content.
5335
5336         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5337         unknown character.
5338
5339         * locale/programs/ld-collate.c: Correct handling of different
5340         collation sections.
5341         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5342         as extra parameter from which to copy category information.
5343         Change all callers.
5344         (load_locale): Likewise.
5345         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5346         and load_locale.
5347         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5348         * locale/programs/locfile.h: Likewise.
5349         * locale/programs/locfile-kw.gperf: Add entry for script.
5350         * locale/programs/locfile-token.h: Add tok_script.
5351
5352         * locale/programs/locale.c: Update copyright year.
5353         * locale/programs/localedef.c: Likewise.
5354
5355 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5356
5357         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5358         Jens Moeller <jens.moeller@waii.com>.
5359
5360 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5361
5362         * locale/programs/ld-name.c (name_finish): Add missing format
5363         specifier to test for name_fmt.
5364
5365         * locale/programs/ld-address.c (iso639): Correct length of string
5366         elements.
5367         (iso3166): Likewise.
5368
5369         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5370
5371         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5372         Define.
5373
5374         * elf/elf.h (NT_PRFPXREG): Define.
5375
5376 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5377
5378         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5379         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5380
5381 2000-06-23  Andreas Schwab  <schwab@suse.de>
5382
5383         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5384         with signatures.
5385
5386 2000-06-23  Andreas Jaeger  <aj@suse.de>
5387
5388         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5389
5390         * io/test-stat.c: Add copyright header, mention Maciej.
5391
5392         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5393         SYS_mincore, SYS_madvise): Added.
5394
5395         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5396         execve.
5397
5398 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5399
5400         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5401         (CFLAGS-tst_putwc.c): New definition.
5402         * libio/tst_getwc.c: New file.
5403         * libio/tst_getwc.input: New file.
5404         * libio/tst_putwc.c: New file.
5405
5406         * include/string.h: Add prototype for __strdup.
5407
5408 2000-06-22  Greg McGary  <greg@mcgary.org>
5409
5410         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5411         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5412         Fix signatures.
5413
5414 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5415
5416         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5417
5418 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5419
5420         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5421
5422 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5423
5424         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5425         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5426
5427 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5428
5429         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5430         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5431         and __S_TYPEISSHM.
5432         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5433         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5434         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5435         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5436         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5437         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5438         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5439         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5440         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5441         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5442         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5443         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5444         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5445         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5446         S_TYPEISSHM.
5447
5448 2000-06-22  Andreas Jaeger  <aj@suse.de>
5449
5450         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5451         with signatures.
5452
5453         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5454
5455         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5456
5457 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5458
5459         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5460         ahead.
5461
5462 2000-06-21  Greg McGary  <greg@mcgary.org>
5463
5464         * Makerules (elide-routines.*, elide-bp-thunks):
5465         Define unconditionally.
5466
5467 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5468
5469         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5470
5471 2000-06-21  Andreas Jaeger  <aj@suse.de>
5472
5473         * io/Makefile (tests): Add test-stat.
5474         (CFLAGS-test-stat.c): New.
5475
5476         * io/test-stat.c: New file from Maciej W. Rozycki
5477         <macro@ds2.pg.gda.pl>.
5478
5479 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5480
5481         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5482         in __rlimit_resource to make them match the kernel order.
5483         rlim_t is always 64 bit, use __rlim64_t to declare it
5484         unconditionally.
5485
5486 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5487
5488         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5489         RLIM_INFINITY before defining it to avoid clash with kernel header
5490
5491 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5492
5493         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5494
5495 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5496
5497         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5498
5499 2000-06-21  Andreas Jaeger  <aj@suse.de>
5500
5501         * stdio-common/temptest.c: Include <stdlib.h>.
5502         * stdio-common/tst-fileno.c: Likewise.
5503         * stdio-common/scanf4.c: Likewise.
5504         * stdio-common/scanf5.c: Likewise.
5505         * time/clocktest.c: Likewise.
5506         * posix/test-vfork.c: Likewise.
5507         * posix/globtest.c: Likewise.
5508         * io/test-utime.c: Likewise.
5509         * wctype/test_wcfuncs.c: Likewise.
5510         * crypt/cert.c: Likewise.
5511
5512         * stdio-common/tst-printfsz.c: Include <string.h>.
5513         * libio/tst_swscanf.c: Likewise.
5514         * libio/tst_wscanf.c: Likewise.
5515         * posix/runtests.c: Likewise.
5516         * posix/tst-getaddrinfo.c: Likewise.
5517         * posix/wordexp-test.c: Likewise.
5518         * misc/tst-efgcvt.c: Likewise.
5519
5520         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5521         * nss/test-netdb.c: Likewise.
5522
5523         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5524         supported kernel for MIPS.
5525
5526         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5527         * rt/aio_suspend.c: Likewise.
5528
5529 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5530
5531         * math/libm-test.inc: Include <string.h>.
5532
5533 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5534
5535         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5536
5537 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5538
5539         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5540         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5541
5542 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5543
5544         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5545
5546 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5547
5548         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5549
5550 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5551
5552         * locale/programs/ld-collate.c (insert_value): Now take string and
5553         length instead of struct token* parameter.  Adjust use of token.
5554         (handle_ellipsis): Likewise.
5555         (collate_read): Allow <Uxxxx> names and transform them into names
5556         to be passed to insert_value and handle_ellipsis.
5557
5558         * locale/programs/ld-ctype.c (uninames): New array with names of
5559         digits in <Uxxxxxxxx> format.
5560         (ctype_finish): Correct search for space character value.  Likewise
5561         for default outdigits values.
5562
5563 2000-06-20  Greg McGary  <greg@mcgary.org>
5564
5565         * Makerules (objects): Add BP thunks.
5566
5567 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5568
5569         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5570         in width definitions.
5571
5572 2000-06-20  Andreas Jaeger  <aj@suse.de>
5573
5574         * sysdeps/mips/fpu/libm-test-ulps: New file.
5575
5576         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5577         first.
5578
5579         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5580
5581         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5582
5583 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5584
5585         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5586         change in gconv_builtin.h.
5587
5588         * malloc/Makefile: Change all references to memprof into memusage.
5589         * malloc/memprof.c: Rename to...
5590         * malloc/memusage.c: ...this.  New file.
5591         * malloc/memprof.sh: Rename to...
5592         * malloc/memusage.sh: ...this.  New file.
5593         * malloc/memprofstat.c: Rename to...
5594         * malloc/memusagestat.c: ...this.  New file.
5595         * sysdeps/alpha/memprof.h: Rename to..
5596         * sysdeps/alpha/memusage.h: ...this.  New file.
5597         * sysdeps/arm/memprof.h: Rename to..
5598         * sysdeps/arm/memusage.h: ...this.  New file.
5599         * sysdeps/generic/memprof.h: Rename to..
5600         * sysdeps/generic/memusage.h: ...this.  New file.
5601         * sysdeps/i386/memprof.h: Rename to..
5602         * sysdeps/i386/memusage.h: ...this.  New file.
5603         * sysdeps/ia64/memprof.h: Rename to..
5604         * sysdeps/ia64/memusage.h: ...this.  New file.
5605         * sysdeps/m68k/memprof.h: Rename to..
5606         * sysdeps/m68k/memusage.h: ...this.  New file.
5607         * sysdeps/mips/memprof.h: Rename to..
5608         * sysdeps/mips/memusage.h: ...this.  New file.
5609         * sysdeps/powerpc/memprof.h: Rename to..
5610         * sysdeps/powerpc/memusage.h: ...this.  New file.
5611         * sysdeps/sparc/memprof.h: Rename to..
5612         * sysdeps/sparc/memusage.h: ...this.  New file.
5613         * sysdeps/sh/memprof.h: Rename to..
5614         * sysdeps/sh/memusage.h: ...this.  New file.
5615
5616         * elf/sprof.c (print_version): Update year.
5617
5618         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5619         table entry values.  Use D_PTR.
5620         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5621         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5622
5623 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5624
5625         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5626         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5627         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5628         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5629
5630 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5631
5632         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5633
5634 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5635
5636         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5637         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5638         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5639
5640         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5641
5642         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5643         kernel change.
5644
5645         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5646         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5647         structure.
5648         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5649         implementation.
5650
5651 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5652
5653         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5654
5655 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5656
5657         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5658
5659 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5660
5661         * iconv/gconv_int.h (strict gconv_module): Remove all members
5662         associated with regular expressions.  Use a simple string as the
5663         from name.
5664         * iconv/gconv_db.c: Remove code handling regular expressions.
5665         * iconv/gconv_conf.c: Likewise.
5666         * iconv/iconv_prog.c: Likewise.
5667         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5668
5669         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5670         General namespace cleanup.
5671         (struct __gconv_trans_data): Add next field.
5672         (struct __gconv_step_data): Make __trans a pointer.
5673         * iconv/gconv_conf.c: Split out code to find gconv directories from
5674         __gconv_read_conf in new functions.
5675         * iconv/gconv_int.h: Define new data structure and declare new
5676         functions for handling of gconv directory list.
5677         * iconv/gconv_open.c: Allow more than one error handling step being
5678         used.  Call function to load error handling module if it is none
5679         of the builtin transformations.
5680         * iconv/gconv_close.c: Add code to free transliteration data.
5681         * iconv/gconv_trans.c: Add functions to load and unload modules
5682         implementing transliteration etc.
5683         * iconv/skeleton.c: Call all context functions now that more than
5684         one module is allowed.
5685         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5686         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5687         where the full error handling using transliteration is needed.
5688         * iconvdata/8bit-gap.c: Likewise.
5689         * iconvdata/8bit-generic.c: Likewise.
5690         * iconvdata/ansi_x3.110.c: Likewise.
5691         * iconvdata/big5.c: Likewise.
5692         * iconvdata/big5hkscs.c: Likewise.
5693         * iconvdata/euc-cn.c: Likewise.
5694         * iconvdata/euc-jp.c: Likewise.
5695         * iconvdata/euc-kr.c: Likewise.
5696         * iconvdata/euc-tw.c: Likewise.
5697         * iconvdata/gbgbk.c: Likewise.
5698         * iconvdata/gbk.c: Likewise.
5699         * iconvdata/iso-2022-cn.c: Likewise.
5700         * iconvdata/iso-2022-jp.c: Likewise.
5701         * iconvdata/iso-2022-kr.c: Likewise.
5702         * iconvdata/iso646.c: Likewise.
5703         * iconvdata/iso8859-1.c: Likewise.
5704         * iconvdata/iso_6937-2.c: Likewise.
5705         * iconvdata/iso_6937.c: Likewise.
5706         * iconvdata/johab.c: Likewise.
5707         * iconvdata/sjis.c: Likewise.
5708         * iconvdata/t.61.c: Likewise.
5709         * iconvdata/uhc.c: Likewise.
5710         * iconvdata/unicode.c: Likewise.
5711         * iconvdata/utf-16.c: Likewise.
5712         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5713         structure correctly after last change.
5714         * wcsmbs/btowc.c: Likewise.
5715         * wcsmbs/mbrtowc.c: Likewise.
5716         * wcsmbs/mbsnrtowcs.c: Likewise.
5717         * wcsmbs/mbsrtowcs.c: Likewise.
5718         * wcsmbs/wcrtomb.c: Likewise.
5719         * wcsmbs/wcsnrtombs.c: Likewise.
5720         * wcsmbs/wcsrtombs.c: Likewise.
5721         * wcsmbs/wctob.c: Likewise.
5722
5723         * localedata/Makefile: Set -Wno-format for some files since gcc does
5724         not know all the format specifiers.
5725
5726 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5727
5728         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5729         unneeded code.
5730         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5731
5732 2000-06-18  Andreas Jaeger  <aj@suse.de>
5733
5734         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5735         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5736
5737 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5738
5739         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5740         LINUX_LINK_MAX.
5741         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5742
5743         * locale/programs/ld-ctype.c (ctype_output): Really write out
5744         mboutdigits information.
5745         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5746         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5747         * localedata/tests/trans.def: Add outdigit information.
5748
5749         * localedata/tst-mbswcs3.c: Remove comment.
5750
5751         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5752         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5753         * libio/tst_wprintf.c (main): Add test for I flag.
5754
5755         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5756         * locale/langinfo.h: Add entries for translit_ignore information.
5757         * locale/categories.def: Add entries for new LC_CTYPE elements.
5758         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5759         pointer instead of "" where possible.
5760         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5761         * intl/Depend: Add localedata.
5762         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5763         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5764
5765 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5766
5767         * locale/langinfo.h: Add entries for default_missing information.
5768         * locale/C-ctype.c: Add initializers for new fields.
5769         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5770         information.
5771         * locale/categories.h: Add entries for all LC_CTYPE values.
5772         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5773         information.
5774
5775         * localedata/tst-trans.c: Write out an error message if class is
5776         not found.
5777
5778         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5779         * iconv/gconv_open.c: Remove error handling specification from `from'
5780         character set name.
5781         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5782         new parameter to always enable transliteration.
5783         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5784         change.
5785         (struct locale_data): Add new members use_translit and options.
5786         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5787         character set name contained modifier TRANSLIT.
5788         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5789         and options fields.
5790         (_nl_unload_locale): Free options string if necessary.
5791         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5792         the locale names suggested this.
5793         * locale/C-address.c: Add two new initialilzers to adjust data
5794         structure for new format.
5795         * locale/C-collate.c: Likewise.
5796         * locale/C-ctype.c: Likewise.
5797         * locale/C-identification.c: Likewise.
5798         * locale/C-measurement.c: Likewise.
5799         * locale/C-messages.c: Likewise.
5800         * locale/C-monetary.c: Likewise.
5801         * locale/C-name.c: Likewise.
5802         * locale/C-numeric.c: Likewise.
5803         * locale/C-paper.c: Likewise.
5804         * locale/C-telephone.c: Likewise.
5805         * locale/C-time.c: Likewise.
5806
5807         * locale/setlocale.c: Add some more __builtin_expect.
5808
5809 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5810
5811         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5812         unsigned char **.
5813         (__gconv_init_fct): Remove two parameters.
5814         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5815         gconv_transliterate.  Remove two parameters.
5816         Change prototypes of builtin functions according to __gconv_fct change.
5817         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5818         != NULL only during error handling.  Stop in this case after the
5819         conversion.
5820         * iconv/gconv_trans.c: Replace with real implementation for
5821         __gconv_transliterate.
5822         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5823         * iconv/gconv.c: Change calls to downstream functions once again.
5824         Use NULL for the fifth parameter instead of pointer to output buffer.
5825         * libio/iofwide.c: Likewise.
5826         * wcsmbs/btowc.c: Likewise.
5827         * wcsmbs/mbrtowc.c: Likewise.
5828         * wcsmbs/mbsnrtowcs.c: Likewise.
5829         * wcsmbs/mbsrtowcs.c: Likewise.
5830         * wcsmbs/wcrtomb.c: Likewise.
5831         * wcsmbs/wcsnrtombs.c: Likewise.
5832         * wcsmbs/wcsrtombs.c: Likewise.
5833         * wcsmbs/wctob.c: Likewise.
5834         * iconv/gconv_simple.c: Remove two parameters from error handling
5835         function call.
5836         * iconvdata/8bit-gap.c: Likewise.
5837         * iconvdata/8bit-generic.c: Likewise.
5838         * iconvdata/ansi_x3.110.c: Likewise.
5839         * iconvdata/big5.c: Likewise.
5840         * iconvdata/big5hkscs.c: Likewise.
5841         * iconvdata/euc-cn.c: Likewise.
5842         * iconvdata/euc-jp.c: Likewise.
5843         * iconvdata/euc-kr.c: Likewise.
5844         * iconvdata/euc-tw.c: Likewise.
5845         * iconvdata/gbgbk.c: Likewise.
5846         * iconvdata/gbk.c: Likewise.
5847         * iconvdata/iso-2022-cn.c: Likewise.
5848         * iconvdata/iso-2022-jp.c: Likewise.
5849         * iconvdata/iso-2022-kr.c: Likewise.
5850         * iconvdata/iso646.c: Likewise.
5851         * iconvdata/iso8859-1.c: Likewise.
5852         * iconvdata/iso_6937-2.c: Likewise.
5853         * iconvdata/iso_6937.c: Likewise.
5854         * iconvdata/johab.c: Likewise.
5855         * iconvdata/sjis.c: Likewise.
5856         * iconvdata/t.61.c: Likewise.
5857         * iconvdata/uhc.c: Likewise.
5858         * iconvdata/unicode.c: Likewise.
5859         * iconvdata/utf-16.c: Likewise.
5860
5861 2000-06-15  Greg McGary  <greg@mcgary.org>
5862
5863         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5864         of callnum assignment.  Tolerate callnum expressions containing
5865         parens.
5866
5867 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5868
5869         * login/Makefile (utmpd): Remove rule to build utmpd.
5870
5871         * csu/Versions: Move libgcc frame handling functions from here...
5872         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5873         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5874         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5875         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5876         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5877         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5878         New file.
5879         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5880
5881         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5882
5883         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5884
5885 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5886
5887         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5888         compatibility.
5889         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5890         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5891         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5892         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5893
5894 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5895
5896         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5897         defined, terminate quotes and read them after the comment char.
5898         * configure.in (HAVE_SECTION_QUOTES): Test whether
5899         __attribute__((section ("x"))) puts quotes around x or not.
5900         * config.h.in (HAVE_SECTION_QUOTES): Add.
5901         * configure: Rebuilt.
5902
5903 2000-06-14  Andreas Jaeger  <aj@suse.de>
5904
5905         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5906         depending on the configure option --sysconfdir.
5907         Closes PR libc/1762.
5908         Patch by Andreas Schwab <schwab@suse.de>.
5909
5910         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5911         entry point.
5912         Reported by Jim Pick <jim@jimpick.com>.
5913
5914 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5915
5916         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5917         crashing the application.  Emit some simple error message.
5918         Reported by mju@panasas.com [PR libc/1769].
5919
5920 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5921
5922         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5923
5924         * crypt/Makefile (distribute): Add md5.h.
5925
5926         * Makefile (distribute): Add include/shlib-compat.h.
5927
5928         * Make-dist: Search for tests also in sysdeps hierachy.
5929
5930         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5931         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5932
5933         * sysdeps/sparc/Subdirs: New file.
5934
5935         * locale/Makefile (distribute): Add weightwc.h and
5936         programs/localedef.h.
5937
5938         * time/Makefile (distribute): Add datemsk.
5939
5940         * sysdeps/ia64/Dist: Add softpipe.h.
5941
5942         * sysdeps/unix/sysv/aix/Dist: New file.
5943
5944         * posix/setpgrp.c: Moved to...
5945         * sysdeps/generic/setpgrp.c: ...here.  New file.
5946         * io/mknod.c: Moved to...
5947         * sysdeps/generic/mknod.c: ...here.  New file.
5948
5949         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5950
5951         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5952
5953         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5954
5955         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5956         gprsave0.S, gprrest1.S, and gprrest0.S.
5957
5958         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
5959
5960         * posix/Makefile (routines): Add spawnattr_getsigmask,
5961         spawnattr_getschedpolicy, spawnattr_getschedparam,
5962         spawnattr_setsigmask, spawnattr_setschedpolicy, and
5963         spawnattr_setschedparam.
5964         * posix/Versions: Add posix_spawnattr_getschedpolicy,
5965         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
5966         posix_spawnattr_setschedparam.
5967
5968         * posix/spawnattr_setschedparam.c: Fix typo.
5969
5970         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
5971         Correct typo.
5972
5973         * login/programs/utmpd.c: Removed.
5974         * login/programs/utmpd.h: Removed.
5975         * login/programs/utmpd-private.h: Removed.
5976
5977         * Makefile (distribute): Add include/db_185.h and include/db.h.
5978
5979         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
5980         iso-ir-165.h.
5981
5982         * elf/Makefile (distribute): Add missing files.
5983
5984         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
5985         * elf/eval.c: Moved to...
5986         * dlfcn/eval.c: ...here.  New file.
5987
5988         * Makefile (distribute): Also distribute ChangeLog.1?.
5989
5990         * Make-dist (+tsrcs): Remove .args handling here as well.
5991
5992         * rt/Makefile (tests): Add tst-timer.
5993         * sysdeps/generic/tst-timer.c: New file.
5994
5995         * Makerules (sources): Don't add BP sources here.
5996
5997         * login/Makefile (distribute): Remove xtmp.h.
5998
5999         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
6000         is true.  Reported by Bruno Haible <haible@ilog.fr>.
6001
6002 2000-06-13  Andreas Jaeger  <aj@suse.de>
6003
6004         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
6005         Patch by Ralf Baechle <ralf@gnu.org>.
6006
6007 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
6008
6009         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
6010         for mincore syscall.
6011
6012         * misc/sys/cdefs.h: Define __bounded and __unbounded if
6013         __BOUNDED_POINTERS__ is not defined.
6014
6015 2000-06-07  Greg McGary  <greg@mcgary.org>
6016
6017         * sysdeps/generic/bp-sym.h: New file.
6018         * sysdeps/generic/bp-start.h: New file.
6019         * sysdeps/i386/elf/start.S: Designate BP symbols.
6020         * sysdeps/generic/libc-start.c: Wrap bounds around
6021         argv & envp and each of their string members.
6022
6023 2000-06-07  Greg McGary  <greg@mcgary.org>
6024
6025         * sysdeps/unix/make-syscalls.sh: Add comments to
6026         output that aid debugging & comprehension.
6027         Map simple syscall signatures to number of args.
6028         Generate BP syscall thunk definitions.
6029         * sysdeps/generic/bp-thunks.h: New file.
6030         * sysdeps/unix/syscalls.list: Replace arg-count with
6031         simple return+arg signature.
6032         * sysdeps/unix/common/syscalls.list: Likewise.
6033         * sysdeps/unix/inet/syscalls.list: Likewise.
6034         * sysdeps/unix/mman/syscalls.list: Likewise.
6035         * sysdeps/unix/sysv/syscalls.list: Likewise.
6036         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
6037         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
6038
6039 2000-06-07  Greg McGary  <greg@mcgary.org>
6040
6041         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
6042         for all files *.[cS].
6043         (CFLAGS-.ob): Don't optimize sibling calls.
6044         (bppfx): New variable.
6045         * Makerules (elide-bp-thunks): New variable.
6046         (elide-routines.*): Elide BP-* files for all but *.ob.
6047         (sources): Include bp-thunks.
6048
6049 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6050
6051         * iconv/gconv_simple.c: Remove unnecessary prototype.
6052
6053         * iconv/gconv_trans.c: Pretty print.
6054
6055         * elf/elf.h (R_SH_NUM): Got accidently dropped.
6056
6057         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
6058         minimal kernel versions.  Add information about IA-64 kernel.
6059
6060         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
6061         specific minimal supported kernel versions to be specified.
6062
6063         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
6064         step data structure.
6065         * wcsmbs/btowc.c: Likewise.
6066         * wcsmbs/mbrtowc.c: Likewise.
6067         * wcsmbs/mbsnrtowcs.c: Likewise.
6068         * wcsmbs/mbsrtowcs.c: Likewise.
6069         * wcsmbs/wcrtomb.c: Likewise.
6070         * wcsmbs/wcsnrtombs.c: Likewise.
6071         * wcsmbs/wcsrtombs.c: Likewise.
6072         * wcsmbs/wctob.c: Likewise.
6073
6074         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
6075         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6076
6077         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6078
6079         * misc/sys/cdefs.h: Remove one more __P.
6080
6081         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6082         Reported by HJ Lu.
6083
6084         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6085         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6086         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6087
6088 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6089             Yutaka Niibe  <gniibe@chroot.org>
6090
6091         * configure.in: Add machine sh3, sh4.
6092         * elf/elf.h: Add SH specific declarations of relocations.
6093         * shlib-versions: Add sh*-*-linux* cases.
6094
6095 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6096
6097         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6098         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6099         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6100         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6101         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6102         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6103
6104         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6105         instead of KERNEL_MATH_EMULATION.
6106         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6107         KERNEL_MATH_EMULATION.
6108
6109         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6110         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6111         * sysdeps/sh/dl-machine.h: ...here.  New file.
6112         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6113         and include generic SH version.
6114         * sysdeps/sh/sh3/bits/endian.h: Move to...
6115         * sysdeps/sh/bits/endian.h: ...here.  New file.
6116         * sysdeps/sh/sh4/bits/endian.h: Removed.
6117         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6118         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6119         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6120
6121         * include/libc-symbols.h (link_warning): Work around a change in
6122         GAS which warns about changing section attributes.
6123         Proposed by Nick Clifton <nickc@redhat.com>.
6124
6125 2000-06-12  H.J. Lu  <hjl@gnu.org>
6126
6127         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6128
6129 2000-06-11  H.J. Lu  <hjl@gnu.org>
6130
6131         * sysdeps/i386/fpu/Versions: New file.
6132
6133 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6134
6135         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6136         parameters.
6137         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6138         exists.
6139
6140 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6141
6142         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6143         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6144         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6145
6146         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6147         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6148         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6149
6150 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6151             Yutaka Niibe  <gniibe@chroot.org>
6152
6153         * sysdeps/sh/Dist: New file.
6154         * sysdeps/sh/Implies: New file.
6155         * sysdeps/sh/elf/initfini.c: New file.
6156         * sysdeps/sh/gmp-mparam.h: New file.
6157         * sysdeps/sh/init-first.c: New file.
6158         * sysdeps/sh/machine-gmon.h: New file.
6159         * sysdeps/sh/memcpy.S: New file.
6160         * sysdeps/sh/memprof.h: New file.
6161         * sysdeps/sh/memset.S: New file.
6162         * sysdeps/sh/sh3/__longjmp.S: New file.
6163         * sysdeps/sh/sh3/bits/endian.h: New file.
6164         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6165         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6166         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6167         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6168         * sysdeps/sh/sh3/dl-machine.h: New file.
6169         * sysdeps/sh/sh3/setjmp.S: New file.
6170         * sysdeps/sh/sh4/__longjmp.S: New file.
6171         * sysdeps/sh/sh4/bits/endian.h: New file.
6172         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6173         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6174         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6175         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6176         * sysdeps/sh/sh4/dl-machine.h: New file.
6177         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6178         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6179         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6180         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6181         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6182         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6183         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6184         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6185         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6186         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6187         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6188         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6189         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6190         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6191         * sysdeps/sh/sh4/setjmp.S: New file.
6192         * sysdeps/sh/elf/start.S: New file.
6193         * sysdeps/sh/sys/ucontext.h: New file.
6194         * sysdeps/sh/strlen.S: New file.
6195         * sysdeps/sh/sysdep.h: New file.
6196         * sysdeps/unix/sh/sysdep.S: New file.
6197         * sysdeps/unix/sh/sysdep.h: New file.
6198         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6199         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6200         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6201         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6202         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6203         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6204         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6205         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6206         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6207         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6208         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6209         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6210         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6211         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6212         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6213         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6214         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6215         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6216         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6217         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6218         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6219         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6220         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6221         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6222         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6223         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6224         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6225         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6226         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6227         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6228         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6229         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6230         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6231         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6232         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6233         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6234         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6235         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6236         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6237         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6238         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6239         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6240         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6241         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6242         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6243         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6244         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6245         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6246         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6247         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6248
6249 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6250
6251         * Rules (%.out): Define GCONV_PATH in the environment.
6252         * assert/Depend: New file.
6253         * iconvdata/Depend: New file.
6254         * intl/Depend: New file.
6255         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6256         * intl/tst-gettext.sh: Likewise.
6257         * iconv/Makefile (routines): Add gconv_trans.
6258         * iconv/gconv_trans.c: New file.
6259         * iconv/gconv.h (struct __gconv_trans_data): New type.
6260         (__gconv_fct): New parameter with starting position in output buffer.
6261         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6262         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6263         (struct __gconv_step): Add new member __trans.
6264         * iconv/gconv_int.h: Pretty print prototypes.
6265         (gconv_transliterate): New prototype.
6266         (__BUILTIN_TRANS): Update for new conversion function interface.
6267         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6268         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6269         in names, find appropriate function, and install in the conversion
6270         steps it can be used.
6271         * iconv/skeleton.c: Add additional parameter for beginning of output
6272         buffer.  Change calls of downstream functions.
6273         * iconv/loop.c: Change loop function interface completely.  Pass in
6274         step and step_data structure.  Remove optimization for BODY with
6275         NEED_LENGTH_TEST == 0.
6276         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6277         appropriate error handling code to use transliteration steps.  Remove
6278         optimization for BODY with NEED_LENGTH_TEST == 0.
6279         * iconvdata/8bit-gap.c: Likewise.
6280         * iconvdata/8bit-generic.c: Likewise.
6281         * iconvdata/ansi_x3.110.c: Likewise.
6282         * iconvdata/big5.c: Likewise.
6283         * iconvdata/big5hkscs.c: Likewise.
6284         * iconvdata/euc-cn.c: Likewise.
6285         * iconvdata/euc-jp.c: Likewise.
6286         * iconvdata/euc-kr.c: Likewise.
6287         * iconvdata/euc-tw.c: Likewise.
6288         * iconvdata/gbgbk.c: Likewise.
6289         * iconvdata/gbk.c: Likewise.
6290         * iconvdata/iso-2022-cn.c: Likewise.
6291         * iconvdata/iso-2022-jp.c: Likewise.
6292         * iconvdata/iso-2022-kr.c: Likewise.
6293         * iconvdata/iso646.c: Likewise.
6294         * iconvdata/iso8859-1.c: Likewise.
6295         * iconvdata/iso_6937-2.c: Likewise.
6296         * iconvdata/iso_6937.c: Likewise.
6297         * iconvdata/johab.c: Likewise.
6298         * iconvdata/sjis.c: Likewise.
6299         * iconvdata/t.61.c: Likewise.
6300         * iconvdata/uhc.c: Likewise.
6301         * iconvdata/unicode.c: Likewise.
6302         * iconvdata/utf-16.c: Likewise.
6303         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6304         DL_CALL_FCT.
6305         * wcsmbs/btowc.c: Likewise.
6306         * wcsmbs/mbrtowc.c: Likewise.
6307         * wcsmbs/mbsnrtowcs.c: Likewise.
6308         * wcsmbs/mbsrtowcs.c: Likewise.
6309         * wcsmbs/wcrtomb.c: Likewise.
6310         * wcsmbs/wcsnrtombs.c: Likewise.
6311         * wcsmbs/wcsrtombs.c: Likewise.
6312         * wcsmbs/wctob.c: Likewise.
6313
6314 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6315
6316         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6317         other header files.  Mention about 128-byte cache line sizes.
6318         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6319         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6320         for current calling sequence.
6321         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6322
6323         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6324         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6325
6326         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6327         and setrlimit syscalls for backwards compatibility.
6328
6329 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6330
6331         * iconv/skeleton.c:  Rename converted written to correcter name
6332         irreversible.
6333         * iconv/gconv.c: Rename converted variable to correcter name
6334         irreversible.
6335         * iconv/gconv_int.h: Likewise.
6336         * iconv/gconv_simple.c: Likewise.
6337         * iconv/iconv.c: Likewise.
6338         * iconv/loop.c: Likewise.
6339         * iconvdata/8bit-gap.c: Likewise.
6340         * iconvdata/8bit-generic.c: Likewise.
6341         * iconvdata/ansi_x3.110.c: Likewise.
6342         * iconvdata/big5.c: Likewise.
6343         * iconvdata/big5hkscs.c: Likewise.
6344         * iconvdata/euc-cn.c: Likewise.
6345         * iconvdata/euc-jp.c: Likewise.
6346         * iconvdata/euc-kr.c: Likewise.
6347         * iconvdata/gbgbk.c: Likewise.
6348         * iconvdata/gbk.c: Likewise.
6349         * iconvdata/iso-2022-cn.c: Likewise.
6350         * iconvdata/iso-2022-jp.c: Likewise.
6351         * iconvdata/iso-2022-kr.c: Likewise.
6352         * iconvdata/iso646.c: Likewise.
6353         * iconvdata/iso8859-1.c: Likewise.
6354         * iconvdata/iso_6937-2.c: Likewise.
6355         * iconvdata/iso_6937.c: Likewise.
6356         * iconvdata/johab.c: Likewise.
6357         * iconvdata/sjis.c: Likewise.
6358         * iconvdata/t.61.c: Likewise.
6359         * iconvdata/uhc.c: Likewise.
6360         * iconvdata/unicode.c: Likewise.
6361         * iconvdata/utf-16.c: Likewise.
6362
6363         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6364         __cmsg_data field with __extension__.
6365
6366 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6367
6368         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6369
6370 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6371
6372         * iconv/gconv_simple.c: Fix various small bugs in several
6373         functions.
6374
6375         * iconv/loop.c: Fix comment.
6376
6377 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6378
6379         * elf/link.h: Remove libc internal declarations.
6380         * include/link.h: Move them here.
6381
6382 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6383
6384         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6385         Patch by Dan Pop <Dan.Pop@cern.ch>.
6386
6387         Rewrite error message handling.
6388         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6389         _dl_catch_error.
6390         * elf/dl-error (struct catch): Add objname member.
6391         (_dl_signal_error): Take new parameter with object name.  When
6392         passing message on simply store object name and duplicate error
6393         message.
6394         (_dl_catch_error): Take new parameter.  Store object name in the
6395         place pointed to.
6396         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6397         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6398         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6399         (dlerror): Add objname to asprintf() parameters.
6400         (_dl_error_run): Pass new parameter to _dl_catch_error.
6401         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6402         * elf/dl-open.c (_dl_open): Likewise.
6403         * elf/rtld.c (dl_main): Likewise.
6404         * elf/dl-close.c: Mark error messages with N_().
6405         * elf/dl-deps.c: Likewise.
6406         * elf/dl-error.c: Likewise.
6407         * elf/dl-load.c: Likewise.
6408         * elf/dl-open.c: Likewise.
6409         * elf/dl-reloc.c: Likewise.
6410         * elf/dl-support.c: Likewise.
6411         * elf/dl-sym.c: Likewise.
6412         * elf/dl-version.c: Likewise.
6413         * elf/dl-lookup.c: Add comments about problems with error message
6414         translations.
6415         * elf/dl-reloc.c: Likewise.
6416         * elf/dl-version.c: Likewise.
6417
6418 2000-06-09  H.J. Lu  <hjl@gnu.org>
6419
6420         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6421         after freeing it.
6422
6423         * dlfcn/Makefile (distribute): Add failtestmod.c.
6424         (tests): Add failtest.
6425         Add rules to build and run failtest.
6426         * dlfcn/failtest.c: New file.
6427         * dlfcn/failtestmod.c: New file.
6428
6429 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6430
6431         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6432         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6433         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6434         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6435         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6436
6437 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6438
6439         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6440         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6441
6442 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6443             Ulrich Drepper  <drepper@redhat.com>
6444
6445         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6446         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6447         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6448         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6449         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6450         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6451
6452 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6453
6454         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6455         to find correct mount point despite wrong information from the
6456         kernel.
6457
6458 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6459
6460         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6461         the address of a symbol so function pointers are handled properly.
6462
6463 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6464
6465         * sysdeps/i386/Dist: Add bp-asm.h.
6466
6467         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6468         defaultdir variable instead of "/var/shm" everywhere.
6469         (defaultdir): Change to /dev/shm/.
6470
6471 2000-06-08  Greg McGary  <greg@mcgary.org>
6472
6473         * sysdeps/i386/bp-asm.h: New file.
6474         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6475         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6476         frame-pointer chain when debugging.
6477         * sysdeps/i386/add_n.S: Likewise.
6478         * sysdeps/i386/addmul_1.S: Likewise.
6479         * sysdeps/i386/lshift.S: Likewise.
6480         * sysdeps/i386/memchr.S: Likewise.
6481         * sysdeps/i386/memcmp.S: Likewise.
6482         * sysdeps/i386/mul_1.S: Likewise.
6483         * sysdeps/i386/rawmemchr.S: Likewise.
6484         * sysdeps/i386/rshift.S: Likewise.
6485         * sysdeps/i386/stpcpy.S: Likewise.
6486         * sysdeps/i386/stpncpy.S: Likewise.
6487         * sysdeps/i386/strchr.S: Likewise.
6488         * sysdeps/i386/strchrnul.S: Likewise.
6489         * sysdeps/i386/strcspn.S: Likewise.
6490         * sysdeps/i386/strpbrk.S: Likewise.
6491         * sysdeps/i386/strrchr.S: Likewise.
6492         * sysdeps/i386/strspn.S: Likewise.
6493         * sysdeps/i386/strtok.S: Likewise.
6494         * sysdeps/i386/sub_n.S: Likewise.
6495         * sysdeps/i386/submul_1.S: Likewise.
6496         * sysdeps/i386/elf/setjmp.S: Likewise.
6497         * sysdeps/i386/i486/strcat.S: Likewise.
6498         * sysdeps/i386/i486/strlen.S: Likewise.
6499         * sysdeps/i386/i586/add_n.S: Likewise.
6500         * sysdeps/i386/i586/lshift.S: Likewise.
6501         * sysdeps/i386/i586/memcpy.S: Likewise.
6502         * sysdeps/i386/i586/memset.S: Likewise.
6503         * sysdeps/i386/i586/rshift.S: Likewise.
6504         * sysdeps/i386/i586/strchr.S: Likewise.
6505         * sysdeps/i386/i586/strcpy.S: Likewise.
6506         * sysdeps/i386/i586/strlen.S: Likewise.
6507         * sysdeps/i386/i586/sub_n.S: Likewise.
6508         * sysdeps/i386/i686/add_n.S: Likewise.
6509         * sysdeps/i386/i686/memcpy.S: Likewise.
6510         * sysdeps/i386/i686/mempcpy.S: Likewise.
6511         * sysdeps/i386/i686/memset.S: Likewise.
6512         * sysdeps/i386/i686/strcmp.S: Likewise.
6513
6514 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6515
6516         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6517
6518         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6519         256 and don't use OPEN_MAX.
6520
6521         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6522         use it instead of LINK_MAX.
6523         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6524
6525 2000-06-08  Andreas Jaeger  <aj@suse.de>
6526
6527         * libio/genops.c (_IO_list_lock): Only compile body if we're
6528         thread safe.
6529         (_IO_list_unlock): Likewise.
6530         (_IO_list_resetlock): Likewise.
6531
6532 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6533
6534         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6535         unless user defined it.
6536
6537         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6538         if not defined by the user.
6539
6540         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6541         * libio/iofwrite.c (_IO_fwrite): Likewise.
6542
6543         * time/time.h: Add missing __THROW for clock_getcpuclockid
6544         prototype.
6545
6546         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6547         * include/elf.h: Include also <dl-dtprocnum.h>.
6548         * elf/dl-deps.c: Likewise.
6549         * elf/dl-lookup.c: Likewise.
6550         * elf/dl-runtime.c: Likewise.
6551         * elf/dl-version.c: Likewise.
6552         * elf/do-rel.h: Likewise.
6553         * elf/dynamic-link.h: Likewise.
6554         * elf/link.h: Likewise.
6555         * elf/rtld.c: Likewise.
6556         * sysdeps/generic/dl-dtprocnum.h: New file.
6557         * sysdeps/ia64/dl-dtprocnum.h: New file.
6558         * sysdeps/mips/dl-dtprocnum.h: New file.
6559         * sysdeps/sparc/dl-dtprocnum.h: New file.
6560
6561         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6562
6563         * elf/do-lookup.h: Add some __builtin_expect.
6564
6565         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6566
6567         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6568         (_dl_dynamic_weak): New variable.
6569         * elf/dl-support.c: Likewise.
6570         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6571         * elf/do-lookup.h: If we find a weak definition treat it like a
6572         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6573         case treat it like before.
6574
6575         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6576         is in main program.
6577         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6578
6579         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6580         using l_map_start and l_map_end.
6581
6582         * elf/dl-version.c: Add __builtin_expect in many places.
6583
6584         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6585         Update.
6586
6587 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6588
6589         Lock for stdio stream list becomes global, for use in LinuxThreads.
6590
6591         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6592         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6593         _IO_list_resetlock): New interface for iterating global list of
6594         streams without accessing the _IO_list_all global variable,
6595         and for manipulating the lock which protects this list.
6596         * libio/libioP.h: Likewise.
6597         * libio/Version: Add entries for the new functions.
6598
6599         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6600         pointer to _IO_FILE.
6601
6602 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6603
6604         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6605         BIT() must actually be BITw().
6606
6607         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6608
6609         * locale/programs/charmap.c: Allow string arguments for
6610         code_set_name and repertoiremap.
6611
6612 2000-06-07  Andreas Jaeger  <aj@suse.de>
6613
6614         * elf/Makefile: Build ldconfig only when building shared libraries.
6615
6616 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6617
6618         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6619         __USE_ISOC99.
6620         (fdimf, __fdim, fdim): Likewise.
6621
6622 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6623
6624         * locale/findlocale.c: Add __builtin_expect in many places.
6625         * locale/loadlocale.c: Likewise.
6626
6627 2000-06-06  Greg McGary  <greg@mcgary.org>
6628
6629         * sysdeps/mips/elf/start.S: Trim redundant code.
6630
6631         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6632         Use C comments throughout.  Line up operands column with tabs.
6633         * sysdeps/powerpc/strchr.S: Likewise.
6634         * sysdeps/powerpc/strcmp.S: Likewise.
6635         * sysdeps/powerpc/strcpy.S: Likewise.
6636         * sysdeps/powerpc/strlen.S: Likewise.
6637
6638         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6639         Get low part of &__curbrk with @l.
6640
6641 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6642
6643         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6644         * iconvdata/unicode.c: Likewise.
6645         * iconvdata/uhc.c: Likewise.
6646         * iconvdata/t.61.c: Likewise.
6647         * iconvdata/sjis.c: Likewise.
6648         * iconvdata/johab.c: Likewise.
6649         * iconvdata/iso_6937.c: Likewise.
6650         * iconvdata/iso_6937-2.c: Likewise.
6651         * iconvdata/iso8859-1.c: Likewise.
6652         * iconvdata/iso646.c: Likewise.
6653         * iconvdata/iso-2022-kr.c: Likewise.
6654         * iconvdata/iso-2022-jp.c: Likewise.
6655         * iconvdata/iso-2022-cn.c: Likewise.
6656         * iconvdata/gbgbk.c: Likewise.
6657         * iconvdata/gbk.c: Likewise.
6658         * iconvdata/euc-kr.c: Likewise.
6659         * iconvdata/euc-jp.c: Likewise.
6660         * iconvdata/euc-cn.c: Likewise.
6661
6662 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6663
6664         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6665         * iconvdata/big5.c: Likewise.
6666         * iconvdata/ansi_x3.110.c: Likewise.
6667         * iconvdata/8bit-generic.c: Likewise.
6668         * iconvdata/8bit-gap.c: Likewise.
6669         * iconv/loop.c: Likewise.
6670         * iconv/gconv_db.c: Likewise.
6671         * iconv/gconv_dl.c: Likewise.
6672         * iconv/gconv_simple.c: Likewise.
6673         * iconv/skeleton.c: Likewise.
6674
6675         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6676         (struct __gconv_step_data): Rename __is_last to __flags.
6677         * iconv/gconv_close.c: Change all uses of __is_last.
6678         * iconv/skeleton.c: Likewise.
6679         * iconvdata/iso-2022-cn.c: Likewise.
6680         * iconvdata/iso-2022-jp.c: Likewise.
6681         * iconvdata/iso-2022-kr.c: Likewise.
6682         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6683         Recognize IGNORE error handling, set flag, and remove from name.
6684         * iconv/loop.c (ignore_errors_p): Define.
6685         Add flags parameter to both functions.
6686         * iconv/skeleton.c: Pass flags to all conversion functions.
6687         * iconv/gconv_simple.c: Add flags parameter to all functions.
6688         Don't return error for invald error if ignore flag is set.
6689         (ucs4_internal_loop_single): Add missing pointer increment.
6690         (internal_ucs4le_loop_single): Likewise.
6691         * iconv/iconv_prog.c: Implement handling of -c parameter.
6692         * iconvdata/8bit-gap.c: Don't return error for invald error if
6693         ignore flag is set.
6694         * iconvdata/8bit-generic.c: Likewise.
6695         * iconvdata/ansi_x3.110.c: Likewise.
6696         * iconvdata/big5.c: Likewise.
6697         * iconvdata/big5hkscs.c: Likewise.
6698         * iconvdata/euc-cn.c: Likewise.
6699         * iconvdata/euc-jp.c: Likewise.
6700         * iconvdata/euc-kr.c: Likewise.
6701         * iconvdata/gbgbk.c: Likewise.
6702         * iconvdata/gbk.c: Likewise.
6703         * iconvdata/iso-2022-cn.c: Likewise.
6704         * iconvdata/iso-2022-jp.c: Likewise.
6705         * iconvdata/iso-2022-kr.c: Likewise.
6706         * iconvdata/iso646.c: Likewise.
6707         * iconvdata/iso8859-1.c: Likewise.
6708         * iconvdata/iso_6937-2.c: Likewise.
6709         * iconvdata/iso_6937.c: Likewise.
6710         * iconvdata/johab.c: Likewise.
6711         * iconvdata/sjis.c: Likewise.
6712         * iconvdata/t.61.c: Likewise.
6713         * iconvdata/uhc.c: Likewise.
6714         * iconvdata/unicode.c: Likewise.
6715         * iconvdata/utf-16.c: Likewise.
6716         * libio/fileops.c: Likewise.
6717         * libio/iofwide.c: Likewise.
6718         * wcsmbs/btowc.c: Likewise.
6719         * wcsmbs/mbrtowc.c: Likewise.
6720         * wcsmbs/mbsnrtowcs.c: Likewise.
6721         * wcsmbs/mbsrtowcs.c: Likewise.
6722         * wcsmbs/wcrtomb.c: Likewise.
6723         * wcsmbs/wcsnrtombs.c: Likewise.
6724         * wcsmbs/wcsrtombs.c: Likewise.
6725         * wcsmbs/wctob.c: Likewise.
6726
6727         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6728         an error.
6729
6730 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6731
6732         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6733         counter for the object we are releasing, just decrement it.
6734         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6735
6736 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6737
6738         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6739         if -ffast-math.
6740
6741 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6742
6743         * iconvdata/big5hkscs.c: New file.
6744         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6745
6746         * iconvdata/gconv-modules: Add entry for new module.
6747         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6748         (distribute): Add big5hkscs.c.
6749
6750 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6751
6752         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6753         inlines to match prototypes in mathcalls.h.
6754         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6755         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6756         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6757         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6758
6759 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6760
6761         * elf/elf.h (SHT_SUNW_move): Define.
6762
6763         * elf/elf.h: Add more Solaris compatiblity definitions.
6764
6765 2000-06-03  Andreas Jaeger  <aj@suse.de>
6766
6767         * sysdeps/powerpc/dl-start.S: Close open comment.
6768
6769 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6770
6771         * inet/Versions: Fix typo in rresvport_af export.
6772
6773 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6774
6775         * math/tgmath.h: Pretty print.
6776
6777 2000-06-02  Andreas Jaeger  <aj@suse.de>
6778
6779         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6780         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6781
6782 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6783
6784         * elf/rtld.c (process_envvars): Test for = after variable name.
6785
6786 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6787
6788         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6789         have extra call to __gmon_start__, use the pointer we already have.
6790
6791         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6792         shifting.
6793
6794         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6795         binutils.  gas now emits a jump through the PLT instead of a
6796         relative jump if the jump target is an exported symbol.
6797
6798 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6799
6800         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6801
6802 2000-05-31  Andreas Jaeger  <aj@suse.de>
6803
6804         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6805         gregset_t.
6806
6807         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6808         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6809
6810         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6811         syscall.
6812         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6813
6814 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6815
6816         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6817
6818         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6819         * locale/localeconv.c: Make function versioned (with same definition).
6820
6821         * elf/Makefile (modules-names): Strip before using it.
6822
6823 2000-05-30  Andreas Jaeger  <aj@suse.de>
6824
6825         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6826         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6827         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6828         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6829         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6830         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6831
6832 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6833
6834         * Makefile: Add GNU make magic.
6835
6836         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6837         Removed.
6838         * inet/rcmd.c: Remove __P.  Remove unused variables.
6839         (iruserfopen): Make first parameter const.
6840         (ruserok_sa): Return result of ruserok2_sa.
6841         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6842         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6843         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6844         (ruserpass): Check results of memory allocation.
6845         * include/netdb.h: Add prototype for ruserpass.
6846
6847 2000-05-29  Andreas Jaeger  <aj@suse.de>
6848
6849         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6850         for all platforms.
6851
6852 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6853
6854         * inet/rcmd.c (rresvport_af): Use correct port number.
6855
6856 2000-05-26  Andreas Schwab  <schwab@suse.de>
6857
6858         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6859         entries in all-sonames.
6860         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6861         preserving the old name if different for compatibility.
6862
6863 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6864
6865         * posix/Makefile (tests): Add tst-spawn.
6866         (tst-spawn-ARGS): New variable.
6867         * posix/tst-spawn.c: New file.
6868
6869         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6870         * posix/spawn_faction_adddup2.c: Likewise.
6871         * posix/spawn_faction_addopen.c: Likewise.
6872         * posix/spawni.c: Correctly test for success of dup2 calls.
6873
6874         * posix/tst-preadwrite.c: Check success of malloc call.
6875
6876 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6877
6878         * posix/Makefile (tests): Add tst-exec.
6879         (tst-exec-ARGS): New variable.
6880         * posix/tst-exec.c: New file.
6881
6882         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6883
6884 2000-05-04  Andreas Jaeger  <aj@suse.de>
6885
6886         * string/string.h: Remove __strdup prototype, it's not needed in
6887         this file anymore.
6888
6889 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6890
6891         * posix/Makefile (tests): Add tst-fork.
6892         * posix/tst-fork.c: New file.
6893
6894         * resolv/inet_pton.c: Loose __P.
6895
6896 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6897
6898         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6899         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6900         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6901         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6902         _IO_CHECK_WIDE fails.
6903
6904 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6905
6906         * po/da.po: New file.
6907
6908         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6909         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6910
6911         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6912         (Other iconv Implementations): Fix typo.
6913         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6914
6915 2000-05-27  Andreas Jaeger  <aj@suse.de>
6916
6917         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6918         normal version now.
6919         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6920         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6921         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6922         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6923         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6924         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6925
6926         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6927         endianness to decide how to pass arguments.
6928         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6929
6930         * elf/vismain.c: Use test-skeleton interface.
6931         (TEST_FUNCTION): New macro.
6932         (do_test): Renamed from main.
6933
6934 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6935
6936         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6937         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6938
6939         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6940         handling of AI_V4MAPPED flag.
6941
6942         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6943         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6944         perform lookup for T_A type and tell getanswer_r to convert the
6945         result with new argument.
6946         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6947         Don't convert addresses from IPv4 to IPv6 here.
6948         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6949         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6950         IPv4 mapping has to be done.  Perform mappings if required by the
6951         caller and not if RES_USE_INET6 bit in _res.options is set.
6952         Add several __builtin_expect.
6953
6954 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6955
6956         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6957
6958         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
6959         NULL.
6960
6961         * posix/tst-preadwrite.c: Allow parallel execution of
6962         tst-preadwrite and tst-preadwrite64.
6963
6964         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
6965         * posix/tst-truncate.c: New file.
6966         * posix/tst-truncate64.c: New file.
6967
6968         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
6969         was switched.
6970
6971         * posix/Makefile (tests): Add tst-preadwrite64.
6972         * posix/tst-preadwrite.c: Alloc file being used also for testing
6973         pread64 and pwrite64.
6974         * posix/tst-preadwrite64.c: New file.
6975
6976 2000-05-26  Andreas Jaeger  <aj@suse.de>
6977
6978         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
6979         of arguments dependend on endianness.
6980         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6981
6982         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
6983         normal version now.
6984         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6985         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6986         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6987         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6988
6989         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
6990         endianness to check how to pass argument.
6991         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
6992
6993         * elf/ldconfig.h: Update parameter list for process_elf_file.
6994
6995         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
6996         Add parameter file_length and pass it ot process_elf*file.
6997
6998         * sysdeps/generic/readelflib.c (check_ptr): New.
6999         (process_elf_file): Use check_ptr to check all accesses to the
7000         mmapped file. Add parameter file_length.
7001
7002         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
7003         library names.
7004
7005         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
7006         Closes PR libc/1573, reported by Bradley White
7007         <bww@laurelnetworks.com>.
7008
7009 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
7010
7011         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
7012         __FAST_MATH__ is defined.
7013
7014 2000-05-22  Andreas Jaeger  <aj@suse.de>
7015
7016         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
7017         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
7018
7019         * manual/math.texi (FP Function Optimizations): Document gcc
7020         -ffast-math behaviour with mathinlines.
7021
7022         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
7023         functions unless -ffast-math is given to gcc.
7024
7025 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
7026
7027         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
7028         __sincosl): Guard with __USE_GNU.
7029
7030 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
7031
7032         * csu/Makefile (routines): Add check_fds.
7033         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
7034         binaries.  Add various __builtin_expect.
7035         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
7036         * sysdeps/generic/check_fds.c: ...here.  New file.
7037
7038         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
7039         binaries if file /etc/suid-debug is available.
7040
7041         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
7042         and wcseqorder members.
7043         (struct locale_collate_t): Likewise.
7044         (collate_finish): Assign collation sequence value to each character.
7045         Create tables for output.
7046         (collate_output): Write out tables with collation sequence information.
7047         * locale/C-collate.c: Provide C locale data for collation sequence
7048         table.
7049         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
7050         _NL_COLLATE_COLLSEQWC.
7051         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
7052         _NL_COLLATE_COLLSEQWC.
7053         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
7054         include fnmatch_loop.c.
7055         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
7056         character is matched by range expression.  Use collation sequence
7057         table.  Outside glibc fall back on simple character value comparison.
7058
7059 2000-05-24  Andreas Jaeger  <aj@suse.de>
7060
7061         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
7062         words.
7063
7064         * intl/Makefile: Run gettext-test only if msgfmt is available.
7065
7066         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
7067         Define it for newer kernels.
7068
7069 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
7070
7071         * elf/dl-sym.c: Minor cleanups.
7072
7073         * configure.in: Add test for .protected.
7074         * config.make.in: Add have-protected variable.
7075         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7076         (tests-vis-yes): Add vismain.
7077         (modules-names): Add $(modules-vis-$(have-protected)).
7078         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7079         Add rules to generate and run vismain.
7080         * elf/vismain.c: New file.
7081         * elf/vismod1.c: New file.
7082         * elf/vismod2.c: New file.
7083         * elf/vismod3.c: New file.
7084
7085 2000-05-23  Andreas Jaeger  <aj@suse.de>
7086
7087         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7088
7089         * manual/search.texi (Array Sort Function): Document that qsort is
7090         not necessarily in-place.
7091
7092         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7093         Closes PR libc/1731.
7094
7095         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7096         * dirent/scandir64.c: Likewise.
7097         * pwd/getpw.c: Likewise.
7098         * stdlib/bsearch.c (bsearch): Likewise.
7099         * stdlib/tst-strtoll.c: Likewise.
7100         * localedata/collate-test.c: Likewise.
7101         * localedata/xfrm-test.c: Likewise.
7102         * posix/bsd-getpgrp.c: Likewise.
7103         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7104         * sysdeps/generic/bits/siginfo.h: Likewise.
7105         * sysdeps/generic/bits/sockaddr.h: Likewise.
7106         * sysdeps/generic/sys/swap.h: Likewise.
7107         * sysdeps/generic/sys/sysinfo.h: Likewise.
7108         * sysdeps/generic/vfork.c: Likewise.
7109         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7110         * sysdeps/mach/hurd/fdopen.c: Likewise.
7111         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7112         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7113         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7114         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7115         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7116         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7117         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7118
7119         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7120         * shadow/lckpwdf.c: Likewise.
7121         * stdlib/tst-strtol.c: Likewise.
7122         * sysdeps/generic/tcsetattr.c: Likewise.
7123         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7124         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7125
7126 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7127
7128         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7129         free it and set to (void *) -1.
7130
7131 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7132
7133         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7134         not the second character in the range.
7135         * stdio-common/tstscanf.c (main): Add testcase for the above.
7136         Reported by jik@kamens.brookline.ma.us.
7137
7138 2000-05-21  H.J. Lu  <hjl@gnu.org>
7139
7140         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7141         with noexec and noplt parameter.
7142         (do_lookup): Likewise.
7143
7144         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7145         do_lookup.  Support STV_PROTECTED.
7146         (_dl_lookup_symbol_skip): Likewise.
7147         (_dl_lookup_versioned_symbol): Likewise.
7148         (_dl_lookup_versioned_symbol_skip): Likewise.
7149
7150         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7151
7152         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7153
7154 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7155
7156         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7157         * sysdeps/i386/bits/huge_val.h: Likewise.
7158         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7159         * sysdeps/m68k/bits/huge_val.h: Likewise.
7160         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7161         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7162
7163 2000-05-22  Andreas Jaeger  <aj@suse.de>
7164
7165         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7166         change in iconv.h.
7167
7168 2000-05-19  Andreas Jaeger  <aj@suse.de>
7169
7170         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7171         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7172         breaks compilation without linuxthreads.
7173
7174 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7175
7176         * sysdeps/ia64/memccpy.S: New file.
7177         * sysdeps/ia64/memchr.S: New file.
7178         * sysdeps/ia64/memcmp.S: New file.
7179         * sysdeps/ia64/memcpy.S: New file.
7180         * sysdeps/ia64/memmove.S: New file.
7181         * sysdeps/ia64/memset.S: New file.
7182         * sysdeps/ia64/strcat.S: New file.
7183         * sysdeps/ia64/strchr.S: New file.
7184         * sysdeps/ia64/strcmp.S: New file.
7185         * sysdeps/ia64/strcpy.S: New file.
7186         * sysdeps/ia64/strlen.S: New file.
7187         * sysdeps/ia64/strncmp.S: New file.
7188         * sysdeps/ia64/strncpy.S: New file.
7189         * sysdeps/ia64/softpipe.h: New file.
7190         Patches by Dan Pop <Dan.Pop@cern.ch>.
7191
7192         * manual/memory.texi: Document memory handling functions (mlock,
7193         munlock, mlockall, munlockall, brk, and sbrk)
7194         * manual/time.texi: Document timespec and friends.
7195         * manual/conf.texi: Fix references.
7196         * manual/ctype.texi: Likewise.
7197         * manual/errno.texi: Likewise.
7198         * manual/intro.texi: Likewise.
7199         * manual/locale.texi: Likewise.
7200         * manual/sysinfo.texi: Likewise.
7201         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7202
7203 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7204
7205         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7206         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7207
7208 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7209
7210         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7211         dxfer_direction.
7212
7213 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7214
7215         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7216         * locale/localeconv.c: Initialize new elements from ISO C99.
7217         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7218         new standard elements.
7219         * locale/categories.def: Adjust accordingly.
7220
7221         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7222         * iconv/iconv.c: Likewise.
7223         * conform/data/iconv.h-data: Likewise.
7224         * iconv/iconv_prog.c (process_block): Remove const from second
7225         parameter.
7226         (main): Remove const from addr definition.
7227         * manual/charset.texi (Generic Conversion Interface): Remove from
7228         inbuf parameter of iconv.
7229
7230         * intl/dcigettext.c: Fix typo in comment.
7231
7232 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7233
7234         * resolv/res_libc.c (_res): Initialize _sock to -1.
7235
7236 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7237
7238         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7239         (fopencookie@@GLIBC_2.2): New.
7240         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7241         (fopencookie@GLIBC_2.0): New.
7242         * libio/Versions: Add fopencookie to GLIBC_2.2.
7243
7244 2000-05-18  Andreas Jaeger  <aj@suse.de>
7245
7246         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7247         Closes PR libc/1731.
7248
7249         * manual/arith.texi (Parsing of Integers): Fix typo.
7250         Closes PR libc/1744, reported by blp@gnu.org.
7251
7252 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7253
7254         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7255         __extension__ to hexadecimal floating constant notation.
7256         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7257         Likewise.
7258         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7259         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7260         Likewise.
7261         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7262         HUGE_VALL): Likewise.
7263         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7264         HUGE_VALL): Likewise.
7265         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7266
7267 2000-05-17  Andreas Jaeger  <aj@suse.de>
7268
7269         * string/envz.h: Add pure attributes if possible.
7270
7271         * string/argz.h: argz_count is a pure function.
7272
7273         * string/strings.h: Add pure and const attributes if possible.
7274
7275         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7276         possibly searching through the whole memory.
7277         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7278
7279 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7280
7281         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7282         not yet defined.
7283         (_dl_cache_check_flags): Likewise.
7284         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7285         dl-cache.h.
7286
7287 2000-05-17  Andreas Jaeger  <aj@suse.de>
7288
7289         * manual/creature.texi (Feature Test Macros): Remove paragraph
7290         since the description is wrong.
7291         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7292
7293         * scripts/config.sub: New version.
7294         * scripts/config.guess: Likewise.
7295         * manual/texinfo.tex: Likewise.
7296
7297         * time/test_time.args: Removed.
7298         * time/Makefile (test_time-ARGS): Added contents here instead.
7299
7300         * posix/tstgetopt.args: Removed.
7301         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7302
7303         * Rules: Allow arguments for test files to be specified in
7304         Makefile with testname-ARGS; remove rules with .args in it.
7305
7306         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7307         remove old bogus rule for opendir-tst1.args.
7308
7309         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7310
7311         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7312         into objdir.  This allows a readonly sourcetree.
7313         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7314
7315 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7316             David Huggins-Daines <dhd@linuxcare.com>
7317
7318         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7319         cache_data in case of only new cache format correctly.
7320
7321         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7322         cache_file_new.
7323
7324         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7325         struct cache_file_new.
7326
7327         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7328         present.
7329
7330         * elf/cache.c (save_cache): Align struct new_file_cache.
7331         (print_cache): Likewise.
7332
7333 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7334
7335         * elf/soinit.c (__libc_global_ctors): Move
7336         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7337         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7338         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7339         variable, don't define it to __res_state call.
7340
7341 2000-05-13  Andreas Jaeger  <aj@suse.de>
7342
7343         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7344         Linux 2.3.99pre7.
7345         (AF_PPPOX): Likewise.
7346         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7347         (AF_PPPOX): Likewise.
7348
7349 2000-05-12  Andreas Jaeger  <aj@suse.de>
7350
7351         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7352         Reported by tmoestl@gmx.net, closes PR libc/1732.
7353
7354 2000-05-11  Jan Hubicka  <jh@suse.cz>
7355
7356         * misc/sys/cdefs.h: Add support for pure attribute.
7357
7358         * include/string.h: Add __attribute_pure__ to various functions.
7359         * string/string.h: Likewise.
7360
7361 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7362
7363         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7364         argument.
7365         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7366         R_SPARC_UA64.
7367         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7368
7369 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7370
7371         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7372         at proper place.  Compute the high nibble correctly.
7373
7374 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7375
7376         * elf/ldconfig.c: Include elf.h.
7377
7378         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7379         (_dl_vsym): Likewise.
7380         Reported by Owen Taylor <otaylor@redhat.com>.
7381
7382         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7383         always.
7384
7385 2000-05-08  Andreas Jaeger  <aj@suse.de>
7386
7387         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7388
7389         * intl/bindtextdom.c (set_binding_values): Add prototype.
7390
7391 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7392
7393         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7394         call to elf_machine_fixup_plt.
7395         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7396         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7397
7398 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7399
7400         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7401         they are not dlclose'd from underneath us.
7402
7403 2000-05-08  Andreas Schwab  <schwab@suse.de>
7404
7405         * posix/execle.c: Fix size parameter of memcpy.
7406
7407 2000-05-08  Andreas Schwab  <schwab@suse.de>
7408
7409         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7410         getpagesize syscall if available.
7411
7412 2000-05-08  Andreas Jaeger  <aj@suse.de>
7413
7414         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7415         set errno.
7416
7417 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7418
7419         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7420         sizeof(struct link_map *) chunks, not in bytes.
7421
7422 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7423
7424         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7425         only needed for locale.
7426         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7427         It's only needed for catgets.
7428         Patches by Greg McGary <gkm@eng.ascend.com>.
7429
7430 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7431
7432         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7433         Remove duplicate <errno.h> include.  Remove inclusion of
7434         <libintl.h> and "nsswitch.h".
7435         (set_cloexec_flag): New function, broken out of dbopen.
7436         (dbopen): Changed return type to `enum
7437         nss_status'.  Mostly rewritten to make sure that we do not report
7438         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7439         (internal_setent): Change return type to nss_status.
7440         Document, and make sure that the function
7441         behaves accordingly.  Make dynamically loading the database
7442         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7443         failed.
7444         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7445         unecessary casts.
7446         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7447         documentation.
7448         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7449         c_get function member.
7450         * nss/nss_db/nss_db.h: Add and tweak some comments.
7451         (DBT): Move typedef before NSS_DBC typedef.
7452         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7453
7454 2000-05-07  H.J. Lu  <hjl@gnu.org>
7455
7456         * csu/initfini.c: Moved to ....
7457         * sysdeps/generic/initfini.c: ...here.
7458
7459         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7460
7461 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7462
7463         * manual/resource.texi: Document POSIX scheduling functions.
7464         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7465
7466         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7467         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7468
7469         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7470         for x since promotion in comparison might leads to unexpected
7471         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7472
7473         * iconv/Makefile (tests): Add tst-iconv1.
7474         * iconv/tst-iconv1.c: New file.
7475         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7476         empty input buffer over full output buffer.
7477         (ucs4_internal_loop): Likewise.
7478         (ucs4_internal_loop_unaligned): Likewise.
7479         (internal_ucs4le_loop): Likewise.
7480         (internal_ucs4le_loop_unaligned): Likewise.
7481         (ucs4le_internal_loop): Likewise.
7482         (ucs4le_internal_loop_unaligned): Likewise.
7483         Reported by yaoz@nih.gov.
7484
7485 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7486
7487         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7488         returned != __GCONV_OK, there is nothing to clean up.
7489
7490 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7491
7492         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7493         OUTPUT_CHARSET environment variables.
7494
7495 2000-05-06  Andreas Jaeger  <aj@suse.de>
7496
7497         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7498         (struct cache_file_new): New.
7499         (struct file_entry): New (moved from cache.c).
7500         (struct cache_file): New (moved from cache.c).
7501
7502         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7503         from _dl_load_cache_lookup.
7504         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7505         the different cache formats.
7506         New variable cache_new for new format.
7507
7508         * elf/ldconfig.h: Change according to changes in cache.c and
7509         ldconfig.c; remove cache_libcmp; add opt_format.
7510
7511         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7512         stuff that's defined in those headers.
7513         Add hwcap to struct lib_entry.
7514         (opt_format): New variable to select cache format.
7515         (options): Add format parameter.
7516         (is_hwcap): New function.
7517         (path_hwcap): New function.
7518         (parse_opt): Handle new format parameter.
7519         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7520
7521         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7522         ldconfig is part of glibc.
7523         Include dl-cache.h and remove stuff that's defined there.
7524         (struct cache_entry): Add new member hwcap.
7525         (print_entry): Print hwcap, cleanup a bit.
7526         (print_cache): Print new and old formats.
7527         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7528         (save_cache): Save new and old formats.
7529         (add_to_cache): Handle hwcap.
7530
7531         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7532         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7533         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7534         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7535         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7536         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7537
7538 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7539
7540         * intl/dcigettext.c (alignof): New macro.
7541         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7542         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7543         freemem_size to 0.
7544
7545 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7546
7547         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7548         return value.
7549
7550 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7551
7552         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7553         (mempcpy): Correct typo is parameter list.
7554
7555 2000-05-06  Andreas Jaeger  <aj@suse.de>
7556
7557         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7558         functions unless -ffast-math is given to gcc.
7559
7560 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7561
7562         * po/ko.po: Update from translation team.
7563
7564 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7565
7566         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7567         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7568         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7569         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7570         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7571         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7572
7573         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7574         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7575         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7576
7577         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7578         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7579         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7580         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7581
7582         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7583         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7584
7585 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7586
7587         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7588         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7589
7590         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7591         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7592
7593         * sysdeps/ia64/Implies: New file.
7594         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7595         * sysdeps/ia64/Makefile: New file.
7596         * sysdeps/ia64/gmp-mparam.h: New file,
7597
7598         * sysdeps/ia64/elf/start.S: New file.
7599
7600         * sysdeps/ia64/bits/fenv.h: New file.
7601
7602 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7603
7604         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7605
7606 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7607
7608         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7609         ia64 has 64 bit .hash entries just as the Alpha.
7610
7611 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7612
7613         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7614
7615 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7616
7617         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7618         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7619         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7620         * sysdeps/ia64/fpu/fegetenv.c: New file.
7621         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7622         * sysdeps/ia64/fpu/fegetround.c: New file.
7623         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7624         * sysdeps/ia64/fpu/fesetenv.c: New file.
7625         * sysdeps/ia64/fpu/fesetround.c: New file.
7626         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7627         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7628         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7629         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7630         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7631
7632 2000-05-05  Andreas Jaeger  <aj@suse.de>
7633
7634         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7635
7636         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7637         (_dl_string_hwcap): New, does nothing.
7638
7639         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7640         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7641         (_dl_string_hwcap): New function, converts from string to hwcap
7642         encoding.
7643         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7644         (_DL_HWCAP_COUNT): New.
7645         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7646         (_dl_string_hwcap): New function, converts from string to hwcap
7647         encoding.
7648         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7649         (_DL_HWCAP_COUNT): New.
7650         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7651         (_dl_string_hwcap): New function, converts from string to hwcap
7652         encoding.
7653
7654 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7655
7656         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7657         * sysdeps/ia64/Dist: New file.
7658
7659         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7660         parameter to mprotect and for variable assignments.
7661
7662 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7663
7664         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7665         validity of map before dereferencing it.
7666
7667         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7668
7669 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7670
7671         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7672         lookup to the arguments to elf_machine_fixup_plt().
7673
7674         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7675         of the symbol being resolved to input argument list and make the
7676         function return the pointer to the reloc.
7677
7678         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7679         return valuie to lookup_t and return the value.
7680         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7681         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7682         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7683         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7684         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7685         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7686
7687         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7688         Make it an inline function returning value after calling
7689         __elf_machine_fixup_plt().
7690
7691         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7692         symbol address.
7693
7694         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7695         obtain the symbol address.
7696
7697         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7698         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7699
7700         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7701         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7702         inline on non ia64.
7703
7704 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7705
7706         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7707         symbol address of an object.
7708
7709         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7710         the symbol address of an object.
7711
7712         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7713         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7714         (_dl_lookup_symbol_skip): Likewise.
7715         (_dl_lookup_versioned_symbol): Likewise.
7716         (_dl_lookup_versioned_symbol_skip): Likewise.
7717
7718 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7719
7720         * elf/rtld.c (_dl_start): Get the function pointer return address
7721         via _dl_start_address for architectures that need a function
7722         pointer descriptor rather than just a pointer (ia64).
7723
7724         * sysdeps/generic/dl-lookupcfg.h: New file.
7725         * sysdeps/ia64/dl-lookupcfg.h: New file.
7726         * sysdeps/ia64/dl-machine.h: New file.
7727         * sysdeps/ia64/dl-symaddr.c: New file.
7728         * sysdeps/ia64/dl-fptr.c: New file.
7729
7730         * elf/elf.h: Add IA-64 specific definitions.
7731
7732 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7733
7734         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7735         end of enum.
7736
7737 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7738
7739         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7740         happy.
7741
7742 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7743
7744         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7745         symbol.  Call _dl_init rather than the old way.
7746
7747 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7748
7749         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7750         test for pointer in range of DSO address space.
7751
7752 2000-05-04  Andreas Jaeger  <aj@suse.de>
7753
7754         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7755
7756 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7759         calls of _nl_make_l10nflist.
7760
7761         * libio/stdio.h: Make fseeko and ftello prototypes available is
7762         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7763
7764         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7765         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7766
7767 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7768
7769         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7770         before calling tfind.
7771
7772 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7773
7774         * resolv/resolv.h (res_querydomain): Remove redefinition to
7775         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7776
7777 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7778
7779         * po/gl.po: Update from translation team.
7780
7781         * manual/intro.texi (Program Basics): Change section title.
7782         * manual/process.texi: Fix reference.
7783         (Executing a File): Add reference exec in other section.
7784         * manual/signal.texi: Fix reference.
7785         * manual/startup.texi: Document syscall function.
7786         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7787
7788 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7789
7790         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7791         * intl/bindtextdom.c (set_binding_values): New function.
7792         (bindtextdomain): Call it.
7793         (bind_textdomain_codeset): New function.
7794         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7795         (free_mem): Free each binding's codeset.
7796         * intl/gettextP.h (struct binding): Add codeset field.
7797         (_nl_find_domain): Add domainbinding argument.
7798         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7799         Pass it to _nl_make_l10nflist.
7800         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7801         (_nl_make_l10nflist): Add domainbinding argument.
7802         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7803         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7804         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7805         locale_charset().
7806         * manual/message.texi: New node "Charset conversion in gettext".
7807
7808 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7809
7810         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7811         appropriate.  Handle possible __read error.
7812
7813 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7814
7815         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7816         compiler builtin.
7817         * intl/loadinfo.h (__builtin_expect): Likewise.
7818         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7819         __builtin_expect where appropriate.
7820         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7821         * intl/localealias.c (extend_alias_table): Return an error indicator.
7822         (read_alias_file): Bail out if extend_alias_table fails.
7823
7824 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7825
7826         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7827         * intl/localealias.c: Likewise.
7828
7829 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7830
7831         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7832         Initialize domain->plural and domain->nplurals even if there is no
7833         nullentry.
7834
7835 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7836
7837         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7838         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7839         In case of failure, goto converted.
7840
7841 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7842
7843         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7844         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7845         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7846         __gconv_open.
7847
7848 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7849
7850         * intl/dcigettext.c (transcmp): Compare the domains as well.
7851         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7852         not before.
7853         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7854         <errno.h>.
7855
7856 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7857
7858         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7859         Reported by Bruno Haible.
7860
7861 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7862
7863         * manual/arith.texi: Remove @w from @itemize.
7864
7865 2000-05-02  Andreas Jaeger  <aj@suse.de>
7866
7867         * conform/data/tar.h-data: Add some checks for specific values.
7868
7869         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7870         and RAND_MAX.
7871
7872         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7873         FOPEN_MAX.
7874
7875         * conform/data/netinet/in.h-data: Add exact checks for the values
7876         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7877
7878         * conform/data/float.h-data: Add some minimal values.
7879
7880         * conform/conformtest.pl: Test for macros with string constants,
7881         check for minimum and maximum values.
7882         Add limits.h to headers.
7883
7884         * conform/data/cpio.h-data: Test for value of MAGIC.
7885
7886         * conform/data/limits.h-data: New file.
7887
7888 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7889
7890         * math/Makefile (headers): Add bits/fenvinline.h.
7891
7892 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7893
7894         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7895         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7896
7897         * posix/Versions: Change posix_spawnattr_getdefault and
7898         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7899         and posix_spawnattr_setsigdefault respectively.
7900         * posix/spawn.h: Likewise.
7901         * posix/spawnattr_getdefault.h: Likewise.
7902         * posix/spawnattr_setdefault.h: Likewise.
7903         * conform/data/spawn.h-data: Likewise.
7904
7905 2000-05-01  Andreas Jaeger  <aj@suse.de>
7906
7907         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7908
7909 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7910
7911         * manual/sysinfo.texi: Document getdomainname, setdomainname
7912         and sysctl.
7913         * manual/string.texi: Fix typo.
7914         * manual/terminal.texi: Document gtty and stty.
7915         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7916
7917 2000-04-30  Andreas Jaeger  <aj@suse.de>
7918
7919         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7920         accordance with Austin Draft.
7921
7922 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7923
7924         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7925         to recognize second character in comment line.
7926
7927         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7928         ENOBUFS if we are out of memory.
7929
7930         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7931         available if __USE_XOPEN2K.
7932         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7933         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7934         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7935         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7936         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7937         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7938         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7939         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7940
7941 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7942
7943         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7944         Recognize option -s, -c, and -l.
7945
7946 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7947
7948         * nscd/nscd.c: Start new session for nscd, drop privilegs
7949         to configured user if requested and no -S parameter are used.
7950         * nscd/nscd.conf: Add new option "server-user".
7951         * nscd/nscd_conf.c: Add support for new "server-user" option.
7952         * nscd/nscd.h: Add declaration for server_user variable.
7953         Based on patch by Chris Wing <wingc@engin.umich.edu>
7954
7955 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7956
7957         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
7958         that changing the __restore and __restore_rt signal return code
7959         will break GDB.
7960
7961 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7962
7963         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
7964         <sys/user.h>.
7965
7966 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7967
7968         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
7969
7970 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7971
7972         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
7973         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
7974         arpa/inet.h.
7975         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
7976         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
7977         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
7978         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
7979         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
7980         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
7981         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
7982         posix_fallocate, and posix_madvise.
7983         * conform/data/netdb.h-data: New file.
7984         * conform/data/pthread.h-data: Add pthread_barrier_t,
7985         pthread_barrierattr_t, pthread_barrier_destroy,
7986         pthread_barrier_init, pthread_barrier_wait,
7987         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
7988         pthread_barrierattr_init, pthread_barrierattr_setpshared,
7989         pthread_condattr_getclock, pthread_condattr_setclock,
7990         pthread_getcpuclockid, pthread_mutex_timedlock,
7991         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7992         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
7993         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
7994         * conform/data/sched.h-data: Add sched_ss_low_priority,
7995         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
7996         SCHED_SPORADIC.
7997         * conform/data/semaphore.h-data: Add sem_timedwait.
7998         * conform/data/signal.h-data: Add SIGIO.
7999         * conform/data/spawn.h-data: New file.
8000         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
8001         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
8002         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
8003         Fix typo in gmtime_r definition.
8004         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
8005         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
8006         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
8007         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
8008         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
8009         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
8010         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
8011         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
8012         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
8013         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
8014         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
8015         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
8016         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
8017         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
8018         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
8019         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
8020         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
8021         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
8022         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
8023         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
8024         typo in off_t definition.
8025         * conform/data/net/if.h-data: New file.
8026         * conform/data/netinet/in.h-data: New file.
8027         * conform/data/netinet/tcp.h-data: New file.
8028         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
8029         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
8030         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
8031         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
8032         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
8033         and posix_typed_mem_open.
8034         * conform/data/sys/socket.h-data: New file.
8035         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
8036         * conform/data/sys/types.h-data: Add pthread_barrier_t,
8037         pthread_barrierattr_t, and pthread_spinlock_t.
8038         * conform/data/sys/un.h-data: New file.
8039         * conform/data/sys/utsname.h-data: New file.
8040
8041         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
8042         parameter.
8043         * inet/gethstbyad.c (gethostbyname): Likewise.
8044         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
8045         * inet/getipnodebyad.c (getipnodebyad): Likewise.
8046         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
8047         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
8048         Likewise.
8049         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
8050         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
8051         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
8052         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
8053         * resolv/gethnamaddr.c (gethostbyname): Likewise.
8054         * resolv/netdb.h (struct hostent): Fix type of h_length member.
8055         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
8056         and second parameter.
8057
8058         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
8059         == NULL.
8060
8061 2000-04-29  Andreas Jaeger  <aj@suse.de>
8062
8063         * conform/data/arpa/inet.h-data: New file.
8064
8065 2000-04-28  Geoff Clare <gwc@unisoft.com>
8066
8067         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
8068         path passed to ftw() or nftw() is an empty string.
8069         Closes PR libc/1710.
8070
8071 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8072
8073         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
8074         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
8075         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8076         * localedata/tst-mbswcs4.c: New file.
8077         * localedata/tst-mbswcs5.c: New file.
8078
8079         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8080         == NULL.  Little optimization.
8081
8082         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8083         DT_PREINIT_ARRAYSZ).
8084         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8085
8086         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8087         overflows in conversion from ASCII.
8088
8089 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8090
8091         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8092         * Makerules (full_config_sysdirs): Likewise.
8093         * MakeTAGS (full_config_sysdirs): Likewise.
8094
8095 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8096
8097         * .cvsignore: Remove linuxthreads.
8098         * po/.cvsignore: Remove *.pot.
8099         * posix/glob/.cvsignore: Removed.
8100         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8101
8102 2000-04-25  Andreas Jaeger  <aj@suse.de>
8103
8104         * conform/Makefile (distribute): Also distribute contents of
8105         subdirectories.
8106
8107         * Makerules (no_deps): Remove abi-versions.h.
8108
8109         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8110
8111 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8112
8113         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8114         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8115         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8116         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8117         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8118         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8119         objects.
8120
8121 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8122
8123         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8124
8125 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8126
8127         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8128         * intl/l10nflist.c: Likewise.
8129
8130 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8131
8132         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8133         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8134         * intl/textdomain.c [!_LIBC]: Likewise.
8135         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8136         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8137         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8138         syntax error.
8139
8140 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8141
8142         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8143         character set conversion also in the case the translation was found
8144         after a hash collision or through binary search.  Store the maximum
8145         index together with the converted message.  Use iconv() when available.
8146         In case of out of memory during conversion, return the unconverted
8147         translated string, not NULL.
8148
8149 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8150
8151         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8152         to avoid name clashes with the ia32 linker.
8153
8154 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8155
8156         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8157         handling.
8158
8159 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8160
8161         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8162         strtoumax, strfry, and memfrob.
8163         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8164         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8165
8166         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8167         if this function is available.
8168
8169         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8170         all values.
8171
8172 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8173
8174         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8175
8176 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8177
8178         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8179         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8180         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8181         * localedata/tst-mbswcs3.c: New file.
8182
8183 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8184
8185         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8186         characters.  Don't handle incomplete characters as errors.
8187         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8188         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8189         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8190         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8191         * localedata/tst-mbswcs2.c: New file.
8192
8193         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8194         stored character in state in UNPACK_BYTES macro.
8195         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8196         test for available characters, handle result of BODY code correctly.
8197         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8198         (distribute): Add tst-mbswcs.sh.
8199         Add rule to run tst-mbswcs.sh.
8200         * localedata/tst-mbswcs.sh: New file.
8201         * localedata/tst-mbswcs1.c: New file.
8202
8203 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8204
8205         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8206         allocation fixups centrally, fix __builtin_expect call, return NULL
8207         on failure, not NIS_NOMEMORY.
8208
8209 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8210
8211         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8212
8213         * intl/loadinfo.h (internal_function): Define if not already defined.
8214
8215 2000-04-27  Andreas Jaeger  <aj@suse.de>
8216
8217         * intl/libintl.h: Fix typo, reported by Bruno Haible
8218         <haible@clisp.cons.org>.
8219
8220 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8221
8222         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8223         setting the state to GMON_PROF_BUSY.
8224
8225 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8226
8227         * elf/dl-profile.c (_dl_start_profile): define all variables which
8228         do not have to be global as local variables.
8229
8230         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8231         patch.  Keep needed tests for failed memory allocation.
8232
8233         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8234         __builtin_expect saying that we don't normally expect to profile.
8235
8236         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8237         __builtin_expect where desirable.
8238
8239 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8240
8241         * manual/Makefile (chapters): Add syslog.
8242         * manual/syslog.texi: New file.
8243         * manual/math.texi: Fix references.
8244         * manual/terminal.texi: Likewise.
8245         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8246
8247 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8248
8249         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8250         stdlib.h was not included or __USE_XOPEN not defined.
8251
8252 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8253
8254         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8255         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8256
8257 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8258
8259         * manual/examples/subopt.c (mount_opts): Add missing terminating
8260         entry.
8261         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8262
8263         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8264         * libio/ftello.c: Likewise.
8265         * libio/ftello64.c: Likewise.
8266         * libio/ioftell.c: Likewise.
8267         * sysdeps/generic/memrchr.c: Likewise.
8268         * sysdeps/posix/libc_fatal.c: Likewise.
8269         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8270         * misc/fstab.c: Include <string.h> for strcmp prototype.
8271         * sysdeps/generic/ldsodefs.h: Likewise.
8272         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8273         Patch by Kurt Roeckx <Q@ping.be>.
8274
8275         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8276         Remove db-open.  Change all uses.
8277         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8278
8279 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8280
8281         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8282         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8283         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8284         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8285         with .set noat/at to shut up warnings.
8286         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8287         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8288         compilation if __NR_pciconfig_iobase is not defined.
8289         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8290         Add alias.
8291
8292 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8293
8294         * manual/sysinfo.texi: Fix typo.
8295         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8296         Replace "high precision time" with "high accuracy clock".
8297         Fix language.
8298         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8299
8300         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8301         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8302         instead of malloc.
8303         * nis/nis_subr.c: Use __builtin_expect.
8304         * nis/ypclnt.c: Likewise.
8305         * nis/nis_getservlist.c: Likewise.
8306         * nis/nis_creategroup.c: Likewise.
8307
8308         * nis/nis_callback.c (__nis_create_callback): Check result of
8309         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8310         (__nis_destroy_callback): Fix memory leaks.
8311
8312 2000-04-21  Andreas Jaeger  <aj@suse.de>
8313
8314         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8315         * sysdeps/mips/mips64/add_n.S: Likewise.
8316         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8317         * sysdeps/mips/mips64/lshift.S: Likewise.
8318         * sysdeps/mips/mips64/mul_1.S: Likewise.
8319         * sysdeps/mips/mips64/rshift.S: Likewise.
8320         * sysdeps/mips/mips64/setjmp.S: Likewise.
8321         * sysdeps/mips/mips64/sub_n.S: Likewise.
8322         * sysdeps/mips/mips64/submul_1.S: Likewise
8323         * sysdeps/unix/mips/sysdep.S: Likewise.
8324
8325         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8326         and update comment.  The strtab from _dl_relocate_object can be
8327         used.
8328
8329 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8330
8331         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8332         * iconv/iconv_close.c (iconv_close): Likewise.
8333         * iconv/iconv_open.c (iconv_open): Likewise.
8334
8335         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8336         __builtin_expect where useful.
8337
8338         * grp/initgroups.c (initgroups): Test for result of memory
8339         allocation and punt if it fails.
8340
8341         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8342         * grp/fgetgrent.c (fgetfrent): Likewise.
8343         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8344
8345 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8346
8347         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8348
8349 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8350
8351         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8352         don't search for NUL byte to decrement counter.
8353         Reported by Ulrich.Brink@sap.com.
8354
8355         * iconv/gconv_simple.c: Define separate functions to convert from
8356         UCS4/UCS4-LE to the internal encoding.
8357         * iconv/gconv_builtin.h: Use separate functions to convert from
8358         UCS4/UCS4-LE to the internal encoding.
8359         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8360         __gconv_transform_ucs4le_internal.
8361
8362         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8363         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8364
8365         * iconv/skeleton.c: Add some more __builtin_expect.
8366         * iconv/loop.c: Likewise.
8367
8368 2000-03-08  H.J. Lu  <hjl@gnu.org>
8369
8370         * posix/regex.c (regex_compile): Correctly handle "\{" when
8371         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8372
8373 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8374
8375         * manual/stdio.texi: Give advise about handling error when using
8376         stream functions.
8377         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8378
8379 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8380
8381         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8382         field to nelems * sizeof (uint32_t).
8383         * locale/programs/ld-address.c (address_output): Align word fields
8384         properly.
8385         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8386         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8387         field.
8388         Avoid giving arbitrary garbage in the crncystr field.
8389         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8390         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8391         fields.
8392         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8393         Don't restart idx pointers to idx end at the decimal_point_wc field.
8394         * locale/programs/ld-time.c (time_output): week_1stday should be
8395         word, not byte.  Align it properly.
8396
8397 2000-04-19  H.J. Lu  <hjl@gnu.org>
8398
8399         * csu/gmon-start.c (_start): Declared as "extern void".
8400         (etext): Likewise.
8401
8402 2000-04-18  Andreas Jaeger  <aj@suse.de>
8403
8404         * manual/install.texi (Running make install): Don't mention utmpd
8405         anymore.
8406
8407 2000-04-18  Andreas Jaeger  <aj@suse.de>
8408
8409         * linuxthreads/Versions: Use ld instead of ld.so.
8410
8411         * elf/Makefile (ld-map): Use ld.map.
8412
8413         * Versions.def: Use ld instead of ld.so.
8414         * elf/Versions: Likewise.
8415         * sysdeps/mach/hurd/Versions: Likewise.
8416
8417 2000-04-20  Andreas Jaeger  <aj@suse.de>
8418
8419         * elf/rtld.c (print_statistics): Move ifndef further up.
8420         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8421         (dl_main): Likewise.
8422
8423 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8424
8425         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8426         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8427
8428         * po/cs.po: Update from translation team.
8429
8430         * sysdeps/generic/updwtmp.c: Remove daemon support.
8431
8432         * login/Makefile (routines): Remove utmp_daemon.
8433
8434         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8435         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8436         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8437         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8438
8439         * elf/rtld.c: Display statitics option also if hp timing is not
8440         available.
8441
8442         * login/programs/connection.c: Removed.
8443         * login/programs/database.c Removed.
8444         * login/programs/error.c: Removed.
8445         * login/programs/request.c: Removed.
8446         * login/programs/xtmp.c: Removed.
8447         * login/programs/xtmp.h: Removed.
8448         * login/Makefile: Remove rules for utmpd.
8449         * login/README.utmpd: Removed.
8450         * login/utmp_daemon.c: Removed.
8451         * login/getutent_r.c: Remove references to daemon functions.
8452         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8453         declaration.
8454
8455 2000-04-18  Andreas Jaeger  <aj@suse.de>
8456
8457         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8458         2.2 for libnsl, libresolv, librt, libnss_*.
8459
8460         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8461
8462         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8463
8464 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8465
8466         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8467         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8468         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8469         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8470         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8471         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8472         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8473         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8474         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8475         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8476         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8477         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8478         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8479         it here.
8480         * sysdeps/unix/sysv/aix/msync.c: New file.
8481         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8482         * sysdeps/unix/sysv/aix/net/if.h: New file.
8483         * sysdeps/unix/sysv/aix/pipe.c: New file.
8484         * sysdeps/unix/sysv/aix/poll.c: New file.
8485         * sysdeps/unix/sysv/aix/rename.c: New file.
8486         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8487         * sysdeps/unix/sysv/aix/select.c: New file.
8488         * sysdeps/unix/sysv/aix/semctl.c: New file.
8489         * sysdeps/unix/sysv/aix/semget.c: New file.
8490         * sysdeps/unix/sysv/aix/semop.c: New file.
8491         * sysdeps/unix/sysv/aix/sendto.c: New file.
8492         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8493         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8494         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8495         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8496         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8497         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8498         * sysdeps/unix/sysv/aix/setsid.c: New file.
8499         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8500         * sysdeps/unix/sysv/aix/shmat.c: New file.
8501         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8502         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8503         * sysdeps/unix/sysv/aix/shmget.c: New file.
8504         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8505         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8506         * sysdeps/unix/sysv/aix/socket.c: New file.
8507         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8508         * sysdeps/unix/sysv/aix/speed.c: New file.
8509         * sysdeps/unix/sysv/aix/symlink.c: New file.
8510         * sysdeps/unix/sysv/aix/sync.c: New file.
8511         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8512         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8513         * sysdeps/unix/sysv/aix/times.c: New file.
8514         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8515         * sysdeps/unix/sysv/aix/umask.c: New file.
8516         * sysdeps/unix/sysv/aix/unlink.c: New file.
8517         * sysdeps/unix/sysv/aix/ustat.c: New file.
8518         * sysdeps/unix/sysv/aix/utimes.c: New file.
8519
8520 2000-04-18  Andreas Jaeger  <aj@suse.de>
8521
8522         * manual/startup.texi (Environment Access): Fix putenv prototype
8523         according to recent changes.
8524         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8525         PR libc/1692.
8526
8527         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8528         needed.
8529
8530 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8531
8532         * posix/Makefile (tests): Add tst-getaddrinfo.
8533         * posix/tst-getaddrinfo.c: New file.
8534
8535 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8536
8537         * manual/sysinfo.texi: Document that umount2 is not widely available.
8538
8539         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8540         signal timing is not really implemented.
8541
8542 2000-04-17  Andreas Jaeger  <aj@suse.de>
8543
8544         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8545
8546 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8547
8548         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8549         and inst_libdir.
8550
8551 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8552
8553         * manual/intro.texi: Change reference from System Information to
8554         System Management.
8555         * manual/users.texi: Likewise.
8556         * manual/conf.texi: Likewise.
8557         * manual/sysinfo.texi: Document mount, umount, and umount2.
8558         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8559
8560 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8561
8562         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8563         Create wnumstr as well as numstr to support wide character output
8564         correctly.
8565
8566 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8567
8568         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8569         modification and move it...
8570         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8571         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8572         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8573         switch to $(LD) on sparc-linux.
8574
8575 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8576
8577         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8578         and setresuid from sysdep_routines.
8579
8580 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8581
8582         * manual/Makefile (chapters): Add resource.
8583
8584         * manual/time.texi: Move section on resources to...
8585         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8586         and vtimes.
8587         * manual/setjmp.texi: Adjust back reference.
8588         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8589
8590         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8591         definition.
8592         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8593         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8594         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8595         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8596         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8597         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8598         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8599         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8600         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8601         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8602         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8603         * sysdeps/unix/sysv/aix/Implies: New file.
8604         * sysdeps/unix/sysv/aix/Versions: New file.
8605         * sysdeps/unix/sysv/aix/bind.c: New file.
8606         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8607         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8608         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8609         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8610         * sysdeps/unix/sysv/aix/chdir.c: New file.
8611         * sysdeps/unix/sysv/aix/chmod.c: New file.
8612         * sysdeps/unix/sysv/aix/chroot.c: New file.
8613         * sysdeps/unix/sysv/aix/creat.c: New file.
8614         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8615         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8616         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8617         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8618         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8619         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8620         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8621         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8622         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8623         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8624         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8625         * sysdeps/unix/sysv/aix/link.c: New file.
8626         * sysdeps/unix/sysv/aix/madvise.c: New file.
8627         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8628         * sysdeps/unix/sysv/aix/mknod.c: New file.
8629         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8630         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8631         * sysdeps/unix/sysv/aix/msgget.c: New file.
8632         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8633
8634 2000-04-17  Andreas Jaeger  <aj@suse.de>
8635
8636         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8637         as suggested by Ulrich Drepper.
8638         (__dl_runtime_resolve): Remove unused variable, initialize sym
8639         directly.
8640         (RTLD_START): Document OFFSET_GP_GOT.
8641         (OFFSET_GP_GOT): New magic value.
8642         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8643         (elf_machine_got_rel): Only declare strtab if needed.
8644         (elf_machine_relplt): Removed, it's not needed.
8645         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8646
8647         * sysdeps/mips/add_n.S: Add newline at EOF.
8648         * sysdeps/mips/rshift.S: Likewise.
8649         * sysdeps/mips/mul_1.S: Likewise.
8650         * sysdeps/mips/lshift.S: Likewise.
8651         * sysdeps/mips/addmul_1.S: Likewise.
8652
8653 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8654
8655         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8656
8657         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8658         * elf/dl-lookup.c: Likewise.
8659         * elf/dl-init.c (_dl_init): Likewise.
8660         * elf/dl-fini.c (_dl_fini): Likewise.
8661         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8662         * elf/dl-close.c (_dl_close): Likewise.
8663         * elf/rtld.c (_dl_start_final): Likewise.
8664
8665         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8666
8667 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8668
8669         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8670         only fall back on using Linux.
8671
8672         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8673         Before testing versions check that we actually loaded the object
8674         and whether we are in trace mode.  If not loaded during tracing don't
8675         test versions in this object.
8676         (_dl_check_all_versions): Take new parameter and pass to
8677         _dl_check_map_versions.
8678         * sysdeps/generic/ldsodefs.h: Update prototypes for
8679         _dl_check_all_versions and _dl_check_map_versions.
8680         * elf/rtld.c (struct version_check_args): Add dotrace.
8681         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8682         (dl_main): Pass info about trace mode to version_check_doit.
8683         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8684         _dl_check_all_versions.
8685
8686         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8687         and getutmpx.
8688         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8689
8690         * manual/argp.texi: Document index parameter of argp_parse.
8691         Fix typo.
8692         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8693
8694 2000-04-14  Andreas Jaeger  <aj@suse.de>
8695
8696         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8697         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8698
8699         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8700
8701 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8702
8703         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8704         compat_symbol call for old adjtime.
8705
8706         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8707         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8708
8709         * posix/Makefile (headers): Add spawn.h.
8710         (distribute): Add spawn_int.h.
8711         (routines): Add spawn_faction_init, spawn_faction_destroy,
8712         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8713         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8714         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8715         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8716         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8717         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8718         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8719         posix_spawnattr_init, posix_spawnattr_destroy,
8720         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8721         posix_spawnattr_getflags, posix_spawnattr_setflags,
8722         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8723         and posix_spawnp.
8724         * posix/spawn.c: New file.
8725         * posix/spawn.h: New file.
8726         * posix/spawn_faction_addclose.c: New file.
8727         * posix/spawn_faction_adddup2.c: New file.
8728         * posix/spawn_faction_addopen.c: New file.
8729         * posix/spawn_faction_destroy.c: New file.
8730         * posix/spawn_faction_init.c: New file.
8731         * posix/spawn_int.h: New file.
8732         * posix/spawnattr_destroy.c: New file.
8733         * posix/spawnattr_getdefault.c: New file.
8734         * posix/spawnattr_getflags.c: New file.
8735         * posix/spawnattr_getpgroup.c: New file.
8736         * posix/spawnattr_getschedparam.c: New file.
8737         * posix/spawnattr_getschedpolicy.c: New file.
8738         * posix/spawnattr_getsigmask.c: New file.
8739         * posix/spawnattr_init.c: New file.
8740         * posix/spawnattr_setdefault.c: New file.
8741         * posix/spawnattr_setflags.c: New file.
8742         * posix/spawnattr_setpgroup.c: New file.
8743         * posix/spawnattr_setschedparam.c: New file.
8744         * posix/spawnattr_setschedpolicy.c: New file.
8745         * posix/spawnattr_setsigmask.c: New file.
8746         * posix/spawni.c: New file.
8747         * posix/spawnp.c: New file.
8748
8749         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8750         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8751
8752 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8753
8754         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8755         * malloc/malloc.c: Implement posix_memalign for glibc.
8756         * include/stdlib.h: Add prototype for __posix_memalign.
8757         * stdlib/stdlib.h: Add prototype for posix_memalign.
8758
8759 2000-04-14  Andreas Jaeger  <aj@suse.de>
8760
8761         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8762         symidx correctly.
8763         (elf_machine_got_rel): Cast sym correctly.
8764
8765         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8766         * sysdeps/mips/addmul_1.S: Likewise.
8767         * sysdeps/mips/lshift.S: Likewise.
8768         * sysdeps/mips/mul_1.S: Likewise.
8769         * sysdeps/mips/rshift.S: Likewise.
8770         * sysdeps/mips/sub_n.S: Likewise.
8771         * sysdeps/mips/submul_1.S: Likewise.
8772
8773         * stdlib/stdlib.h: Fix typo in comment.
8774
8775         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8776         2.2 for libdl, ld and libm.
8777
8778         * sysdeps/generic/madvise.c: Fix typos.
8779
8780         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8781
8782         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8783
8784         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8785         warnings.
8786
8787 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8788
8789         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8790         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8791         Make old name weak alias.
8792         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8793         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8794         Make old name weak alias.
8795         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8796
8797         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8798         posix_fallocate, and posix_fallocate64.
8799         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8800         posix_fallocate, and posix_fallocate64.
8801         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8802         posix_fallocate, and posix_fallocate64.
8803         * sysdeps/generic/fadvise.c: New file.
8804         * sysdeps/generic/fadvise64.c: New file.
8805         * sysdeps/generic/fallocate.c: New file.
8806         * sysdeps/generic/fallocate64.c: New file.
8807         * sysdeps/posix/fallocate.c: New file.
8808         * sysdeps/posix/fallocate64.c: New file.
8809         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8810         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8811         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8812         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8813         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8814         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8815         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8816         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8817         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8818
8819         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8820         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8821
8822 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8823
8824         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8825         * misc/sys/mman.h (posix_madvise): Add prototype.
8826         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8827         old name and posix_madvise weak aliases.
8828         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8829         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8830         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8831         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8832         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8833         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8834         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8835
8836 2000-04-13  Andreas Jaeger  <aj@suse.de>
8837
8838         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8839         versioning.
8840         (elf_machine_got_rel): Only add runtime display if needed.
8841         (elf_machine_got_rel): Handle symbol versioning.
8842
8843 2000-04-13  Andreas Jaeger  <aj@suse.de>
8844
8845         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8846
8847         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8848         default.
8849
8850         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8851         with some applications.
8852         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8853
8854         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8855         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8856         * sysdeps/mips/setjmp.S: Likewise.
8857
8858         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8859
8860 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8861
8862         * posix/globtest.sh: Work around inconsistency with expanding ~/
8863         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8864
8865 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8866
8867         * posix/getconf.c: Add support for many more POSIX options.
8868         * sysdeps/posix/sysconf.c: Likewise.
8869         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8870         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8871         _POSIX_SHELL.
8872         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8873         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8874         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8875         CLOCK_THREAD_CPUTIME_ID.
8876         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8877         CLOCK_PROCESS_CPUTIME_ID.
8878         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8879         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8880         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8881         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8882
8883         * malloc/Makefile (tests): Add tst-calloc.
8884         * malloc/tst-calloc.c: New file.
8885
8886         * sysdeps/arm/libm-test-ulps: New file.
8887
8888         * malloc/malloc.c: Undo all of today's changes.
8889
8890         * locale/programs/locale.c (show_info): Don't try to look into
8891         data for LC_ALL (there is none).
8892
8893         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8894         avoid writing over boundary.
8895         Patch by Greg McGary <gkm@eng.ascend.com>.
8896
8897         * sysdeps/arm/memprof.h: New file.
8898
8899 2000-04-12  Andreas Jaeger  <aj@suse.de>
8900
8901         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8902
8903         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8904         for memmem declaration.
8905
8906 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8907
8908         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8909         to -1.
8910         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8911
8912         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8913         mode is invalid.
8914         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8915         Patch by Bart Veer <bartv@redhat.com>.
8916
8917         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8918         function interface.
8919
8920 2000-04-11  Andreas Jaeger  <aj@suse.de>
8921
8922         * sysdeps/mips/dl-machine.h: Update some comments.
8923         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8924
8925 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8926
8927         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8928         _POSIX_SHARED_MEMORY_OBJECTS.
8929
8930         * rt/Makefile (tests): Add tst-shm.
8931         Add rules to generate tst-shm.
8932         * rt/tst-shm.c: New file.
8933
8934         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8935         for descriptor.
8936
8937         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8938         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8939         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8940         * sysdeps/generic/shm_open.c: New file.
8941         * sysdeps/generic/shm_unlink.c: New file.
8942         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8943         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8944         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8945          __endmntent, __getmntent_r, __setmntent, and __statfs.
8946
8947         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8948         fragmentation by allocating new memory at the end instead of
8949         reallocating.
8950
8951         * posix/globtest.sh: Fix last change.
8952
8953 2000-04-10  Philip Blundell  <philb@gnu.org>
8954
8955         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8956         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8957         IPV6_DROP_MEMBERSHIP.
8958         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
8959         Likewise.
8960
8961 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8962
8963         * elf/readlib (process_file): Close streams in case of an error.
8964
8965 2000-04-09  Andreas Jaeger  <aj@suse.de>
8966
8967         * elf/readlib.c (process_file): Check if file is big enough to
8968         contain aout and ELF headers.
8969         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
8970
8971 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
8972
8973         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
8974
8975 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8976
8977         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
8978         stream unbuffered.
8979         * rt/Makefile (tests): Add tst-clock.
8980         Add rules to build tst-clock.
8981         * rt/tst-clock.c: New file.
8982         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
8983         about initialization of nsec.
8984         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
8985         about initialization of freq.  Set retval to zero if successful.
8986         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
8987
8988 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8989
8990         * Versions.def (librt): Add GLIBC_2.2.
8991         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
8992         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
8993         timer_getoverr, timer_gettime, and timer_settime.
8994         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
8995         clock_settime, timer_create, timer_delete, timer_getoverrun,
8996         timer_gettime, and timer_settime.
8997         * sysdeps/generic/clock_getcpuclockid.c: New file.
8998         * sysdeps/generic/get_clockfreq.c: New file.
8999         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
9000         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
9001         * sysdeps/mach/hurd/i386/bits/time.h: New file.
9002         * sysdeps/unix/i386/i586/clock_getres.c: New file.
9003         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
9004         * sysdeps/unix/i386/i686/Implies: New file.
9005         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
9006         * time/Makefile (routines): Move clock_getres, clock_gettime,
9007         clock_settime, timer_create, timer_delete, timer_getoverr,
9008         timer_gettime, and timer_settime to rt/Makefile.
9009         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
9010         clock_settime, timer_create, timer_delete, timer_getoverrun,
9011         timer_gettime, and timer_settime.
9012         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
9013
9014         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
9015         and not const as attribute name.
9016
9017 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
9018
9019         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
9020
9021 2000-04-10  Andreas Schwab  <schwab@suse.de>
9022
9023         * posix/globtest.sh: Skip tests that depend on unreadable
9024         directories if run as root.
9025
9026 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
9027
9028         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
9029         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
9030
9031 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9032
9033         * sysdeps/unix/clock_gettime.c: New file.
9034         * sysdeps/unix/clock_settime.c: New file.
9035         * sysdeps/posix/clock_getres.c: New file.
9036
9037         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
9038
9039         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
9040         lseek call be passing in a buffer which never allow a successful
9041         first getdents syscall if not at leas the initial entry can be
9042         stored in the user buffer.
9043
9044         * localedata/Makefile: Add rules to clean up directories created by
9045         new strfmon tests.
9046
9047 2000-04-09  Geoff Clare  <gwc@unisoft.com>
9048
9049         * localedata/tst-fmon.data: Added new tests for strfmon()
9050         using test locales with all combinations of cs_precedes,
9051         sign_posn and sep_by_space.
9052         * localedata/tst-fmon.sh: Updated to support the new tests.
9053         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
9054         the localedef source for the new strfmon() test locale.
9055         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
9056         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
9057         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
9058         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
9059         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
9060         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
9061         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
9062         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
9063         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
9064         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
9065         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
9066         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
9067         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
9068         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
9069
9070         * stdlib/strfmon.c: Correct problems with missing or extra
9071         spaces for unusual combinations of sign_posn and sep_by_space.
9072         Improved left-precision alignment code.
9073
9074 2000-04-07  Andreas Jaeger  <aj@suse.de>
9075
9076         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9077
9078 2000-04-10  Andreas Jaeger  <aj@suse.de>
9079
9080         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9081
9082 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9083
9084         Implement handling of restartable conversion functions according to
9085         ISO C.
9086         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9087         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9088         * iconv/gconv.c: Pass additional parameter to conversion function.
9089         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9090         (internal_ucs4le_loop_single): New function.
9091         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9092         (__gconv_transform_internal_ascii): Likewise.
9093         (__gconv_transform_internal_utf8): Likewise.
9094         (__gconv_transform_utf8_internal): Likewise.
9095         (__gconv_transform_ucs2_internal): Likewise.
9096         (__gconv_transform_internal_ucs2): Likewise.
9097         (__gconv_transform_ucs2reverse_internal): Likewise.
9098         (__gconv_transform_internal_ucs2reverse): Likewise.
9099         (internal_ucs4le_loop_unaligned): Before return
9100         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9101         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9102         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9103         * iconv/loop.c: Fit in definition of function to convert one character
9104         for processing of left-over bytes from the state object.
9105         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9106         inend to match names in loop functions.
9107         (RESET_INPUT_BUFFER): Change apprpriately.
9108         (gconv): If needed, call function to process bytes from the state
9109         object.  Similar at the end: store left over bytes if input is
9110         incomplete.
9111         Take extra argument and add new argument to all calls of the
9112         conversion function.
9113         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9114         information in the state object to not conflict with length count.
9115         * iconvdata/iso-2022-jp.c: Likewise.
9116         * iconvdata/iso-2022-kr.c: Likewise.
9117         * iconvdata/unicode.c: Adjust for change change in parameters of
9118         skeleton function.
9119         * iconvdata/utf-16.c: Likewise.
9120         * libio/iofwide.c: Add new parameter to all calls of conversion
9121         function.
9122         * wcsmbs/btowc.c: Likewise.
9123         * wcsmbs/mbrtowc.c: Likewise.
9124         * wcsmbs/mbsnrtowcs.c: Likewise.
9125         * wcsmbs/mbsrtowcs.c: Likewise.
9126         * wcsmbs/wcrtomb.c: Likewise.
9127         * wcsmbs/wcsnrtombs.c: Likewise.
9128         * wcsmbs/wcsrtombs.c: Likewise.
9129         * wcsmbs/wctob.c: Likewise.
9130
9131         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9132         MAX_NEEDED_INPUT.
9133
9134 2000-04-07  Andreas Jaeger  <aj@suse.de>
9135
9136         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9137         newer kernels.
9138
9139 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9140
9141         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9142         element a union to allow byte access.
9143         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9144         mbstate_t.
9145         * iconvdata/iso-2022-jp.c: Likewise.
9146         * iconvdata/iso-2022-kr.c: Likewise.
9147         * wcsmbs/mbsinit.c: Likewise.
9148         * stdlib/mblen.c: Likewise.
9149         * stdio-common/printf-parse.h: Likewise.
9150
9151 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9152
9153         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9154         kernel does not allow relative seeks on descriptors associated
9155         with directories.  Go back to get the position in the directory
9156         every time we enter the function.  Return -1 and set errno if one
9157         entry could be read from the kernel but does not fit into the
9158         buffer passed in by the user.
9159
9160         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9161         Support ..(2).. ellipsis.
9162         (parse_charmap): Recognize ..(2).. etc and pass step down.
9163         Correctly generate names for UCS4 characters.
9164
9165         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9166         (ctype_finish): We know the wide character value for <SP>,
9167         don't search.
9168         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9169         (charclass_ucs4_ellipsis): Likewise.
9170         (read_translit_ignore_entry): Store ellipsis step.
9171         (ctype_read): Recognize ..(2).. etc and pass step down.
9172
9173         * locale/programs/linereader.c (lr_token): When seeing comment
9174         character ignore only rest of line in sources but stop at escaped
9175         newline.
9176         Recognize ..(2).. and ....(2).....
9177
9178         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9179         and tok_ellipsis4_2.
9180
9181 2000-04-06  Andreas Jaeger  <aj@suse.de>
9182
9183         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9184         removed, remove it here also.
9185         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9186         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9187         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9188         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9189
9190 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9191
9192         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9193         include bits/sigcontext.h.
9194         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9195
9196 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9197
9198         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9199         collation symbol definition.  Value in quivalence definition must
9200         be defined, don't check that it is not.
9201
9202         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9203         values as character names.
9204
9205         * locale/programs/ld-ctype.c (get_character): Handle missing
9206         repertoire map correctly.
9207
9208 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9209
9210         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9211         because it is used in generic code.
9212         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9213         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9214         * intl/gettext.c: Include <locale.h>.
9215         * intl/ngettext.c: Likewise.
9216
9217 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9218
9219         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9220         socklen_t type for size.
9221         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9222         init function interface.
9223         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9224         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9225         sys/ucontext.h.
9226         (__jmp_buf): Declare the whole type structure here, don't use
9227         ucontext.
9228
9229 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9230
9231         * iconv/skeleton.c (put16u): Fix typo.
9232         Reported by Bruno Haible <haible@ilog.fr>.
9233
9234         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9235         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9236         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9237         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9238         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9239         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9240
9241         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9242         * Makefile (distribute): Add abi-versions.awk and
9243         firstversions.awk.
9244         Patches by Torsten Duwe <duwe@caldera.de>.
9245
9246 2000-04-05  Andreas Schwab  <schwab@suse.de>
9247
9248         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9249
9250 2000-04-05  Andreas Schwab  <schwab@suse.de>
9251
9252         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9253         entry point, used on Hurd.
9254
9255 2000-04-04  Andreas Jaeger  <aj@suse.de>
9256
9257         * intl/Makefile: Only run the gettext test with shared libraries.
9258
9259 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9260
9261         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9262         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9263
9264 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9265
9266         * Makeconfig: Undo last change.
9267         * configure.in: If --disable-shared was given, don't set VERSIONING,
9268         don't define DO_VERSIONING, and don't give scare warning for no
9269         versioning.
9270         * configure: Regenerated.
9271
9272 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9273
9274         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9275
9276 2000-04-04  Andreas Jaeger  <aj@suse.de>
9277
9278         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9279
9280 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9281
9282         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9283         STV_HIDDEN and STV_INTERNAL during lookup.
9284         (profile_fixup): Likewise.
9285         * elf/dl-reloc.c (RESOLVE): Likewise.
9286
9287         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9288         unaligned so that it compiles for system which need unaligned
9289         access handling.
9290
9291 2000-04-04  Andreas Schwab  <schwab@suse.de>
9292
9293         * elf/cache.c (print_entry): Only look at the type field when
9294         printing the type.
9295
9296 2000-04-04  Andreas Schwab  <schwab@suse.de>
9297
9298         * iconvdata/big5.c (BODY): Fix typo.
9299
9300 2000-04-04  Andreas Schwab  <schwab@suse.de>
9301
9302         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9303         function interface.  Remove unused _dl_start_user entry point.
9304
9305 2000-04-03  Andreas Jaeger  <aj@suse.de>
9306
9307         * include/arpa/inet.h (__inet_aton): Add protoype.
9308
9309 2000-04-01  Andreas Jaeger  <aj@suse.de>
9310
9311         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9312
9313         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9314         * sysdeps/mach/mips/thread_state.h: Likewise.
9315
9316         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9317         * sysdeps/generic/fegetenv.c: Likewise.
9318         * sysdeps/generic/fesetenv.c: Likewise.
9319         * sysdeps/generic/feupdateenv.c: Likewise.
9320         * sysdeps/generic/fraiseexcpt.c: Likewise.
9321         * sysdeps/generic/fsetexcptflg.c: Likewise.
9322         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9323         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9324         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9325         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9326
9327 2000-04-02  H.J. Lu  <hjl@gnu.org>
9328
9329         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9330
9331 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9332
9333         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9334         (add_name_to_object): Add cast in malloc call.
9335         (fillin_rpath): Optimize loop to initialize ->status a bit.
9336
9337         * sysdeps/i386/dl-machine.h: Undo last change.
9338         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9339         Restore %edx register after call here.
9340
9341         * sysdeps/arm/atomicity.h: New file.
9342         Contributed by Jesper Skov <jskov@redhat.com>.
9343
9344 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9345
9346         * Makeconfig (preprocess-versions): Undo last change.
9347         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9348
9349         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9350         here, before we might move the stack.
9351         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9352         (init1): And not here.
9353
9354         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9355         change, to restore argc value in call-clobbered register after
9356         RTLD_START_SPECIAL_INIT, which will contain a call.
9357
9358         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9359         allocating and initializing L->l_initfini.
9360
9361         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9362
9363 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9364
9365         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9366         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9367         (open_path): Change type of fourth parameter.  Make pointer to array
9368         of pointers.  Create variable dirs with original type.
9369         Track whether any directory for the object exists and if not,
9370         change *DIRSP to (void*) -1 to signal there is no such search path.
9371         (_dl_map_object): Change all calls of open_path.
9372         Rewrite decompose_rpath calls.
9373
9374 2000-03-31  Andreas Schwab  <schwab@suse.de>
9375
9376         * string/strfry.c: Declare STATE as array of char instead of int
9377         and do not initialize it (done by initstate_r).  Pass correct
9378         size.
9379
9380 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9381
9382         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9383
9384         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9385         instruction out of the code.
9386
9387 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9388
9389         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9390         element at this position.
9391
9392         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9393         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9394         l_reldeps elements.
9395         * elf/dl-lookup.c (add_dependency): New function.
9396         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9397         dynamically loaded object.
9398         (_dl_lookup_symbol_skip): Likewise.
9399         (_dl_lookup_versioned_symbol): Likewise.
9400         (_dl_lookup_versioned_symbol_skip): Likewise.
9401         * elf/dl-open.c: Don't define _dl_load_lock here...
9402         * elf/rtld.c: ...but here...
9403         * elf/dl-support.c: ...and here.
9404         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9405         through relocation.
9406         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9407         relocations.
9408         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9409         anymore.
9410         * dlfcn/glrefmain.c: Add one more debug message.
9411
9412         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9413         command line.
9414         * Makerules (sysd-versions): Use ( ) instead of { }.
9415
9416         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9417         optimize for the non-debugging case.
9418         * elf/dl-lookup.c: Likewise.
9419         * sysdeps/generic/libc-start.c: Likewise.
9420
9421 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9422
9423         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9424         (init1): Don't initialize __environ here, since init already does it.
9425         (first_init): New function, broken out of _init.
9426         (_hurd_stack_setup): Use it.
9427         [SHARED] (_dl_init_first): New function, renamed from old _init.
9428         (init1) [SHARED]: Don't call posixland_init here.
9429         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9430         [SHARED] (_init): Define as alias for posixland_init.
9431         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9432         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9433         RTLD_START_SPECIAL_INIT before calling initializers.
9434         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9435         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9436         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9437         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9438
9439         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9440         since we define the function with the name `tmpfile'.
9441
9442         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9443         * hurd/Versions: Likewise.
9444
9445 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9446
9447         * elf/dl-runtime.c (fixup): Fix typo in comment.
9448
9449         * resolv/netdb.h (getnameinfo): All length parameters are of type
9450         socklen_t.
9451         * inet/getnameinfo.c: Likewise.
9452
9453 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9454
9455         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9456         (gethostname): Change type of second parameter to socklen_t.
9457         * include/unistd.h (__gethostname): Change type of second
9458         parameter to socklen_t.
9459         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9460         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9461         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9462         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9463         Likewise.
9464         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9465         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9466         Allow definition elsewhere.
9467         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9468         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9469         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9470         * sysdeps/generic/bits/types.h: Define __socklen_t.
9471         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9472         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9473         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9474         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9475         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9476         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9477         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9478
9479         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9480         (inet_lnaof): Likewise.
9481         (inet_netof): Likewise.
9482         (inet_network): Likewise.
9483         (inet_aton): Likewise.
9484         (inet_makeaddr): Change parameter types to in_addr_t.
9485         (inet_neta): Likewise.
9486         (inet_ntop): Change type of last parameter to socklen_t.
9487         (inet_aton): Only make available if __USE_MISC.
9488         (inet_neta): Likewise.
9489         (inet_net_ntop): Likewise.
9490         (inet_net_pton): Likewise.
9491         (inet_nsap_ntoa): Likewise.
9492
9493         * inet/in.h: Define in_port_t type.
9494         Define in_addr_t type.
9495         (struct in_addr): Use in_addr_t in definition.
9496         (IN_CLASSA): Use cast to in_addr_t.
9497         (IN_CLASSB): Likewise.
9498         (IN_CLASSC): Likewise.
9499         (IN_CLASSD): Likewise.
9500         (IN_EXPERIMENTAL): Likewise.
9501         (IN_BADCLASS): Likewise.
9502         (INADDR_ANY): Likewise.
9503         (INADDR_BROADCAST): Likewise.
9504         (INADDR_NONE): Likewise.
9505         (INADDR_LOOPBACK): Likewise.
9506         (INADDR_UNSPEC_GROUP): Likewise.
9507         (INADDR_ALLHOSTS_GROUP): Likewise.
9508         (INADDR_ALLRTRS_GROUP): Likewise.
9509         (INADDR_MAX_LOCAL_GROUP): Likewise.
9510         (struct sockaddr_in): Use in_port_t for sin_port element.
9511         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9512         Use uint8_t instead of u_int8_t.
9513
9514         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9515         Call __inet_aton instead of inet_aton.
9516         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9517
9518         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9519         (innetgr): Likewise.
9520         (struct addrinfo): Use socklen_t for ai_addrlen element.
9521
9522         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9523         IPV6_RECVERR): New defines.
9524
9525         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9526         * inet/getnetbyad.c: Likewise.
9527         * inet/getnetbyad_r.c: Likewise.
9528         * nis/nss_nis/nis-network.c: Likewise.
9529         * nis/nssplus_nis/nisplus-network.c: Likewise.
9530         * nss/nss_files/files-network.c: Likewise.
9531         * resolv/netdb.h: Define uint32_t if not already happened.
9532         Include bits/netdb.h.  Remove definition of struct netent.
9533         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9534         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9535         * sysdeps/generic/bits/netdb.h: New file.
9536         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9537
9538         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9539         (tests): Add glrefmain.
9540         Add rules to build modules and run tests.  Ignore result of glrefmain
9541         for now since it fails.
9542         * dlfcn/glrefmain.c: New file.
9543         * dlfcn/glreflib1.c: New file.
9544         * dlfcn/glreflib2.c: New file.
9545
9546         * test-skeleton.c: Include <string.h> for strsignal prototype.
9547
9548         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9549         to be missing.
9550
9551         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9552         former init-first.h.  Initialize __libc_multiple_libcs.
9553
9554 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9555
9556         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9557         #if expression for use of unaligned function to the one used in
9558         the definition of these functions.
9559         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9560         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9561         (internal_ucs4le_loop_unaligned): New function.
9562
9563         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9564         (tests): Add order.
9565         (module-names): Add dep1, dep2, dep3, and dep4.
9566         Add dependencies for dep* modules and order.
9567         Define rule for order.out which checks the result.
9568         * elf/dep1.c: New file.
9569         * elf/dep2.c: New file.
9570         * elf/dep3.c: New file.
9571         * elf/dep4.c: New file.
9572         * elf/order.c: New file.
9573
9574         * elf/dl-init.c: Fix typo in comment.
9575
9576 2000-03-31  Andreas Jaeger  <aj@suse.de>
9577
9578         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9579         init function interface.
9580         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9581
9582 2000-03-31  Andreas Jaeger  <aj@suse.de>
9583
9584         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9585         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9586         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9587         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9588         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9589
9590         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9591         anymore, update comment.
9592
9593         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9594
9595         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9596         SHLIB_COMPAT - the struct is always needed.
9597
9598 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9599
9600         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9601         * elf/dl-support.c: Define _dl_starting_up.
9602
9603 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9604
9605         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9606         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9607
9608         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9609
9610         * elf/Makefile (dl-routines): Remove preinit.
9611         * elf/Versions: Remove _dl_preinit.
9612         * elf/dl-preinit.c: Removed.  Move content into...
9613         * elf/dl-init.c: ...here.
9614         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9615
9616         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9617         elements.
9618
9619 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9620
9621         * stdlib/strfmon.c: Corrected problems with the code that
9622         sets default values for [np]_sep_by_space and
9623         [np]_sign_posn; also the new positive/negative alignment
9624         code from the previous patch was not quite right for
9625         [np]_sign_posn = 0.
9626
9627         * localedata/tst-fmon.data: Changes corresponding to the
9628         two sets of fixes made to stdlib/strfmon.c.
9629
9630 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9631
9632         * malloc/malloc.c: Declare bit flags UL so that they will not
9633         default to int size when being inverted.
9634
9635 2000-03-29  Andreas Jaeger  <aj@suse.de>
9636
9637         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9638         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9639
9640 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9641             Ralf Baechle <ralf@uni-koblenz.de>
9642
9643         * Makeconfig: Introduce new variable SHARED to mark code used in
9644         the shared library.
9645         * elf/dl-close.c: Use it instead of PIC.
9646         * elf/dl-load.c: Likewise.
9647         * elf/dl-open.c: Likewise.
9648         * hurd/geteuids.c: Likewise.
9649         * include/libc-symbols.h: Likewise.
9650         * include/shlib-compat.h: Likewise.
9651         * libio/freopen.c: Likewise.
9652         * linuxthreads/cancel.c: Likewise.
9653         * linuxthreads/pthread.c: Likewise.
9654         * linuxthreads/wrapsyscall.c: Likewise.
9655         * nss/nsswitch.c: Likewise.
9656         * stdio-common/vfprintf.c: Likewise.
9657         * sysdeps/arm/init-first.c: Likewise.
9658         * sysdeps/i386/init-first.c: Likewise
9659         * sysdeps/generic/init-first.c: Likewise.
9660         * sysdeps/generic/libc-start.c: Likewise.
9661         * sysdeps/mips/init-first.c: Likewise.
9662         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9663         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9664         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9665         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9666         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9667
9668         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9669
9670 2000-03-29  Andreas Jaeger  <aj@suse.de>
9671
9672         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9673         Use D_PTR to access relocated entries in l_info.
9674         (elf_machine_rela): Likewise.
9675
9676         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9677         Likewise.
9678         (elf_machine_rela): Likewise.
9679
9680         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9681         Likewise.
9682         (__elf_machine_fixup_plt): Likewise.
9683         (__process_machine_rela): Likewise.
9684
9685         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9686         (elf_machine_rela): Likewise.
9687
9688         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9689         (elf_machine_rel): Likewise.
9690
9691         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9692         (elf_machine_fixup_plt): Likewise.
9693         (elf_machine_rela): Likewise.
9694
9695 2000-03-29  Andreas Jaeger  <aj@suse.de>
9696
9697         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9698         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9699         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9700         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9701         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9702         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9703         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9704         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9705         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9706         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9707         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9708         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9709         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9710         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9711         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9712
9713         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9714         macros, remove K&R prototypes.
9715
9716 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9717
9718         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9719         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9720         (PR libc/1677).
9721
9722 2000-03-30  Andreas Jaeger  <aj@suse.de>
9723
9724         * misc/sys/cdefs.h: Remove K&R support.
9725
9726 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9727
9728         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9729         more cases.
9730         * iconv/loop.c: Likewise.
9731
9732 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9733
9734         * iconv/loop.c (put16): Remove __const. Fix access index.
9735         (put32): Remove __const. Use uint32_t instead of uint16_t.
9736         * iconv/skeleton.c: Likewise.
9737
9738 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9739
9740         * mach/Versions (libc: GLIBC_2.0)
9741         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9742         __vm_allocate on this.
9743         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9744         mutex- and spinlock-related symbols on this.
9745         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9746         New version set.  Lock-related symbols go here instead in this case.
9747         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9748         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9749         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9750         * hurd/Versions
9751         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9752         Put them here instead.
9753         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9754         New version set.  Those cthreads symbols go here instead in this case.
9755         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9756
9757 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9758
9759         * elf/dl-init.c (_dl_init): We don't need to call constructors
9760         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9761
9762         Implement dynamic determination of constructor/destructor order in
9763         the dynamic linker.
9764         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9765         (GLIBC_2.2): Add _dl_init.
9766         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9767         r_duplist is not anymore allocated separately.  l_initfini is and
9768         therefore free it if necessary.
9769         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9770         malloc block.  Otherwise allocate l_initfini list only.
9771         Put dependencies for the object in l_initfini list.
9772         Sort dependencies for the object to be loaded topologically.
9773         * elf/dl-fini.c: Before running the destructors sort the topologically.
9774         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9775         call constructors instead of iterating over the pointers.  Get list of
9776         objects for which to run constructors from l_initfini element. Accept
9777         argc, argv, and env as parameters and pass them to the constructors.
9778         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9779         with size of dynamic section.
9780         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9781         _dl_init_next and calling constructors ourself.
9782         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9783         Take argc, argv, and env as parameters and pass them to the
9784         constructors.  Rewrite to call all constructors and not iterate over
9785         the pointers.
9786         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9787         precompute l_initcount and l_preinitcount.
9788         * elf/link.h (struct link_map): Add l_ldnum member.
9789         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9790         l_initcount, and l_preinitcount.  Add l_initfini.
9791         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9792         one for _dl_init.
9793         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9794         function interface.
9795         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9796         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9797         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9798         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9799         conventions now match.
9800
9801         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9802         effect for shared objects.  Don't emit message and call only for
9803         static library.
9804
9805 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9806
9807         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9808         CSA_Z243.4-1985-1..UCS2.
9809         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9810         ISO-8859-10..UCS2.
9811
9812 2000-03-29  Andreas Jaeger  <aj@suse.de>
9813
9814         * include/unistd.h: Remove duplicate entry for __rmdir.
9815         Remove declaration of __mkdir since __mkdir is declared in
9816         sys/stat.h.
9817
9818         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9819         by Michael Deutschmann <michael@talamasca.ocis.net>.
9820
9821         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9822         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9823         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9824         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9825         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9826
9827 2000-03-28  Andreas Jaeger  <aj@suse.de>
9828
9829         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9830         declaration, the prototype is defined via bits/mathcalls.h.
9831         (__sincosf): Likewise.
9832         (__sincosl): Likewise.
9833         (ldexp): Likewise.
9834         (ldexpf): Likewise.
9835         (ldexpl): Likewise.
9836         (__finite): Likewise.
9837         (__inline_mathcodeNP): New macro without prototype
9838         declarations.
9839         (__inline_mathcodeNP2): Likewise.
9840         (__inline_mathcodeNP3): Likewise.
9841         (__inline_mathcodeNP_): Likewise.
9842         (__inline_mathcodeNP2_): Likewise.
9843         (__inline_mathcodeNP3_): Likewise.
9844         (__inline_mathopNP): Likewise.
9845         (__inline_mathop_declNP): Likewise.
9846         (__inline_mathop_declNP_): Likewise.
9847         (__inline_mathcode_): Use __inline_mathcodeNP_.
9848         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9849         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9850         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9851         (__expm1l): Don't define prototype, the prototype is defined via
9852         bits/mathcalls.h.
9853         (exp): Likewise.
9854         (__expl): Likewise.
9855         (tan): Likewise.
9856         (atan2): Likewise.
9857         (__atan2l): Likewise.
9858         (fmod): Likewise.
9859         (pow): Likewise.
9860         (fabsf): Likewise.
9861         (fabsl): Likewise.
9862         (__fabsl): Likewise.
9863         (asin): Likewise.
9864         (acos): Likewise.
9865         (sinh): Likewise.
9866         (cosh): Likewise.
9867         (tanh): Likewise.
9868         (floor): Likewise.
9869         (ceil): Likewise.
9870         (expm1): Likewise.
9871         (log1p): Likewise.
9872         (asinh): Likewise.
9873         (acosh): Likewise.
9874         (atanh): Likewise.
9875         (hypot): Likewise.
9876         (logb): Likewise.
9877         (fma): Likewise.
9878         (drem): Likewise.
9879         (sqrt): Likewise.
9880         (__sqrtl): Likewise.
9881         (sin): Likewise.
9882         (cos): Likewise.
9883         (atan): Likewise.
9884         (log): Likewise.
9885         (log10): Likewise.
9886         (asinh): Likewise.
9887         (log2): Likewise.
9888         (rint): Likewise.
9889
9890 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9891
9892         * Makerules: If make variable md5 is defined to yes after
9893         generating dependencies generate MD5 sum for the object.
9894
9895         * iconv/gconv_builtin.h: Fix length in transformation definition
9896         for UNICODEBIG.
9897
9898         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9899
9900         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9901         allow as well reading from/writing to unaligned addresses on machines
9902         which don't support this in hardware.  Use FCTNAME macro to define
9903         function name.  Include the file a second time for platforms which
9904         need special unaligned handling.
9905         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9906         to access potentially unaligned addresses.  These macros are intended
9907         to be used only outside the loops.
9908         (unaligned): New definition.  In case the machine can handle unaligned
9909         access define as zero.  Otherwise as a variable which is initialized
9910         as nonzero in case the buffer passed in at runtime is unaligned with
9911         respect to the character set encoding involved.
9912         Call aligned or unaligned looop functions according to unaligned
9913         variable.
9914         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9915         of direct casting pointer to potentially handle unaligned memory
9916         accesses.
9917         * iconvdata/8bit-generic.c: Likewise.
9918         * iconvdata/ansi_x3.110.c: Likewise.
9919         * iconvdata/big5.c: Likewise.
9920         * iconvdata/euc-cn.c: Likewise.
9921         * iconvdata/euc-jp.c: Likewise.
9922         * iconvdata/euc-kr.c: Likewise.
9923         * iconvdata/euc-tw.c: Likewise.
9924         * iconvdata/gbk.c: Likewise.
9925         * iconvdata/iso-2022-cn.c: Likewise.
9926         * iconvdata/iso-2022-jp.c: Likewise.
9927         * iconvdata/iso-2022-kr.c: Likewise.
9928         * iconvdata/iso646.c: Likewise.
9929         * iconvdata/iso_6937-2.c: Likewise.
9930         * iconvdata/iso_6937.c: Likewise.
9931         * iconvdata/johab.c: Likewise.
9932         * iconvdata/sjis.c: Likewise.
9933         * iconvdata/t.61.c: Likewise.
9934         * iconvdata/uhc.c: Likewise.
9935         * iconvdata/unicode.c: Likewise.
9936         * iconvdata/utf-16.c: Likewise.
9937
9938         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9939         prototypes.
9940
9941         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9942         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9943         public.
9944         * malloc/mcheck.h (mcheck_check_all): Declare.
9945
9946         * stdio-common/Makefile (tests): Add tst-obprintf.
9947
9948 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9949
9950         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9951         Declare pthread_sigmask.
9952
9953         * csu/version.c: Add 2000 to copyright years.
9954         Remove Emacs local variables section.
9955
9956 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9957
9958         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
9959         __gconv_transform_internal_ucs2little): Remove declarations.
9960         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
9961         __gconv_transform_internal_ucs2): Never need to bswap_16.
9962         (__gconv_transform_ucs2reverse_internal,
9963         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
9964
9965 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9966
9967         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
9968         obsoleting version not being defined at all, in which case the
9969         result is always true.
9970
9971         * Makeconfig (preprocess-versions): New canned sequence for running
9972         cpp on shlib-versions and the like.
9973         (soversions.i): Use it.
9974         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
9975         Versions.def and Versions files.
9976
9977 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9978
9979         * stdio-common/tst-obprintf.c (main): Add another check to see
9980         obstack_printf handling all possible beginnings of the block
9981         inside an obstack chunk.
9982
9983         * locale/programs/localedef.c: Use __malloc_initialize_hook to
9984         install mcheck handler.
9985
9986         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
9987         handling problem.
9988
9989 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9990
9991         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
9992
9993         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
9994         on [HAVE_ELF && DO_VERSIONING].
9995
9996 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9997
9998         * stdio-common/tst-obprintf.c: New file.
9999
10000 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10001
10002         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
10003         _IO_OVERFLOW directly instead through __overflow.
10004
10005         * locale/programs/localedef.c (construct_output_path): If path
10006         contains a / compute the end of the directory name correctly.
10007
10008         * include/features.h: Undef and document __USE_XOPEN2K.
10009
10010         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
10011         whenever a function is called.  Initiated by calling mcheck_pedantic
10012         instead of mcheck.
10013         * malloc/mcheck.h: Declare mcheck_pedantic.
10014         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
10015         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
10016         for now.
10017
10018 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10019
10020         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
10021         * dlfcn/dlopenold.c: Likewise.
10022         * nss/getXXbyYY_r.c: Likewise.
10023         * nss/getXXent_r.c: Likewise.
10024         * hurd/hurdinit.c: Likewise.
10025         * hurd/compat-20.c: Likewise.
10026         * libio/oldiofopen.c: Likewise.
10027         * libio/oldiofclose.c: Likewise.
10028         * libio/oldiofdopen.c: Likewise.
10029         * libio/oldfileops.c: Likewise.
10030         * libio/oldstdfiles.c: Likewise.
10031         * libio/oldiofsetpos.c: Likewise.
10032         * libio/oldiofgetpos.c: Likewise.
10033         * libio/oldiofgetpos64.c: Likewise.
10034         * libio/oldiofsetpos64.c: Likewise.
10035         * libio/oldiopopen.c: Likewise.
10036         * libio/oldpclose.c: Likewise.
10037         * libio/oldtmpfile.c: Likewise.
10038         * libio/freopen.c (freopen): Likewise.
10039         * libio/iofclose.c (_IO_new_fclose): Likewise.
10040
10041         * sysdeps/mach/sys/reboot.h: Include <features.h>.
10042         (reboot): Declare it.
10043
10044         * libio/Makefile (headers): Add bits/stdio-lock.h here.
10045
10046         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
10047
10048         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
10049
10050         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
10051         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
10052         We need this for the sbrk decl, which can be included without Unix98.
10053
10054 2000-03-20  Richard Henderson  <rth@cygnus.com>
10055
10056         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
10057         argument to yperr2nss is an int, not size_t.
10058         * posix/regex.c (print_partial_compiled_pattern): Cast all
10059         ptrdiff_t to long for printing.
10060         (print_compiled_pattern): Use Z for printing size_t.
10061         * posix/testfnm.c (tests): Avoid trigraphs.
10062         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10063         Use a C comment, not an assembly comment.
10064
10065         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
10066         of __ASSUME_32BITUIDS.
10067
10068 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10069
10070         * libio/iofopncook.c: Remove K&R prototypes.
10071
10072 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
10073
10074         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
10075         an initial value of 1024 instead of RLIM_INFINITY.
10076
10077         * Versions.def (libmachuser, libhurduser): Remove these sections,
10078         since these libraries do not presently use symbol versions.
10079
10080         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10081         is RLIM_INFINITY, return -1 instead.
10082
10083 2000-03-24  Andreas Jaeger  <aj@suse.de>
10084
10085         * Makefile (postclean): Added soversions.i.
10086
10087 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10088
10089         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10090         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10091         and _FPU_IEEE.  Change _FPU_RESERVED.
10092
10093 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10094
10095         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10096
10097 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10098
10099         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10100         (gaih_inet): Remove unused duplicate variable.
10101
10102         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10103         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10104         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10105         only flavors supported by this function anyway.
10106
10107 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10108
10109         * stdlib/strfmon.c: Corrected problems with missing signs and
10110         missing or extra spaces; allow for sign strings longer than
10111         one character; add padding to ensure positive and negative
10112         formats are aligned when a left precision is used.
10113
10114 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10115
10116         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10117         Patch by John Mizel <John.Mizel@msdw.com>.
10118
10119 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10120
10121         * manual/install.texi: Remove references to crypt add-on.
10122
10123 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10124
10125         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10126         section while taking the _hurd_rlimit_lock.
10127         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10128
10129 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10130
10131         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10132         using $(LN_S).
10133
10134         * sysdeps/mach/hurd/if_index.c: New file.
10135
10136         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10137         * sysdeps/gnu/net/if.h: here.
10138         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10139         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10140         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10141         functions and `struct if_nameindex' type.
10142         * socket/Makefile (headers): Add net/if.h here.
10143         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10144         * sysdeps/mach/hurd/Dist: Remove it here.
10145         * sysdeps/unix/sysv/linux/Dist: And here.
10146         * sysdeps/generic/if_index.c: Include <net/if.h>.
10147
10148 2000-03-24  Andreas Jaeger  <aj@suse.de>
10149
10150         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10151         access relocated entries in l_info.
10152         (elf_machine_got_rel): Likewise.
10153         (elf_machine_runtime_setup): Likewise.
10154         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10155         (elf_machine_runtime_setup): Likewise.
10156         (__dl_runtime_resolve): Likewise.
10157
10158 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10159
10160         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10161         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10162         according to RFC 2553.
10163         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10164         * inet/getnameinfo.c: Likewise.
10165         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10166
10167 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10168
10169         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10170         Remove no-op pointer increment.
10171
10172 2000-03-23  Andreas Jaeger  <aj@suse.de>
10173
10174         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10175         follow change for libio.h from 2000-03-10.
10176
10177 2000-03-23  Andreas Jaeger  <aj@suse.de>
10178
10179         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10180         change.
10181         * elf/dl-debug.c: Likewise.
10182         * elf/dl-deps.c: Likewise.
10183         * elf/dl-error.c: Likewise.
10184         * elf/dl-fini.c: Likewise.
10185         * elf/dl-init.c: Likewise.
10186         * elf/dl-load.c: Likewise.
10187         * elf/dl-lookup.c: Likewise.
10188         * elf/dl-minimal.c: Likewise.
10189         * elf/dl-object.c: Likewise.
10190         * elf/dl-open.c: Likewise.
10191         * elf/dl-preinit.c: Likewise.
10192         * elf/dl-profile.c: Likewise.
10193         * elf/dl-profstub.c: Likewise.
10194         * elf/dl-reloc.c: Likewise.
10195         * elf/dl-runtime.c: Likewise.
10196         * elf/dl-support.c: Likewise.
10197         * elf/dl-symbol.c: Likewise.
10198         * elf/dl-version.c: Likewise.
10199         * elf/rtld.c: Likewise.
10200         * elf/sprof.c: Likewise.
10201         * sysdeps/generic/dl-cache.c: Likewise.
10202         * sysdeps/generic/dl-origin.c: Likewise.
10203         * sysdeps/generic/dl-sysdep.c: Likewise.
10204         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10205         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10206         * sysdeps/generic/libc-start.c: Likewise.
10207         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10208         * sysdeps/powerpc/dl-machine.c: Likewise.
10209         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10210         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10211         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10212         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10213
10214         * elf/ldsodefs.h: Move file to ...
10215         * sysdeps/generic/ldsodefs.h: ... here.
10216
10217         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10218
10219         * sysdeps/mips/elf/ldsodefs.h: New file.
10220
10221         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10222         entries in l_info.
10223         (_dl_check_map_versions): Likewise.
10224         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10225         * elf/dl-load.c (_dl_init_paths): Likewise.
10226         (_dl_map_object): Likewise.
10227         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10228         (elf_get_dynamic_info): Likewise.
10229         * elf/do-lookup.h (FCT): Likewise.
10230         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10231         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10232         * elf/dl-addr.c (_dl_addr): Likewise.
10233         * elf/dl-runtime.c (profile_fixup): Likewise.
10234         (fixup): Likewise.
10235         * elf/dl-init.c (_dl_init_next): Likewise.
10236         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10237         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10238         (DISTINGUISH_LIB_VERSIONS): Likewise.
10239         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10240         (elf_machine_rel): Likewise.
10241
10242         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10243         for writable dynamic section.
10244
10245 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10246
10247         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10248         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10249
10250 2000-03-22  Andreas Jaeger  <aj@suse.de>
10251
10252         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10253         from latest Linux kernel.
10254
10255 2000-03-21  Andreas Jaeger  <aj@suse.de>
10256
10257         * Versions.def: Add version 2.1.4.
10258
10259 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10260
10261         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10262         * libio/oldiofopen.c: Likewise.
10263         * libio/oldiofclose.c: Likewise.
10264         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10265
10266 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10267
10268         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10269         indicating the first version set to obsolete the conditionalized code.
10270         (compat_symbol): New macro.
10271         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10272         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10273         integer values to the ABI_* macros for supported versions.
10274         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10275         compat_symbol macro.
10276
10277 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10278
10279         * nscd/connections.c (nscd_run): Pretty print.
10280         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10281
10282         * manual/charset.texi: Fix typos.  Rephrase.
10283         * manual/process.texi: Likewise.
10284         * manual/signal.texi: Likewise.
10285         Patches by Mike Coleman <mkc@kc.net>.
10286
10287         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10288         versions.
10289         * libio/iofdopen.c: Likewise.
10290         * libio/iofgetpos.c: Likewise.
10291         * libio/iofgetpos64.c: Likewise.
10292         * libio/iofopen.c: Likewise.
10293         * libio/iofsetpos.c: Likewise.
10294         * libio/iofsetpos64.c: Likewise.
10295         * libio/iopopen.c: Likewise.
10296         * libio/oldiofopen.c: Likewise.
10297         * libio/pclose.c: Likewise.
10298         * sysdeps/gnu/siglist.c: Likewise.
10299         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10300
10301         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10302         chance to expand VERSION_##lib##_##version.
10303
10304         * libio/fileops.c: Use new macros from shlib-compat.h to define
10305         versions.
10306         * libio/iofclose.c: Likewise.
10307         * libio/oldiofclose.c: Likewise.
10308         Patch by Roland McGrath <roland@frob.com>.
10309
10310 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10311
10312         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10313         Lay out struct sigcontext according to what really gets passed on
10314         the stack.
10315         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10316         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10317         (prgregset_t, prfpregset_t): Define to elf_* types.
10318         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10319         Define to correct value.
10320         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10321         sigcontext.
10322         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10323
10324 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10325
10326         * scripts/firstversions.awk: Allow multiple version sets in the
10327         "earliest version" specification, meaning that version sets in the
10328         gaps between listed versions should be folded into the earliest later
10329         version that is explicitly listed.
10330         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10331         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10332
10333 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10334
10335         * iconv/gconv_builtin.c: Include <endian.h>.
10336         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10337         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10338         according to current platform.
10339         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10340         __gconv_transform_internal_ucs2reverse, and
10341         __gconv_transform_internal_ucs4le.
10342         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10343         __gconv_transform_ucs2reverse_internal and
10344         __gconv_transform_internal_ucs2reverse.
10345         * iconvdata/Makefile (modules): Add UNICODE.
10346         (distribute): Add unicode.c.
10347         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10348         * iconvdata/unicode.c: New file.
10349
10350         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10351         determine byte order of input and convert accordingly.
10352
10353         * iconvdata/utf-16.c (gconv_init): Fix typo.
10354
10355 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10356
10357         * iconvdata/gconv-modules: Fix typo.
10358
10359         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10360         more messages.
10361
10362         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10363
10364 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10365
10366         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10367
10368 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10369
10370         * misc/Makefile (routines): Add mincore.
10371
10372 2000-03-20  Andreas Jaeger  <aj@suse.de>
10373
10374         * sysdeps/generic/mincore.c: New stub file.
10375
10376         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10377         from latest Linux kernel.
10378
10379 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10380
10381         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10382         _SC_GETPW_R_SIZE_MAX.
10383
10384 2000-03-20  Richard Henderson  <rth@cygnus.com>
10385
10386         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10387         in GLIBC_2.1.4.
10388
10389 2000-03-20  Richard Henderson  <rth@cygnus.com>
10390
10391         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10392         of arithmetic instructions.
10393
10394         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10395         with the fpcr.  Protect from INV exception.
10396         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10397         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10398         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10399
10400         * sysdeps/alpha/fpu/s_copysign.c: New.
10401         * sysdeps/alpha/fpu/s_copysignf.c: New.
10402         * sysdeps/alpha/fpu/s_fabs.c: New.
10403         * sysdeps/alpha/fpu/s_fabsf.c: New.
10404         * sysdeps/alpha/fpu/s_rint.c: New.
10405         * sysdeps/alpha/fpu/s_rintf.c: New.
10406
10407         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10408
10409         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10410         Kill sethae.
10411         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10412         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10413         Use physical addresses not KSEG addresses.
10414         (io_system): Add PYXIS.
10415         (io): Remove hae.reg, sys, hae_shift.
10416         (stb_mb, stw_mb, stl_mb, __sethae): New.
10417         (inline_outb, inline_outw, inline_outl): Don't set hae.
10418         (inline_inb, inline_inw, inline_inl): Likewise.
10419         (dense_sethae): New null function.
10420         (struct cpuinfo_data): New.
10421         (process_cpuinfo): Use local and stack variables, not static.
10422         Move readlink check here from init_iosys.
10423         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10424         (_iopl): Simplify.
10425         (_hae_shift): Calculate it here.
10426         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10427         add pciconfig_iobase.
10428
10429 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10430
10431         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10432         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10433
10434         * scripts/versions.awk: Fixed version renaming code to distinguish
10435         libraries properly.
10436
10437 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10438
10439         * include/stdlib.h: Add prototype for __cxa_atexit.
10440
10441         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10442         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10443
10444 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10445
10446         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10447         existing rtld-installed-name.
10448         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10449         replace existing rtld-installed-name using $(symbolic-link-prog).
10450
10451 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10452
10453         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10454         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10455         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10456         but not the former.
10457
10458 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10459
10460         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10461         glob64.  Since there is no glob64 in the LFS proposal applications
10462         can assume that glob handles LFS situations.  glob64 is only needed
10463         if alternative filesystem functions are used.
10464
10465 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10466
10467         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10468         when GLOB_DOOFFS is set; correct handling of patterns
10469         containing escaped wildcards (and no unescaped ones);
10470         GLOB_ERR flag was being ignored in some situations.
10471
10472         * posix/globtest.c, posix/globtest.sh: Updated to include
10473         tests for the problems fixed by the above changes to glob.c.
10474
10475         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10476
10477 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10478
10479         * Makeconfig (soversion.i): Use only first match for each lib.
10480
10481         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10482
10483         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10484         rather than $(sysd-dirs-done) to protect these rules.
10485
10486         * Makerules (version-renames.def): Target removed.
10487         (Versions.all): Depend on soversions.i directly and parse it.
10488
10489         * Makeconfig (soversions.i): New target, input-reading parts of
10490         soversions.mk generation moved here; result is a canonicalized
10491         list "LIB VERSION [SET]" for this configuration.
10492         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10493         * Makerules (version-renames.def): New target, generated from
10494         soversions.i with contents that was in $(map-firstversions).
10495         (Versions.all): Don't depend on soversions.mk, depend on
10496         version-renames.def instead; just cat it into the input.
10497
10498         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10499         for $(map-firstversions), which better handles it being empty.
10500
10501         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10502         supported version for libc 0.2.90.libio to GLIBC_2.2.
10503
10504         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10505         and use it to emit new variable `map-firstversions'.
10506         * scripts/firstversions.awk: New file.
10507         * Makerules (Versions.all): Use scripts/firstversions.awk and
10508         the $(map-firstversions) value to generate a modified versions list
10509         that includes renames in "A = B" syntax for each version set earlier
10510         than the "earliest symbol version" named in shlib-versions.
10511         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10512         rename version set A to B in the output to the intermediate file.
10513         * scripts/abi-versions.awk: New file.
10514         * Makerules (abi-versions.h): New target, generated by that script.
10515         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10516         * include/shlib-compat.h: New file, uses that generated header.
10517
10518 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10519
10520         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10521         after stripping # comments, and then run it through cpp.
10522         This allows things like "%ifdef FOO" based on config.h settings.
10523         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10524
10525         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10526         and other errors that indicate a pseudo-receive happened, grok through
10527         the message buffer for port rights that need references fixed up.
10528
10529 2000-03-16  Andreas Jaeger  <aj@suse.de>
10530
10531         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10532
10533         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10534
10535         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10536         from latest Linux kernel.
10537         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10538
10539         * misc/sys/mman.h: Add prototype for mincore.
10540
10541 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10542
10543         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10544         entry for GLIBC_2.0 version of setrlimit.
10545         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10546
10547 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10548
10549         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10550         * nis/nss_compat/compat-initgroups.c: Likewise.
10551         * nis/nss_nis/nis-initgroups.c: Likewise.
10552         * nis/nss_nis/nis-netgrp.c: Likewise.
10553         * nis/nss_nis/nis-proto.c: Likewise.
10554         * nis/nss_nis/nis-rpc.c: Likewise.
10555         * nis/nss_nis/nis-service.c: Likewise.
10556         * nis/ypclnt.c: Likewise.
10557
10558 2000-03-16  Andreas Jaeger  <aj@suse.de>
10559
10560         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10561         doesn't exist, correct checks.  Fixes PR libc/1649.
10562
10563 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10564
10565         * nscd/hstcache.c: Restore correct UID.
10566         * nscd/pwdcache.c: Likewise.
10567         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10568
10569 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10570
10571         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10572         macros for register names, in line with 2000-03-14 linux change.
10573
10574         * sysdeps/mach/sched_yield.c: New file.
10575
10576 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10577
10578         * sysdeps/generic/lockfile.c: Include <stdio.h>
10579         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10580         case <libio.h> defined them.
10581         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10582         from __internal_*.
10583         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10584         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10585
10586         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10587         for more pleasing parse error.
10588
10589 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10590
10591         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10592         memory for eras.
10593         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10594
10595         * elf/Makefile: Add rules to compile and run constload1 test.
10596         * elf/constload1.c: New file.
10597         * elf/constload2.c: New file.
10598         * elf/constload3.c: New file.
10599
10600 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10601
10602         * sysdeps/posix/open64.c: Make __open64 weak alias.
10603         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10604         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10605         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10606         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10607         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10608         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10609         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10610         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10611         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10612         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10613
10614 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10615
10616         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10617         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10618
10619 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10620
10621         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10622         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10623
10624 2000-03-08  Andreas Jaeger  <aj@suse.de>
10625
10626         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10627
10628 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10629
10630         * timezone/africa: Update from tzdata2000d.
10631         * timezone/asia: Likewise.
10632         * timezone/australasia: Likewise.
10633         * timezone/europe: Likewise.
10634         * timezone/northamerica: Likewise.
10635         * timezone/southamerica: Likewise.
10636
10637         * po/fr.po: Update from translation team.
10638         * po/de.po: Likewise.
10639
10640         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10641         last parameter.  Move code to add map to global scope from here...
10642         * elf/dl-open.c (dl_open_worker): ...here.
10643         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10644         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10645
10646         * locale/programs/ld-collate.c (collate_read): Fix warning.
10647
10648         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10649         values and macros for register names.
10650
10651         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10652         returned by seek cookie function is -1.
10653
10654 2000-03-14  Andreas Jaeger  <aj@suse.de>
10655
10656         * locale/localeconv.c (localeconv): Fix typo.
10657         Reported by Andre Charbonneau <andrec@corel.com>.
10658
10659 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10660
10661         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10662         since modules depend on it counting the number of times the conversion
10663         function got called.
10664
10665         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10666
10667         * iconv/gconv.h: Pretty print.
10668
10669 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10670
10671         * posix/wordexp-test.c: Correct one of the tests added in the last
10672         change.  Really get the root passwd entry to check again ~root.
10673
10674 2000-03-10  Andreas Jaeger  <aj@suse.de>
10675
10676         * manual/filesys.texi (Working Directory): Fix last patch.
10677         Patch by Martin Buchholz  <martin@xemacs.org>.
10678
10679 2000-03-10  Andreas Jaeger  <aj@suse.de>
10680
10681         * manual/creature.texi (Feature Test Macros): Fix language.
10682
10683 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10684
10685         * mach/devstream.c (devstream_write, devstream_read): New functions.
10686         (input, output): Functions removed.
10687         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10688         using only the vanilla fopencookie interface.
10689
10690         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10691         as macro for __io_functions.
10692         (funcsio): Use cookie_io_functions_t type name.
10693         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10694
10695         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10696         fopencookie.
10697         (fopencookie): Use it.
10698         * libio/libio.h: Declare _IO_cookie_init.
10699         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10700         _IO_cookie_init.
10701
10702         * libio/libio.h (__io_seek_fn): Fix second argument type
10703         to be a pointer, in line with the manual and the old stdio.
10704         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10705
10706         * sysdeps/generic/bits/stdio-lock.h: New file.
10707         This is a stub with #error, but that's better than no file at all.
10708
10709 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10710
10711         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10712         * manual/message.texi (Using gettextized software): Doc Fixes.
10713         * manual/message.texi (Message Translation): Doc Fixes.
10714         * manual/filesys.texi (File Size): Doc Fixes.
10715         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10716         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10717         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10718         * manual/install.texi: Doc Fixes.
10719         * manual/search.texi (Hash Search Function): Doc Fixes.
10720         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10721         * FAQ.in: Doc Fixes.
10722         * config.h.in: Doc Fixes.
10723         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10724         Doc Fixes.  `allows to' is not correct English.
10725
10726         * elf/rtld.c: Doc fixes.
10727         * manual/creature.texi (Feature Test Macros): Doc fixes.
10728         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10729
10730         * manual/filesys.texi (Working Directory): Check for ERANGE to
10731         avoid infloop.
10732
10733 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10734
10735         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10736         conditions so as not to clobber the final '\0' when there is only one
10737         element in the vector.
10738
10739 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10740
10741         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10742         broken by 2000-02-27 change.
10743
10744         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10745
10746 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10747
10748         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10749         argument type, for 2000-02-22 change in signal/signal.h declaration.
10750
10751 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10752
10753         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10754         to getdirentries64 (no __), since the Linux implementation
10755         has no __ name, and there is no declaration for the __ name.
10756
10757         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10758
10759         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10760         sed regexp so as not to break directory names including /../ within.
10761
10762         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10763         The sysdeps/generic file is right for BSD.  This file was in fact the
10764         Hurd file, but the only difference was the WNOREAP flag that was never
10765         actually implemented or used anywhere.
10766
10767         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10768         since AC_PATH_PROG already does it for us.
10769         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10770         correctness and sh portability.  I replaced the broken check
10771         with a more sensible implementation of the apparently intended
10772         semantics, which might still be questionable.  Using expr causes
10773         a non-numeric value for `perl -V:apiversion` to be accepted,
10774         refusing to use only a perl that reports a number less than 5;
10775         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10776         * configure: Regenerated.
10777
10778 2000-03-08  Andreas Jaeger  <aj@suse.de>
10779
10780         * manual/crypt.texi: Fix paths.
10781
10782 2000-03-07  Andreas Jaeger  <aj@suse.de>
10783
10784         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10785         were swapped.
10786         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10787         libc/1636.
10788
10789 2000-03-06  Andreas Jaeger  <aj@suse.de>
10790
10791         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10792         in __sgn1l, otherwise g++ fails to parse this.
10793         Reported by Sean Chen <sean.chen@turbolinux.com>.
10794
10795 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10796
10797         * configure.in: Compute sizeof-long-double.
10798         * configure: Regenerated.
10799         * config.make.in: Make sizeof-long-double available to sub-makes.
10800
10801 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10802
10803         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10804         call.
10805
10806 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10807
10808         * Makeconfig (rpath-dirs): Add crypt.
10809         (all-subdirs): Remove md5crypt.
10810         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10811         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10812         * sysdeps/generic/crypt-entry.c: Delete.
10813         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10814         * sysdeps/generic/crypt.h: Delete.
10815         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10816         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10817         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10818         * sysdeps/generic/des_impl.c: Delete.
10819         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10820         * crypt/sysdeps: Delete.
10821         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10822         * md5-crypt/Versions: Move to crypt/.
10823         * md5-crypt/md5-crypt.c: Move to crypt/.
10824         * md5-crypt/md5.c: Move to crypt/.
10825         * md5-crypt/md5c-test.c: Move to crypt/.
10826         * md5-crypt/md5test.c: Move to crypt/.
10827         * md5-crypt: Delete.
10828         * crypt/Makefile: Adjust for new structure.
10829
10830 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10831
10832         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10833         define to 1 if not defined.
10834
10835 2000-03-03  Andreas Jaeger  <aj@suse.de>
10836
10837         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10838
10839 2000-03-03  Andreas Jaeger  <aj@suse.de>
10840
10841         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10842         cases.
10843         (xdr_int64_t): Correctly handle lower half.
10844         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10845
10846 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10847
10848         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10849         call.
10850
10851 2000-03-02  Andreas Jaeger  <aj@suse.de>
10852
10853         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10854         2.3.43.
10855
10856 2000-03-02  Andreas Jaeger  <aj@suse.de>
10857
10858         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10859
10860 2000-03-01  Andreas Jaeger  <aj@suse.de>
10861
10862         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10863         (tests): Added tst-getdate.
10864
10865         * time/tst-getdate.c: New file.
10866
10867         * time/datemsk: New file, needed for tst-getdate.
10868
10869 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10870
10871         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10872
10873 2000-02-17  H.J. Lu  <hjl@gnu.org>
10874
10875         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10876
10877         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10878         available.
10879         (svcudp_recv): Set up message with the new "xp_pad" field for
10880         IP_PKTINFO.
10881         (svcudp_reply): Support IP_PKTINFO if available.
10882
10883 2000-03-01  Andreas Jaeger  <aj@suse.de>
10884
10885         * time/getdate.c (check_mday): Fix check for february.
10886         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10887         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10888
10889 2000-03-02  Andreas Jaeger  <aj@suse.de>
10890
10891         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10892         g++ fails to parse this.
10893         Reported by Sean Chen <sean.chen@turbolinux.com>.
10894
10895 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10896
10897         * io/creat.c: Moved to...
10898         * sysdeps/generic/creat.c: ...here.
10899         * io/creat64.c: Moved to...
10900         * sysdeps/generic/creat64.c: ...here.
10901         * io/lockf.c: Moved to...
10902         * sysdeps/generic/lockf.c: ...here.
10903
10904         * crypt/crypt.texi: Moved to...
10905         * manual/crypt.texi: ...here.
10906         * crypt/examples/genpass.c: Moved to...
10907         * manual/examples/genpass.c: ...here.
10908         * crypt/examples/mygenpass.c: Moved to...
10909         * manual/examples/mygenpass.c: ...here.
10910         * crypt/examples/testpass.c: Moved to...
10911         * manual/examples/testpass.c: ...here.
10912
10913         * manual/Makefile (chapters): Add crypt.
10914         * manual/conf.texi: Add usual header for not-last chapter.
10915         * manual/crypt.texi: Add special header for last chapter.
10916
10917 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10918
10919         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10920         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10921         complain if there is no crypt add-on.
10922         * crypt/configure: Removed.
10923
10924         * crypt/crypt.texi: Update documentation of US export restrictions
10925         to match the 14 Jan 2000 regulations.
10926
10927 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10928
10929         * crypt: New subdirectory, merged in from the crypt add-on.
10930
10931 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10932
10933         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10934
10935
10936 See ChangeLog.10 for earlier changes.