Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-07  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
4
5         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to
6         dl_lookup.
7         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
8
9         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
10
11         * stdlib/tst-bsearch.c (main): Add more test cases.
12
13         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
14         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
15         Reported by GOTO Masanori <gotom@debian.or.jp>.
16
17 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
18
19         * posix/Makefile (tests): Add tst-dir.
20         (tst-dir-ARGS): New variable.
21         * posix/tst-dir.c: New file.
22
23 2000-09-07  Andreas Jaeger  <aj@suse.de>
24
25         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
26         (SYS_fcntl64): New.
27
28         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
29
30 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
31
32         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
33         use the hack with tryopen_o_directory to determine at runtime
34         whether it works.
35         * sysdeps/unix/sysv/linux/opendir.c: New file.
36         * sysdeps/unix/sysv/linux/kernel-features.h: Define
37         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
38
39         * catgets/Depend: New file.  Add intl.
40         * catgets/Makefile (tests): Add tst-catgets.
41         (generated): Remove de.msg.
42         (generated-dirs): Add de.
43         Add dependency if tst-catgets output on de/libc.cat.
44         * catgets/tst-catgets.c: New file.
45
46         * po/ja.po: New file.
47         * po/el.po: Update from translation team.
48
49         * wcsmbs/Depend: New file.
50         * wcsmbs/Makefile (tests): Add tst-btowc.
51         (tst-btowc-ENV): Define.
52         * wcsmbs/tst-btowc.c: New file.
53
54         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
55         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
56
57         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
58
59         * stdlib/Makefile (tests): Add tst-bsearch.
60         * stdlib/tst-bsearch.c: New file.
61
62         * posix/getopt.c (_getopt_internal): Don't recognize an option
63         name as ambiguous if it's a prefix for more than one name but the
64         other struct option values are identical.
65
66         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
67         Don't depend on visual inspection of the output file to recognize
68         errors.
69         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
70
71 2000-09-06  Andreas Jaeger  <aj@suse.de>
72
73         * sysdeps/alpha/soft-fp/Dist: New file.
74         * sysdeps/i386/soft-fp/Dist: New file.
75         * sysdeps/mips/mips64/soft-fp/Dist: New file.
76         * sysdeps/mips/soft-fp/Dist: New file.
77         * sysdeps/powerpc/soft-fp/Dist: New file.
78         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
79         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
80
81         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
82         Use sysdep_routines instead of routines to fix make dist failure.
83         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
84         out code).
85         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
86
87         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
88         sysdep_headers instead of headers for make dist.
89
90         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
91         Likewise.
92
93 2000-09-06  Andreas Schwab  <schwab@suse.de>
94
95         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
96
97 2000-09-06  Andreas Jaeger  <aj@suse.de>
98
99         * soft-fp/Makefile (distribute): Remove ChangeLog.
100
101         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
102         sysdep_routines instead of routines for make dist.
103
104 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
105
106         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
107         compatibility check for old stream and call _IO_wide in doubt.
108         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
109         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
110         needed tst for such an old structure and don't do anything.
111         * libio/freopen.c: Remove declaration of _IO_stdin_used.
112
113 2000-09-06  Andreas Jaeger  <aj@suse.de>
114
115         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
116         sysdep-dl-routines and sysdep_routines instead of rtld-routines
117         and dl-routines.
118
119         * soft-fp/ChangeLog: Merged with this file.
120
121 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
122
123         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
124
125         * soft-fp/Makefile (distribute): Add the math functions, too.
126
127         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
128
129 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
130
131         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
132         as a statement.
133
134         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
135         * soft-fp/sysdeps/powerpc/q_*: New files.
136
137 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
138
139         * stdio-common/vfprintf.c (process_string_arg): Handle precision
140         in wide char case correctly.  Don't allocate too long temporary
141         strings with alloca.
142
143         * stdio-common/Makefile (tests): Add tst-swprintf.
144         (tst-swprintf-ENV): New variable.
145         * stdio-common/tst-swprintf.c: New file.
146
147 2000-09-05  Andreas Jaeger  <aj@suse.de>
148
149         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
150         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
151         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
152
153 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
154
155         * configure.in: Strip out "unknown" from configuration names.
156
157 2000-09-05  Andreas Jaeger  <aj@suse.de>
158
159         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
160
161         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
162         * sysdeps/sparc/sparc32/Implies: Likewise.
163         * sysdeps/powerpc/Implies: Likewise.
164
165         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
166         * libio/oldiofgetpos64.c: Likewise.
167
168         * soft-fp/Makefile (distribute): Remove configure.
169
170         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
171
172         * soft-fp/configure: Remove.
173
174         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
175         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
176
177         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
178         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
179
180         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
181         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
182
183         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
184         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
185
186         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
187         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
188
189         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
190         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
191
192         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
193         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
194
195         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
196         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
197
198         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
199         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
200
201         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
202         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
203
204         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
205         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
206
207         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
208         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
209
210         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
211         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
212
213         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
214         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
215
216         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
217         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
218
219         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
220         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
221
222         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
223         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
224
225         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
226         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
227
228         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
229         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
230
231         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
232         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
233
234         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
235         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
236
237         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
238         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
239
240         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
241         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
242
243         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
244         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
245
246         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
247         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
248
249         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
250         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
251
252         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
253         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
254
255         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
256         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
257
258         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
259         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
260
261         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
262         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
263
264         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
265         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
266
267         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
268         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
269
270         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
271         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
272
273         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
274         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
275
276         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
277         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
278
279         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
280         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
281
282         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
283         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
284
285         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
286         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
287
288         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
289         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
290
291         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
292         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
293
294         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
295         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
296
297         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
298         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
299
300         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
301         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
302
303         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
304         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
305
306         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
307         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
308
309         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
310         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
311
312         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
313         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
314
315         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
316         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
317
318         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
319         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
320
321         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
322         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
323
324         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
325         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
326
327         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
328         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
329
330         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
331         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
332
333         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
334         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
335
336         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
337         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
338
339         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
340         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
341
342         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
343         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
344
345         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
346         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
347
348         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
349         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
350
351         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
352         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
353
354         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
355         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
356
357         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
358         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
359
360         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
361         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
362
363         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
364         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
365
366         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
367         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
368
369         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
370         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
371
372         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
373         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
374
375         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
376         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
377
378         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
379         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
380
381         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
382         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
383
384         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
385         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
386
387         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
388         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
389
390         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
391         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
392
393         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
394         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
395
396         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
397         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
398
399         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
400         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
401
402         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
403         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
404
405         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
406         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
407
408         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
409         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
410
411         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
412         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
413
414         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
415         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
416
417         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
418         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
419
420         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
421         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
422
423         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
424         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
425
426         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
427         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
428
429         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
430         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
431
432         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
433         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
434
435         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
436         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
437
438         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
439         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
440
441         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
442         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
443
444         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
445         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
446
447         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
448         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
449
450         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
451         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
452
453         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
454         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
455
456         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
457         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
458
459         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
460         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
461
462         * soft-fp/sysdeps/powerpc/Versions: Move from here...
463         * sysdeps/powerpc/soft-fp/Versions: ... to here.
464
465         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
466         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
467
468         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
469         change symbol version.
470         * libio/oldiofgetpos64.c: Likewise.
471         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
472
473         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
474         typo.
475         Reported by dyky@kondara.org, closes PR libc/1886.
476
477         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
478         libc/1880.
479
480 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
481
482         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
483         script when ^C is hit.
484
485         * locale/programs/localedef.c (construct_output_path): Correct
486         computation of endp after asprintf.
487         * locale/programs/locfile.c (write_locale_data): Don't add extra
488         slash in filename.
489
490 2000-09-05  Andreas Jaeger  <aj@suse.de>
491
492         * scripts/config.guess: New upstream version.
493         * scripts/config.sub: Likewise.
494         * manual/texinfo.tex: Likewise.
495
496 2000-09-04  Andreas Schwab  <schwab@suse.de>
497
498         * elf/Makefile (all-dl-routines): New variable.
499         (elide-routines.os): Use it instead of $(dl-routines).
500         (all-rtld-routines): New variable.
501         (extra-objs): Use it instead of $(rtld-routines).
502         ($(objpfx)dl-allobjs.os): Likewise.
503         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
504         sysdep-dl-routines and sysdep_routines instead of rtld-routines
505         and dl-routines.
506
507 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
508
509         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
510         Set fname to NULL if the module wasn't found.
511
512 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
513
514         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
515         true if trans->name already ends in ".so".
516
517 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
518
519         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
520         void.
521         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
522         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
523         (__gconv_release_shlib): Change return type to void.
524         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
525         step->__counter here.
526         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
527         if the reference is zero.
528         (release_step): New function.
529         (gen_steps): Always initialize the __counter to 1. Use release_step.
530         Don't call the destructor on the step whose initializer failed.
531         (increment_counter): Use release_step. Don't normally run destructors
532         here.
533         (__gconv_close_transform): Use release_step.
534
535 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
536
537         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
538         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
539
540 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
541
542         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
543         If the first byte is 0x8E, don't ask for 4 bytes until it has been
544         verified that the second byte is valid. Leave it to cns11643_to_ucs4
545         to check for incomplete input.
546         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
547         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
548         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
549         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
550         0x9f9d..0x9fa5.
551         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
552         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
553         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
554         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
555         upto index 0x0052.
556
557 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
558
559         * iconv/gconv_db.c (find_derivation): Always use the least-cost
560         solution.
561
562 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
563
564         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
565         are invalid.
566
567 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
568
569         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
570         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
571         U+007E.
572
573 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
574
575         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
576
577 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
578
579         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
580
581 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
582
583         * iconvdata/tst-tables.sh: New file.
584         * iconvdata/tst-table.sh: New file.
585         * iconvdata/tst-table-from.c: New file.
586         * iconvdata/tst-table-to.c: New file.
587         * iconvdata/tst-table-charmap.sh: New file.
588         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
589         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
590         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
591         ISIRI-3342.irreversible, SJIS.irreversible.
592         (tests): Add dependency on tst-tables.out.
593         (tst-tables.out, tst-tables-clean): New rules.
594         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
595         * iconvdata/ISIRI-3342.irreversible: New file.
596         * iconvdata/EUC-JP.irreversible: New file.
597         * iconvdata/SJIS.irreversible: New file.
598
599 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
600
601         * manual/locale.texi (General Numeric): Update description of
602         representation of the grouping information in the locale data.
603         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
604
605 2000-09-04  Andreas Jaeger  <aj@suse.de>
606
607         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
608         * iconv/iconv_prog.c (options): Fix typo.
609         Reported by dyky@kondara.org, closes PR libc/1885.
610
611 2000-09-04  Andreas Jaeger  <aj@suse.de>
612
613         * sysdeps/generic/fegetenv.c: It's __fegetenv.
614         Reported by Rob Levin <lilo@transvirtual.com>.
615
616 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
617
618         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
619         to the typedefs of __timezone_ptr_t.
620         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
621
622 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
623
624         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
625         the loop.
626
627 2000-09-01  H.J. Lu  <hjl@gnu.org>
628
629         * Makeconfig (built-program-cmd): Don't use the dynamic linker
630         to run a binary if it is in $(tests-static).
631
632         * Rules (binaries-static): Add $(tests-static).
633
634 2000-09-02  Andreas Jaeger  <aj@suse.de>
635
636         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
637
638         * libio/fmemopen.c (fmemopen_close): Revert one part of last
639         patch.
640
641 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
642
643         * iconvdata/big5hkscs.c: Regenerated from charmap.
644         * iconvdata/testdata/BIG5HKSCS: Regenerated.
645         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
646
647         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
648         statement.  General cleanup.
649
650 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
651
652         * wctype/wcfuncs.c (iswblank): New function.
653         * wctype/wcfuncs_l.c (__iswblank_l): New function.
654         * wctype/wcextra.c: Remove file.
655         * wctype/wcextra_l.c: Remove file.
656         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
657
658 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
659
660         * locale/programs/ld-collate.c (collate_output): Remove redundant
661         assert call.
662         * string/strcoll.c: Likewise.
663         * string/strxfrm.c: Include assert.h.  Add assert calls like in
664         string/strcoll.c.
665
666 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
667
668         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
669         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
670         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
671         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
672         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
673         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
674         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
675         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
676         _NL_CTYPE_GAP5/6 respectively.
677
678         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
679         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
680         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
681         Don't initialize __ctype_names and __ctype_width.
682         * wctype/cname-lookup.h: Remove file.
683         * wctype/Makefile (distribute): Remove cname-lookup.h.
684         * wctype/wchar-lookup.h: Include stdint.h.
685         * wctype/wctype.c (__wctype): Assume new locale format.
686         * wctype/wctype_l.c (__wctype_l): Likewise.
687         * wctype/iswctype.c: Don't include cname-lookup.h.
688         (__iswctype): Assume new locale format.
689         * wctype/iswctype_l.c: Don't include cname-lookup.h.
690         (__iswctype_l): Assume new locale format.
691         * wctype/wctrans.c: Don't include ctype.h.
692         (wctrans): Assume new locale format.
693         * wctype/wctrans_l.c (__wctrans_l): Likewise.
694         * wctype/towctrans.c: Don't include cname-lookup.h.
695         (__towctrans): Assume new locale format.
696         * wctype/towctrans_l.c: Don't include cname-lookup.h.
697         (__towctrans_l): Assume new locale format.
698         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
699         localeinfo.h instead.
700         (__NO_WCTYPE): Remove unused macro.
701         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
702         declarations.
703         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
704         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
705         (towlower, towupper): Likewise.
706         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
707         localeinfo.h instead.
708         (__NO_WCTYPE): Remove unused macro.
709         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
710         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
711         __iswxdigit_l): Assume new locale format.
712         (__towlower_l, __towupper_l): Likewise.
713         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
714         (__ctype32_b): Remove declaration.
715         (internal_wcwidth): Assume new locale format.
716         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
717         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
718         to map32_b, rename width_3level to width.
719         (ctype_output): Always create new locale format. Don't emit
720         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
721         (allocate_arrays): Always create new locale format.
722
723         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
724         * locale/weightwc.h (findidx): Assume new locale format.
725         * string/strcoll.c (wcscoll): Remove local variables size, layers,
726         names.
727         * string/strxfrm.c (wcsxfrm): Likewise.
728         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
729         local variable collseq to 'const char *'.
730         (SUFFIX): Don't use, don't undefine.
731         * posix/fnmatch.c: Remove SUFFIX definition.
732         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
733         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
734         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
735         (collate_finish): Always create new locale format. Remove local
736         variables min_total, act_size.
737         (collate_output): Always create new locale format. Remove local
738         variables table_size, names, tablewc. Rename tablewc_3level to
739         tablewc.
740
741 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
742
743         * locale/programs/ld-collate.c (obstack_int32_grow,
744         obstack_int32_grow_fast): New inline functions.
745         (output_weightwc, collate_output): Use them where possible.
746
747 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
748
749         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
750         patch (_mode -> _flags).
751
752         * libio/Makefile (headers): Add stdio_ext.h.
753         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
754         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
755         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
756         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
757         __fsetlocking, and _flushlbf.
758         * libio/__fbufsize.c: New file.
759         * libio/__flbf.c: New file.
760         * libio/__fpending.c: New file.
761         * libio/__fpurge.c: New file.
762         * libio/__freadable.c: New file.
763         * libio/__freading.c: New file.
764         * libio/__fsetlocking.c: New file.
765         * libio/__fwritable.c: New file.
766         * libio/__fwriting.c: New file.
767         * libio/stdio_ext.h: New file.
768         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
769         * libio/libio.h (_IO_USER_LOCK): Define.
770         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
771         test _IO_USER_LOCK flag first.
772
773         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
774         malloc fails.
775
776 2000-09-01  Andreas Jaeger  <aj@suse.de>
777
778         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
779
780         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
781
782 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
783
784         * math/Makefile (tests): Add tst-defintions.
785         * math/tst-definitions.c: New file.
786
787         * stdlib/Makefile (headers): Add bits/wchar.h.
788         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
789         * sysdeps/generic/bits/wchar.h: New file.
790         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
791         file to define WCHAR_MIN and WCHAR_MAX.
792         Change UINT*8_MAX and UIN*16_MAX value to type int.
793         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
794         file to define WCHAR_MIN and WCHAR_MAX.
795         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
796         int values.
797         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
798         * sysdeps/generic/bits/mathdef.h: Likewise.
799         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
800         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
801         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
802         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
803         * locale/locale.h (struct lconv): Add __ prefix to the new members
804         if not C99.
805         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
806         imaxdiv optimizations.
807         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
808         * sysdeps/wordsize-64/ldiv.c: Likewise.
809         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
810         const fenv_t*.
811         * sysdeps/generic/bits/fenv.h: Likewise.
812         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
813         * sysdeps/ia64/bits/fenv.h: Likewise.
814         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
815         * sysdeps/mips/bits/fenv.h: Likewise.
816         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
817         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
818         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
819
820         * inet/rcmd.c: Use *stat64 instead of *stat internally.
821         * inet/ruserpass.c: Likewise.
822         * catgets/open_catalog.c: Likewise.
823         * intl/loadmsgcat.c: Likewise.
824         * io/getdirname.c: Likewise.
825         * locale/loadlocale.c: Likewise.
826         * misc/getusershell.c: Likewise.
827         * stdlib/canonicalize.c: Likewise.
828         * sysdeps/posix/euidaccess.c: Likewise.
829         * sysdeps/posix/isfdtype.c: Likewise.
830         * sysdeps/posix/posix_fallocate.c: Likewise.
831         * sysdeps/posix/tempname.c: Likewise.
832         * sysdeps/unix/grantpt.c: Likewise.
833         * sysdeps/unix/opendir.c: Likewise.
834         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
835         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
836         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
837         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
838         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
839         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
840         * sysvipc/ftok.c: Likewise.
841         * time/getdate.c: Likewise.
842
843         * time/getdate.c: Add extra access test.
844
845 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
846
847         * version.h (VERSION): Bump to 2.1.93.
848
849         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
850         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
851
852         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
853         Make this a new rule depending on tst-gettext.out and run mtrace.
854         * intl/tst-gettext.c: Call mtrace.
855         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
856
857         * elf/dl-reloc.c: Add a few more __builtin_expect.
858
859         * configure.in: Remove --with-gettext option.
860
861         * intl/dcigettext.c (free_mem): Correct freeing of
862         _nl_domain_bindings list.
863
864         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
865         allocated memory.
866
867         * intl/locale.alias: Add aliases for bokmal and nynorsk.
868
869         * locale/iso-639.def: Fix 639-1 code for Bokmal.
870
871         * stdio-common/itoa-digits.c: Move upper digits to...
872         * stdio-common/itoa-udigits.c: ...here.  New file.
873         * stdio-common/Makefile (routines): Add itoa-udigits.
874
875         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
876         relocate ld.so don't add supprt for relocations which should not
877         appear in ld.so.
878
879         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
880         __secure_getenv.  Instead test __libc_enable_secure once.
881
882         * io/pwd.c (main): Provide a good example, use *_unlocked function.
883
884 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
885
886         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
887         whether the new record should be freed if it's a duplicate.
888         (add_module): Adjust insert_module call.
889         (__gconv_read_conf): Likewise.
890         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
891         mtrace-tst-loading.
892         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
893
894         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
895         _dl_all_init_dirs.
896         * include/link.h (struct r_search_path_struct): New.
897         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
898         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
899         _dl_all_init_dirs.
900         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
901         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
902         added at startup time.
903         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
904         contains element to remember fact that we can free memory.
905         (all_dirs): Renamed to _dl_all_dirs.  Made global.
906         (_dl_init_all_dirs): New variable.
907         (fillin_rpath): Save one malloc call.
908         (decompose_rpath): Change interface.  New first parameter points to
909         r_search_path_struct.
910         (_dl_init_paths): Adjust for changes.  Mark all memory as not
911         deletable.  Set _dl_init_all_paths value.
912         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
913         parameter replaced with r_search_path_struct *.  Information about
914         freeing now contained in r_search_path_struct.
915         (_dl_map_object): Adjust for above changes.
916
917         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
918
919         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
920         when adding new entries.
921
922         * elf/dl-load.c (fillin_rpath): Make local copy of where string
923         since the object being loaded can be unloaded.
924
925         * iconvdata/Makefile (tests): Add tst-loading.
926         * iconvdata/tst-loading.c: New file.
927
928 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
929
930         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
931         When comparing a char with an int, always cast the char to
932         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
933         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
934
935 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
936
937         * time/strftime.c (my_strftime): Add compatibility code for use
938         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
939
940         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
941         return 0 for success but always < 0 on failure.
942
943         * nss/getXXbyYY_r.c: Define result to *result before including
944         digits_dots.c.
945
946 2000-08-30  Andreas Jaeger  <aj@suse.de>
947
948         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
949
950 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
951
952         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
953         official file.
954         * iconvdata/TESTS: Add BIG5HKSCS entry.
955         * iconvdata/testdata/BIG5HKSCS: New file.
956         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
957
958         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
959         always true.
960
961         * libio/iogetline.c: Set mode before the loop in case n==0.
962         * libio/iogetwline.c: Likewise.
963
964 2000-08-29  H.J. Lu  <hjl@gnu.org>
965
966         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
967         of fp->_mode < 0.
968         (_IO_new_file_overflow): Likewise.
969         * libio/genops.c (_IO_flush_all): Likewise.
970         * libio/ioftell.c (_IO_ftell): Likewise.
971
972 2000-08-29  Akira Higuchi  <a@kondara.org>
973
974         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
975         and __end_fct fields of struct __gconv_step.
976         * iconv/Makefile (tests): Add iconv-bug2.
977         * iconv/iconv-bug2.c: New file.
978
979         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
980         instead of 'inptr - inend' to ksc5601_to_ucs4.
981
982         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
983
984         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
985         character or shift sequence is found at the end of the input
986         string, return__GCONV_INCOMPLETE_INPUT instead of
987         __GCONV_EMPTY_INPUT.
988         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
989         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
990
991         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
992         __GCONV_ILLEGAL_INPUT for 8bit characters.
993
994 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
995
996         * signal/signal.h (sigpause): Move __THROW before __asm__.
997
998         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
999         names don't match don't return.
1000         Patch by Olaf Kirch <okir@flash.lst.de>.
1001
1002 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1003
1004         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1005
1006 2000-08-27  H.J. Lu  <hjl@gnu.org>
1007
1008         * posix/Makefile (otherlibs): Add for building with static-nss
1009         for "make check".
1010
1011 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1012
1013         * libio/stdio.h: Add fmemopen prototype.
1014
1015 2000-08-25  Andreas Jaeger  <aj@suse.de>
1016
1017         * libio/Makefile (routines): Add fmemopen.
1018         (tests): Add test-fmemopen.
1019         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1020         * libio/test-fmemopen.c: New file.
1021         * libio/fmemopen.c: New file.
1022         Patches by Hanno Mueller <kontakt@hanno.de>.
1023
1024 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1025
1026         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1027         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1028
1029         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1030         to avoid crashing statically linked applications.
1031
1032 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1033
1034         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1035         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1036
1037         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1038         If the result is fits in the buffer, copy only as many bytes as needed.
1039
1040         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1041         buffer after copying numbuf into it.
1042         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1043
1044 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1045
1046         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1047         the result.  When string_len < len, don't clear the rest of the buffer.
1048
1049 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1050
1051         Support for new LC_COLLATE format.
1052         * locale/coll-lookup.h: New file.
1053         * locale/weightwc.h (findidx): When size == 0, call
1054         collidx_table_lookup.
1055         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1056         * wcsmbs/wcsxfrm.c: Likewise.
1057         * posix/fnmatch.c: Likewise.
1058         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1059         collseq_table_lookup.
1060         * locale/programs/3level.h: New file.
1061         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1062         by including "3level.h".
1063         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1064         collseq_table): New types, defined by including "3level.h".
1065         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1066         (encoding_mask, encoding_byte): Remove.
1067         (utf8_encode): Use simple shifts instead.
1068         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1069         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1070         (collate_output): New local variable tablewc_3level. When
1071         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1072         tablewc_3level instead of tablewc. Change format of TABLEWC and
1073         COLLSEQWC entries written to the file.
1074         * locale/C-collate.c (collseqwc): Change format.
1075         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1076         of COLLSEQWC.
1077         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1078
1079 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1080
1081         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1082         (locale_ctype_t): New charnames_idx field.
1083         (ctype_startup): Initialize charnames_idx field.
1084         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1085
1086 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1087
1088         * locale/C-ctype.c: Switch to new locale format.
1089         (_nl_C_LC_CTYPE_names): Remove array.
1090         (STRUCT_CTYPE_CLASS): New macro.
1091         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1092         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1093         New three-level tables.
1094         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1095         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1096         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1097         12 class tables and 2 map tables at the end.
1098         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1099         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1100         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1101         New declarations.
1102         (b): Remove trailing semicolon.
1103         (__ctype_names, __ctype_width): Don't initialize.
1104         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1105
1106 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1107
1108         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1109         is guaranteed to be allocated with the same malloc() and may be
1110         passed to free().
1111         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1112         been set to empty by an earlier open_path call, don't pass it again.
1113
1114 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1117         we are not optimizing.
1118
1119         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1120         inclusion.
1121
1122         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1123         really match EOF.
1124         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1125
1126 2000-08-28  Andreas Jaeger  <aj@suse.de>
1127
1128         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1129
1130 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1131
1132         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1133         getpeername.  Use ISO C style function definition.
1134         (getpeername): Provide weak alias.
1135         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1136         setrlimit.  Use ISO C style function definition.
1137         (setrlimit): Provide weak alias.
1138
1139 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1140
1141         * shlib-versions: Add a rule for S/390 to the libm version list.
1142         * sysdeps/s390/Versions: New file.
1143         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1144         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1145         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1146         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1147         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1148         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1149         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1150         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1151         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1152         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1153         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1154         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1155         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1156         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1157         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1158         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1159         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1160         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1161
1162 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1163
1164         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1165         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1166
1167         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1168         * elf/dl-close.c (_dl_close): Print debug message if object is not
1169         unloaded.
1170         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1171         returning to caller.
1172
1173         * po/zh.po: Renamed to...
1174         * po/zh_TW.po: ...this.
1175
1176 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1177
1178         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1179
1180         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1181         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1182         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1183         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1184
1185 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1186
1187         * locale/programs/ld-collate.c (insert_weights): Also update
1188         backpointer of next element.
1189         (collate_read): Allow definition of new collation symbols in stage 2.
1190         Symbol after reorder-after can be UCS4 value.
1191         Allow reordering of collation symbols and elements.
1192         Do not only move reorder entry in new position.  Instead call
1193         insert_weight to do this and read the weights.
1194
1195         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1196
1197         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1198         to determine invalid locale name.
1199         * locale/findlocale.c (_nl_find_locale): Likewise.
1200
1201         * posix/annexc.c: Correct test for unavailable feature.
1202
1203         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1204         __inline.
1205
1206 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1207
1208         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1209         syscall.
1210
1211         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1212         (sysdep_routines): Add oldgetrlimit64.
1213
1214         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1215         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1216         (tests): Add unload, reldep, reldep2, and reldep3.
1217         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1218         and reldepmod4.
1219         Add rules to build and run unload, reldep, reldep2, and reldep3.
1220         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1221         Don't create relocation dependency if it is nonzero.
1222         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1223         can never happen here.
1224         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1225         Don't create relocation dependency if it is nonzero.
1226         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1227         stuff.  This can never happen here.
1228         * sysdeps/generic/ldsodefs.h: Change prototypes.
1229         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1230         _dl_lookup_up and _dl_lookup_versioned_symbol.
1231         (RESOLV): Likewise.
1232         * elf/dl-runtime.c (fixup): Likewise.
1233         (profile_fixup): Likewise.
1234         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1235         _dl_lookup_symbol.
1236         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1237         * elf/rtld.c (dl_main): Likewise.
1238         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1239         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1240         and pass down the caller map.
1241         (_dl_vsym): Likewise.
1242         * elf/reldep.c: New file.
1243         * elf/reldep2.c: New file.
1244         * elf/reldep3.c: New file.
1245         * elf/reldepmod1.c: New file.
1246         * elf/reldepmod2.c: New file.
1247         * elf/reldepmod3.c: New file.
1248         * elf/reldepmod4.c: New file.
1249         * elf/unload.c: New file.
1250         * elf/unloadmod.c: New file.
1251
1252         * elf/do-lookup.h: Remove unused undef_name parameter.
1253         * elf/dl-lookup.c: Adjust callers.
1254
1255 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1256
1257         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1258         irreversible in recursive call of conversion function to signal that
1259         no error handling is wanted.
1260         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1261         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1262         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1263         recursive error handling call, otherwise to &lirreversible.  Use it
1264         for calls to conversion functions.
1265         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1266         transliterating.
1267         (ucs4_internal_loop_unaligned): Likewise.
1268         (ucs4le_internal_loop): Likewise.
1269         (ucs4le_internal_loop_unaligned): Likewise.
1270
1271 2000-08-25  Greg McGary  <greg@mcgary.org>
1272
1273         * sysdeps/i386/memchr.S: Check high bound against chars
1274         actually scanned.
1275         * sysdeps/i386/memcmp.S: Likewise.
1276         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1277         account for pointers that lie one beyond end-of-buffer.
1278
1279 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1280
1281         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1282         * elf/nodelete.c (fini_ran): New global variable.
1283         (do_test): Before every dlclose call clear fini_ran and test
1284         afterwards that it is not set by the destructors.
1285         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1286         * elf/nodelmod2.c: Likewise.
1287         * elf/nodelmod4.c: Likewise.
1288
1289 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1290
1291         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1292         getrlimit to the list.
1293
1294 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1295
1296         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1297         long double format so use ldbl-96 instead of ldbl-128.
1298
1299 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1300
1301         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1302         even if bits 10 a 11 are non-zero.
1303         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1304
1305         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1306         included before building gnu/lib-names.h
1307         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1308
1309         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1310         marked DF_1_NODELETE.
1311
1312         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1313         since we call sigaction in the child.
1314
1315 2000-08-25  Andreas Jaeger  <aj@suse.de>
1316
1317         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1318         gconv-modules.
1319
1320 2000-08-25  Andreas Jaeger  <aj@suse.de>
1321
1322         * manual/arith.texi (Control Functions): Clarify possible
1323         arguments.  Closes PR libc/1856.
1324
1325 2000-08-24  H.J. Lu  <hjl@gnu.org>
1326
1327         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1328         * malloc/Makefile (tests): Likewise.
1329
1330 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1331
1332         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1333
1334 2000-08-24  Andreas Jaeger  <aj@suse.de>
1335
1336         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1337         only if LIBGD is available.
1338
1339 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1340
1341         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1342         problems with now restrict parameter types.
1343         (convaddr4to6): Likewise.
1344
1345 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1346
1347         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1348         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1349         * sysdeps/s390/fpu/fegetexcept.c: New file.
1350         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1351         FPC_VALID_MASK.
1352
1353 2000-08-24  Andreas Jaeger  <aj@suse.de>
1354
1355         * malloc/Makefile (extra-objs): Add memusagestat.o.
1356         (generated): Added memusage and memusagestat for make clean.
1357
1358         * libio/tst_putwc.c (do_test): Delete temporary file.
1359         Move inclusion of test-skeleton to front to have prototype for
1360         add_temp_file.
1361
1362         * posix/Makefile (generated): Add wordexp-tst.out.
1363
1364 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1365
1366         * resolv/res_hconf.c (free_mem): Remove not needed if.
1367
1368         * time/tzset.c (free_mem): New function.
1369         * string/strsignal.c (free_mem): New function.
1370         * inet/inet_ntoa.c (free_mem): New function.
1371         * sunrpc/clnt_perr.c (free_mem): New function.
1372
1373 2000-08-24  Andreas Jaeger  <aj@suse.de>
1374
1375         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1376         * sysdeps/unix/sysv/syscalls.list: Likewise.
1377
1378         * posix/unistd.h: Move internal prototypes from here ...
1379         * include/unistd.h: ... to here.
1380
1381         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1382
1383 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1384
1385         * grp/initgroups.c (initgroups): Deallocate groups array.
1386         Reported by jani.raiha@sonera.com [PR libc/1868].
1387
1388         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1389         * sysdeps/alpha/Dist: Likewise.
1390
1391 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1392
1393         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1394         destructor).  Reported by Solar Designer <solar@false.com>.
1395
1396         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1397         avoid adding double slashes.
1398
1399 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1400
1401         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1402         out of the __REDIRECT macro.
1403
1404 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1405
1406         * stdio-common/vfscanf.c: Add %F format support.
1407
1408         * locale/programs/ld-ctype.c (ctype_output): Make sure
1409         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1410         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1411         (ctype_read): Enable returning of wide character strings for reading
1412         transliteration information.
1413
1414 2000-08-23  Andreas Jaeger  <aj@suse.de>
1415
1416         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1417         Use static __inline instead of _EXTERN_INLINE.
1418
1419         * misc/sys/select.h: Move prototypes of __select from here ...
1420         * include/sys/select.h: ... to here.
1421
1422         * socket/sys/socket.h: Move prototypes of __send and __connect
1423         from here....
1424         * include/sys/socket.h: ... to here.
1425
1426         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1427         lr_error.
1428
1429 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1430
1431         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1432         __setrlimit as strong name. Takes only 2 arguments.
1433
1434         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1435         takes only 2 arguments.
1436
1437 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1438
1439         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1440
1441         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1442
1443 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1444
1445         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1446         default_missing character being specified, pick the first
1447         representable.
1448
1449 2000-08-23  Andreas Jaeger  <aj@suse.de>
1450
1451         * include/wchar.h: Add some pure attributes.
1452
1453         * time/time.h: Add const attribute for dysize.
1454
1455         * include/stdlib.h: Add malloc attribute to __posix memalign.
1456
1457         * stdlib/stdlib.h: Add some pure and malloc attributes.
1458         * wcsmbs/wchar.h: Likewise.
1459
1460         * dirent/dirent.h: Add some pure attributes.
1461         * include/dirent.h: Likewise.
1462
1463 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1464
1465         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1466         on 64bit arches.
1467
1468 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1469
1470         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1471         missing buffer size checks.
1472
1473 2000-08-23  Andreas Jaeger  <aj@suse.de>
1474
1475         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1476         strong name.
1477         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1478
1479         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1480         otherwise __LINUX_KERNEL_VERSION might not be defined.
1481         (MIN): Define if not already defined.
1482
1483 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1484
1485         * stdio-common/vfprintf.c: Handle %F format.
1486         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1487         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1488
1489         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1490
1491         * po/zh.po: New file.
1492
1493         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1494         enough room in target buffer.
1495         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1496         * iconvdata/bug-iconv1.c: New file.
1497         * iconvdata/Makefile (tests): Add bug-iconv1.
1498
1499         * locale/iso-4217.def: Update entry for Nicaragua.
1500
1501 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1502
1503         * hurd/hurdsig.c: Rearrange headers a bit.
1504         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1505         when cthreads is being used.
1506
1507 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1508
1509         * elf/Makefile (distribute): Add dl-osinfo.h.
1510         * sysdeps/generic/dl-osinfo.h: New file.
1511         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1512         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1513         if defined.
1514         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1515         only for !SHARED case.  Get the code from dl-osinfo.h.
1516
1517         * stdlib/random_r.c: Cleanups.
1518         * stdlib/tst-random.c: New file.
1519         * stdlib/Makefile (tests): Add tst-random.
1520         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1521
1522 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1523
1524         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1525         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1526         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1527         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1528
1529 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1530
1531         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1532         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1533         (__syscall__sysctl): Add.
1534
1535 2000-08-21  Andreas Jaeger  <aj@suse.de>
1536
1537         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1538         libc/1864).
1539         * stdlib/tst-strtoll.c: Likewise.
1540
1541 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1542
1543         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1544         correctly.
1545         (__initstate_r): Set errno on error.
1546         (__random_r): Likewise.
1547         (__setstate_r): Correct offset when computing
1548         new rptr and fptr.  Test for arg_state being NULL.
1549         Reported by Michael Fischer <fischer@cs.yale.edu>.
1550
1551         * posix/regex.h: Add macro definitions to allow compiling outside
1552         glibc.
1553
1554         * sysdeps/i370/Implies: Removed.
1555         * sysdeps/mvs/Implies: Removed.
1556
1557         * catgets/catgets.c (catopen): Filter out env_var values with / if
1558         necessary.
1559
1560         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1561         locale name after all getenvs.
1562
1563         * configure.in: Allow sed versions like 3.02.8.
1564         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1565
1566 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1567
1568         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1569
1570 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1571
1572         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1573         of gethostbyname2_r call.
1574
1575         * intl/locale.alias: Add aliases for Korean.
1576
1577 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1578
1579         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1580         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1581         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1582         * sysdeps/s390/fpu/fegetenv.c: New file.
1583         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1584         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1585         * sysdeps/s390/fpu/fenv_libc.h: New file.
1586         * sysdeps/s390/fpu/fesetenv.c: New file.
1587         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1588         * sysdeps/s390/fpu/feupdateenv.c: New file.
1589         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1590         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1591         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1592         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1593         * sysdeps/s390/fpu/ftestexcept.c: New file.
1594         * sysdeps/s390/fpu/libm-test-ulps: New file.
1595         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1596         * sysdeps/s390/initfini.c: New file.
1597         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1598         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1599         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1600         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1601         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1602         sys/procfs.h as proposed by Mark Kettenis.
1603         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1604
1605 2000-08-21  Andreas Jaeger  <aj@suse.de>
1606
1607         * include/poll.h: Include include/sys/poll.h to get __poll
1608         declaration.
1609
1610         * io/sys/poll.h: Move __poll declaration from here...
1611         * include/sys/poll.h: ...to here.
1612
1613         * include/sys/socket.h (__getpeername): Add declaration.
1614
1615         * include/wchar.h (__vswprintf): Add declaration.
1616
1617         * include/stdio.h (__flockfile): Add declaration.
1618         (__funlockfile): Likewise.
1619
1620 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1621
1622         * misc/sys/cdefs.h: Define __restrict_arr.
1623         * include/sys/time.h: Add restrict where required by AGd4.
1624         * inet/arpa/inet.h: Likewise.
1625         * io/sys/stat.h: Likewise.
1626         * io/sys/statvfs.h: Likewise.
1627         * misc/search.h: Likewise.
1628         * misc/sys/select.h: Likewise.
1629         * posix/glob.h: Likewise.
1630         * posix/regex.h: Likewise.
1631         * posix/spawn.h: Likewise.
1632         * posix/unistd.h: Likewise.
1633         * rt/aio.h: Likewise.
1634         * signal/signal.h: Likewise.
1635         * socket/sys/socket.h: Likewise.
1636         * stdlib/ucontext.h: Likewise.
1637         * streams/stropts.h: Likewise.
1638         * string/string.h: Likewise.
1639         * time/time.h: Likewise.
1640         * time/sys/time.h: Likewise.
1641
1642         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1643         and posix_spawnattr_setscheparam.
1644
1645         * libio/stdio.h: Make cuserid prototype again available for all
1646         XPG versions.
1647
1648         * argp/argp-help.c: Unify use of function aliases to make more compact
1649         PLT.
1650         * include/libintl.h: Likewise.
1651         * inet/rcmd.c: Likewise.
1652         * intl/dcigettext.c: Likewise.
1653         * libio/iofputws.c: Likewise.
1654         * libio/iofputws_u.c: Likewise.
1655         * libio/iogetwline.c: Likewise.
1656         * libio/swprintf.c: Likewise.
1657         * malloc/malloc.c: Likewise.
1658         * nss/digits_dots.c: Likewise.
1659         * posix/fnmatch.c: Likewise.
1660         * posix/spawn_faction_addclose.c: Likewise.
1661         * posix/spawn_faction_adddup2.c: Likewise.
1662         * posix/spawn_faction_addopen.c: Likewise.
1663         * posix/spawni.c: Likewise.
1664         * posix/wordexp.c: Likewise.
1665         * posix/spawni.c: Likewise.
1666         * resolv/res_hconf.c: Likewise.
1667         * resolv/res_init.c: Likewise.
1668         * shadow/lckpwdf.c: Likewise.
1669         * signal/sighold.c: Likewise.
1670         * signal/sigrelse.c: Likewise.
1671         * stdio-common/printf-parse.h: Likewise.
1672         * stdio-common/printf-prs.c: Likewise.
1673         * stdio-common/printf_fp.c: Likewise.
1674         * stdio-common/vfprintf.c: Likewise.
1675         * stdio-common/vfscanf.c: Likewise.
1676         * stdlib/rpmatch.c: Likewise.
1677         * sunrpc/create_xid.c: Likewise.
1678         * sunrpc/key_call.c: Likewise.
1679         * sysdeps/generic/setrlimit64.c: Likewise.
1680         * sysdeps/generic/utmp_file.c: Likewise.
1681         * sysdeps/generic/vlimit.c: Likewise.
1682         * sysdeps/posix/posix_fallocate.c: Likewise.
1683         * sysdeps/posix/posix_fallocate64.c: Likewise.
1684         * sysdeps/posix/sigpause.c: Likewise.
1685         * sysdeps/posix/sigset.c: Likewise.
1686         * sysdeps/unix/grantpt.c: Likewise.
1687         * sysdeps/unix/bsd/ualarm.c: Likewise.
1688         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1689         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1690         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1691         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1692         * time/strftime.c: Likewise.
1693         * wcsmbs/wcscoll.c: Likewise.
1694         * wcsmbs/wcsxfrm.c: Likewise.
1695
1696         * time/tst-getdate.c (main): Make error messages more human readable.
1697
1698         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1699         postinc/predec instruction.
1700         (_FPU_SETCW): Likewise.
1701         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1702
1703 2000-08-20  Andreas Jaeger  <aj@suse.de>
1704
1705         * time/tst-getdate.c (main): Increase error in case of wrong
1706         conversion.
1707         Fix typo in test case.
1708
1709 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1710
1711         * ctype/ctype.h (isblank): Make available if ISO C99.
1712         * wctype/wctype.h (iswblank): Make available if ISO C99.
1713         * math/math.h (signgam): Don't make available if ISO C99.
1714         * math/tgmath.h (tgamma): Renamed from gamma.
1715         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1716
1717         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1718         Pretty printing.
1719         * intl/plural.y (new_exp): Take number of optional parameters in
1720         second parameter.  Test for correct number of parameters and free
1721         correctly in case of failure.  Adjust all callers.
1722         (yylex): Allow ';' as terminator character.
1723
1724 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1725
1726         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1727         walt_digits.
1728
1729         * locale/findlocale.c (free_mem): Also free here->filename.
1730
1731         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1732
1733         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1734         first test.
1735         (feexcp_nomask_test): Correct printf args.
1736         (feexcp_mask_test): Likewise.
1737
1738 2000-08-19  Andreas Jaeger  <aj@suse.de>
1739
1740         * inet/tst-gethnm.c: Include string.h to provide prototype for
1741         strcmp.
1742
1743         * malloc/mtrace.pl (usage): Inform about --help.
1744
1745 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1746
1747         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1748         size HEAP_MAX_SIZE.
1749
1750 2000-08-19  Andreas Jaeger  <aj@suse.de>
1751
1752         * shlib-versions: Remove libnss_db, libdb and libdb1.
1753
1754 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1757         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1758         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1759         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1760         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1761         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1762         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1763         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1764         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1765         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1766         getdents.
1767         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1768         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1769
1770 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1771
1772         * include/glob.h (__glob64): Add prototype.
1773         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1774         define glob and glob_in_dir.
1775         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1776         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1777         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1778         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1779         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
1780         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
1781         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
1782         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
1783
1784 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1785
1786         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
1787
1788 2000-08-17  Andreas Jaeger  <aj@suse.de>
1789
1790         * math/test-fenv.c (fe_single_test): New function.
1791         (fe_env_tests): Use fe_single_test.
1792         (feenable_test): New tests for feenable/fedisable and
1793         fegetexcpetions.
1794         (feexcp_mask_test): New function.
1795         (feexcp_nomask_test): New function.
1796
1797 2000-08-19  Richard Henderson  <rth@cygnus.com>
1798
1799         * sysdeps/alpha/fpu/fenv_libc.h: New file.
1800         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
1801         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
1802         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1803         * sysdeps/alpha/fpu/fegetround.c: Likewise.
1804         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
1805         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
1806         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
1807         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
1808         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
1809         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
1810         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
1811         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
1812         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
1813         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
1814         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
1815         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
1816
1817 2000-08-19  Andreas Jaeger  <aj@suse.de>
1818
1819         * elf/constload1.c: Include <stdio.h> for puts prototype.
1820
1821 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1822
1823         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
1824         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
1825         a dynamically loaded object remove old l_initfini list.
1826         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
1827         remove some dynamically allocated memory blocks in the dynamic
1828         loading data structures.
1829         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
1830         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
1831         Instead call _dl_check_map_versions only for the dependencies.
1832         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
1833         information of initial objects as not free-able.
1834         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
1835         element.
1836
1837         * elf/filter.c: Call mtrace.
1838         * elf/restest1.c: Likewise.  Close the objects.
1839         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
1840         debug information.
1841
1842         * elf/constload1.c: Add comment explaining not freed memory.
1843
1844 2000-08-18  Andreas Jaeger  <aj@suse.de>
1845
1846         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
1847         alignment for structs stat and stat64.
1848         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1849
1850 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1851
1852         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
1853         handling.  Patch by Richard Henderson <rth@twiddle.net>.
1854
1855         * nss/Versions: Remove libnss_db information.
1856
1857 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1858
1859         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
1860         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
1861         * sysdeps/sparc/fpu/fegetexcept.c: New file.
1862         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
1863
1864         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
1865         to match Solaris.
1866
1867 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1868
1869         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
1870         (_FPU_SETCW): Likewise.
1871         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1872
1873         * stdio-common/printf_fp.c: Fix chars_needed computation.
1874         Patch by Greg McGary <greg@mcgary.org>.
1875
1876 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1877
1878         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
1879         _dl_loaded are NULL.
1880
1881 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1882
1883         * manual/arith.texi (feholdexcept): Returns 0 on success.
1884
1885 2000-08-17  Andreas Jaeger  <aj@suse.de>
1886
1887         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
1888         (ifr_newname): New.
1889         Reported by Andi Kleen <ak@suse.de>.
1890
1891 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1892
1893         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
1894         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
1895         * sysdeps/alpha/fpu/fegetexcept.c: New file.
1896
1897 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1898
1899         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
1900         of buf->st_ino and kbuf->st_ino, not __st_ino.
1901         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
1902         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
1903         directive so that only linux/getdents.c is used, not some
1904         architecture specific one.
1905
1906 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1907
1908         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
1909         enabled, not disabled exceptions.
1910         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1911         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1912
1913 2000-08-17  Greg McGary  <greg@mcgary.org>
1914
1915         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
1916         from test program name when constructing suffix for $(LDLIBS-*).
1917         (bounded-thread-library): New variable.
1918         * crypt/Makefile
1919         [build-shared, build-static] (libcrypt-dep): Remove variable.
1920         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1921         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1922         * linuxthreads/Makefile (libpthread, librt): Remove variables.
1923         (librt-tests): Add variable.  (tests): Use it.
1924         [build-shared, build-static]
1925         ($(addprefix $(objpfx),$(tests)),
1926         $(addprefix $(objpfx),$(librt-tests))):
1927         Consolidate individual dependencies.
1928         [build-bounded]
1929         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
1930         Add dependencies.
1931         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
1932         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1933         * misc/Makefile
1934         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
1935         * rt/Makefile
1936         [build-shared, build-static]
1937         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1938         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1939
1940 2000-08-17  Greg McGary  <greg@mcgary.org>
1941
1942         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
1943         * sysdeps/unix/make-syscalls.sh: Likewise.
1944         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1945         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1946         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1947         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1948         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1949
1950 2000-08-17  Greg McGary  <greg@mcgary.org>
1951
1952         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
1953         Wrap extern symbols in BP_SYM ().
1954         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1955         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1956         * sysdeps/i386/fpu/s_remquo.S: Likewise.
1957         * sysdeps/i386/fpu/s_remquof.S: Likewise.
1958         * sysdeps/i386/fpu/s_remquol.S: Likewise.
1959         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1960         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1961         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1962         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1963         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1964
1965 2000-08-16  Andreas Schwab  <schwab@suse.de>
1966
1967         * sysdeps/m68k/fpu/fegetexcept.c: New file.
1968         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
1969         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
1970
1971 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1972
1973         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
1974         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
1975         * elf/dl-support.c: Define _nl_nloaded.
1976         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
1977         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
1978         object to global list.
1979         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
1980         from _dl_loaded list.
1981         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1982         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
1983         number here.
1984
1985         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
1986         unmask, exceptions.
1987         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
1988         exceptions.
1989         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
1990
1991 2000-08-16  Andreas Jaeger  <aj@suse.de>
1992
1993         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
1994
1995 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
1996
1997         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
1998
1999 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2000
2001         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2002         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2003         (sysdep_routines): Add oldgetrlimit64.
2004         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2005         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2006
2007         * include/link.h: Undo last patches.  Hurd now has stat64.
2008         * elf/Makefile: Likewise.
2009         * elf/dl-load.c: Likewise.
2010         * elf/dl-misc.c: Likewise.
2011         * elf/dl-profile.c: Likewise.
2012         * sysdeps/generic/sysd-link.h: Removed.
2013         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2014
2015         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2016         thread event callback function.
2017         (__aio_notify_only): Use function above.
2018         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2019
2020 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2021
2022         * sysdeps/mach/hurd/lseek64.c: New file.
2023
2024 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2025
2026         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2027         Remove typedefs.
2028         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2029         typedefs.
2030         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2031         typedefs.
2032         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2033
2034 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2035
2036         * sysdeps/mach/hurd/xstatconv.c: New file.
2037         * sysdeps/mach/hurd/fxstat64.c: New file.
2038         * sysdeps/mach/hurd/lxstat64.c: New file.
2039         * sysdeps/mach/hurd/xstat64.c: New file.
2040         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2041
2042 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2043
2044         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2045         Initialize, needed for change in common symbol handling in newer
2046         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2047
2048 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2049
2050         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2051         * elf/constload2.c: Add destructor to unload constload3.
2052
2053         * include/link.h: Include sysd-link.h.
2054         * sysdeps/generic/sysd-link.h: New file.
2055         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2056         * elf/Makefile (distribute): Add sysd-link.h.
2057         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2058         types and functions directly.
2059         * elf/dl-misc.c: Likewise.
2060         * elf/dl-profile.c: Likewise.
2061
2062         * elf/loadfail.c (main): Close all successfully loaded objects.
2063
2064         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2065         free wd.
2066         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2067         there is already one.
2068
2069         * elf/dl-close.c: Pretty print.
2070
2071 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2072
2073         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2074         global (with file scope).  Add __libc_subfreeres function to free the
2075         string.
2076         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2077         in ttyname function.
2078
2079         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2080
2081         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2082
2083         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2084         mapping them to /x5c and /x7e respectively.
2085
2086         * locale/programs/ld-ctype.c: Add support for more definitions after
2087         copy statement.
2088
2089 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2090
2091         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2092         * sysdeps/unix/sysv/linux/kernel-features.h
2093         (__ASSUME_GETDENTS64_SYSCALL): Define.
2094         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2095         syscall if available to get d_type fields.
2096         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2097         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2098         __lxstat64): Export at GLIBC_2.2.
2099         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2100         Likewise.
2101         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2102         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2103         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2104         getdirentries64, versionsort64): Remove.
2105         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2106         getdirentries64, versionsort64): Remove.
2107
2108 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2109
2110         * posix/Makefile: Remove rules to generate glob package.
2111
2112         * posix/Makefile (tests): Add tst-regexloc.
2113         (tst-regexloc-ENV): Add LOCPATH.
2114         * posix/tst-regexloc.c: New file.
2115
2116 2000-08-12  Andreas Jaeger  <aj@suse.de>
2117
2118         * include/features.h (__STDC_ISO_10646__): Define.
2119         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2120
2121 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2122
2123         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2124
2125         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2126         for revision 6 and up).
2127
2128         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2129         including <time.h>.
2130         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2131         to get definitions of just these types.
2132
2133         * signal/signal.h: Define thread signal handling functions also for
2134         POSIX95.
2135
2136         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2137         POSIX95.
2138         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2139         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2140         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2141         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2142
2143         * sysvipc/sys/shm.h: Define pid_t for XPG.
2144
2145         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2146         they are not anymore required here.
2147
2148         * wcsmbs/wchar.h: Make the various wide char string and stream
2149         functions available for the respective XPG versions.
2150
2151         * nss/Makefile: Remove rules to build and distribute nss_db.
2152
2153         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2154         * sysdeps/generic/scandir64.c: Likewise.
2155         * sysdeps/generic/versionsort64.c: Likewise.
2156
2157 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2158             Benjamin Koznik  <bkoz@redhat.com>
2159
2160         * libio/fileops.c: Merge with libstdc++-v3.
2161         * libio/genops.c: Likewise.
2162         * libio/iofclose.c: Likewise.
2163         * libio/iofopen.c: Likewise.
2164         * libio/iofwide.c: Likewise.
2165         * libio/libio.h: Likewise.
2166         * libio/libioP.h: Likewise.
2167         * libio/stdfiles.c: Likewise.
2168         * libio/stdio.c: Likewise.
2169         * libio/wfileops.c: Likewise.
2170         * libio/wgenops.c: Likewise.
2171
2172         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2173
2174 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2175
2176         * locale/programs/localedef.c: Implement --prefix option to allow
2177         writing in standard places of alternative install directories.
2178
2179         * posix/regex.c (compile_range): Implement collation sequence
2180         handling for glibc.  Use simple character ordering otherwise and
2181         not strcoll.
2182
2183 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2184
2185         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2186
2187 2000-08-12  Andreas Jaeger  <aj@suse.de>
2188
2189         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2190         __USE_FILE_OFFSET64 correctly for locking.
2191         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2192
2193 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2194
2195         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2196         Define for 2.4.1 on sparc as well.
2197         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2198         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2199         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2200         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2201
2202 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2203
2204         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2205         defined.
2206
2207 2000-08-12  Andreas Jaeger  <aj@suse.de>
2208
2209         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2210         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2211
2212         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2213         mips2 for assembler.
2214
2215         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2216         if fnctl64 is not available for F_*LK*64.
2217
2218         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2219
2220 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2221
2222         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2223         Define for 2.4.1 on x86.
2224         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2225         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2226         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2227
2228         * dirent/dirent.h: Define DT_WHT.
2229
2230         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2231         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2232         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2233         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2234         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2235         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2236
2237 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2238
2239         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2240         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2241         * inet/Makefile (tests): Add tst-gethnm.
2242         * inet/tst-gethnm.c: New file.
2243
2244         * rt/aio_cancel.c: If canceling a specific request which is running
2245         *really* do nothing.
2246         * rt/aio_misc.h: Add `done' to states of a request.
2247         * rt/aio_misc.c: Add several tests for the correct state.
2248         Simplify request table memory handling.
2249
2250 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2251
2252         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2253         * dirent/scandir64.c: Move...
2254         * sysdeps/generic/scandir64.c: ...here.
2255         * dirent/alphasort64.c: Move...
2256         * sysdeps/generic/alphasort64.c: ...here.
2257         * dirent/versionsort64.c: Move...
2258         * sysdeps/generic/versionsort64.c: ...here.
2259         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2260         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2261         Export symbols at GLIBC_2.2.
2262         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2263         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2264         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2265         __versionsort64): Add prototypes.
2266         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2267         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2268         unused prototype.
2269         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2270         and GLIBC_2.2.
2271         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2272         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2273         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2274         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2275         __u_quad_t.
2276         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2277         Adjust for kernel-2.4.0-test6 layout.
2278         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2279         GLIBC_2.1 and GLIBC_2.2.
2280         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2281         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2282         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2283         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2284         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2285         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2286         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2287         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2288         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2289         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2290         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2291         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2292         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2293         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2294         __u_quad_t.
2295         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2296         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2297         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2298         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2299         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2300         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2301         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2302         __u_quad_t.
2303         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2304         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2305         Define.
2306         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2307         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2308         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2309         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2310         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2311         Define.
2312         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2313         alpha/readdir.c.
2314         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2315         alpha/readdir_r.c
2316         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2317         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2318         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2319         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2320         st_ino from __st_ino.
2321         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2322         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2323         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2324         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2325         set __st_ino in addition to st_ino.
2326         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2327         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2328         __old_getdents64 as well.
2329         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2330         getdirentries64 and old_getdirentries64 as well.
2331         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2332         __GETDENTS): Define.
2333         (GETDENTS64): Remove.
2334         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2335         Define.
2336         (GETDENTS64): Remove.
2337         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2338         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2339         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2340         as well.
2341         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2342         __old_readdir64_r as well.
2343         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2344         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2345
2346 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2347
2348         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2349         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2350         define of the kernel.
2351         Add missing __SEG_PSTKOVF definition.
2352         Adjust the padding of struct siginfo and struct sigevent to
2353         match the fact that sigval_t is 64 bit.
2354
2355 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2356
2357         * timezone/zic.c: Update from tzcode2000f.
2358         * timezone/australasia: Update from tzdata2000f.
2359         * timezone/europe: Likewise.
2360         * timezone/southamerica: Likewise.
2361         * timezone/yearistype: Likewise.
2362
2363 2000-08-10  Andreas Jaeger  <aj@suse.de>
2364
2365         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2366         stat with current MIPS kernel.
2367
2368 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2369
2370         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2371         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2372         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2373         Remove the junk that's only relevant in the Linux kernel itself.
2374         Add a warning saying that this file is now obsolete, and include
2375         <sys/procfs.h>.
2376         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2377         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2378         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2379         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2380         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2381         and add the notice that the file is primarily there for GDB.
2382         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2383
2384 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2385
2386         * time/tzfile.c (__tzfile_compute): __tzstring zones
2387         from zone_names.
2388
2389 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2390
2391         * resolv/resolv.h (__res_state): Surround prototype with
2392         __BEGIN_DECLS/__END_DECLS.
2393         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2394
2395 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2396
2397         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2398         Make independant of asm/resource.h from the Linux kernel.
2399
2400 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2401
2402         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2403
2404 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2405
2406         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2407         * locale/Makefile (locale-CPPFLAGS): Likewise.
2408
2409 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2410
2411         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2412         for AMD processors.
2413
2414 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2415
2416         * misc/Versions (mincore): Export at GLIBC_2.2.
2417
2418 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2419
2420         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2421
2422 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2423
2424         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2425         socketpair.  Made socketpair a weak alias.
2426         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2427         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2428         conforming, but fall back on the old protocol if the socket server
2429         doesn't support it.
2430         * include/sys/socket.h: Add prototype for __socketpair.
2431
2432 2000-08-09  Andreas Schwab  <schwab@suse.de>
2433
2434         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2435         long long modifier is seen.
2436
2437         * elf/nodelete.c (do_test): Remove reference to undefined member
2438         sa_restorer.
2439         * rt/tst-aio4.c (do_test): Likewise.
2440
2441         * configure.in: Add `-lm' when checking for libgd.
2442         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2443         linking.
2444
2445 2000-08-09  Andreas Jaeger  <aj@suse.de>
2446
2447         * configure.in: Change required make versions.
2448
2449         * manual/install.texi (Tools for Compilation): Document required
2450         make version.
2451         (Supported Configurations): Update list of supported
2452         configurations.
2453
2454 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2455
2456         * locale/linereader.c (get_string): Don't print an error is a string
2457         contains an unknown character.
2458
2459 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2460
2461         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2462         (new_symbol): Take new parameters with name of the symbol.
2463         Adjust callers.
2464         (handle_ellipsis): Don't only allow character symbols.
2465         (collate_read): Allow string of collating elements contain invalid
2466         characters; ignore entry in this case.
2467         Handle ellipsis of collating symbols before first order_start.
2468         Allow ellipsis in state 0.
2469
2470 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2471
2472         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2473         error message.
2474         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2475
2476 2000-08-04  Greg McGary  <greg@mcgary.org>
2477
2478         * posix/regex.c (SET_HIGH_BOUND): New macro.
2479         (MOVE_BUFFER_POINTER): Use it.
2480         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2481         (EXTEND_BUFFER): Use it.
2482
2483 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2486         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2487         _wide_data but from _IO_FILE directly.
2488         * libio/iofclose.c: Likewise.
2489         * libio/wfileops.c: Likewise.
2490
2491         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2492         * libio/libioP.h: Change prototypes.
2493
2494 2000-08-03  Greg McGary  <greg@mcgary.org>
2495
2496         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2497         frame pointer early so that we save caller's frame pointer.
2498         * sysdeps/i386/elf/setjmp.S: Likewise.
2499
2500         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2501         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2502
2503         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2504         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2505         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2506
2507 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2508
2509         * iconvdata/big5.c: Updated.
2510         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2511
2512 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2513
2514         * Makeconfig (all-subdirs): Add conform.
2515         * conform/Makefile: Include ../Rules.
2516
2517         * Makefile (README): Add rules to generate here as well.
2518
2519 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2520
2521         * version.h (VERSION): Bump to 2.1.92.
2522
2523         * sysdeps/ia64/Dist: Add _mcount.S.
2524
2525         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2526
2527         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2528
2529         * elf/Makefile (distribute): Add missing modules.
2530
2531         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2532
2533         * posix/regex.c (compile_range): Translate range start and end
2534         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2535
2536         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2537         asm/resource.h.
2538
2539         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2540
2541 2000-08-02  Andreas Jaeger  <aj@suse.de>
2542
2543         * elf/elf.h (EM_S390): Added.
2544         (R_390_*): New relocs for S390.
2545
2546         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2547         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2548         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2549         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2550         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2551         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2552         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2553         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2554         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2555         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2556         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2557         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2558         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2559         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2560         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2561         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2562         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2563         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2564         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2565         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2566         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2567         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2568         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2569         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2570         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2571         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2572         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2573         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2574         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2575         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2576         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2577         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2578         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2579         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2580         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2581         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2582         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2583         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2584         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2585         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2586         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2587         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2588         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2589         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2590         * sysdeps/s390/sysdep.h: New file.
2591         * sysdeps/s390/sys/ucontext.h: New file.
2592         * sysdeps/s390/sub_n.S: New file.
2593         * sysdeps/s390/strncpy.S: New file.
2594         * sysdeps/s390/strcpy.S: New file.
2595         * sysdeps/s390/stackinfo.h: New file.
2596         * sysdeps/s390/setjmp.S: New file.
2597         * sysdeps/s390/s390-mcount.S: New file.
2598         * sysdeps/s390/mul_1.S: New file.
2599         * sysdeps/s390/memusage.h: New file.
2600         * sysdeps/s390/memset.S: New file.
2601         * sysdeps/s390/memcpy.S: New file.
2602         * sysdeps/s390/memchr.S: New file.
2603         * sysdeps/s390/machine-gmon.h: New file.
2604         * sysdeps/s390/ldbl2mpn.c: New file.
2605         * sysdeps/s390/gmp-mparam.h: New file.
2606         * sysdeps/s390/fpu/fpu_control.h: New file.
2607         * sysdeps/s390/fpu/fesetround.c: New file.
2608         * sysdeps/s390/fpu/fegetround.c: New file.
2609         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2610         * sysdeps/s390/fpu/bits/fenv.h: New file.
2611         * sysdeps/s390/ffs.c: New file.
2612         * sysdeps/s390/elf/start.S: New file.
2613         * sysdeps/s390/elf/setjmp.S: New file.
2614         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2615         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2616         * sysdeps/s390/dl-machine.h: New file.
2617         * sysdeps/s390/bzero.S: New file.
2618         * sysdeps/s390/bsd-setjmp.S: New file.
2619         * sysdeps/s390/bsd-_setjmp.S: New file.
2620         * sysdeps/s390/bits/string.h: New file.
2621         * sysdeps/s390/bits/setjmp.h: New file.
2622         * sysdeps/s390/bits/huge_val.h: New file.
2623         * sysdeps/s390/bits/endian.h: New file.
2624         * sysdeps/s390/bits/byteswap.h: New file.
2625         * sysdeps/s390/bcopy.S: New file.
2626         * sysdeps/s390/backtrace.c: New file.
2627         * sysdeps/s390/atomicity.h: New file.
2628         * sysdeps/s390/asm-syntax.h: New file.
2629         * sysdeps/s390/addmul_1.S: New file.
2630         * sysdeps/s390/add_n.S: New file.
2631         * sysdeps/s390/abort-instr.h: New file.
2632         * sysdeps/s390/__longjmp.c: New file.
2633         * sysdeps/s390/Makefile: New file.
2634         * sysdeps/s390/Implies: New file.
2635         * sysdeps/s390/Dist: New file.
2636         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2637
2638 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2639
2640         Remove incompatible IPv6 extension of RPC.
2641         * sunrpc/Makefile: Undo changes.
2642         * sunrpc/rpc_main.c: Likewise.
2643         * sunrpc/rpc/clnt.h: Likewise.
2644         * sunrpc/rpc/svc.h: Likewise.
2645         * sunrpc/bindrsvprt6.c: Removed.
2646         * sunrpc/clnt_tcp6.c: Removed.
2647         * sunrpc/clnt_udp6.c: Removed.
2648         * sunrpc/svc_tcp6.c: Removed.
2649         * sunrpc/svc_udp6.c: Removed.
2650
2651         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2652         dgettext, and dcgettetxt.
2653
2654         * intl/locale.alias: Update japanese aliases.
2655
2656         * sysdeps/ia64/bits/byteswap.h: New file.
2657         Patch by Dan Pop <Dan.Pop@cern.ch>.
2658
2659         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2660         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2661
2662 2000-07-13  H.J. Lu  <hjl@gnu.org>
2663
2664         * posix/regex.c (re_max_failures): Set to 4000.
2665
2666 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2667
2668         * gnulib/Makefile (tests): Add tst-gcc.
2669         * gnulib/tst-gcc.c: New file.
2670
2671         * assert/Makefile (routines): Add __assert.
2672         * assert/Versions: Export __assert for glibc 2.2.
2673         * assert/__assert.c: New file.
2674         * assert/assert.h: Declare __assert.
2675
2676 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2677
2678         * locale/localeinfo.h (_ISCTYPE): New macro.
2679         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2680         LC_CTYPE locale format.
2681         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2682         (ctype_output): Output class_b[nr] right before class_3level[nr].
2683         (allocate_arrays): Fill class_b, similarly to class_3level.
2684
2685 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2686             Joseph S. Myers  <jsm28@cam.ac.uk>
2687
2688         * math/tgmath.h: Make standard compliant.  Don't ask how.
2689
2690 2000-07-04  H.J. Lu  <hjl@gnu.org>
2691
2692         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2693         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2694         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2695
2696 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2697
2698         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2699         (__USE_LARGEFILE): Add an explanation.
2700         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2701         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2702
2703 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2704
2705         * libio/Makefile: Enable exception handling for genops, wgenops,
2706         fileops, and wfileops.
2707
2708 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2709
2710         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2711         acount that elf/rtld's main program might remove some varibales
2712         from the environment if we're trying to be secure.  Move the Hurd
2713         startup data if necessary, or, if we there is no startup data,
2714         make sure the magical convention that ARGV[0] is stored just after
2715         the environment list.
2716
2717 2000-08-01  Philip Blundell  <philb@gnu.org>
2718
2719         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2720         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2721         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2722         oldsetrlimit for GLIBC_2.0.
2723
2724 2000-08-01  Andreas Jaeger  <aj@suse.de>
2725
2726         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2727         (LINE_PARSER): Allow any number of spaces between ip address and
2728         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2729
2730         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2731
2732         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2733         constants in.
2734
2735         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2736         _nss_nisplus_getipnodebyname_r.
2737
2738         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2739         now, getipnodebyname is deprecated.
2740         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2741         Likewise.
2742
2743         * inet/Makefile (routines): Don't build getipnodebyaddr and
2744         friends.
2745
2746         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2747
2748         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2749
2750         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2751
2752         * wctype/Makefile (distribute): Add wchar-lookup.h.
2753
2754         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2755
2756         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2757
2758 2000-08-01  Andreas Schwab  <schwab@suse.de>
2759
2760         * Make-dist (dist): Resolve `..' in file names.
2761
2762 2000-08-01  Andreas Jaeger  <aj@suse.de>
2763
2764         * stdio-common/Makefile (distribute): Remove removed files, add
2765         new files.
2766
2767         * Makefile (distribute): Remove include/db_185.h and db.h.
2768
2769         * include/db_185.h: Remove, it's not needed anymore.
2770         * include/db.h: Likewise.
2771
2772 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2773
2774         * inet/Makefile (tests): Remove tst-ipnode.
2775         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2776         now.
2777
2778 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2779
2780         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
2781         endp statements have already been added.
2782
2783 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
2784
2785         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
2786         <sysdeps/ia64/sysdep.h>.
2787
2788         * sysdeps/ia64/_mcount.S: New file.
2789
2790         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
2791         __gmon_start__.  Fix up extraneous whitespace.
2792
2793 2000-01-12  H.J. Lu  <hjl@gnu.org>
2794
2795         * sysdeps/ia64/elf/initfini.c: New file.
2796
2797 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2798
2799         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
2800         dependency between branch and ar.pfs write.
2801
2802 2000-07-31  H.J. Lu  <hjl@gnu.org>
2803
2804         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
2805         handle the wchar_t array.
2806
2807 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2808
2809         * iconvdata/gb18030.c: Don't map to and from positions in ISO
2810         10646 which are not yet assigned.
2811         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
2812
2813 2000-07-31  Andreas Jaeger  <aj@suse.de>
2814
2815         * inet/Versions: Remove getipnodebyaddr and friends from
2816         GLIBC_2.2.
2817
2818         * resolv/netdb.h: Remove getipnodebyaddr and friends.
2819
2820 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2821
2822         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
2823         ch >= 0x81 && ch2 < 0x40 as invalid.
2824
2825 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2826
2827         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
2828         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
2829
2830 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2831
2832         * iconvdata/johab.c (BODY for TO_LOOP): After calling
2833         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
2834
2835 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2836
2837         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
2838         0xb8.
2839         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
2840
2841 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2842
2843         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
2844
2845 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2846
2847         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
2848         (from_ucs4): Change values of U+00A4 and U+00ED.
2849         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
2850
2851 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2852
2853         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
2854         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
2855
2856 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2857
2858         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
2859         * iconvdata/isiri-3342.h: New file.
2860         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
2861         treat 0x80 as a gap.
2862
2863 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2864
2865         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
2866         (utf8_encode): Use simple shifts instead.  Fix return value.
2867
2868 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2869
2870         * timezone/private.h: Update from tzcode2000e.
2871         * timezone/asia: Update from tzdata2000e.
2872         * timezone/australasia: Likewise.
2873         * timezone/europe: Likewise.
2874         * timezone/northamerica: Likewise.
2875         * timezone/zone-tab: Likewise.
2876
2877 2000-07-30  Ralf Baechle  <ralf@gnu.org>
2878
2879         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
2880         the order of struct sigaltstack members is different.
2881
2882 2000-07-26  Philip Blundell  <philb@gnu.org>
2883
2884         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
2885
2886 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
2887
2888         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
2889         * locale/programs/ld-ctype.c: Adjust for this.
2890
2891         * locale/programs/ld-collate.c: Add more alignment checks.
2892         * locale/string/strcoll.c: Likewise.
2893
2894 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
2895
2896         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
2897         outside USE_IN_LIBIO block.
2898
2899 2000-07-26  Philip Blundell  <philb@gnu.org>
2900
2901         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
2902         (elf_machine_rel): Use it for out-of-range PC24 relocs.
2903
2904 2000-07-28  Philip Blundell  <philb@gnu.org>
2905
2906         * math/test-fpucw.c: Ignore reserved bits in control word.
2907
2908 2000-07-28  Philip Blundell  <philb@gnu.org>
2909
2910         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
2911         (ret): Redefine to PSEUDO_RET.
2912         (PSEUDO): Remove jump to syscall_error.
2913
2914 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2915
2916         * resolv/README: Add some information about using the resolver in
2917         multi-threaded code and with C++.  Spelling fixes.
2918
2919 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2920
2921         * resolv/resolv.h (struct __sockaddr_in): Remove.
2922         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
2923
2924 2000-07-29  Greg McGary  <greg@mcgary.org>
2925
2926         * Rules (test-bp-inputs, make-test-out): New variables.
2927         ($(objpfx)%-bp.out): New rule.
2928         ($(objpfx)%.out): Rewrite in terms of new variables.
2929
2930         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
2931         internal function that uses vtable.
2932         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2933         * libio/vswprintf.c (_IO_vswprintf): Likewise.
2934
2935         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
2936         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
2937         (chunk_align): Likewise.
2938
2939         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
2940         in a way that conforms to decl, and avoids spurious bounds violation.
2941
2942         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
2943         * sysdeps/generic/frame.h: Likewise.
2944         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
2945         around return value.
2946         (__backtrace): Qualify frame-pointer chain and return address
2947         pointers as __unbounded.  Wrap bounds around variable `current'.
2948         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
2949         around return value.
2950         (catch_segfault): Qualify frame-pointer chain and return address
2951         pointers as __unbounded.  Wrap bounds around variable `current'.
2952         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
2953         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
2954         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
2955         __unbounded.
2956         (__backtrace): Qualify frame-pointer chain and return address
2957         pointers as __unbounded.  Wrap bounds around variable `current'.
2958
2959         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
2960         * sysdeps/i386/mul_1.S: Likewise.
2961         * sysdeps/i386/submul_1.S: Likewise.
2962         * sysdeps/i386/i586/addmul_1.S: Likewise.
2963         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
2964         * sysdeps/i386/i586/submul_1.S: Likewise.
2965
2966 2000-07-27  Andreas Jaeger  <aj@suse.de>
2967
2968         * libio/Depend: New file, libio needs localedata for tests.
2969         * posix/Depend: Likewise.
2970
2971 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
2972
2973         * stdio-common/_i18n_itoa.c: Removed.
2974         * stdio-common/_i18n_itoa.h: Removed.
2975         * stdio-common/_i18n_itowa.c: Removed.
2976         * stdio-common/_i18n_itowa.h: Removed.
2977         * stdio-common/_i18n_number.h: New file.
2978         * stdio-common/Depend: New file.
2979         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
2980         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
2981         printing.  Change printing of numbers with locale specific digits to
2982         use new code in _i18n_number.h.
2983         * stdio-common/Makefile (routines): Remove _i18n_itoa and
2984         _i18n_itowa.
2985
2986         * stdio-common/bug13.c: Improve messages.
2987
2988         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
2989         (set_class_defaults): Always search also for Uxxxx names.
2990         Detect insufficient number of outdigits.
2991
2992         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
2993
2994 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2995
2996         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
2997         _NL_CTYPE_MAP_NAMES.
2998         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
2999         * wctype/wcfuncs.c (towlower, towupper): Use them.
3000         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3001         * wctype/wctrans.c (wctrans): Likewise.
3002         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3003
3004 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3005
3006         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3007         Use the optimized version of this function outside glibc as well.
3008
3009 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3010
3011         * locale/indigits.h (indigit_value): Correct.
3012         * locale/indigitswc.h (indigitwc_value): Correct.
3013         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3014         conversion, add GROUP checking for it, fix GROUP number
3015         conversion with strlen(thousands) > 1.
3016         Honour width correctly in the presence of floating
3017         decimal points and thousands separators.
3018         * stdio-common/tst-sscanf.c: New test.
3019         * stdio-common/Makefile: Add it to tests.
3020         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3021         thousands separators and group argument is non-zero.
3022
3023 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3024
3025         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3026         starts at GLIBC_2.2.
3027
3028 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3029
3030         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3031         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3032         _test_and_set.
3033         (headers): Add sys/tas.h.
3034         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3035         GLIBC_2.2 from libc.
3036         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3037         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3038         _test_and_set.
3039
3040 2000-07-28  Andreas Jaeger  <aj@suse.de>
3041
3042         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3043
3044         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3045         ($(objpfx)tst-dladdr.out): new.
3046         (tests): Add tst-dladdr.
3047         ($(objpfx)glrefmain): Use libdl.
3048
3049         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3050         <vs@caldera.de>.
3051
3052 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3053
3054         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3055         ftruncate(64) calls.
3056
3057 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3058
3059         * intl/tst-translit.c: Include string.h to get prototype for
3060         strcmp().
3061
3062 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3063
3064         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3065         name and add weak alias for __fork.
3066
3067         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3068         & pwrite to use __libc_<name> as strong names instead of
3069         __syscall_<name>.
3070
3071         * include/sched.h: Add clone2 prototype.
3072
3073 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3074
3075         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3076         procedure name twice.
3077
3078 2000-07-27  Philip Blundell  <philb@gnu.org>
3079
3080         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3081
3082 2000-07-27  Andreas Jaeger  <aj@suse.de>
3083
3084         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3085         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3086         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3087         Reported by Andi Kleen <ak@suse.de>.
3088
3089         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3090         (do_wait): Test requests with aio_return64.
3091         (do_test): Change callers of do_wait.
3092
3093 2000-07-26  Andreas Jaeger  <aj@suse.de>
3094
3095         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3096         (do_wait): Test requests with aio_return.
3097         (do_test): Change callers of do_wait.
3098
3099 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3100
3101         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3102         from request list.  Don't do the list handling here, call
3103         __aio_remove_request.
3104         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3105         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3106         request might already be processed.  Don't do the list handling
3107         here, call __aio_remove_request.
3108
3109         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3110         LIO_DSYNC.
3111
3112         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3113         are missing.
3114
3115 2000-07-27  Greg McGary  <greg@mcgary.org>
3116
3117         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3118         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3119         in union init.  Pass zero for ignored semnum arg to semctl.
3120         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3121
3122 2000-07-26  Greg McGary  <greg@mcgary.org>
3123
3124         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3125         data structure pointers as __unbounded.
3126         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3127         * sysdeps/generic/bp-semctl.h: New file.
3128         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3129         pointers as __unbounded.  Check bounds of syscall args.
3130         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3131         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3132         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3133         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3134         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3135         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3136         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3137         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3138         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3139         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3140         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3141         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3142         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3143         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3144         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3145         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3146
3147 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3148
3149         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3150         by default.
3151         * locale/C-ctype.c: Likewise.
3152         * wcsmbs/wcsmbsload.c: Likewise.
3153
3154 2000-07-26  Greg McGary  <greg@mcgary.org>
3155
3156         * Makeconfig (+link-bounded, link-libc-bounded,
3157         link-extra-libs-bounded): New variables.
3158         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3159         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3160         * Rules (tests-bp.out): New variable.
3161         (tests): Conditionally add BP tests.
3162         (binaries-bounded): Add variable and associated rule.
3163         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3164         Move conditional stuff after place where condition is defined.
3165
3166         * malloc/malloc.c (bp-checks.h): Add #include.
3167         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3168         (_bin_at): Add unbounded version of bin_at.
3169         (IAV, chunk_alloc): Use unbounded _bin_at.
3170         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3171         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3172         Wrap BOUNDED_N around return value.
3173         (chunk_realloc): Adjust oldsize once.
3174
3175         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3176         (__ubp_memchr): Add correct decl.
3177         (_CHECK_STRING): Use __ubp_memchr.
3178         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3179         New alias for unbounded-pointer __memchr.
3180         * sysdeps/i386/memchr.S: Likewise.
3181         * sysdeps/ia64/memchr.S: Likewise.
3182         * sysdeps/m68k/memchr.S: Likewise.
3183         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3184         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3185         * sysdeps/vax/memchr.s: Likewise.
3186
3187         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3188         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3189         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3190         * sysdeps/i386/i686/strtok.S: Likewise.
3191         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3192         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3193
3194         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3195         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3196
3197         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3198         bounds of copy_result to mount_proc.
3199
3200 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3201
3202         * wctype/wctype.h (__wctrans_l): New declaration.
3203         * wctype/wctrans_l.c: New file.
3204         * wctype/Makefile (routines): Add wctrans_l.
3205
3206 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3207
3208         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3209         Patch by MacGyver <macgyver@tos.net>.
3210
3211 2000-07-26  Andreas Jaeger  <aj@suse.de>
3212
3213         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3214         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3215         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3216
3217         * rt/tst-aio.c (test_file): Fix typo.
3218         * rt/tst-aio64.c (test_file): Likewise.
3219
3220         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3221         * rt/Makefile: Add rules to build and run tst-aio3.
3222
3223         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3224         it's not needed and confuses only.
3225
3226 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3227
3228         * resolv/res_init.c: Add support for nameserver communication with
3229         IPv6.
3230         * resolv/res_send.c: Likewise.
3231         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3232         in nsaddrs field.
3233         Patch by <venaas@nvg.ntnu.no>.
3234
3235 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3236
3237         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3238         (wcwidth_table_get): New function.
3239         (wcwidth_table_add): Call it.
3240         (wctrans_table_get): New function.
3241         (wctrans_table_add): Call it.
3242
3243 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3244
3245         * rt/lio_listio.c (lio_listio): Always disable individual
3246         notification.
3247         * rt/Makefile: Add rules to build and run tst-aio2.
3248         * rt/tst-aio2.c: New file.
3249
3250         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3251         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3252
3253 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3254
3255         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3256         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3257         leading and trailing spaces from host, user and domain name.
3258
3259 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3260
3261         * csu/defs.awk: Add support for need_endp.
3262
3263 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3264
3265         * resolv/resolv.h: Remove __P from res_send_qhook and
3266         res_send_rhook typedefs.
3267
3268 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3269
3270         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3271
3272 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3273
3274         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3275
3276 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3277
3278         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3279         calling thread, set the cancellation flag and return success
3280         instead of EINTR.
3281
3282 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3283
3284         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3285         * libio/tst-widetext.c: New file.
3286         * libio/tst-widetext.input: New file.
3287
3288         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3289
3290         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3291         empty external buffer correctly.
3292
3293 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3294
3295         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3296         __STRING(entry) and not #entry.
3297         (_RTLD_EPILOGUE): Likewise.
3298         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3299
3300 2000-07-25  Andreas Jaeger  <aj@suse.de>
3301
3302         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3303         according to changes in test program, run also with static only
3304         builds.
3305         ($(objpfx)tst-printf.out): Likewise.
3306
3307         * stdio-common/tst-unbputc.sh: Likewise.
3308         * stdio-common/tst-printf.sh: Likewise.
3309
3310 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3311
3312         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3313
3314         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3315         loop.
3316
3317         * libio/fileops.c: Pretty print.
3318
3319 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3320
3321         * wctype/wchar-lookup.h: New file.
3322         * wctype/iswctype.c: Include "wchar-lookup.h".
3323         (__iswctype): Support alternate locale format with 3-level tables.
3324         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3325         * wctype/towctrans.c (__towctrans): Likewise.
3326         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3327         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3328         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3329         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3330         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3331         __iswxdigit, towlower, towupper): Support alternate locale format
3332         with 3-level tables.
3333         * wctype/wcextra.c (iswblank): Likewise.
3334         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3335         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3336         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3337         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3338         format with 3-level tables.
3339         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3340         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3341         format, return a 3-level table pointer.
3342         * wctype/wctype_l.c (__wctype_l): Likewise.
3343         * wctype/wctrans.c (wctrans): Likewise.
3344         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3345         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3346         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3347         (iswctype): Remove macro definition.
3348         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3349         (internal_wcwidth): Support alternate locale format with 3-level
3350         tables.
3351         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3352         New nl_items.
3353         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3354         Define them as being type "word".
3355         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3356         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3357         __ctype32_width): New exported variables.
3358         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3359         alternate locale format. Don't initialize __ctype_names and
3360         __ctype_width in the alternate locale format.
3361         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3362         * locale/programs/localedef.c (oldstyle_tables): New variable.
3363         (OPT_OLDSTYLE): New macro.
3364         (options): Add --old-style option.
3365         (parse_opt): Handle --old-style option.
3366         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3367         map_offset, class_3level, map_3level, width_3level members.
3368         (ctype_output): Support for alternate locale format: Computation of
3369         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3370         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3371         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3372         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3373         now contain both class and map tables.
3374         (struct wctype_table): New type.
3375         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3376         functions.
3377         (struct wcwidth_table): New type.
3378         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3379         functions.
3380         (struct wctrans_table): New type.
3381         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3382         functions.
3383         (allocate_arrays): Support for alternate locale format: Set
3384         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3385         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3386         to the first 256 characters. Compute ctype->map_3level. Set
3387         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3388         instead of ctype->width.
3389
3390 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3391
3392         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3393         string functions.
3394
3395 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3396
3397         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3398         in wide characters, not bytes.
3399         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3400         into file.
3401
3402 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3403
3404         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3405         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3406         LC_MEASUREMENT, LC_IDENTIFICATION.
3407
3408         * locale/xlocale.h (struct __locale_struct): Increase size of
3409         __locales array.
3410         * locale/duplocale.c (__duplocale): Copy newly added categories as
3411         well.
3412         * locale/freelocale.c (__freelocale): Free newly added categories.
3413         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3414         If a base is given, use it, don't simply return it.
3415
3416 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3417
3418         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3419         variables, copied_key and copied_salt, instead of boolean variables.
3420
3421 2000-07-24  Andreas Jaeger  <aj@suse.de>
3422
3423         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3424         check for offset.
3425
3426         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3427         initgroups_function, adopted prototype for change from 2000-07-23.
3428         (initgroups): Follow type change.
3429
3430         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3431         & PAGE_MASK case, reformat.
3432
3433         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3434         from stdin and setup environment.
3435
3436 2000-07-24  Andreas Schwab  <schwab@suse.de>
3437
3438         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3439
3440 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3441
3442         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3443         more.  Patch by scarlet@mit.edu [PR libc/1799].
3444
3445         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3446         [PR libc/1792].
3447
3448         * argp/argp-parse.c (parser_finalize): Reverse order in which
3449         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3450
3451         * grp/initgroups.c (initgroups): Don't limit the possible number
3452         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3453         the setgroups call while the call fails and descrease the number
3454         of groups each round.
3455         The name of the initgroups function in the NSS modules changed.
3456         (compat_call): Adapt for dynamic resizing.
3457         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3458         Implement dynamic resizing.
3459         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3460         Likewise.
3461         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3462         * hesiod/Versions: Change exported interface name.
3463         * nis/Versions: Change exported interface name.
3464
3465 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3466
3467         * locale/iso-639.def: Some errors corrected.
3468         Patch by Keld Simonsen.
3469
3470         * include/limits.h: Update non-gcc portion.
3471         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3472
3473 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3474
3475         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3476         program's data space, reallocate only the space that was just
3477         deallocated to release its backing space.
3478
3479 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3480
3481         * stdio-common/vfprintf.c (process_string_arg): For wide character
3482         version, handle precision also correctly.
3483
3484         * nss/nss_files/files-hosts.c: Correct problem with three or more
3485         entries with the same name.
3486
3487         * nss/nss_files/files-hosts.c: Implement multi handling.
3488         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3489
3490 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3491
3492         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3493         strcasecmp.
3494
3495         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3496         * malloc/Makefile: Likewise.
3497         * malloc/tst-mtrace.sh: Likewise.
3498         * posix/Makefile: Likewise.
3499         * posix/globtest.sh: Likewise.
3500         * posix/wordexp-tst.sh: Likewise.
3501         * string/Makefile: Likewise.
3502
3503 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3504
3505         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3506         size instead of LC_ALL to take into account the new locale
3507         categories.
3508
3509 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3510
3511         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3512         remainders of hash table.
3513         * locale/categories.def: Remove remainders of transliteration
3514         hash table.
3515         * locale/langinfo.h: Likewise.
3516         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3517         transliteration tables.
3518
3519         * locale/gen-translit.pl: New file.
3520         * locale/C-translit.h.in: New file.
3521         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3522         data pointers with data from this file.
3523         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3524         and gen-translit.pl.
3525         Add rule to generate C-translit.h.
3526         * intl/tst-translit.c (main): Update for now performed
3527         transliteration.
3528
3529         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3530         (it's no input error).
3531         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3532         * stdio-common/scanf12.c: Correct expected result for first scanf.
3533
3534         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3535         of multibyte character strings in %s format with precision.
3536
3537 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3538
3539         * locale/programs/ld-collate.c (collate_read): Allow collating
3540         symbols and elements be named in reorder-after instructions.
3541         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3542
3543         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3544         duplication with generated name, not the name of the first
3545         character.
3546         Patch by Yong Li <yong.li@asu.edu>.
3547
3548         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3549         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3550
3551 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3552
3553         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3554         allocations only if a non-main arena cannot be extended.
3555
3556 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3557
3558         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3559         in DF_1_NODEFLIB handling.
3560
3561 2000-07-21  Andreas Jaeger  <aj@suse.de>
3562
3563         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3564         own rule.
3565
3566         * libio/fwide.c: Include <wchar.h> for prototype.
3567
3568 2000-07-21  Greg McGary  <greg@mcgary.org>
3569
3570         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3571         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3572         Define in terms of chunk_at_offset.
3573         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3574         (next_bin, prev_bin): offset by size of real array elements.
3575         (chunk_align): Make `m' a scalar, since that's how it's used.
3576
3577 2000-07-21  Greg McGary  <greg@mcgary.org>
3578
3579         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3580         UNCHECK_BOUNDS.
3581         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3582         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3583         Wrap bounds around argv & envp and each of their string members.
3584         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3585         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3586         symbol in BP_SYM ().  Discard bounds of address arg.
3587         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3588         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3589         Discard bounds on address arg, add bounds to return value.
3590
3591 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3592
3593         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3594         * elf/filter.c: New file.
3595         * elf/filtmod1.c: New file.
3596         * elf/filtmod2.c: New file.
3597
3598         * elf/rtld.c: Define _dl_bind_not variable.
3599         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3600         * elf/dl-support.c: Likewise.
3601         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3602         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3603         _dl_bind_not.
3604         (profile_fixup): Likewise.
3605
3606         * libio/Makefile (routines): Add fwide.
3607         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3608         fwide now.  Internal calls to _IO_fwide must do locking themselves
3609         or don't need locking.
3610         * libio/fwide.c: New file.
3611
3612         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3613
3614         * elf/Makefile: Add no modules for nodelete test.
3615         * elf/nodelmod3.c: New file.
3616         * elf/nodelmod4.c: New file.
3617         * elf/nodelete.c: Also test case where dependency of dlopen() object
3618         is marked nodelete.
3619
3620         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3621         * elf/nodlopen.c: New file.
3622         * elf/nodlopenmod.c: New file.
3623         * include/dlfcn.h: Define __RTLD_DLOPEN.
3624         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3625         and this is a dlopen() call, do not load the binary.
3626         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3627         * dlfcn/dlopenold.c: Likewise.
3628         * configure.in: Add test for -z nodelete option.
3629         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3630
3631 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3632
3633         Make Hesiod NSS module thread-safe.
3634
3635         * hesiod/README.hesiod: Update.
3636
3637         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3638         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3639         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3640         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3641         hesiod-proto.
3642         * hesiod/nss_hesiod/hesiod-init.c: New file.
3643         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3644         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3645         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3646         * hesiod/nss_hesiod/hesiod-service.c
3647         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3648         looking up services by port number.
3649         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3650
3651         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3652         * hesiod/hesiod.h: Likewise.
3653         * hesiod/hesiod_p.h: Likewise.
3654
3655 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3656
3657         Fix problems with `struct __res_state' getting too big.
3658         * resolv/resolv.h (struct __sockaddr_in): New definition.
3659         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3660         the private parts of the structure to save some space.
3661         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3662         (struct sockaddr_in *) in call to sock_eq.
3663         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3664
3665 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3666
3667         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3668         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3669         with nodelete.
3670         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3671         to _dl_map_object.  Return immediately if no object loaded.
3672         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3673         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3674         if it exists into l_flags_1 word.
3675         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3676         it to determine whether loading is wanted or not.
3677         (_dl_map_object): Likewise.
3678         Call _dl_map_object_from_fd with new parameter.
3679         * sysdeps/generic/ldsodefs.h: Update prototype.
3680         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3681         * elf/rtld.c: Likewise.
3682         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3683         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3684         * elf/noload.c: New file.
3685         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3686         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3687         * sysdeps/mips/bits/dlfcn.h: Likewise.
3688         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3689         (tests-nodelete-yes): Define.
3690         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3691         Add rules to build nodelete and modules.
3692         * elf/nodelete.c: New file.
3693         * elf/nodelmod1.c: New file.
3694         * elf/nodelmod2.c: New file.
3695         * configure.in: Add test for -z nodelete option.
3696         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3697
3698         * libio/Makefile (tests): Add tst_wprintf2.
3699         (tst_wprintf2-ARGS): Define.
3700         * libio/tst_wprintf2.c: New file.
3701         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3702
3703         * libio/wfiledoalloc.c: Only allocate external buffer if this
3704         hasn't happened yet.
3705
3706         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3707         something in the buffer.  gconv call can write up to end of the
3708         buffer, not only _IO_write_end.
3709         (_IO_wfile_overflow): Allocate also external buffer.
3710
3711 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3712
3713         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3714         strings with precision in vfwprintf correctly.
3715         * stdio-common/vfprintf.c: Fix completely broken handling of
3716         unbuffered wide character streams.
3717         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3718
3719         * resolv/Makefile (distribute): Add README.
3720
3721         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3722
3723 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3724
3725         Update resolver code to BIND 8.2.3-T5B.
3726
3727         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3728         __res_nclose.
3729         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3730         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3731         __res_search.
3732         * resolv/Banner: BIND-8.2.3-T5B.
3733
3734         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3735         * resolv/herror.c: Likewise.
3736         * resolv/inet_addr.c: Likewise.
3737         * resolv/inet_net_ntop.c: Likewise.
3738         * resolv/inet_net_pton.c: Likewise.
3739         * resolv/inet_neta.c: Likewise.
3740         * resolv/inet_ntop.c: Likewise.
3741         * resolv/nsap_addr.c: Likewise.
3742         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3743         IPv6 addresses (ISC bug #520).
3744
3745         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3746         * resolv/ns_parse.c: Likewise.
3747         * resolv/ns_netint.c: Likewise.
3748         * resolv/ns_samedomain.c: Likewise.
3749         * resolv/ns_ttl.c: Likewise.
3750         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3751         RCS ID in object file.
3752
3753         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3754         * resolv/res_mkquery.c: Likewise.
3755         * resolv/res_query.c: Likewise.
3756         * resolv/res_init.c: Likewise.
3757         (res_setoptions): Mark internal.
3758         * resolv/res_send.c: Likewise.
3759         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3760         by using poll instead.
3761         * resolv/res_comp.c: Likewise.
3762         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3763         weak alias for __dn_expand.
3764         * resolv/res_data.c: Likewise.
3765         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3766         in _res.options.  Avoids a potential security risk by avoiding a
3767         close (0).
3768         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3769         res_mkquery, res_query, res_querydomain adn res_search weak
3770         aliases for __res_mkquery, __res_query, __res_querydomain and
3771         __res_search.
3772         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3773         instead to avoid close(0).
3774         (res_init): Always use the static resolver context.
3775         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3776         alias for __res_init.
3777
3778         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
3779         RES_SET_H_ERRNO and accompanying comment to...
3780         * include/resolv.h: ... here.
3781
3782         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
3783         * resolv/arpa/nameser_compat.h: Likewise.
3784
3785 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3786
3787         * nss/makedb.c (main): Compare result of load_db with
3788         NSS_STATUS_SUCCESS and not 0.
3789         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
3790
3791         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
3792
3793 2000-07-18  Greg McGary  <greg@mcgary.org>
3794
3795         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
3796         (EXTEND_BUFFER): Use it.
3797
3798 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3799
3800         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
3801         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
3802         __builtin_return_address.
3803         * dlfcn/dlopenold.c: Likewise.
3804         * dlfcn/dlsym.c: Likewise.
3805         * dlfcn/dlvsym.c: Likewise.
3806         * elf/dl-profstub.c: Likewise.
3807         * malloc/malloc.c: Likewise.
3808         * sysdeps/generic/machine-gmon.h: Likewise.
3809         Based on a patch by schwidefsky@de.ibm.com.
3810
3811 2000-07-18  Andreas Jaeger  <aj@suse.de>
3812
3813         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
3814         NULL to elf_machine_fixup_plt t argument to silence GCC.
3815
3816         * include/string.h: Add prototype for __memchr.
3817
3818         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
3819
3820         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
3821         instead of memrchr.
3822
3823 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3824
3825         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
3826
3827         * locale/C-ctype.c: Add initializers for gap elements.
3828         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
3829         for gap elements.
3830
3831 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3832
3833         * nscd/nscd.c (print_version): Update copyright year.
3834
3835 2000-07-17  Greg McGary  <greg@mcgary.org>
3836
3837         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
3838         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
3839         signature argnames with angle-brackets for use as word delimiters,
3840         and to induce syntax errors for any args not handled.  Split
3841         multi-echo echoes and comment each stage.
3842         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
3843         * sysdeps/unix/inet/syscalls.list: Likewise.
3844         * sysdeps/unix/mman/syscalls.list: Likewise.
3845         * sysdeps/unix/syscalls.list: Likewise.
3846         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3847         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3848         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3849         * sysdeps/unix/sysv/syscalls.list: Likewise.
3850         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
3851
3852         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
3853         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
3854         qualifiers.  Don't check NULL-terminator of argv & envp.
3855         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
3856         unbounded pointer type in word-size assertion.
3857         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
3858         cases to stifle warnings.
3859
3860         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
3861         _IO_file_attach.
3862         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3863
3864         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
3865         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
3866         ptr as __unbouned.
3867
3868         * Makerules (o-objects): Supplement with $(o-objects$o).
3869         * string/Makefile (o-objects.ob): Add variable to pull
3870         unbounded versions of memcpy, memset and memchr into libc_b.
3871
3872         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
3873         rather than non-existent __ubp_memchr.
3874         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
3875         (_CHECK_STRING, _CHECK_N): New macros.
3876         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
3877         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
3878         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
3879         Add weak alias "memchr".
3880         * sysdeps/generic/memchr.c: Likewise.
3881         * sysdeps/i386/memchr.S: Likewise.
3882         * sysdeps/ia64/memchr.S: Likewise.
3883         * sysdeps/m68k/memchr.S: Likewise.
3884         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3885         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3886         * sysdeps/vax/memchr.s: Likewise.
3887
3888         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
3889
3890         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
3891         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
3892         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
3893         __BOUNDED_POINTERS__.
3894         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
3895         for __BOUNDED_POINTERS__.
3896
3897 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
3898
3899         * iconv/gconv_open.c (__gconv_open): Initialize the __data
3900         field of struct __gconv_trans_data differently.  Don't pass NULL to
3901         trans_init_fct.  Simplify list append operation.
3902
3903 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
3904
3905         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
3906         not only those having tsearch.
3907
3908 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
3909
3910         * locale/langinfo.h: Add placeholder values in enum for removed
3911         LC_CTYPE entries.
3912
3913 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
3914
3915         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
3916         chain if the PHDR check fails.
3917
3918 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
3919
3920         * nss/getent.c (print_hosts): Make sure we always print a space
3921         between numeric addresses and hostnames.
3922
3923 2000-07-17  Wolfram Gloger  <wg@malloc.de>
3924
3925         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
3926         i.e. if n_mmaps_max>0.
3927
3928 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
3929
3930         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
3931         values to remove possible clash with other AI_* constants.
3932         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
3933         hexadecimal constants to stress the fact they're in fact
3934         bit flags.
3935
3936 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
3937
3938         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
3939         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
3940         instead of res_init.
3941
3942 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3943
3944         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
3945         parameters of memset calls to avoid warnings.
3946
3947 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
3948
3949         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
3950         necessary.
3951
3952         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
3953         Patch by Greg McGary <greg@mcgary.org>.
3954
3955         * io/Makefile (tests): Add tst-getcwd.
3956         * io/tst-getcwd.c: New file.
3957
3958         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
3959
3960 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
3961
3962         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
3963         structure.
3964
3965 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
3966
3967         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
3968         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
3969
3970 2000-07-12  H.J. Lu  <hjl@gnu.org>
3971
3972         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
3973         GLIBC_2.2.
3974         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
3975         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
3976         (sysdep-routines): Add clone2.
3977         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
3978
3979 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
3980
3981         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
3982         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
3983
3984 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
3985
3986         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
3987         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
3988         Change type of si_band from "int" to "long".
3989         (si_imm) [USE_GNU]: Define
3990         (si_isr) [USE_GNU]: Ditto.
3991         (ILL_BREAK) [USE_GNU]: Ditto.
3992         (FPE_DECOVF) [USE_GNU]: Ditto.
3993         (FPE_DECDIV) [USE_GNU]: Ditto.
3994         (FPE_DECERR) [USE_GNU]: Ditto.
3995         (FPE_INVASC) [USE_GNU]: Ditto.
3996         (FPE_INVDEC) [USE_GNU]: Ditto.
3997         (TRAP_BRANCH) [USE_GNU]: Ditto.
3998         (TRAP_HWBKPT) [USE_GNU]: Ditto.
3999
4000 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4001
4002         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4003         bits/sigcontext as struct mcontext does not depend on it.
4004
4005         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4006
4007 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4008
4009         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4010
4011 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4012
4013         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4014
4015 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4016
4017         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4018
4019 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4020
4021         * intl/Makefile (test-srcs): Add tst-translit.
4022         (tests): Likewise.
4023         Add rules to build and run tst-translit.
4024         * intl/tst-translit.c: New file.
4025         * intl/tst-translit.sh: New file.
4026         * intl/translit.po: New file.
4027
4028 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4029
4030         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4031         transliteration function did its job, continue, don't stop.
4032
4033         * iconvdata/iso646.c: Little optimizations in body for conversion
4034         from UCS4.
4035
4036 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4037
4038         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4039
4040 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4041
4042         * configure.in: Check for pwd binary.
4043         * config.make.in: Add PWD_P to be subsituted.
4044         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4045
4046 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4047
4048         * iconvdata/Makefile (modules): Add GB18030.
4049         (distribute): Add gb18030.c.
4050         * iconvdata/gconv-modules: Add entries for GB18030 module.
4051         * iconvdata/gb18030.c: New file.
4052         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4053         and Wu Jian.
4054
4055 2000-07-13  Andreas Jaeger  <aj@suse.de>
4056
4057         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4058         patch.
4059
4060         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4061         * inet/getnetgrent.c (free_mem): Likewise.
4062         * misc/mntent.c (free_mem): Likewise.
4063         * nss/getXXbyYY.c (free_mem): Likewise.
4064         * nss/getXXent.c (free_mem): Likewise.
4065         * pwd/fgetpwent.c (free_mem): Likewise.
4066         * shadow/fgetspent.c (free_mem): Likewise.
4067
4068 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4069
4070         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4071         64-bit architecture correctly [PR libc/1794].
4072
4073 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4074
4075         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4076         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4077         report that we are out of memory.
4078         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4079         * elf/dl-libc.c (dlerror_run): Likewise.
4080         * elf/dl-open.c (_dl_open): Likewise.
4081         * elf/rtld.c (dl_main): Likewise.
4082         * elf/dl-error.c: Define _dl_out_of_memory.
4083         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4084         the error string.
4085         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4086         [PR libc/1813].
4087
4088         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4089
4090         * iconv/loop.c: Fix comment.
4091
4092         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4093
4094 2000-07-13  Andreas Jaeger  <aj@suse.de>
4095
4096         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4097         getcwd (NULL, size) with size > 0.
4098         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4099
4100 2000-07-13  Andreas Jaeger  <aj@suse.de>
4101
4102         * posix/Makefile: Remove build rules for libposix.
4103
4104 2000-07-13  Andreas Schwab  <schwab@suse.de>
4105
4106         * sysdeps/generic/glob.c (glob): Fix memory leak.
4107         [SHELL]: Remove reference to undefined variable `files'.
4108         Fixes PR libc/1782.
4109
4110 2000-07-13  Andreas Jaeger  <aj@suse.de>
4111
4112         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4113         functions.
4114
4115         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4116         memory if it was allocated.
4117
4118 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4119
4120         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4121         step.
4122
4123         * iconv/gconv_open.c (__gconv_open): Reapply
4124         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4125
4126                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4127
4128         * iconv/gconv_open.c: Undo last two changes for now.  They break
4129         everything.
4130
4131 2000-07-12  Andreas Jaeger  <aj@suse.de>
4132
4133         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4134         compiler.
4135         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4136         (CFLAGS-dl-cache.c): Likewise.
4137         (CFLAGS-ldconfig.c): Added, passes directory locations.
4138
4139         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4140         locate cache.
4141         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4142         (main): Use configured LIBDIR and SLIBDIR.
4143
4144 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4145
4146         * math/bits/cmathcalls.h (cimag): Add __THROW.
4147         (creal, conj): Likewise.
4148         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4149         by negative value.
4150
4151 2000-07-12  H.J. Lu  <hjl@gnu.org>
4152
4153         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4154         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4155
4156 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4157
4158         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4159         it is wrong.
4160
4161 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4162
4163         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4164
4165 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4166
4167         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4168         __modname.
4169
4170 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4171
4172         * iconv/gconv_open.c (__gconv_open): Initialize
4173         result->__steps[cnt].__data.
4174
4175 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4176
4177         * nss/getent.c (services_keys): Pass port number in network byte
4178         order in call to getservbyport.
4179
4180 2000-07-11  Andreas Jaeger  <aj@suse.de>
4181
4182         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4183         source dir.
4184         * intl/Makefile (do-gettext-test): Likewise.
4185         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4186
4187 2000-07-11  Andreas Schwab  <schwab@suse.de>
4188
4189         * Makeconfig (run-program-prefix): New rule.
4190         (built-program-cmd): Use run-program-prefix.
4191
4192 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4193
4194         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4195         and NOEXPR unconditionally available.
4196
4197 2000-07-12  Greg McGary  <greg@mcgary.org>
4198
4199         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4200         * sysdeps/posix/open64.c: Likewise.
4201         * sysdeps/generic/fegetenv.c: Likewise.
4202         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4203         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4204         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4205         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4206         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4207         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4208
4209 2000-07-11  Greg McGary  <greg@mcgary.org>
4210
4211         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4212         Add extra level of macro expansion.
4213         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4214         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4215         is available at the time `select' prototype is declared.
4216         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4217         Collect non-versioned weak aliases.  Consider only non-versioned
4218         aliases for the user-visible systemcall name.  Do checks inline with
4219         call to primitive system call.
4220         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4221         stand-alone bounds checks to suppress unused value warnings.
4222         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4223
4224 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4225
4226         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4227         file descriptor checking in SUID programs for the Hurd.
4228
4229         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4230         res_hostalias instead of __hostalias for thread-safety.
4231
4232 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4233
4234         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4235         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4236
4237 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4238
4239         * include/features.h: Include ISO C99 features if the compiler used
4240         is an ISO C99 compiler.
4241         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4242
4243 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4244
4245         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4246
4247 2000-07-10  Andreas Jaeger  <aj@suse.de>
4248
4249         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4250         it's overridden by libpthreads.
4251         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4252         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4253         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4254         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4255         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4256
4257         * malloc/Makefile: Run tst-mtrace only with shared libs.
4258
4259         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4260         with shared libs.
4261
4262 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4263
4264         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4265         that gpreg really points to the GOT section of the calling object.
4266         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4267         checking a start address of first one.
4268         Fix typos.
4269         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4270         Likewise.
4271
4272         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4273
4274 2000-07-10  Andreas Jaeger  <aj@suse.de>
4275
4276         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4277         (string_alias->strong_alias).
4278
4279 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4280
4281         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4282
4283 2000-07-07  Greg McGary  <greg@mcgary.org>
4284
4285         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4286         have no names without leading underscores.
4287
4288 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4289
4290         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4291         U007E.
4292
4293         * stdio-common/Makefile (tests): Remove tst-printf here...
4294         (tests-srcs): ...and add it here.
4295         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4296         Add rules to run tst-printf.sh.
4297         * stdio-common/tst-printf.c: Move code around so that there is really
4298         no further output where it's stated.
4299         * stdio-common/tst-printf.sh: New file.
4300
4301 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4302
4303         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4304         (do_write): Renamed from pwrite.
4305         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4306         `struct _IO_cookie_file'.
4307
4308 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4309
4310         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4311         detected.
4312         * malloc/tst-mtrace.sh: Run mtrace script.
4313
4314 2000-07-07  Greg McGary  <greg@mcgary.org>
4315
4316         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4317         Move all three components of a bounded pointer.
4318
4319 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4320
4321         * locale/programs/locale.c (write_locales): Don't simply add all
4322         directories found in the subdir, test whether at least the
4323         LC_CTYPE file is in there.
4324
4325 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4326
4327         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4328         * iconvdata/euc-kr.c: Likewise.
4329
4330         * stdio-common/vfprintf.c (process_string_arg): Check result of
4331         wcrtomb call and bail out if it failed.
4332
4333         * malloc/Makefile (test-srcs): Add tst-mtrace.
4334         (distribute): Add tst-mtrace.sh.
4335         Add rule to run tst-mtrace.sh.
4336         * malloc/tst-mtrace.c: New file.
4337         * malloc/tst-mtrace.sh: New file.
4338
4339         * include/signal.h: Declare __libc_sigaction.
4340         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4341         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4342         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4343         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4344         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4345         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4346         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4347
4348         * configure.in: Fix CFLAGS-memprofstat.c definition after
4349         2000-06-19 change.
4350         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4351
4352 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4353
4354         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4355         instead of NULL to elf_machine_fixup_plt t argument.
4356         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4357         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4358         cast.
4359
4360 2000-07-06  Andreas Jaeger  <aj@suse.de>
4361
4362         * crypt/Makefile (LDLIBS-cert): Removed.
4363         (LDLIBS-md5c-test): Removed.
4364         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4365         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4366
4367 2000-07-06  Andreas Jaeger  <aj@suse.de>
4368
4369         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4370         of the proc system is "proc".
4371
4372         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4373         thread library for static programs.
4374
4375 2000-07-06  Greg McGary  <greg@mcgary.org>
4376
4377         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4378         New macros.
4379         * sysdeps/generic/strcpy.c: Add bounds checks.
4380         * sysdeps/unix/fxstat.c: Likewise.
4381         * sysdeps/unix/xstat.c: Likewise.
4382         * sysdeps/unix/common/lxstat.c: Likewise.
4383         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4384         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4385         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4386         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4387         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4388         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4389         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4390         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4391         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4392         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4393         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4394         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4395         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4396         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4397         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4398         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4399         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4400         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4401         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4402         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4403         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4404         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4405         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4406         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4407         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4408         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4409         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4410         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4411         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4412         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4413         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4414         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4415         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4416         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4417         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4418         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4419         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4420         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4421         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4422         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4423         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4424         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4425         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4426         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4427         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4428         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4429         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4430         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4431         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4432         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4433         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4434         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4435         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4436         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4437         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4438         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4439         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4440         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4441         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4442         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4443         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4444         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4445         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4446         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4447
4448         * string/endian.h (__LONG_LONG_PAIR): New macro.
4449         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4450         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4451         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4452         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4453         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4454         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4455         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4456         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4457         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4458         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4459         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4460         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4461
4462         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4463
4464 2000-07-06  Andreas Jaeger  <aj@suse.de>
4465
4466         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4467         Initialize result.
4468
4469         * math/test-fpucw.c: Include <stdio.h> for printf.
4470
4471 2000-07-05  Greg McGary  <greg@mcgary.org>
4472
4473         * sysdeps/generic/bp-checks.h: New file.
4474         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4475         with list of #include files.
4476         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4477         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4478         Don't generate BP thunk if `V' appears in signature.
4479         Generate thunks with complete bounds checks.
4480         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4481         * sysdeps/unix/inet/syscalls.list: Likewise.
4482         * sysdeps/unix/mman/syscalls.list: Likewise.
4483         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4484         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4485         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4486         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4487
4488 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4489
4490         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4491         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4492         If mount not in the file fall back on /proc.
4493
4494         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4495         string got copied in.
4496         Patch by Solar Designer <solar@false.com>.
4497
4498 2000-07-05  Andreas Jaeger  <aj@suse.de>
4499
4500         * manual/install.texi (Installation): Update information about
4501         add-ons.
4502         (Configuring and compiling): Update for glibc 2.2.
4503
4504 2000-07-04  Andreas Jaeger  <aj@suse.de>
4505
4506         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4507         (_FPU_IEEE): Likewise.
4508
4509         * math/Makefile (tests): Add test-fpucw.
4510
4511         * math/test-fpucw.c (main): New file.
4512
4513 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4514
4515         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4516
4517         * locale/programs/ld-collate.c (collate_output): Also write out the
4518         collation sequence values and the wide character string for the
4519         collation symbol table.
4520
4521         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4522         * posix/fnmatch_loop.c: Implement collating symbol handling.
4523         * posix/tst-fnmatch.input: Add more tests, especially for collating
4524         symbol handling.
4525
4526         * posix/regex.c: Fix comment.
4527
4528 2000-07-05  Andreas Jaeger  <aj@suse.de>
4529
4530         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4531         (_FPU_GETCW): Remove extra colon.
4532         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4533
4534         * posix/fnmatch_loop.c (FCT): Only declare len if
4535         !WIDE_CHAR_VERSION to silence GCC.
4536
4537         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4538         prototype.
4539         * sysdeps/generic/strchrnul.c: Likewise.
4540         * sysdeps/generic/strlen.c: Likewise.
4541         * sysdeps/generic/strchr.c: Likewise.
4542         * sysdeps/generic/memchr.c: Likewise.
4543
4544 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4545
4546         * posix/fnmatch_loop.c: Implement equivalence class handling.
4547         * posix/tst-fnmatch.input: Add tests for equivalence class
4548         handling.
4549
4550         * posix/fnmatch_loop.c: Improve performance for single-byte
4551         character sets by not using btowc.
4552
4553         * posix/tst-fnmatch.input: Add tests for locale dependent
4554         behaviour.
4555         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4556
4557         * posix/tst-fnmatch.input: Add more test cases.
4558
4559         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4560         are not aligned to alignof(md5_uint32) do it before calling
4561         __md5_process_bytes.
4562         * crypt/md5.c: Make sure buffers are aligned.
4563         * crypt/md5.h: Likewise.
4564         Reported by Solar Designer <solar@false.com>.
4565
4566         * crypt/Makefile: Add dependencies for test programs.
4567
4568         * Rules: Define LC_ALL=C in environments of all programs we run.
4569
4570         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4571
4572 2000-07-03  H.J. Lu  <hjl@gnu.org>
4573
4574         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4575         is 2 + elem + offset, not 2 + elem + offset + 2.
4576
4577 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4578
4579         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4580         suite.
4581         * posix/Makefile (tests): Add tst-fnmatch.
4582         (tst-fnmatch-ENV): Define.
4583         * posix/tst-fnmatch.c: New file.
4584         * posix/tst-fnmatch.sh: New file.
4585
4586 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4587
4588         * locale/programs/charmap.c (charmap_read): Prepend
4589         the condition filename == NULL.
4590
4591 2000-07-03  Greg McGary  <greg@mcgary.org>
4592
4593         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4594
4595         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4596         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4597
4598         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4599         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4600         (FILEBUF_LITERAL): Add cast for CHAIN init.
4601         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4602         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4603         Revert type of `fp' to _IO_FILE*.
4604         (_IO_iter_file): Remove cast.
4605         (_IO_iter_next): Elide intermediate member reference.
4606
4607         * sysdeps/powerpc/strchr.S:  Check bounds.
4608         Wrap extern symbols in BP_SYM ().
4609
4610 2000-07-03  Andreas Jaeger  <aj@suse.de>
4611
4612         * dlfcn/Makefile (generated): New.
4613
4614 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4615
4616         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4617         (__uflow): Likewise.
4618         (__underflow): Likewise.
4619         * libio/wgenops.c (__wunderflow): Likewise.
4620         * stdio-common/tst-unbputc.c: New file.
4621         * stdio-common/tst-unbputc.sh: New file.
4622         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4623
4624         * po/en_GB.po: New file.
4625         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4626
4627 2000-07-01  Andreas Jaeger  <aj@suse.de>
4628
4629         * intl/Makefile (generated-dirs): New.
4630
4631         * elf/Makefile (generated): trusted-dirs.h is always generated,
4632         move out of build-shared condition.
4633         (generated): Merge the two entries for build-shared.
4634
4635 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4636
4637         * debug/Makefile (distribute): Add xtrace.sh.
4638
4639 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4640
4641         * version.h (VERSION): Bump to 2.1.91.
4642
4643         * configure.in: Update warning comment.  glibc should not be
4644         broken anymore.
4645
4646         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4647         ioperm.c, sys/procfs.h, and sys/io.h.
4648
4649         * sysdeps/powerpc/Dist: Add bp-asm.h.
4650
4651         * assert/Depend: Add localedata.
4652         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4653         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4654
4655         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4656         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4657         relocation address to prevent unaligned trap.
4658         Suggested by Richard Henderson <rth@cygnus.com>.
4659
4660 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4661
4662         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4663         if redirecting and either redirection is done using defines or
4664         not optimizing.
4665
4666 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4667
4668         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4669         generated expressions.
4670         Patch by Darren McClelland <dmcclell@zetec.com>.
4671
4672         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4673         since zic uses setlocale and gettext but we cannot make it use the
4674         new locale data since zic calls a shell which might not use the
4675         new libc.
4676
4677         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4678         handling the internation currency symbol.  POSIX says that the
4679         fourth character is used to separate the currency symbol from the
4680         value.  Therefore it does not have to be printed.  But we cannot
4681         remove the space if the currency symbol is printed before the
4682         number since this is what many locales expect.
4683
4684         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4685         whether this information is available.
4686
4687         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4688         buffers in case the translation is too large.  Remember allocated
4689         memory blocks in a list.
4690         (free_mem): Free memory for translations.
4691
4692         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4693
4694         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4695         information is available set the string length to zero.
4696
4697         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4698
4699 2000-06-30  Greg McGary  <greg@mcgary.org>
4700
4701         * sysdeps/powerpc/bp-asm.h: New file.
4702         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4703         Wrap extern symbols in BP_SYM ().
4704         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4705         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4706         * sysdeps/powerpc/setjmp.S: Likewise.
4707         * sysdeps/powerpc/add_n.S: Likewise.
4708         * sysdeps/powerpc/addmul_1.S: Likewise.
4709         * sysdeps/powerpc/lshift.S: Likewise.
4710         * sysdeps/powerpc/rshift.S: Likewise.
4711         * sysdeps/powerpc/mul_1.S: Likewise.
4712         * sysdeps/powerpc/sub_n.S: Likewise.
4713         * sysdeps/powerpc/submul_1.S: Likewise.
4714         * sysdeps/powerpc/strlen.S: Likewise.
4715         * sysdeps/powerpc/memset.S: Likewise.
4716         * sysdeps/powerpc/stpcpy.S: Likewise.
4717         * sysdeps/powerpc/strcmp.S: Likewise.
4718         * sysdeps/powerpc/strcpy.S: Likewise.
4719         * sysdeps/powerpc/elf/bzero.S: Likewise.
4720
4721         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4722         Line up operands column with tabs.
4723
4724 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4725
4726         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4727
4728         * sysdeps/ia64/htonl.S: New file.
4729         * sysdeps/ia64/htons.S: New file.
4730         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4731         floating point registers.
4732         Patches by Dan Pop <Dan.Pop@cern.ch>.
4733
4734 2000-06-30  Andreas Jaeger  <aj@suse.de>
4735
4736         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4737         shared libraries.
4738
4739         * io/Makefile (CFLAGS-test-lfs.c): New.
4740         (tests): Add test-lfs.
4741
4742         * io/test-lfs.c: New file.
4743
4744 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4745
4746         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4747         instruction.
4748
4749 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4750
4751         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4752
4753 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4754
4755         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4756         alias to the fstatfs call.
4757
4758         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4759         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4760
4761         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4762         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4763
4764         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4765         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4766         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4767         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4768
4769         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4770         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4771
4772         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4773         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4774
4775         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4776         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4777
4778         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
4779
4780 2000-06-29  Andreas Jaeger  <aj@suse.de>
4781
4782         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
4783         with syslog.
4784         (print_err_message): Likewise.
4785         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
4786
4787 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4788
4789         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
4790         used as words is properly aligned.
4791
4792         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
4793         data files.
4794
4795 2000-06-29  Greg McGary  <greg@mcgary.org>
4796
4797         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
4798         * sysdeps/unix/make-syscalls.sh: Handle signatures of
4799         length 7..9, just in case...
4800         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
4801
4802         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
4803         (POP_ERRNO_LOCATION_RETURN): Fold insns.
4804         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
4805         (PUSH_SIGNAL_MASK): New macro.
4806         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
4807         LEAVE is unnecessary.  Check bounds of jmp_buf.
4808         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
4809         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
4810         immediately before tail-call.
4811         * sysdeps/i386/setjmp.S: Likewise.
4812         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4813         * sysdeps/i386/bsd-setjmp.S: Likewise.
4814
4815 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
4816
4817         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
4818         versioned_symbol.
4819         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
4820         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
4821         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
4822         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
4823         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
4824         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
4825         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
4826         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
4827
4828 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4829
4830         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
4831         we later need to calling free().
4832         Patch by Matt Wilson <msw@redhat.com>.
4833
4834         * stdio-common/tst-printf.c: Add test for above problem.
4835
4836 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
4837
4838         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
4839         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
4840
4841 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4842
4843         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
4844         prototype for abs().
4845         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
4846
4847 2000-06-23  Andreas Jaeger  <aj@suse.de>
4848
4849         * config.h.in: Don't use regparm with bounded pointers.
4850
4851 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4852
4853         * stdlib/grouping.h: Correctly handle multibyte thousands
4854         separator and decimal point.
4855         * stdlib/stdtod.c: Likewise.
4856         * sysdeps/generic/strtol.c: Likewise.
4857
4858         * locale/categories.def: Add entries for wide character decimal point
4859         and thousands separator in numeric and monetary category.
4860
4861 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4862
4863         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
4864         second definition and initialization of decimal.
4865
4866 2000-06-28  Greg McGary  <greg@mcgary.org>
4867
4868         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
4869         out.
4870         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
4871         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
4872         in.
4873         (_IO_JUMPS): Don't cast THIS--expect arg to be a
4874         (struct _IO_FILE_plus *).
4875         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
4876         THIS, since _IO_JUMPS no longer does it implicitly.
4877         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
4878         arg type as (struct _IO_FILE_plus *).
4879         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
4880         arg as (_IO_strfile *).
4881         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
4882         Declare 1st arg as (_IO_strfile *).
4883         * libio/fileops.c (_IO_new_file_init): Declare
4884         arg type as (struct _IO_FILE_plus *).
4885         * libio/oldfileops.c (_IO_old_file_init): Likewise.
4886         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
4887         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4888         Declare iteration pointer as (struct _IO_FILE_plus *).
4889         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
4890                 (struct _IO_FILE_plus *).
4891         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
4892         * libio/oldstdfiles.c (_IO_list_all): Likewise.
4893         (_IO_check_libio): Set user-visible handles to
4894         (struct _IO_FILE_plus *).
4895         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
4896         to (struct _IO_FILE_plus *).
4897
4898         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
4899         whose high bound includes vtable to all functions that will use
4900         vtable.  For streambufs, pass pointer whose bounds include struct
4901         _IO_strfile.
4902         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
4903         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4904         * libio/iofopen.c (_IO_new_fopen): Likewise.
4905         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
4906         * libio/iofopen64.c (_IO_fopen64): Likewise.
4907         * libio/iopopen.c (_IO_new_popen): Likewise.
4908         * libio/oldiopopen.c (_IO_old_popen): Likewise.
4909         * libio/memstream.c (open_memstream): Likewise.
4910         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
4911         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
4912         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4913         * libio/iofopncook.c (_IO_cookie_init): Likewise.
4914         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
4915         * libio/vasprintf.c (_IO_vasprintf): Likewise.
4916         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4917         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4918         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4919         * stdlib/strfmon.c (__strfmon_l): Likewise.
4920         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4921         (vfprintf): Qualify computed-goto targets as unbounded.
4922
4923 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4924
4925         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
4926         thousands separator correctly.
4927
4928         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
4929         * stdio-common/vfwscanf.c: Likewise.
4930
4931 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
4932
4933         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
4934         count into signatures for most calls.
4935
4936 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4937
4938         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
4939         the generic parser now.
4940
4941 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4942
4943         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
4944         table entries are 32 bit on the ia64 (as specified by the ABI),
4945         not 64 bit as on the Alpha.
4946
4947         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
4948         change of objects to use 32 bit hash table indices (see above).
4949
4950 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4951
4952         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
4953         prototype for abs().
4954
4955 2000-06-28  Wolfram Gloger  <wg@malloc.de>
4956
4957         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
4958         fails, try mmap_chunk() as a last resort even though n_mmaps_max
4959         may have been reached.
4960
4961 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4962
4963         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
4964         symbols in multi-character weights correctly.
4965
4966         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
4967         depending on whether the input string is empty or not.
4968
4969         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
4970         given state and not avoiding this by modifying a local object.
4971         * wcsmbs/wcrtomb.c: Likewise.
4972
4973         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
4974         object since some incomplete characters might be in there.
4975
4976         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
4977         sequences with first byte 0x8e correctly.
4978
4979         * iconvdata/jis0208.h: Remove redundant test.
4980
4981 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
4982
4983         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
4984         Add it where it is needed now.
4985
4986         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
4987         the input charset into account when generating the hash table.
4988         (allocate_arrays): Correct setting default width.  Not all empty slots
4989         in the table are filled, only those not covert explicitly by the
4990         locale description and in the charset.
4991
4992         * wctype/towctrans.c (__towctrans): Be graceful and accept error
4993         return values from the wctrans function.
4994
4995         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
4996         wide character version.
4997         For %C handling, test correct pointer variable for NULL.
4998
4999         * wcsmbs/wctob.c: Handle WEOF special.
5000
5001         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5002
5003         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5004         always-true test to avoid warning.
5005
5006 2000-06-27  Greg McGary  <greg@mcgary.org>
5007
5008         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5009         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5010         (symbol_version, default_symbol_version): Factor redundant
5011         definitions out of conditional.
5012
5013 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5014
5015         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5016         not obstack_blank.
5017
5018 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5019
5020         * include/libc-symbols.h (symbol_version): Add extra level of
5021         macro expansion.
5022         (default_symbol_version): Likewise.
5023
5024 2000-06-26  Greg McGary  <greg@mcgary.org>
5025
5026         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5027         for BP return value & push implicit struct-return pointer to
5028         __errno_location.
5029         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5030         (SYSCALL_ERROR_HANDLER): Likewise.
5031         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5032         (SYSCALL_ERROR_HANDLER): Likewise.
5033
5034         * Makeconfig: Add missing comment.
5035         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5036         BP-flavored startup object.
5037         ($(objpfx)b$(start-installed-name)): New rule.
5038         * include/libc-symbols.h (symbol_set_declare): Change type
5039         of `__start_##set' and `__stop_##set' to pointer-to-function.
5040         (symbol_set_declare): Change type of `set' to array of
5041         pointer-to-function.
5042         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5043         pointer-to-function.
5044
5045         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5046
5047         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5048         Remove clock_* and timer_* entries.
5049         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5050         arg-count with signatures.
5051
5052         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5053         Check bounds of arguments.
5054         * sysdeps/i386/addmul_1.S: Likewise.
5055         * sysdeps/i386/lshift.S: Likewise.
5056         * sysdeps/i386/mul_1.S: Likewise.
5057         * sysdeps/i386/rshift.S: Likewise.
5058         * sysdeps/i386/sub_n.S: Likewise.
5059         * sysdeps/i386/submul_1.S: Likewise.
5060         * sysdeps/i386/i586/add_n.S: Likewise.
5061         * sysdeps/i386/i586/addmul_1.S: Likewise.
5062         * sysdeps/i386/i586/lshift.S: Likewise.
5063         * sysdeps/i386/i586/rshift.S: Likewise.
5064         * sysdeps/i386/i586/sub_n.S: Likewise.
5065         * sysdeps/i386/i686/add_n.S: Likewise.
5066
5067         * sysdeps/i386/memchr.S: Likewise.
5068         * sysdeps/i386/memcmp.S: Likewise.
5069         * sysdeps/i386/rawmemchr.S: Likewise.
5070         * sysdeps/i386/i586/bzero.S: Likewise.
5071         * sysdeps/i386/i586/memcpy.S: Likewise.
5072         * sysdeps/i386/i586/mempcpy.S: Likewise.
5073         * sysdeps/i386/i586/memset.S: Likewise.
5074         * sysdeps/i386/i686/bzero.S: Likewise.
5075         * sysdeps/i386/i686/memcpy.S: Likewise.
5076         * sysdeps/i386/i686/mempcpy.S: Likewise.
5077         * sysdeps/i386/i686/memset.S: Likewise.
5078
5079         * sysdeps/i386/stpcpy.S: Likewise.
5080         * sysdeps/i386/stpncpy.S: Likewise.
5081         * sysdeps/i386/strchr.S: Likewise.
5082         * sysdeps/i386/strchrnul.S: Likewise.
5083         * sysdeps/i386/strcspn.S: Likewise.
5084         * sysdeps/i386/strpbrk.S: Likewise.
5085         * sysdeps/i386/strrchr.S: Likewise.
5086         * sysdeps/i386/strspn.S: Likewise.
5087         * sysdeps/i386/strtok.S: Likewise.
5088         * sysdeps/i386/strtok_r.S: Likewise.
5089         * sysdeps/i386/i486/strcat.S: Likewise.
5090         * sysdeps/i386/i486/strlen.S: Likewise.
5091         * sysdeps/i386/i586/strchr.S: Likewise.
5092         * sysdeps/i386/i586/strcpy.S: Likewise.
5093         * sysdeps/i386/i586/strlen.S: Likewise.
5094         * sysdeps/i386/i686/strcmp.S: Likewise.
5095         * sysdeps/i386/i686/strtok.S: Likewise.
5096         * sysdeps/i386/i686/strtok_r.S: Likewise.
5097
5098         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5099         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5100         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5101         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5102         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5103
5104         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5105         * sysdeps/i386/mul_1.S: Likewise.
5106         * sysdeps/i386/submul_1.S: Likewise.
5107         * sysdeps/i386/i586/add_n.S: Likewise.
5108         * sysdeps/i386/i586/addmul_1.S: Likewise.
5109         * sysdeps/i386/i586/lshift.S: Likewise.
5110         * sysdeps/i386/i586/mul_1.S: Likewise.
5111         * sysdeps/i386/i586/rshift.S: Likewise.
5112         * sysdeps/i386/i586/sub_n.S: Likewise.
5113         * sysdeps/i386/i586/submul_1.S: Likewise.
5114
5115 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5116
5117         * rt/Makefile (librt-routines): Add clock_nanosleep.
5118         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5119         * sysdeps/generic/clock_nanosleep.c: New file.
5120         * sysdeps/unix/clock_nanosleep.c: New file.
5121         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5122         * time/time.h: Declare clock_nanosleep.
5123
5124 2000-06-26  Greg McGary  <greg@mcgary.org>
5125
5126         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5127         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5128         (ALIGN): Cleanup surrounding conditionals.
5129
5130         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5131         Call ENTER/LEAVE macros.
5132         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5133         * sysdeps/i386/submul_1.S: Likewise.
5134
5135         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5136         syntax.  Define & use symbolic argument stack offsets.  Call
5137         ENTER/LEAVE macros.
5138         * sysdeps/i386/i586/mul_1.S: Likewise.
5139         * sysdeps/i386/i586/submul_1.S: Likewise.
5140
5141 2000-06-25  Greg McGary  <greg@mcgary.org>
5142
5143         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5144         not as bcopy.
5145
5146 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5147
5148         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5149         * iconvdata/gen-8bit-gap.sh: Likewise.
5150         * iconvdata/gen-8bit.sh: Likewise.
5151
5152         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5153
5154         * locale/programs/ld-collate.c (collate_read): Don't actually read
5155         the copy locale if we are ignoring the content.
5156
5157         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5158         unknown character.
5159
5160         * locale/programs/ld-collate.c: Correct handling of different
5161         collation sections.
5162         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5163         as extra parameter from which to copy category information.
5164         Change all callers.
5165         (load_locale): Likewise.
5166         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5167         and load_locale.
5168         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5169         * locale/programs/locfile.h: Likewise.
5170         * locale/programs/locfile-kw.gperf: Add entry for script.
5171         * locale/programs/locfile-token.h: Add tok_script.
5172
5173         * locale/programs/locale.c: Update copyright year.
5174         * locale/programs/localedef.c: Likewise.
5175
5176 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5177
5178         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5179         Jens Moeller <jens.moeller@waii.com>.
5180
5181 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5182
5183         * locale/programs/ld-name.c (name_finish): Add missing format
5184         specifier to test for name_fmt.
5185
5186         * locale/programs/ld-address.c (iso639): Correct length of string
5187         elements.
5188         (iso3166): Likewise.
5189
5190         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5191
5192         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5193         Define.
5194
5195         * elf/elf.h (NT_PRFPXREG): Define.
5196
5197 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5198
5199         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5200         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5201
5202 2000-06-23  Andreas Schwab  <schwab@suse.de>
5203
5204         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5205         with signatures.
5206
5207 2000-06-23  Andreas Jaeger  <aj@suse.de>
5208
5209         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5210
5211         * io/test-stat.c: Add copyright header, mention Maciej.
5212
5213         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5214         SYS_mincore, SYS_madvise): Added.
5215
5216         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5217         execve.
5218
5219 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5220
5221         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5222         (CFLAGS-tst_putwc.c): New definition.
5223         * libio/tst_getwc.c: New file.
5224         * libio/tst_getwc.input: New file.
5225         * libio/tst_putwc.c: New file.
5226
5227         * include/string.h: Add prototype for __strdup.
5228
5229 2000-06-22  Greg McGary  <greg@mcgary.org>
5230
5231         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5232         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5233         Fix signatures.
5234
5235 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5236
5237         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5238
5239 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5240
5241         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5242
5243 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5244
5245         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5246         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5247
5248 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5249
5250         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5251         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5252         and __S_TYPEISSHM.
5253         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5254         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5255         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5256         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5257         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5258         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5259         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5260         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5261         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5262         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5263         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5264         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5265         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5266         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5267         S_TYPEISSHM.
5268
5269 2000-06-22  Andreas Jaeger  <aj@suse.de>
5270
5271         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5272         with signatures.
5273
5274         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5275
5276         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5277
5278 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5279
5280         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5281         ahead.
5282
5283 2000-06-21  Greg McGary  <greg@mcgary.org>
5284
5285         * Makerules (elide-routines.*, elide-bp-thunks):
5286         Define unconditionally.
5287
5288 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5289
5290         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5291
5292 2000-06-21  Andreas Jaeger  <aj@suse.de>
5293
5294         * io/Makefile (tests): Add test-stat.
5295         (CFLAGS-test-stat.c): New.
5296
5297         * io/test-stat.c: New file from Maciej W. Rozycki
5298         <macro@ds2.pg.gda.pl>.
5299
5300 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5301
5302         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5303         in __rlimit_resource to make them match the kernel order.
5304         rlim_t is always 64 bit, use __rlim64_t to declare it
5305         unconditionally.
5306
5307 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5308
5309         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5310         RLIM_INFINITY before defining it to avoid clash with kernel header
5311
5312 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5313
5314         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5315
5316 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5317
5318         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5319
5320 2000-06-21  Andreas Jaeger  <aj@suse.de>
5321
5322         * stdio-common/temptest.c: Include <stdlib.h>.
5323         * stdio-common/tst-fileno.c: Likewise.
5324         * stdio-common/scanf4.c: Likewise.
5325         * stdio-common/scanf5.c: Likewise.
5326         * time/clocktest.c: Likewise.
5327         * posix/test-vfork.c: Likewise.
5328         * posix/globtest.c: Likewise.
5329         * io/test-utime.c: Likewise.
5330         * wctype/test_wcfuncs.c: Likewise.
5331         * crypt/cert.c: Likewise.
5332
5333         * stdio-common/tst-printfsz.c: Include <string.h>.
5334         * libio/tst_swscanf.c: Likewise.
5335         * libio/tst_wscanf.c: Likewise.
5336         * posix/runtests.c: Likewise.
5337         * posix/tst-getaddrinfo.c: Likewise.
5338         * posix/wordexp-test.c: Likewise.
5339         * misc/tst-efgcvt.c: Likewise.
5340
5341         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5342         * nss/test-netdb.c: Likewise.
5343
5344         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5345         supported kernel for MIPS.
5346
5347         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5348         * rt/aio_suspend.c: Likewise.
5349
5350 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5351
5352         * math/libm-test.inc: Include <string.h>.
5353
5354 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5355
5356         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5357
5358 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5359
5360         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5361         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5362
5363 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5364
5365         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5366
5367 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5368
5369         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5370
5371 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5372
5373         * locale/programs/ld-collate.c (insert_value): Now take string and
5374         length instead of struct token* parameter.  Adjust use of token.
5375         (handle_ellipsis): Likewise.
5376         (collate_read): Allow <Uxxxx> names and transform them into names
5377         to be passed to insert_value and handle_ellipsis.
5378
5379         * locale/programs/ld-ctype.c (uninames): New array with names of
5380         digits in <Uxxxxxxxx> format.
5381         (ctype_finish): Correct search for space character value.  Likewise
5382         for default outdigits values.
5383
5384 2000-06-20  Greg McGary  <greg@mcgary.org>
5385
5386         * Makerules (objects): Add BP thunks.
5387
5388 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5389
5390         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5391         in width definitions.
5392
5393 2000-06-20  Andreas Jaeger  <aj@suse.de>
5394
5395         * sysdeps/mips/fpu/libm-test-ulps: New file.
5396
5397         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5398         first.
5399
5400         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5401
5402         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5403
5404 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5405
5406         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5407         change in gconv_builtin.h.
5408
5409         * malloc/Makefile: Change all references to memprof into memusage.
5410         * malloc/memprof.c: Rename to...
5411         * malloc/memusage.c: ...this.  New file.
5412         * malloc/memprof.sh: Rename to...
5413         * malloc/memusage.sh: ...this.  New file.
5414         * malloc/memprofstat.c: Rename to...
5415         * malloc/memusagestat.c: ...this.  New file.
5416         * sysdeps/alpha/memprof.h: Rename to..
5417         * sysdeps/alpha/memusage.h: ...this.  New file.
5418         * sysdeps/arm/memprof.h: Rename to..
5419         * sysdeps/arm/memusage.h: ...this.  New file.
5420         * sysdeps/generic/memprof.h: Rename to..
5421         * sysdeps/generic/memusage.h: ...this.  New file.
5422         * sysdeps/i386/memprof.h: Rename to..
5423         * sysdeps/i386/memusage.h: ...this.  New file.
5424         * sysdeps/ia64/memprof.h: Rename to..
5425         * sysdeps/ia64/memusage.h: ...this.  New file.
5426         * sysdeps/m68k/memprof.h: Rename to..
5427         * sysdeps/m68k/memusage.h: ...this.  New file.
5428         * sysdeps/mips/memprof.h: Rename to..
5429         * sysdeps/mips/memusage.h: ...this.  New file.
5430         * sysdeps/powerpc/memprof.h: Rename to..
5431         * sysdeps/powerpc/memusage.h: ...this.  New file.
5432         * sysdeps/sparc/memprof.h: Rename to..
5433         * sysdeps/sparc/memusage.h: ...this.  New file.
5434         * sysdeps/sh/memprof.h: Rename to..
5435         * sysdeps/sh/memusage.h: ...this.  New file.
5436
5437         * elf/sprof.c (print_version): Update year.
5438
5439         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5440         table entry values.  Use D_PTR.
5441         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5442         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5443
5444 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5445
5446         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5447         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5448         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5449         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5450
5451 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5452
5453         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5454
5455 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5456
5457         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5458         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5459         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5460
5461         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5462
5463         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5464         kernel change.
5465
5466         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5467         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5468         structure.
5469         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5470         implementation.
5471
5472 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5473
5474         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5475
5476 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5477
5478         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5479
5480 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5481
5482         * iconv/gconv_int.h (strict gconv_module): Remove all members
5483         associated with regular expressions.  Use a simple string as the
5484         from name.
5485         * iconv/gconv_db.c: Remove code handling regular expressions.
5486         * iconv/gconv_conf.c: Likewise.
5487         * iconv/iconv_prog.c: Likewise.
5488         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5489
5490         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5491         General namespace cleanup.
5492         (struct __gconv_trans_data): Add next field.
5493         (struct __gconv_step_data): Make __trans a pointer.
5494         * iconv/gconv_conf.c: Split out code to find gconv directories from
5495         __gconv_read_conf in new functions.
5496         * iconv/gconv_int.h: Define new data structure and declare new
5497         functions for handling of gconv directory list.
5498         * iconv/gconv_open.c: Allow more than one error handling step being
5499         used.  Call function to load error handling module if it is none
5500         of the builtin transformations.
5501         * iconv/gconv_close.c: Add code to free transliteration data.
5502         * iconv/gconv_trans.c: Add functions to load and unload modules
5503         implementing transliteration etc.
5504         * iconv/skeleton.c: Call all context functions now that more than
5505         one module is allowed.
5506         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5507         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5508         where the full error handling using transliteration is needed.
5509         * iconvdata/8bit-gap.c: Likewise.
5510         * iconvdata/8bit-generic.c: Likewise.
5511         * iconvdata/ansi_x3.110.c: Likewise.
5512         * iconvdata/big5.c: Likewise.
5513         * iconvdata/big5hkscs.c: Likewise.
5514         * iconvdata/euc-cn.c: Likewise.
5515         * iconvdata/euc-jp.c: Likewise.
5516         * iconvdata/euc-kr.c: Likewise.
5517         * iconvdata/euc-tw.c: Likewise.
5518         * iconvdata/gbgbk.c: Likewise.
5519         * iconvdata/gbk.c: Likewise.
5520         * iconvdata/iso-2022-cn.c: Likewise.
5521         * iconvdata/iso-2022-jp.c: Likewise.
5522         * iconvdata/iso-2022-kr.c: Likewise.
5523         * iconvdata/iso646.c: Likewise.
5524         * iconvdata/iso8859-1.c: Likewise.
5525         * iconvdata/iso_6937-2.c: Likewise.
5526         * iconvdata/iso_6937.c: Likewise.
5527         * iconvdata/johab.c: Likewise.
5528         * iconvdata/sjis.c: Likewise.
5529         * iconvdata/t.61.c: Likewise.
5530         * iconvdata/uhc.c: Likewise.
5531         * iconvdata/unicode.c: Likewise.
5532         * iconvdata/utf-16.c: Likewise.
5533         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5534         structure correctly after last change.
5535         * wcsmbs/btowc.c: Likewise.
5536         * wcsmbs/mbrtowc.c: Likewise.
5537         * wcsmbs/mbsnrtowcs.c: Likewise.
5538         * wcsmbs/mbsrtowcs.c: Likewise.
5539         * wcsmbs/wcrtomb.c: Likewise.
5540         * wcsmbs/wcsnrtombs.c: Likewise.
5541         * wcsmbs/wcsrtombs.c: Likewise.
5542         * wcsmbs/wctob.c: Likewise.
5543
5544         * localedata/Makefile: Set -Wno-format for some files since gcc does
5545         not know all the format specifiers.
5546
5547 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5548
5549         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5550         unneeded code.
5551         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5552
5553 2000-06-18  Andreas Jaeger  <aj@suse.de>
5554
5555         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5556         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5557
5558 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5559
5560         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5561         LINUX_LINK_MAX.
5562         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5563
5564         * locale/programs/ld-ctype.c (ctype_output): Really write out
5565         mboutdigits information.
5566         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5567         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5568         * localedata/tests/trans.def: Add outdigit information.
5569
5570         * localedata/tst-mbswcs3.c: Remove comment.
5571
5572         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5573         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5574         * libio/tst_wprintf.c (main): Add test for I flag.
5575
5576         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5577         * locale/langinfo.h: Add entries for translit_ignore information.
5578         * locale/categories.def: Add entries for new LC_CTYPE elements.
5579         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5580         pointer instead of "" where possible.
5581         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5582         * intl/Depend: Add localedata.
5583         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5584         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5585
5586 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5587
5588         * locale/langinfo.h: Add entries for default_missing information.
5589         * locale/C-ctype.c: Add initializers for new fields.
5590         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5591         information.
5592         * locale/categories.h: Add entries for all LC_CTYPE values.
5593         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5594         information.
5595
5596         * localedata/tst-trans.c: Write out an error message if class is
5597         not found.
5598
5599         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5600         * iconv/gconv_open.c: Remove error handling specification from `from'
5601         character set name.
5602         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5603         new parameter to always enable transliteration.
5604         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5605         change.
5606         (struct locale_data): Add new members use_translit and options.
5607         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5608         character set name contained modifier TRANSLIT.
5609         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5610         and options fields.
5611         (_nl_unload_locale): Free options string if necessary.
5612         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5613         the locale names suggested this.
5614         * locale/C-address.c: Add two new initialilzers to adjust data
5615         structure for new format.
5616         * locale/C-collate.c: Likewise.
5617         * locale/C-ctype.c: Likewise.
5618         * locale/C-identification.c: Likewise.
5619         * locale/C-measurement.c: Likewise.
5620         * locale/C-messages.c: Likewise.
5621         * locale/C-monetary.c: Likewise.
5622         * locale/C-name.c: Likewise.
5623         * locale/C-numeric.c: Likewise.
5624         * locale/C-paper.c: Likewise.
5625         * locale/C-telephone.c: Likewise.
5626         * locale/C-time.c: Likewise.
5627
5628         * locale/setlocale.c: Add some more __builtin_expect.
5629
5630 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5631
5632         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5633         unsigned char **.
5634         (__gconv_init_fct): Remove two parameters.
5635         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5636         gconv_transliterate.  Remove two parameters.
5637         Change prototypes of builtin functions according to __gconv_fct change.
5638         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5639         != NULL only during error handling.  Stop in this case after the
5640         conversion.
5641         * iconv/gconv_trans.c: Replace with real implementation for
5642         __gconv_transliterate.
5643         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5644         * iconv/gconv.c: Change calls to downstream functions once again.
5645         Use NULL for the fifth parameter instead of pointer to output buffer.
5646         * libio/iofwide.c: Likewise.
5647         * wcsmbs/btowc.c: Likewise.
5648         * wcsmbs/mbrtowc.c: Likewise.
5649         * wcsmbs/mbsnrtowcs.c: Likewise.
5650         * wcsmbs/mbsrtowcs.c: Likewise.
5651         * wcsmbs/wcrtomb.c: Likewise.
5652         * wcsmbs/wcsnrtombs.c: Likewise.
5653         * wcsmbs/wcsrtombs.c: Likewise.
5654         * wcsmbs/wctob.c: Likewise.
5655         * iconv/gconv_simple.c: Remove two parameters from error handling
5656         function call.
5657         * iconvdata/8bit-gap.c: Likewise.
5658         * iconvdata/8bit-generic.c: Likewise.
5659         * iconvdata/ansi_x3.110.c: Likewise.
5660         * iconvdata/big5.c: Likewise.
5661         * iconvdata/big5hkscs.c: Likewise.
5662         * iconvdata/euc-cn.c: Likewise.
5663         * iconvdata/euc-jp.c: Likewise.
5664         * iconvdata/euc-kr.c: Likewise.
5665         * iconvdata/euc-tw.c: Likewise.
5666         * iconvdata/gbgbk.c: Likewise.
5667         * iconvdata/gbk.c: Likewise.
5668         * iconvdata/iso-2022-cn.c: Likewise.
5669         * iconvdata/iso-2022-jp.c: Likewise.
5670         * iconvdata/iso-2022-kr.c: Likewise.
5671         * iconvdata/iso646.c: Likewise.
5672         * iconvdata/iso8859-1.c: Likewise.
5673         * iconvdata/iso_6937-2.c: Likewise.
5674         * iconvdata/iso_6937.c: Likewise.
5675         * iconvdata/johab.c: Likewise.
5676         * iconvdata/sjis.c: Likewise.
5677         * iconvdata/t.61.c: Likewise.
5678         * iconvdata/uhc.c: Likewise.
5679         * iconvdata/unicode.c: Likewise.
5680         * iconvdata/utf-16.c: Likewise.
5681
5682 2000-06-15  Greg McGary  <greg@mcgary.org>
5683
5684         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5685         of callnum assignment.  Tolerate callnum expressions containing
5686         parens.
5687
5688 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5689
5690         * login/Makefile (utmpd): Remove rule to build utmpd.
5691
5692         * csu/Versions: Move libgcc frame handling functions from here...
5693         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5694         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5695         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5696         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5697         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5698         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5699         New file.
5700         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5701
5702         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5703
5704         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5705
5706 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5707
5708         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5709         compatibility.
5710         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5711         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5712         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5713         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5714
5715 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5716
5717         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5718         defined, terminate quotes and read them after the comment char.
5719         * configure.in (HAVE_SECTION_QUOTES): Test whether
5720         __attribute__((section ("x"))) puts quotes around x or not.
5721         * config.h.in (HAVE_SECTION_QUOTES): Add.
5722         * configure: Rebuilt.
5723
5724 2000-06-14  Andreas Jaeger  <aj@suse.de>
5725
5726         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5727         depending on the configure option --sysconfdir.
5728         Closes PR libc/1762.
5729         Patch by Andreas Schwab <schwab@suse.de>.
5730
5731         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5732         entry point.
5733         Reported by Jim Pick <jim@jimpick.com>.
5734
5735 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5736
5737         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5738         crashing the application.  Emit some simple error message.
5739         Reported by mju@panasas.com [PR libc/1769].
5740
5741 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5742
5743         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5744
5745         * crypt/Makefile (distribute): Add md5.h.
5746
5747         * Makefile (distribute): Add include/shlib-compat.h.
5748
5749         * Make-dist: Search for tests also in sysdeps hierachy.
5750
5751         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5752         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5753
5754         * sysdeps/sparc/Subdirs: New file.
5755
5756         * locale/Makefile (distribute): Add weightwc.h and
5757         programs/localedef.h.
5758
5759         * time/Makefile (distribute): Add datemsk.
5760
5761         * sysdeps/ia64/Dist: Add softpipe.h.
5762
5763         * sysdeps/unix/sysv/aix/Dist: New file.
5764
5765         * posix/setpgrp.c: Moved to...
5766         * sysdeps/generic/setpgrp.c: ...here.  New file.
5767         * io/mknod.c: Moved to...
5768         * sysdeps/generic/mknod.c: ...here.  New file.
5769
5770         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5771
5772         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5773
5774         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5775
5776         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5777         gprsave0.S, gprrest1.S, and gprrest0.S.
5778
5779         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
5780
5781         * posix/Makefile (routines): Add spawnattr_getsigmask,
5782         spawnattr_getschedpolicy, spawnattr_getschedparam,
5783         spawnattr_setsigmask, spawnattr_setschedpolicy, and
5784         spawnattr_setschedparam.
5785         * posix/Versions: Add posix_spawnattr_getschedpolicy,
5786         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
5787         posix_spawnattr_setschedparam.
5788
5789         * posix/spawnattr_setschedparam.c: Fix typo.
5790
5791         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
5792         Correct typo.
5793
5794         * login/programs/utmpd.c: Removed.
5795         * login/programs/utmpd.h: Removed.
5796         * login/programs/utmpd-private.h: Removed.
5797
5798         * Makefile (distribute): Add include/db_185.h and include/db.h.
5799
5800         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
5801         iso-ir-165.h.
5802
5803         * elf/Makefile (distribute): Add missing files.
5804
5805         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
5806         * elf/eval.c: Moved to...
5807         * dlfcn/eval.c: ...here.  New file.
5808
5809         * Makefile (distribute): Also distribute ChangeLog.1?.
5810
5811         * Make-dist (+tsrcs): Remove .args handling here as well.
5812
5813         * rt/Makefile (tests): Add tst-timer.
5814         * sysdeps/generic/tst-timer.c: New file.
5815
5816         * Makerules (sources): Don't add BP sources here.
5817
5818         * login/Makefile (distribute): Remove xtmp.h.
5819
5820         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
5821         is true.  Reported by Bruno Haible <haible@ilog.fr>.
5822
5823 2000-06-13  Andreas Jaeger  <aj@suse.de>
5824
5825         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
5826         Patch by Ralf Baechle <ralf@gnu.org>.
5827
5828 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5829
5830         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
5831         for mincore syscall.
5832
5833         * misc/sys/cdefs.h: Define __bounded and __unbounded if
5834         __BOUNDED_POINTERS__ is not defined.
5835
5836 2000-06-07  Greg McGary  <greg@mcgary.org>
5837
5838         * sysdeps/generic/bp-sym.h: New file.
5839         * sysdeps/generic/bp-start.h: New file.
5840         * sysdeps/i386/elf/start.S: Designate BP symbols.
5841         * sysdeps/generic/libc-start.c: Wrap bounds around
5842         argv & envp and each of their string members.
5843
5844 2000-06-07  Greg McGary  <greg@mcgary.org>
5845
5846         * sysdeps/unix/make-syscalls.sh: Add comments to
5847         output that aid debugging & comprehension.
5848         Map simple syscall signatures to number of args.
5849         Generate BP syscall thunk definitions.
5850         * sysdeps/generic/bp-thunks.h: New file.
5851         * sysdeps/unix/syscalls.list: Replace arg-count with
5852         simple return+arg signature.
5853         * sysdeps/unix/common/syscalls.list: Likewise.
5854         * sysdeps/unix/inet/syscalls.list: Likewise.
5855         * sysdeps/unix/mman/syscalls.list: Likewise.
5856         * sysdeps/unix/sysv/syscalls.list: Likewise.
5857         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5858         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
5859
5860 2000-06-07  Greg McGary  <greg@mcgary.org>
5861
5862         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
5863         for all files *.[cS].
5864         (CFLAGS-.ob): Don't optimize sibling calls.
5865         (bppfx): New variable.
5866         * Makerules (elide-bp-thunks): New variable.
5867         (elide-routines.*): Elide BP-* files for all but *.ob.
5868         (sources): Include bp-thunks.
5869
5870 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5871
5872         * iconv/gconv_simple.c: Remove unnecessary prototype.
5873
5874         * iconv/gconv_trans.c: Pretty print.
5875
5876         * elf/elf.h (R_SH_NUM): Got accidently dropped.
5877
5878         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
5879         minimal kernel versions.  Add information about IA-64 kernel.
5880
5881         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
5882         specific minimal supported kernel versions to be specified.
5883
5884         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
5885         step data structure.
5886         * wcsmbs/btowc.c: Likewise.
5887         * wcsmbs/mbrtowc.c: Likewise.
5888         * wcsmbs/mbsnrtowcs.c: Likewise.
5889         * wcsmbs/mbsrtowcs.c: Likewise.
5890         * wcsmbs/wcrtomb.c: Likewise.
5891         * wcsmbs/wcsnrtombs.c: Likewise.
5892         * wcsmbs/wcsrtombs.c: Likewise.
5893         * wcsmbs/wctob.c: Likewise.
5894
5895         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
5896         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
5897
5898         * shlib-versions: Earliest backward compatible version for SH is 2.2.
5899
5900         * misc/sys/cdefs.h: Remove one more __P.
5901
5902         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
5903         Reported by HJ Lu.
5904
5905         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
5906         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
5907         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
5908
5909 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5910             Yutaka Niibe  <gniibe@chroot.org>
5911
5912         * configure.in: Add machine sh3, sh4.
5913         * elf/elf.h: Add SH specific declarations of relocations.
5914         * shlib-versions: Add sh*-*-linux* cases.
5915
5916 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5917
5918         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
5919         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
5920         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
5921         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
5922         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
5923         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
5924
5925         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
5926         instead of KERNEL_MATH_EMULATION.
5927         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
5928         KERNEL_MATH_EMULATION.
5929
5930         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
5931         * sysdeps/sh/sh3/dl-machine.h: Moved to...
5932         * sysdeps/sh/dl-machine.h: ...here.  New file.
5933         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
5934         and include generic SH version.
5935         * sysdeps/sh/sh3/bits/endian.h: Move to...
5936         * sysdeps/sh/bits/endian.h: ...here.  New file.
5937         * sysdeps/sh/sh4/bits/endian.h: Removed.
5938         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
5939         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
5940         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
5941
5942         * include/libc-symbols.h (link_warning): Work around a change in
5943         GAS which warns about changing section attributes.
5944         Proposed by Nick Clifton <nickc@redhat.com>.
5945
5946 2000-06-12  H.J. Lu  <hjl@gnu.org>
5947
5948         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
5949
5950 2000-06-11  H.J. Lu  <hjl@gnu.org>
5951
5952         * sysdeps/i386/fpu/Versions: New file.
5953
5954 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5955
5956         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
5957         parameters.
5958         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
5959         exists.
5960
5961 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
5962
5963         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5964         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
5965         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
5966
5967         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
5968         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
5969         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
5970
5971 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5972             Yutaka Niibe  <gniibe@chroot.org>
5973
5974         * sysdeps/sh/Dist: New file.
5975         * sysdeps/sh/Implies: New file.
5976         * sysdeps/sh/elf/initfini.c: New file.
5977         * sysdeps/sh/gmp-mparam.h: New file.
5978         * sysdeps/sh/init-first.c: New file.
5979         * sysdeps/sh/machine-gmon.h: New file.
5980         * sysdeps/sh/memcpy.S: New file.
5981         * sysdeps/sh/memprof.h: New file.
5982         * sysdeps/sh/memset.S: New file.
5983         * sysdeps/sh/sh3/__longjmp.S: New file.
5984         * sysdeps/sh/sh3/bits/endian.h: New file.
5985         * sysdeps/sh/sh3/bits/huge_val.h: New file.
5986         * sysdeps/sh/sh3/bits/setjmp.h: New file.
5987         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
5988         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
5989         * sysdeps/sh/sh3/dl-machine.h: New file.
5990         * sysdeps/sh/sh3/setjmp.S: New file.
5991         * sysdeps/sh/sh4/__longjmp.S: New file.
5992         * sysdeps/sh/sh4/bits/endian.h: New file.
5993         * sysdeps/sh/sh4/bits/huge_val.h: New file.
5994         * sysdeps/sh/sh4/bits/setjmp.h: New file.
5995         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
5996         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
5997         * sysdeps/sh/sh4/dl-machine.h: New file.
5998         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
5999         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6000         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6001         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6002         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6003         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6004         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6005         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6006         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6007         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6008         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6009         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6010         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6011         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6012         * sysdeps/sh/sh4/setjmp.S: New file.
6013         * sysdeps/sh/elf/start.S: New file.
6014         * sysdeps/sh/sys/ucontext.h: New file.
6015         * sysdeps/sh/strlen.S: New file.
6016         * sysdeps/sh/sysdep.h: New file.
6017         * sysdeps/unix/sh/sysdep.S: New file.
6018         * sysdeps/unix/sh/sysdep.h: New file.
6019         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6020         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6021         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6022         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6023         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6024         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6025         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6026         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6027         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6028         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6029         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6030         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6031         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6032         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6033         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6034         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6035         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6036         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6037         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6038         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6039         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6040         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6041         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6042         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6043         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6044         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6045         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6046         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6047         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6048         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6049         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6050         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6051         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6052         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6053         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6054         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6055         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6056         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6057         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6058         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6059         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6060         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6061         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6062         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6063         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6064         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6065         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6066         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6067         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6068         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6069
6070 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6071
6072         * Rules (%.out): Define GCONV_PATH in the environment.
6073         * assert/Depend: New file.
6074         * iconvdata/Depend: New file.
6075         * intl/Depend: New file.
6076         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6077         * intl/tst-gettext.sh: Likewise.
6078         * iconv/Makefile (routines): Add gconv_trans.
6079         * iconv/gconv_trans.c: New file.
6080         * iconv/gconv.h (struct __gconv_trans_data): New type.
6081         (__gconv_fct): New parameter with starting position in output buffer.
6082         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6083         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6084         (struct __gconv_step): Add new member __trans.
6085         * iconv/gconv_int.h: Pretty print prototypes.
6086         (gconv_transliterate): New prototype.
6087         (__BUILTIN_TRANS): Update for new conversion function interface.
6088         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6089         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6090         in names, find appropriate function, and install in the conversion
6091         steps it can be used.
6092         * iconv/skeleton.c: Add additional parameter for beginning of output
6093         buffer.  Change calls of downstream functions.
6094         * iconv/loop.c: Change loop function interface completely.  Pass in
6095         step and step_data structure.  Remove optimization for BODY with
6096         NEED_LENGTH_TEST == 0.
6097         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6098         appropriate error handling code to use transliteration steps.  Remove
6099         optimization for BODY with NEED_LENGTH_TEST == 0.
6100         * iconvdata/8bit-gap.c: Likewise.
6101         * iconvdata/8bit-generic.c: Likewise.
6102         * iconvdata/ansi_x3.110.c: Likewise.
6103         * iconvdata/big5.c: Likewise.
6104         * iconvdata/big5hkscs.c: Likewise.
6105         * iconvdata/euc-cn.c: Likewise.
6106         * iconvdata/euc-jp.c: Likewise.
6107         * iconvdata/euc-kr.c: Likewise.
6108         * iconvdata/euc-tw.c: Likewise.
6109         * iconvdata/gbgbk.c: Likewise.
6110         * iconvdata/gbk.c: Likewise.
6111         * iconvdata/iso-2022-cn.c: Likewise.
6112         * iconvdata/iso-2022-jp.c: Likewise.
6113         * iconvdata/iso-2022-kr.c: Likewise.
6114         * iconvdata/iso646.c: Likewise.
6115         * iconvdata/iso8859-1.c: Likewise.
6116         * iconvdata/iso_6937-2.c: Likewise.
6117         * iconvdata/iso_6937.c: Likewise.
6118         * iconvdata/johab.c: Likewise.
6119         * iconvdata/sjis.c: Likewise.
6120         * iconvdata/t.61.c: Likewise.
6121         * iconvdata/uhc.c: Likewise.
6122         * iconvdata/unicode.c: Likewise.
6123         * iconvdata/utf-16.c: Likewise.
6124         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6125         DL_CALL_FCT.
6126         * wcsmbs/btowc.c: Likewise.
6127         * wcsmbs/mbrtowc.c: Likewise.
6128         * wcsmbs/mbsnrtowcs.c: Likewise.
6129         * wcsmbs/mbsrtowcs.c: Likewise.
6130         * wcsmbs/wcrtomb.c: Likewise.
6131         * wcsmbs/wcsnrtombs.c: Likewise.
6132         * wcsmbs/wcsrtombs.c: Likewise.
6133         * wcsmbs/wctob.c: Likewise.
6134
6135 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6136
6137         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6138         other header files.  Mention about 128-byte cache line sizes.
6139         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6140         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6141         for current calling sequence.
6142         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6143
6144         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6145         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6146
6147         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6148         and setrlimit syscalls for backwards compatibility.
6149
6150 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6151
6152         * iconv/skeleton.c:  Rename converted written to correcter name
6153         irreversible.
6154         * iconv/gconv.c: Rename converted variable to correcter name
6155         irreversible.
6156         * iconv/gconv_int.h: Likewise.
6157         * iconv/gconv_simple.c: Likewise.
6158         * iconv/iconv.c: Likewise.
6159         * iconv/loop.c: Likewise.
6160         * iconvdata/8bit-gap.c: Likewise.
6161         * iconvdata/8bit-generic.c: Likewise.
6162         * iconvdata/ansi_x3.110.c: Likewise.
6163         * iconvdata/big5.c: Likewise.
6164         * iconvdata/big5hkscs.c: Likewise.
6165         * iconvdata/euc-cn.c: Likewise.
6166         * iconvdata/euc-jp.c: Likewise.
6167         * iconvdata/euc-kr.c: Likewise.
6168         * iconvdata/gbgbk.c: Likewise.
6169         * iconvdata/gbk.c: Likewise.
6170         * iconvdata/iso-2022-cn.c: Likewise.
6171         * iconvdata/iso-2022-jp.c: Likewise.
6172         * iconvdata/iso-2022-kr.c: Likewise.
6173         * iconvdata/iso646.c: Likewise.
6174         * iconvdata/iso8859-1.c: Likewise.
6175         * iconvdata/iso_6937-2.c: Likewise.
6176         * iconvdata/iso_6937.c: Likewise.
6177         * iconvdata/johab.c: Likewise.
6178         * iconvdata/sjis.c: Likewise.
6179         * iconvdata/t.61.c: Likewise.
6180         * iconvdata/uhc.c: Likewise.
6181         * iconvdata/unicode.c: Likewise.
6182         * iconvdata/utf-16.c: Likewise.
6183
6184         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6185         __cmsg_data field with __extension__.
6186
6187 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6188
6189         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6190
6191 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6192
6193         * iconv/gconv_simple.c: Fix various small bugs in several
6194         functions.
6195
6196         * iconv/loop.c: Fix comment.
6197
6198 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6199
6200         * elf/link.h: Remove libc internal declarations.
6201         * include/link.h: Move them here.
6202
6203 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6204
6205         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6206         Patch by Dan Pop <Dan.Pop@cern.ch>.
6207
6208         Rewrite error message handling.
6209         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6210         _dl_catch_error.
6211         * elf/dl-error (struct catch): Add objname member.
6212         (_dl_signal_error): Take new parameter with object name.  When
6213         passing message on simply store object name and duplicate error
6214         message.
6215         (_dl_catch_error): Take new parameter.  Store object name in the
6216         place pointed to.
6217         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6218         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6219         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6220         (dlerror): Add objname to asprintf() parameters.
6221         (_dl_error_run): Pass new parameter to _dl_catch_error.
6222         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6223         * elf/dl-open.c (_dl_open): Likewise.
6224         * elf/rtld.c (dl_main): Likewise.
6225         * elf/dl-close.c: Mark error messages with N_().
6226         * elf/dl-deps.c: Likewise.
6227         * elf/dl-error.c: Likewise.
6228         * elf/dl-load.c: Likewise.
6229         * elf/dl-open.c: Likewise.
6230         * elf/dl-reloc.c: Likewise.
6231         * elf/dl-support.c: Likewise.
6232         * elf/dl-sym.c: Likewise.
6233         * elf/dl-version.c: Likewise.
6234         * elf/dl-lookup.c: Add comments about problems with error message
6235         translations.
6236         * elf/dl-reloc.c: Likewise.
6237         * elf/dl-version.c: Likewise.
6238
6239 2000-06-09  H.J. Lu  <hjl@gnu.org>
6240
6241         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6242         after freeing it.
6243
6244         * dlfcn/Makefile (distribute): Add failtestmod.c.
6245         (tests): Add failtest.
6246         Add rules to build and run failtest.
6247         * dlfcn/failtest.c: New file.
6248         * dlfcn/failtestmod.c: New file.
6249
6250 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6251
6252         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6253         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6254         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6255         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6256         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6257
6258 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6259
6260         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6261         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6262
6263 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6264             Ulrich Drepper  <drepper@redhat.com>
6265
6266         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6267         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6268         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6269         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6270         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6271         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6272
6273 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6274
6275         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6276         to find correct mount point despite wrong information from the
6277         kernel.
6278
6279 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6280
6281         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6282         the address of a symbol so function pointers are handled properly.
6283
6284 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6285
6286         * sysdeps/i386/Dist: Add bp-asm.h.
6287
6288         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6289         defaultdir variable instead of "/var/shm" everywhere.
6290         (defaultdir): Change to /dev/shm/.
6291
6292 2000-06-08  Greg McGary  <greg@mcgary.org>
6293
6294         * sysdeps/i386/bp-asm.h: New file.
6295         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6296         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6297         frame-pointer chain when debugging.
6298         * sysdeps/i386/add_n.S: Likewise.
6299         * sysdeps/i386/addmul_1.S: Likewise.
6300         * sysdeps/i386/lshift.S: Likewise.
6301         * sysdeps/i386/memchr.S: Likewise.
6302         * sysdeps/i386/memcmp.S: Likewise.
6303         * sysdeps/i386/mul_1.S: Likewise.
6304         * sysdeps/i386/rawmemchr.S: Likewise.
6305         * sysdeps/i386/rshift.S: Likewise.
6306         * sysdeps/i386/stpcpy.S: Likewise.
6307         * sysdeps/i386/stpncpy.S: Likewise.
6308         * sysdeps/i386/strchr.S: Likewise.
6309         * sysdeps/i386/strchrnul.S: Likewise.
6310         * sysdeps/i386/strcspn.S: Likewise.
6311         * sysdeps/i386/strpbrk.S: Likewise.
6312         * sysdeps/i386/strrchr.S: Likewise.
6313         * sysdeps/i386/strspn.S: Likewise.
6314         * sysdeps/i386/strtok.S: Likewise.
6315         * sysdeps/i386/sub_n.S: Likewise.
6316         * sysdeps/i386/submul_1.S: Likewise.
6317         * sysdeps/i386/elf/setjmp.S: Likewise.
6318         * sysdeps/i386/i486/strcat.S: Likewise.
6319         * sysdeps/i386/i486/strlen.S: Likewise.
6320         * sysdeps/i386/i586/add_n.S: Likewise.
6321         * sysdeps/i386/i586/lshift.S: Likewise.
6322         * sysdeps/i386/i586/memcpy.S: Likewise.
6323         * sysdeps/i386/i586/memset.S: Likewise.
6324         * sysdeps/i386/i586/rshift.S: Likewise.
6325         * sysdeps/i386/i586/strchr.S: Likewise.
6326         * sysdeps/i386/i586/strcpy.S: Likewise.
6327         * sysdeps/i386/i586/strlen.S: Likewise.
6328         * sysdeps/i386/i586/sub_n.S: Likewise.
6329         * sysdeps/i386/i686/add_n.S: Likewise.
6330         * sysdeps/i386/i686/memcpy.S: Likewise.
6331         * sysdeps/i386/i686/mempcpy.S: Likewise.
6332         * sysdeps/i386/i686/memset.S: Likewise.
6333         * sysdeps/i386/i686/strcmp.S: Likewise.
6334
6335 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6336
6337         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6338
6339         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6340         256 and don't use OPEN_MAX.
6341
6342         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6343         use it instead of LINK_MAX.
6344         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6345
6346 2000-06-08  Andreas Jaeger  <aj@suse.de>
6347
6348         * libio/genops.c (_IO_list_lock): Only compile body if we're
6349         thread safe.
6350         (_IO_list_unlock): Likewise.
6351         (_IO_list_resetlock): Likewise.
6352
6353 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6354
6355         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6356         unless user defined it.
6357
6358         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6359         if not defined by the user.
6360
6361         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6362         * libio/iofwrite.c (_IO_fwrite): Likewise.
6363
6364         * time/time.h: Add missing __THROW for clock_getcpuclockid
6365         prototype.
6366
6367         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6368         * include/elf.h: Include also <dl-dtprocnum.h>.
6369         * elf/dl-deps.c: Likewise.
6370         * elf/dl-lookup.c: Likewise.
6371         * elf/dl-runtime.c: Likewise.
6372         * elf/dl-version.c: Likewise.
6373         * elf/do-rel.h: Likewise.
6374         * elf/dynamic-link.h: Likewise.
6375         * elf/link.h: Likewise.
6376         * elf/rtld.c: Likewise.
6377         * sysdeps/generic/dl-dtprocnum.h: New file.
6378         * sysdeps/ia64/dl-dtprocnum.h: New file.
6379         * sysdeps/mips/dl-dtprocnum.h: New file.
6380         * sysdeps/sparc/dl-dtprocnum.h: New file.
6381
6382         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6383
6384         * elf/do-lookup.h: Add some __builtin_expect.
6385
6386         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6387
6388         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6389         (_dl_dynamic_weak): New variable.
6390         * elf/dl-support.c: Likewise.
6391         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6392         * elf/do-lookup.h: If we find a weak definition treat it like a
6393         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6394         case treat it like before.
6395
6396         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6397         is in main program.
6398         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6399
6400         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6401         using l_map_start and l_map_end.
6402
6403         * elf/dl-version.c: Add __builtin_expect in many places.
6404
6405         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6406         Update.
6407
6408 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6409
6410         Lock for stdio stream list becomes global, for use in LinuxThreads.
6411
6412         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6413         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6414         _IO_list_resetlock): New interface for iterating global list of
6415         streams without accessing the _IO_list_all global variable,
6416         and for manipulating the lock which protects this list.
6417         * libio/libioP.h: Likewise.
6418         * libio/Version: Add entries for the new functions.
6419
6420         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6421         pointer to _IO_FILE.
6422
6423 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6424
6425         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6426         BIT() must actually be BITw().
6427
6428         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6429
6430         * locale/programs/charmap.c: Allow string arguments for
6431         code_set_name and repertoiremap.
6432
6433 2000-06-07  Andreas Jaeger  <aj@suse.de>
6434
6435         * elf/Makefile: Build ldconfig only when building shared libraries.
6436
6437 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6438
6439         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6440         __USE_ISOC99.
6441         (fdimf, __fdim, fdim): Likewise.
6442
6443 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6444
6445         * locale/findlocale.c: Add __builtin_expect in many places.
6446         * locale/loadlocale.c: Likewise.
6447
6448 2000-06-06  Greg McGary  <greg@mcgary.org>
6449
6450         * sysdeps/mips/elf/start.S: Trim redundant code.
6451
6452         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6453         Use C comments throughout.  Line up operands column with tabs.
6454         * sysdeps/powerpc/strchr.S: Likewise.
6455         * sysdeps/powerpc/strcmp.S: Likewise.
6456         * sysdeps/powerpc/strcpy.S: Likewise.
6457         * sysdeps/powerpc/strlen.S: Likewise.
6458
6459         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6460         Get low part of &__curbrk with @l.
6461
6462 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6463
6464         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6465         * iconvdata/unicode.c: Likewise.
6466         * iconvdata/uhc.c: Likewise.
6467         * iconvdata/t.61.c: Likewise.
6468         * iconvdata/sjis.c: Likewise.
6469         * iconvdata/johab.c: Likewise.
6470         * iconvdata/iso_6937.c: Likewise.
6471         * iconvdata/iso_6937-2.c: Likewise.
6472         * iconvdata/iso8859-1.c: Likewise.
6473         * iconvdata/iso646.c: Likewise.
6474         * iconvdata/iso-2022-kr.c: Likewise.
6475         * iconvdata/iso-2022-jp.c: Likewise.
6476         * iconvdata/iso-2022-cn.c: Likewise.
6477         * iconvdata/gbgbk.c: Likewise.
6478         * iconvdata/gbk.c: Likewise.
6479         * iconvdata/euc-kr.c: Likewise.
6480         * iconvdata/euc-jp.c: Likewise.
6481         * iconvdata/euc-cn.c: Likewise.
6482
6483 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6484
6485         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6486         * iconvdata/big5.c: Likewise.
6487         * iconvdata/ansi_x3.110.c: Likewise.
6488         * iconvdata/8bit-generic.c: Likewise.
6489         * iconvdata/8bit-gap.c: Likewise.
6490         * iconv/loop.c: Likewise.
6491         * iconv/gconv_db.c: Likewise.
6492         * iconv/gconv_dl.c: Likewise.
6493         * iconv/gconv_simple.c: Likewise.
6494         * iconv/skeleton.c: Likewise.
6495
6496         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6497         (struct __gconv_step_data): Rename __is_last to __flags.
6498         * iconv/gconv_close.c: Change all uses of __is_last.
6499         * iconv/skeleton.c: Likewise.
6500         * iconvdata/iso-2022-cn.c: Likewise.
6501         * iconvdata/iso-2022-jp.c: Likewise.
6502         * iconvdata/iso-2022-kr.c: Likewise.
6503         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6504         Recognize IGNORE error handling, set flag, and remove from name.
6505         * iconv/loop.c (ignore_errors_p): Define.
6506         Add flags parameter to both functions.
6507         * iconv/skeleton.c: Pass flags to all conversion functions.
6508         * iconv/gconv_simple.c: Add flags parameter to all functions.
6509         Don't return error for invald error if ignore flag is set.
6510         (ucs4_internal_loop_single): Add missing pointer increment.
6511         (internal_ucs4le_loop_single): Likewise.
6512         * iconv/iconv_prog.c: Implement handling of -c parameter.
6513         * iconvdata/8bit-gap.c: Don't return error for invald error if
6514         ignore flag is set.
6515         * iconvdata/8bit-generic.c: Likewise.
6516         * iconvdata/ansi_x3.110.c: Likewise.
6517         * iconvdata/big5.c: Likewise.
6518         * iconvdata/big5hkscs.c: Likewise.
6519         * iconvdata/euc-cn.c: Likewise.
6520         * iconvdata/euc-jp.c: Likewise.
6521         * iconvdata/euc-kr.c: Likewise.
6522         * iconvdata/gbgbk.c: Likewise.
6523         * iconvdata/gbk.c: Likewise.
6524         * iconvdata/iso-2022-cn.c: Likewise.
6525         * iconvdata/iso-2022-jp.c: Likewise.
6526         * iconvdata/iso-2022-kr.c: Likewise.
6527         * iconvdata/iso646.c: Likewise.
6528         * iconvdata/iso8859-1.c: Likewise.
6529         * iconvdata/iso_6937-2.c: Likewise.
6530         * iconvdata/iso_6937.c: Likewise.
6531         * iconvdata/johab.c: Likewise.
6532         * iconvdata/sjis.c: Likewise.
6533         * iconvdata/t.61.c: Likewise.
6534         * iconvdata/uhc.c: Likewise.
6535         * iconvdata/unicode.c: Likewise.
6536         * iconvdata/utf-16.c: Likewise.
6537         * libio/fileops.c: Likewise.
6538         * libio/iofwide.c: Likewise.
6539         * wcsmbs/btowc.c: Likewise.
6540         * wcsmbs/mbrtowc.c: Likewise.
6541         * wcsmbs/mbsnrtowcs.c: Likewise.
6542         * wcsmbs/mbsrtowcs.c: Likewise.
6543         * wcsmbs/wcrtomb.c: Likewise.
6544         * wcsmbs/wcsnrtombs.c: Likewise.
6545         * wcsmbs/wcsrtombs.c: Likewise.
6546         * wcsmbs/wctob.c: Likewise.
6547
6548         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6549         an error.
6550
6551 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6552
6553         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6554         counter for the object we are releasing, just decrement it.
6555         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6556
6557 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6558
6559         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6560         if -ffast-math.
6561
6562 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6563
6564         * iconvdata/big5hkscs.c: New file.
6565         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6566
6567         * iconvdata/gconv-modules: Add entry for new module.
6568         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6569         (distribute): Add big5hkscs.c.
6570
6571 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6572
6573         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6574         inlines to match prototypes in mathcalls.h.
6575         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6576         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6577         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6578         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6579
6580 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6581
6582         * elf/elf.h (SHT_SUNW_move): Define.
6583
6584         * elf/elf.h: Add more Solaris compatiblity definitions.
6585
6586 2000-06-03  Andreas Jaeger  <aj@suse.de>
6587
6588         * sysdeps/powerpc/dl-start.S: Close open comment.
6589
6590 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6591
6592         * inet/Versions: Fix typo in rresvport_af export.
6593
6594 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6595
6596         * math/tgmath.h: Pretty print.
6597
6598 2000-06-02  Andreas Jaeger  <aj@suse.de>
6599
6600         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6601         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6602
6603 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6604
6605         * elf/rtld.c (process_envvars): Test for = after variable name.
6606
6607 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6608
6609         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6610         have extra call to __gmon_start__, use the pointer we already have.
6611
6612         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6613         shifting.
6614
6615         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6616         binutils.  gas now emits a jump through the PLT instead of a
6617         relative jump if the jump target is an exported symbol.
6618
6619 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6620
6621         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6622
6623 2000-05-31  Andreas Jaeger  <aj@suse.de>
6624
6625         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6626         gregset_t.
6627
6628         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6629         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6630
6631         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6632         syscall.
6633         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6634
6635 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6636
6637         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6638
6639         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6640         * locale/localeconv.c: Make function versioned (with same definition).
6641
6642         * elf/Makefile (modules-names): Strip before using it.
6643
6644 2000-05-30  Andreas Jaeger  <aj@suse.de>
6645
6646         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6647         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6648         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6649         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6650         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6651         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6652
6653 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6654
6655         * Makefile: Add GNU make magic.
6656
6657         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6658         Removed.
6659         * inet/rcmd.c: Remove __P.  Remove unused variables.
6660         (iruserfopen): Make first parameter const.
6661         (ruserok_sa): Return result of ruserok2_sa.
6662         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6663         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6664         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6665         (ruserpass): Check results of memory allocation.
6666         * include/netdb.h: Add prototype for ruserpass.
6667
6668 2000-05-29  Andreas Jaeger  <aj@suse.de>
6669
6670         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6671         for all platforms.
6672
6673 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6674
6675         * inet/rcmd.c (rresvport_af): Use correct port number.
6676
6677 2000-05-26  Andreas Schwab  <schwab@suse.de>
6678
6679         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6680         entries in all-sonames.
6681         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6682         preserving the old name if different for compatibility.
6683
6684 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6685
6686         * posix/Makefile (tests): Add tst-spawn.
6687         (tst-spawn-ARGS): New variable.
6688         * posix/tst-spawn.c: New file.
6689
6690         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6691         * posix/spawn_faction_adddup2.c: Likewise.
6692         * posix/spawn_faction_addopen.c: Likewise.
6693         * posix/spawni.c: Correctly test for success of dup2 calls.
6694
6695         * posix/tst-preadwrite.c: Check success of malloc call.
6696
6697 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6698
6699         * posix/Makefile (tests): Add tst-exec.
6700         (tst-exec-ARGS): New variable.
6701         * posix/tst-exec.c: New file.
6702
6703         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6704
6705 2000-05-04  Andreas Jaeger  <aj@suse.de>
6706
6707         * string/string.h: Remove __strdup prototype, it's not needed in
6708         this file anymore.
6709
6710 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6711
6712         * posix/Makefile (tests): Add tst-fork.
6713         * posix/tst-fork.c: New file.
6714
6715         * resolv/inet_pton.c: Loose __P.
6716
6717 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6718
6719         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6720         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6721         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6722         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6723         _IO_CHECK_WIDE fails.
6724
6725 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6726
6727         * po/da.po: New file.
6728
6729         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6730         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6731
6732         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6733         (Other iconv Implementations): Fix typo.
6734         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6735
6736 2000-05-27  Andreas Jaeger  <aj@suse.de>
6737
6738         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6739         normal version now.
6740         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6741         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6742         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6743         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6744         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6745         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6746
6747         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6748         endianness to decide how to pass arguments.
6749         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6750
6751         * elf/vismain.c: Use test-skeleton interface.
6752         (TEST_FUNCTION): New macro.
6753         (do_test): Renamed from main.
6754
6755 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6756
6757         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6758         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6759
6760         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6761         handling of AI_V4MAPPED flag.
6762
6763         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6764         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6765         perform lookup for T_A type and tell getanswer_r to convert the
6766         result with new argument.
6767         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6768         Don't convert addresses from IPv4 to IPv6 here.
6769         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6770         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6771         IPv4 mapping has to be done.  Perform mappings if required by the
6772         caller and not if RES_USE_INET6 bit in _res.options is set.
6773         Add several __builtin_expect.
6774
6775 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6776
6777         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6778
6779         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
6780         NULL.
6781
6782         * posix/tst-preadwrite.c: Allow parallel execution of
6783         tst-preadwrite and tst-preadwrite64.
6784
6785         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
6786         * posix/tst-truncate.c: New file.
6787         * posix/tst-truncate64.c: New file.
6788
6789         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
6790         was switched.
6791
6792         * posix/Makefile (tests): Add tst-preadwrite64.
6793         * posix/tst-preadwrite.c: Alloc file being used also for testing
6794         pread64 and pwrite64.
6795         * posix/tst-preadwrite64.c: New file.
6796
6797 2000-05-26  Andreas Jaeger  <aj@suse.de>
6798
6799         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
6800         of arguments dependend on endianness.
6801         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6802
6803         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
6804         normal version now.
6805         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6806         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6807         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6808         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6809
6810         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
6811         endianness to check how to pass argument.
6812         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
6813
6814         * elf/ldconfig.h: Update parameter list for process_elf_file.
6815
6816         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
6817         Add parameter file_length and pass it ot process_elf*file.
6818
6819         * sysdeps/generic/readelflib.c (check_ptr): New.
6820         (process_elf_file): Use check_ptr to check all accesses to the
6821         mmapped file. Add parameter file_length.
6822
6823         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
6824         library names.
6825
6826         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
6827         Closes PR libc/1573, reported by Bradley White
6828         <bww@laurelnetworks.com>.
6829
6830 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
6831
6832         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
6833         __FAST_MATH__ is defined.
6834
6835 2000-05-22  Andreas Jaeger  <aj@suse.de>
6836
6837         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
6838         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
6839
6840         * manual/math.texi (FP Function Optimizations): Document gcc
6841         -ffast-math behaviour with mathinlines.
6842
6843         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
6844         functions unless -ffast-math is given to gcc.
6845
6846 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
6847
6848         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
6849         __sincosl): Guard with __USE_GNU.
6850
6851 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
6852
6853         * csu/Makefile (routines): Add check_fds.
6854         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
6855         binaries.  Add various __builtin_expect.
6856         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
6857         * sysdeps/generic/check_fds.c: ...here.  New file.
6858
6859         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
6860         binaries if file /etc/suid-debug is available.
6861
6862         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
6863         and wcseqorder members.
6864         (struct locale_collate_t): Likewise.
6865         (collate_finish): Assign collation sequence value to each character.
6866         Create tables for output.
6867         (collate_output): Write out tables with collation sequence information.
6868         * locale/C-collate.c: Provide C locale data for collation sequence
6869         table.
6870         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
6871         _NL_COLLATE_COLLSEQWC.
6872         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
6873         _NL_COLLATE_COLLSEQWC.
6874         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
6875         include fnmatch_loop.c.
6876         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
6877         character is matched by range expression.  Use collation sequence
6878         table.  Outside glibc fall back on simple character value comparison.
6879
6880 2000-05-24  Andreas Jaeger  <aj@suse.de>
6881
6882         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
6883         words.
6884
6885         * intl/Makefile: Run gettext-test only if msgfmt is available.
6886
6887         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
6888         Define it for newer kernels.
6889
6890 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
6891
6892         * elf/dl-sym.c: Minor cleanups.
6893
6894         * configure.in: Add test for .protected.
6895         * config.make.in: Add have-protected variable.
6896         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
6897         (tests-vis-yes): Add vismain.
6898         (modules-names): Add $(modules-vis-$(have-protected)).
6899         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
6900         Add rules to generate and run vismain.
6901         * elf/vismain.c: New file.
6902         * elf/vismod1.c: New file.
6903         * elf/vismod2.c: New file.
6904         * elf/vismod3.c: New file.
6905
6906 2000-05-23  Andreas Jaeger  <aj@suse.de>
6907
6908         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
6909
6910         * manual/search.texi (Array Sort Function): Document that qsort is
6911         not necessarily in-place.
6912
6913         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
6914         Closes PR libc/1731.
6915
6916         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
6917         * dirent/scandir64.c: Likewise.
6918         * pwd/getpw.c: Likewise.
6919         * stdlib/bsearch.c (bsearch): Likewise.
6920         * stdlib/tst-strtoll.c: Likewise.
6921         * localedata/collate-test.c: Likewise.
6922         * localedata/xfrm-test.c: Likewise.
6923         * posix/bsd-getpgrp.c: Likewise.
6924         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
6925         * sysdeps/generic/bits/siginfo.h: Likewise.
6926         * sysdeps/generic/bits/sockaddr.h: Likewise.
6927         * sysdeps/generic/sys/swap.h: Likewise.
6928         * sysdeps/generic/sys/sysinfo.h: Likewise.
6929         * sysdeps/generic/vfork.c: Likewise.
6930         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
6931         * sysdeps/mach/hurd/fdopen.c: Likewise.
6932         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
6933         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6934         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6935         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6936         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
6937         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
6938         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
6939
6940         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
6941         * shadow/lckpwdf.c: Likewise.
6942         * stdlib/tst-strtol.c: Likewise.
6943         * sysdeps/generic/tcsetattr.c: Likewise.
6944         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6945         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6946
6947 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
6948
6949         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
6950         free it and set to (void *) -1.
6951
6952 2000-05-22  Jakub Jelinek <jakub@redhat.com>
6953
6954         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
6955         not the second character in the range.
6956         * stdio-common/tstscanf.c (main): Add testcase for the above.
6957         Reported by jik@kamens.brookline.ma.us.
6958
6959 2000-05-21  H.J. Lu  <hjl@gnu.org>
6960
6961         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
6962         with noexec and noplt parameter.
6963         (do_lookup): Likewise.
6964
6965         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
6966         do_lookup.  Support STV_PROTECTED.
6967         (_dl_lookup_symbol_skip): Likewise.
6968         (_dl_lookup_versioned_symbol): Likewise.
6969         (_dl_lookup_versioned_symbol_skip): Likewise.
6970
6971         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
6972
6973         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
6974
6975 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6976
6977         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
6978         * sysdeps/i386/bits/huge_val.h: Likewise.
6979         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6980         * sysdeps/m68k/bits/huge_val.h: Likewise.
6981         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
6982         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
6983
6984 2000-05-22  Andreas Jaeger  <aj@suse.de>
6985
6986         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
6987         change in iconv.h.
6988
6989 2000-05-19  Andreas Jaeger  <aj@suse.de>
6990
6991         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6992         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
6993         breaks compilation without linuxthreads.
6994
6995 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
6996
6997         * sysdeps/ia64/memccpy.S: New file.
6998         * sysdeps/ia64/memchr.S: New file.
6999         * sysdeps/ia64/memcmp.S: New file.
7000         * sysdeps/ia64/memcpy.S: New file.
7001         * sysdeps/ia64/memmove.S: New file.
7002         * sysdeps/ia64/memset.S: New file.
7003         * sysdeps/ia64/strcat.S: New file.
7004         * sysdeps/ia64/strchr.S: New file.
7005         * sysdeps/ia64/strcmp.S: New file.
7006         * sysdeps/ia64/strcpy.S: New file.
7007         * sysdeps/ia64/strlen.S: New file.
7008         * sysdeps/ia64/strncmp.S: New file.
7009         * sysdeps/ia64/strncpy.S: New file.
7010         * sysdeps/ia64/softpipe.h: New file.
7011         Patches by Dan Pop <Dan.Pop@cern.ch>.
7012
7013         * manual/memory.texi: Document memory handling functions (mlock,
7014         munlock, mlockall, munlockall, brk, and sbrk)
7015         * manual/time.texi: Document timespec and friends.
7016         * manual/conf.texi: Fix references.
7017         * manual/ctype.texi: Likewise.
7018         * manual/errno.texi: Likewise.
7019         * manual/intro.texi: Likewise.
7020         * manual/locale.texi: Likewise.
7021         * manual/sysinfo.texi: Likewise.
7022         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7023
7024 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7025
7026         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7027         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7028
7029 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7030
7031         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7032         dxfer_direction.
7033
7034 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7035
7036         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7037         * locale/localeconv.c: Initialize new elements from ISO C99.
7038         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7039         new standard elements.
7040         * locale/categories.def: Adjust accordingly.
7041
7042         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7043         * iconv/iconv.c: Likewise.
7044         * conform/data/iconv.h-data: Likewise.
7045         * iconv/iconv_prog.c (process_block): Remove const from second
7046         parameter.
7047         (main): Remove const from addr definition.
7048         * manual/charset.texi (Generic Conversion Interface): Remove from
7049         inbuf parameter of iconv.
7050
7051         * intl/dcigettext.c: Fix typo in comment.
7052
7053 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7054
7055         * resolv/res_libc.c (_res): Initialize _sock to -1.
7056
7057 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7058
7059         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7060         (fopencookie@@GLIBC_2.2): New.
7061         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7062         (fopencookie@GLIBC_2.0): New.
7063         * libio/Versions: Add fopencookie to GLIBC_2.2.
7064
7065 2000-05-18  Andreas Jaeger  <aj@suse.de>
7066
7067         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7068         Closes PR libc/1731.
7069
7070         * manual/arith.texi (Parsing of Integers): Fix typo.
7071         Closes PR libc/1744, reported by blp@gnu.org.
7072
7073 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7074
7075         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7076         __extension__ to hexadecimal floating constant notation.
7077         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7078         Likewise.
7079         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7080         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7081         Likewise.
7082         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7083         HUGE_VALL): Likewise.
7084         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7085         HUGE_VALL): Likewise.
7086         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7087
7088 2000-05-17  Andreas Jaeger  <aj@suse.de>
7089
7090         * string/envz.h: Add pure attributes if possible.
7091
7092         * string/argz.h: argz_count is a pure function.
7093
7094         * string/strings.h: Add pure and const attributes if possible.
7095
7096         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7097         possibly searching through the whole memory.
7098         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7099
7100 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7101
7102         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7103         not yet defined.
7104         (_dl_cache_check_flags): Likewise.
7105         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7106         dl-cache.h.
7107
7108 2000-05-17  Andreas Jaeger  <aj@suse.de>
7109
7110         * manual/creature.texi (Feature Test Macros): Remove paragraph
7111         since the description is wrong.
7112         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7113
7114         * scripts/config.sub: New version.
7115         * scripts/config.guess: Likewise.
7116         * manual/texinfo.tex: Likewise.
7117
7118         * time/test_time.args: Removed.
7119         * time/Makefile (test_time-ARGS): Added contents here instead.
7120
7121         * posix/tstgetopt.args: Removed.
7122         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7123
7124         * Rules: Allow arguments for test files to be specified in
7125         Makefile with testname-ARGS; remove rules with .args in it.
7126
7127         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7128         remove old bogus rule for opendir-tst1.args.
7129
7130         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7131
7132         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7133         into objdir.  This allows a readonly sourcetree.
7134         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7135
7136 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7137             David Huggins-Daines <dhd@linuxcare.com>
7138
7139         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7140         cache_data in case of only new cache format correctly.
7141
7142         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7143         cache_file_new.
7144
7145         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7146         struct cache_file_new.
7147
7148         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7149         present.
7150
7151         * elf/cache.c (save_cache): Align struct new_file_cache.
7152         (print_cache): Likewise.
7153
7154 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7155
7156         * elf/soinit.c (__libc_global_ctors): Move
7157         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7158         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7159         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7160         variable, don't define it to __res_state call.
7161
7162 2000-05-13  Andreas Jaeger  <aj@suse.de>
7163
7164         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7165         Linux 2.3.99pre7.
7166         (AF_PPPOX): Likewise.
7167         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7168         (AF_PPPOX): Likewise.
7169
7170 2000-05-12  Andreas Jaeger  <aj@suse.de>
7171
7172         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7173         Reported by tmoestl@gmx.net, closes PR libc/1732.
7174
7175 2000-05-11  Jan Hubicka  <jh@suse.cz>
7176
7177         * misc/sys/cdefs.h: Add support for pure attribute.
7178
7179         * include/string.h: Add __attribute_pure__ to various functions.
7180         * string/string.h: Likewise.
7181
7182 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7183
7184         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7185         argument.
7186         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7187         R_SPARC_UA64.
7188         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7189
7190 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7191
7192         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7193         at proper place.  Compute the high nibble correctly.
7194
7195 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7196
7197         * elf/ldconfig.c: Include elf.h.
7198
7199         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7200         (_dl_vsym): Likewise.
7201         Reported by Owen Taylor <otaylor@redhat.com>.
7202
7203         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7204         always.
7205
7206 2000-05-08  Andreas Jaeger  <aj@suse.de>
7207
7208         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7209
7210         * intl/bindtextdom.c (set_binding_values): Add prototype.
7211
7212 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7213
7214         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7215         call to elf_machine_fixup_plt.
7216         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7217         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7218
7219 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7220
7221         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7222         they are not dlclose'd from underneath us.
7223
7224 2000-05-08  Andreas Schwab  <schwab@suse.de>
7225
7226         * posix/execle.c: Fix size parameter of memcpy.
7227
7228 2000-05-08  Andreas Schwab  <schwab@suse.de>
7229
7230         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7231         getpagesize syscall if available.
7232
7233 2000-05-08  Andreas Jaeger  <aj@suse.de>
7234
7235         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7236         set errno.
7237
7238 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7239
7240         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7241         sizeof(struct link_map *) chunks, not in bytes.
7242
7243 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7244
7245         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7246         only needed for locale.
7247         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7248         It's only needed for catgets.
7249         Patches by Greg McGary <gkm@eng.ascend.com>.
7250
7251 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7252
7253         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7254         Remove duplicate <errno.h> include.  Remove inclusion of
7255         <libintl.h> and "nsswitch.h".
7256         (set_cloexec_flag): New function, broken out of dbopen.
7257         (dbopen): Changed return type to `enum
7258         nss_status'.  Mostly rewritten to make sure that we do not report
7259         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7260         (internal_setent): Change return type to nss_status.
7261         Document, and make sure that the function
7262         behaves accordingly.  Make dynamically loading the database
7263         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7264         failed.
7265         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7266         unecessary casts.
7267         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7268         documentation.
7269         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7270         c_get function member.
7271         * nss/nss_db/nss_db.h: Add and tweak some comments.
7272         (DBT): Move typedef before NSS_DBC typedef.
7273         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7274
7275 2000-05-07  H.J. Lu  <hjl@gnu.org>
7276
7277         * csu/initfini.c: Moved to ....
7278         * sysdeps/generic/initfini.c: ...here.
7279
7280         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7281
7282 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7283
7284         * manual/resource.texi: Document POSIX scheduling functions.
7285         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7286
7287         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7288         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7289
7290         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7291         for x since promotion in comparison might leads to unexpected
7292         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7293
7294         * iconv/Makefile (tests): Add tst-iconv1.
7295         * iconv/tst-iconv1.c: New file.
7296         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7297         empty input buffer over full output buffer.
7298         (ucs4_internal_loop): Likewise.
7299         (ucs4_internal_loop_unaligned): Likewise.
7300         (internal_ucs4le_loop): Likewise.
7301         (internal_ucs4le_loop_unaligned): Likewise.
7302         (ucs4le_internal_loop): Likewise.
7303         (ucs4le_internal_loop_unaligned): Likewise.
7304         Reported by yaoz@nih.gov.
7305
7306 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7307
7308         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7309         returned != __GCONV_OK, there is nothing to clean up.
7310
7311 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7312
7313         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7314         OUTPUT_CHARSET environment variables.
7315
7316 2000-05-06  Andreas Jaeger  <aj@suse.de>
7317
7318         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7319         (struct cache_file_new): New.
7320         (struct file_entry): New (moved from cache.c).
7321         (struct cache_file): New (moved from cache.c).
7322
7323         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7324         from _dl_load_cache_lookup.
7325         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7326         the different cache formats.
7327         New variable cache_new for new format.
7328
7329         * elf/ldconfig.h: Change according to changes in cache.c and
7330         ldconfig.c; remove cache_libcmp; add opt_format.
7331
7332         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7333         stuff that's defined in those headers.
7334         Add hwcap to struct lib_entry.
7335         (opt_format): New variable to select cache format.
7336         (options): Add format parameter.
7337         (is_hwcap): New function.
7338         (path_hwcap): New function.
7339         (parse_opt): Handle new format parameter.
7340         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7341
7342         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7343         ldconfig is part of glibc.
7344         Include dl-cache.h and remove stuff that's defined there.
7345         (struct cache_entry): Add new member hwcap.
7346         (print_entry): Print hwcap, cleanup a bit.
7347         (print_cache): Print new and old formats.
7348         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7349         (save_cache): Save new and old formats.
7350         (add_to_cache): Handle hwcap.
7351
7352         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7353         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7354         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7355         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7356         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7357         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7358
7359 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7360
7361         * intl/dcigettext.c (alignof): New macro.
7362         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7363         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7364         freemem_size to 0.
7365
7366 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7367
7368         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7369         return value.
7370
7371 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7372
7373         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7374         (mempcpy): Correct typo is parameter list.
7375
7376 2000-05-06  Andreas Jaeger  <aj@suse.de>
7377
7378         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7379         functions unless -ffast-math is given to gcc.
7380
7381 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7382
7383         * po/ko.po: Update from translation team.
7384
7385 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7386
7387         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7388         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7389         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7390         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7391         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7392         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7393
7394         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7395         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7396         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7397
7398         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7399         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7400         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7401         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7402
7403         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7404         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7405
7406 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7407
7408         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7409         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7410
7411         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7412         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7413
7414         * sysdeps/ia64/Implies: New file.
7415         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7416         * sysdeps/ia64/Makefile: New file.
7417         * sysdeps/ia64/gmp-mparam.h: New file,
7418
7419         * sysdeps/ia64/elf/start.S: New file.
7420
7421         * sysdeps/ia64/bits/fenv.h: New file.
7422
7423 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7424
7425         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7426
7427 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7428
7429         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7430         ia64 has 64 bit .hash entries just as the Alpha.
7431
7432 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7433
7434         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7435
7436 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7437
7438         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7439         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7440         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7441         * sysdeps/ia64/fpu/fegetenv.c: New file.
7442         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7443         * sysdeps/ia64/fpu/fegetround.c: New file.
7444         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7445         * sysdeps/ia64/fpu/fesetenv.c: New file.
7446         * sysdeps/ia64/fpu/fesetround.c: New file.
7447         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7448         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7449         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7450         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7451         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7452
7453 2000-05-05  Andreas Jaeger  <aj@suse.de>
7454
7455         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7456
7457         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7458         (_dl_string_hwcap): New, does nothing.
7459
7460         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7461         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7462         (_dl_string_hwcap): New function, converts from string to hwcap
7463         encoding.
7464         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7465         (_DL_HWCAP_COUNT): New.
7466         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7467         (_dl_string_hwcap): New function, converts from string to hwcap
7468         encoding.
7469         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7470         (_DL_HWCAP_COUNT): New.
7471         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7472         (_dl_string_hwcap): New function, converts from string to hwcap
7473         encoding.
7474
7475 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7476
7477         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7478         * sysdeps/ia64/Dist: New file.
7479
7480         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7481         parameter to mprotect and for variable assignments.
7482
7483 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7484
7485         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7486         validity of map before dereferencing it.
7487
7488         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7489
7490 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7491
7492         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7493         lookup to the arguments to elf_machine_fixup_plt().
7494
7495         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7496         of the symbol being resolved to input argument list and make the
7497         function return the pointer to the reloc.
7498
7499         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7500         return valuie to lookup_t and return the value.
7501         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7502         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7503         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7504         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7505         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7506         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7507
7508         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7509         Make it an inline function returning value after calling
7510         __elf_machine_fixup_plt().
7511
7512         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7513         symbol address.
7514
7515         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7516         obtain the symbol address.
7517
7518         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7519         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7520
7521         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7522         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7523         inline on non ia64.
7524
7525 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7526
7527         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7528         symbol address of an object.
7529
7530         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7531         the symbol address of an object.
7532
7533         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7534         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7535         (_dl_lookup_symbol_skip): Likewise.
7536         (_dl_lookup_versioned_symbol): Likewise.
7537         (_dl_lookup_versioned_symbol_skip): Likewise.
7538
7539 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7540
7541         * elf/rtld.c (_dl_start): Get the function pointer return address
7542         via _dl_start_address for architectures that need a function
7543         pointer descriptor rather than just a pointer (ia64).
7544
7545         * sysdeps/generic/dl-lookupcfg.h: New file.
7546         * sysdeps/ia64/dl-lookupcfg.h: New file.
7547         * sysdeps/ia64/dl-machine.h: New file.
7548         * sysdeps/ia64/dl-symaddr.c: New file.
7549         * sysdeps/ia64/dl-fptr.c: New file.
7550
7551         * elf/elf.h: Add IA-64 specific definitions.
7552
7553 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7554
7555         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7556         end of enum.
7557
7558 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7559
7560         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7561         happy.
7562
7563 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7564
7565         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7566         symbol.  Call _dl_init rather than the old way.
7567
7568 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7569
7570         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7571         test for pointer in range of DSO address space.
7572
7573 2000-05-04  Andreas Jaeger  <aj@suse.de>
7574
7575         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7576
7577 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7578
7579         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7580         calls of _nl_make_l10nflist.
7581
7582         * libio/stdio.h: Make fseeko and ftello prototypes available is
7583         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7584
7585         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7586         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7587
7588 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7589
7590         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7591         before calling tfind.
7592
7593 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7594
7595         * resolv/resolv.h (res_querydomain): Remove redefinition to
7596         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7597
7598 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7599
7600         * po/gl.po: Update from translation team.
7601
7602         * manual/intro.texi (Program Basics): Change section title.
7603         * manual/process.texi: Fix reference.
7604         (Executing a File): Add reference exec in other section.
7605         * manual/signal.texi: Fix reference.
7606         * manual/startup.texi: Document syscall function.
7607         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7608
7609 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7610
7611         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7612         * intl/bindtextdom.c (set_binding_values): New function.
7613         (bindtextdomain): Call it.
7614         (bind_textdomain_codeset): New function.
7615         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7616         (free_mem): Free each binding's codeset.
7617         * intl/gettextP.h (struct binding): Add codeset field.
7618         (_nl_find_domain): Add domainbinding argument.
7619         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7620         Pass it to _nl_make_l10nflist.
7621         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7622         (_nl_make_l10nflist): Add domainbinding argument.
7623         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7624         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7625         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7626         locale_charset().
7627         * manual/message.texi: New node "Charset conversion in gettext".
7628
7629 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7630
7631         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7632         appropriate.  Handle possible __read error.
7633
7634 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7635
7636         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7637         compiler builtin.
7638         * intl/loadinfo.h (__builtin_expect): Likewise.
7639         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7640         __builtin_expect where appropriate.
7641         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7642         * intl/localealias.c (extend_alias_table): Return an error indicator.
7643         (read_alias_file): Bail out if extend_alias_table fails.
7644
7645 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7646
7647         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7648         * intl/localealias.c: Likewise.
7649
7650 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7651
7652         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7653         Initialize domain->plural and domain->nplurals even if there is no
7654         nullentry.
7655
7656 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7657
7658         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7659         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7660         In case of failure, goto converted.
7661
7662 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7663
7664         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7665         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7666         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7667         __gconv_open.
7668
7669 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7670
7671         * intl/dcigettext.c (transcmp): Compare the domains as well.
7672         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7673         not before.
7674         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7675         <errno.h>.
7676
7677 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7678
7679         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7680         Reported by Bruno Haible.
7681
7682 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7683
7684         * manual/arith.texi: Remove @w from @itemize.
7685
7686 2000-05-02  Andreas Jaeger  <aj@suse.de>
7687
7688         * conform/data/tar.h-data: Add some checks for specific values.
7689
7690         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7691         and RAND_MAX.
7692
7693         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7694         FOPEN_MAX.
7695
7696         * conform/data/netinet/in.h-data: Add exact checks for the values
7697         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7698
7699         * conform/data/float.h-data: Add some minimal values.
7700
7701         * conform/conformtest.pl: Test for macros with string constants,
7702         check for minimum and maximum values.
7703         Add limits.h to headers.
7704
7705         * conform/data/cpio.h-data: Test for value of MAGIC.
7706
7707         * conform/data/limits.h-data: New file.
7708
7709 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7710
7711         * math/Makefile (headers): Add bits/fenvinline.h.
7712
7713 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7714
7715         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7716         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7717
7718         * posix/Versions: Change posix_spawnattr_getdefault and
7719         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7720         and posix_spawnattr_setsigdefault respectively.
7721         * posix/spawn.h: Likewise.
7722         * posix/spawnattr_getdefault.h: Likewise.
7723         * posix/spawnattr_setdefault.h: Likewise.
7724         * conform/data/spawn.h-data: Likewise.
7725
7726 2000-05-01  Andreas Jaeger  <aj@suse.de>
7727
7728         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7729
7730 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7731
7732         * manual/sysinfo.texi: Document getdomainname, setdomainname
7733         and sysctl.
7734         * manual/string.texi: Fix typo.
7735         * manual/terminal.texi: Document gtty and stty.
7736         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7737
7738 2000-04-30  Andreas Jaeger  <aj@suse.de>
7739
7740         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7741         accordance with Austin Draft.
7742
7743 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7744
7745         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7746         to recognize second character in comment line.
7747
7748         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7749         ENOBUFS if we are out of memory.
7750
7751         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7752         available if __USE_XOPEN2K.
7753         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7754         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7755         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7756         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7757         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7758         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7759         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7760         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7761
7762 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7763
7764         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7765         Recognize option -s, -c, and -l.
7766
7767 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7768
7769         * nscd/nscd.c: Start new session for nscd, drop privilegs
7770         to configured user if requested and no -S parameter are used.
7771         * nscd/nscd.conf: Add new option "server-user".
7772         * nscd/nscd_conf.c: Add support for new "server-user" option.
7773         * nscd/nscd.h: Add declaration for server_user variable.
7774         Based on patch by Chris Wing <wingc@engin.umich.edu>
7775
7776 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7777
7778         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
7779         that changing the __restore and __restore_rt signal return code
7780         will break GDB.
7781
7782 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7783
7784         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
7785         <sys/user.h>.
7786
7787 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7788
7789         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
7790
7791 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7792
7793         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
7794         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
7795         arpa/inet.h.
7796         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
7797         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
7798         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
7799         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
7800         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
7801         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
7802         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
7803         posix_fallocate, and posix_madvise.
7804         * conform/data/netdb.h-data: New file.
7805         * conform/data/pthread.h-data: Add pthread_barrier_t,
7806         pthread_barrierattr_t, pthread_barrier_destroy,
7807         pthread_barrier_init, pthread_barrier_wait,
7808         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
7809         pthread_barrierattr_init, pthread_barrierattr_setpshared,
7810         pthread_condattr_getclock, pthread_condattr_setclock,
7811         pthread_getcpuclockid, pthread_mutex_timedlock,
7812         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7813         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
7814         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
7815         * conform/data/sched.h-data: Add sched_ss_low_priority,
7816         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
7817         SCHED_SPORADIC.
7818         * conform/data/semaphore.h-data: Add sem_timedwait.
7819         * conform/data/signal.h-data: Add SIGIO.
7820         * conform/data/spawn.h-data: New file.
7821         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
7822         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
7823         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
7824         Fix typo in gmtime_r definition.
7825         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
7826         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
7827         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
7828         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
7829         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
7830         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
7831         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
7832         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
7833         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
7834         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
7835         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
7836         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
7837         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
7838         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
7839         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
7840         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
7841         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
7842         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
7843         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
7844         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
7845         typo in off_t definition.
7846         * conform/data/net/if.h-data: New file.
7847         * conform/data/netinet/in.h-data: New file.
7848         * conform/data/netinet/tcp.h-data: New file.
7849         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
7850         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
7851         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
7852         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
7853         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
7854         and posix_typed_mem_open.
7855         * conform/data/sys/socket.h-data: New file.
7856         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
7857         * conform/data/sys/types.h-data: Add pthread_barrier_t,
7858         pthread_barrierattr_t, and pthread_spinlock_t.
7859         * conform/data/sys/un.h-data: New file.
7860         * conform/data/sys/utsname.h-data: New file.
7861
7862         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
7863         parameter.
7864         * inet/gethstbyad.c (gethostbyname): Likewise.
7865         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
7866         * inet/getipnodebyad.c (getipnodebyad): Likewise.
7867         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
7868         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
7869         Likewise.
7870         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
7871         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
7872         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
7873         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
7874         * resolv/gethnamaddr.c (gethostbyname): Likewise.
7875         * resolv/netdb.h (struct hostent): Fix type of h_length member.
7876         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
7877         and second parameter.
7878
7879         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
7880         == NULL.
7881
7882 2000-04-29  Andreas Jaeger  <aj@suse.de>
7883
7884         * conform/data/arpa/inet.h-data: New file.
7885
7886 2000-04-28  Geoff Clare <gwc@unisoft.com>
7887
7888         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
7889         path passed to ftw() or nftw() is an empty string.
7890         Closes PR libc/1710.
7891
7892 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7893
7894         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
7895         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
7896         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
7897         * localedata/tst-mbswcs4.c: New file.
7898         * localedata/tst-mbswcs5.c: New file.
7899
7900         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
7901         == NULL.  Little optimization.
7902
7903         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
7904         DT_PREINIT_ARRAYSZ).
7905         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
7906
7907         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
7908         overflows in conversion from ASCII.
7909
7910 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7911
7912         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
7913         * Makerules (full_config_sysdirs): Likewise.
7914         * MakeTAGS (full_config_sysdirs): Likewise.
7915
7916 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7917
7918         * .cvsignore: Remove linuxthreads.
7919         * po/.cvsignore: Remove *.pot.
7920         * posix/glob/.cvsignore: Removed.
7921         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
7922
7923 2000-04-25  Andreas Jaeger  <aj@suse.de>
7924
7925         * conform/Makefile (distribute): Also distribute contents of
7926         subdirectories.
7927
7928         * Makerules (no_deps): Remove abi-versions.h.
7929
7930         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
7931
7932 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7933
7934         * sysdeps/sparc/sparc64/elf/Dist: Remove.
7935         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
7936         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
7937         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
7938         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
7939         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
7940         objects.
7941
7942 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
7943
7944         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
7945
7946 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7947
7948         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
7949         * intl/l10nflist.c: Likewise.
7950
7951 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7952
7953         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
7954         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
7955         * intl/textdomain.c [!_LIBC]: Likewise.
7956         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
7957         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
7958         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
7959         syntax error.
7960
7961 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7962
7963         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
7964         character set conversion also in the case the translation was found
7965         after a hash collision or through binary search.  Store the maximum
7966         index together with the converted message.  Use iconv() when available.
7967         In case of out of memory during conversion, return the unconverted
7968         translated string, not NULL.
7969
7970 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7971
7972         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
7973         to avoid name clashes with the ia32 linker.
7974
7975 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7976
7977         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
7978         handling.
7979
7980 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7981
7982         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
7983         strtoumax, strfry, and memfrob.
7984         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
7985         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7986
7987         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
7988         if this function is available.
7989
7990         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
7991         all values.
7992
7993 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
7994
7995         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
7996
7997 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7998
7999         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8000         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8001         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8002         * localedata/tst-mbswcs3.c: New file.
8003
8004 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8005
8006         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8007         characters.  Don't handle incomplete characters as errors.
8008         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8009         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8010         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8011         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8012         * localedata/tst-mbswcs2.c: New file.
8013
8014         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8015         stored character in state in UNPACK_BYTES macro.
8016         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8017         test for available characters, handle result of BODY code correctly.
8018         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8019         (distribute): Add tst-mbswcs.sh.
8020         Add rule to run tst-mbswcs.sh.
8021         * localedata/tst-mbswcs.sh: New file.
8022         * localedata/tst-mbswcs1.c: New file.
8023
8024 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8025
8026         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8027         allocation fixups centrally, fix __builtin_expect call, return NULL
8028         on failure, not NIS_NOMEMORY.
8029
8030 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8031
8032         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8033
8034         * intl/loadinfo.h (internal_function): Define if not already defined.
8035
8036 2000-04-27  Andreas Jaeger  <aj@suse.de>
8037
8038         * intl/libintl.h: Fix typo, reported by Bruno Haible
8039         <haible@clisp.cons.org>.
8040
8041 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8042
8043         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8044         setting the state to GMON_PROF_BUSY.
8045
8046 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8047
8048         * elf/dl-profile.c (_dl_start_profile): define all variables which
8049         do not have to be global as local variables.
8050
8051         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8052         patch.  Keep needed tests for failed memory allocation.
8053
8054         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8055         __builtin_expect saying that we don't normally expect to profile.
8056
8057         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8058         __builtin_expect where desirable.
8059
8060 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8061
8062         * manual/Makefile (chapters): Add syslog.
8063         * manual/syslog.texi: New file.
8064         * manual/math.texi: Fix references.
8065         * manual/terminal.texi: Likewise.
8066         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8067
8068 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8069
8070         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8071         stdlib.h was not included or __USE_XOPEN not defined.
8072
8073 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8074
8075         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8076         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8077
8078 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8079
8080         * manual/examples/subopt.c (mount_opts): Add missing terminating
8081         entry.
8082         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8083
8084         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8085         * libio/ftello.c: Likewise.
8086         * libio/ftello64.c: Likewise.
8087         * libio/ioftell.c: Likewise.
8088         * sysdeps/generic/memrchr.c: Likewise.
8089         * sysdeps/posix/libc_fatal.c: Likewise.
8090         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8091         * misc/fstab.c: Include <string.h> for strcmp prototype.
8092         * sysdeps/generic/ldsodefs.h: Likewise.
8093         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8094         Patch by Kurt Roeckx <Q@ping.be>.
8095
8096         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8097         Remove db-open.  Change all uses.
8098         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8099
8100 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8101
8102         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8103         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8104         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8105         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8106         with .set noat/at to shut up warnings.
8107         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8108         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8109         compilation if __NR_pciconfig_iobase is not defined.
8110         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8111         Add alias.
8112
8113 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8114
8115         * manual/sysinfo.texi: Fix typo.
8116         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8117         Replace "high precision time" with "high accuracy clock".
8118         Fix language.
8119         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8120
8121         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8122         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8123         instead of malloc.
8124         * nis/nis_subr.c: Use __builtin_expect.
8125         * nis/ypclnt.c: Likewise.
8126         * nis/nis_getservlist.c: Likewise.
8127         * nis/nis_creategroup.c: Likewise.
8128
8129         * nis/nis_callback.c (__nis_create_callback): Check result of
8130         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8131         (__nis_destroy_callback): Fix memory leaks.
8132
8133 2000-04-21  Andreas Jaeger  <aj@suse.de>
8134
8135         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8136         * sysdeps/mips/mips64/add_n.S: Likewise.
8137         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8138         * sysdeps/mips/mips64/lshift.S: Likewise.
8139         * sysdeps/mips/mips64/mul_1.S: Likewise.
8140         * sysdeps/mips/mips64/rshift.S: Likewise.
8141         * sysdeps/mips/mips64/setjmp.S: Likewise.
8142         * sysdeps/mips/mips64/sub_n.S: Likewise.
8143         * sysdeps/mips/mips64/submul_1.S: Likewise
8144         * sysdeps/unix/mips/sysdep.S: Likewise.
8145
8146         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8147         and update comment.  The strtab from _dl_relocate_object can be
8148         used.
8149
8150 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8151
8152         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8153         * iconv/iconv_close.c (iconv_close): Likewise.
8154         * iconv/iconv_open.c (iconv_open): Likewise.
8155
8156         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8157         __builtin_expect where useful.
8158
8159         * grp/initgroups.c (initgroups): Test for result of memory
8160         allocation and punt if it fails.
8161
8162         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8163         * grp/fgetgrent.c (fgetfrent): Likewise.
8164         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8165
8166 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8167
8168         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8169
8170 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8171
8172         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8173         don't search for NUL byte to decrement counter.
8174         Reported by Ulrich.Brink@sap.com.
8175
8176         * iconv/gconv_simple.c: Define separate functions to convert from
8177         UCS4/UCS4-LE to the internal encoding.
8178         * iconv/gconv_builtin.h: Use separate functions to convert from
8179         UCS4/UCS4-LE to the internal encoding.
8180         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8181         __gconv_transform_ucs4le_internal.
8182
8183         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8184         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8185
8186         * iconv/skeleton.c: Add some more __builtin_expect.
8187         * iconv/loop.c: Likewise.
8188
8189 2000-03-08  H.J. Lu  <hjl@gnu.org>
8190
8191         * posix/regex.c (regex_compile): Correctly handle "\{" when
8192         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8193
8194 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8195
8196         * manual/stdio.texi: Give advise about handling error when using
8197         stream functions.
8198         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8199
8200 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8201
8202         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8203         field to nelems * sizeof (uint32_t).
8204         * locale/programs/ld-address.c (address_output): Align word fields
8205         properly.
8206         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8207         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8208         field.
8209         Avoid giving arbitrary garbage in the crncystr field.
8210         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8211         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8212         fields.
8213         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8214         Don't restart idx pointers to idx end at the decimal_point_wc field.
8215         * locale/programs/ld-time.c (time_output): week_1stday should be
8216         word, not byte.  Align it properly.
8217
8218 2000-04-19  H.J. Lu  <hjl@gnu.org>
8219
8220         * csu/gmon-start.c (_start): Declared as "extern void".
8221         (etext): Likewise.
8222
8223 2000-04-18  Andreas Jaeger  <aj@suse.de>
8224
8225         * manual/install.texi (Running make install): Don't mention utmpd
8226         anymore.
8227
8228 2000-04-18  Andreas Jaeger  <aj@suse.de>
8229
8230         * linuxthreads/Versions: Use ld instead of ld.so.
8231
8232         * elf/Makefile (ld-map): Use ld.map.
8233
8234         * Versions.def: Use ld instead of ld.so.
8235         * elf/Versions: Likewise.
8236         * sysdeps/mach/hurd/Versions: Likewise.
8237
8238 2000-04-20  Andreas Jaeger  <aj@suse.de>
8239
8240         * elf/rtld.c (print_statistics): Move ifndef further up.
8241         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8242         (dl_main): Likewise.
8243
8244 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8245
8246         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8247         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8248
8249         * po/cs.po: Update from translation team.
8250
8251         * sysdeps/generic/updwtmp.c: Remove daemon support.
8252
8253         * login/Makefile (routines): Remove utmp_daemon.
8254
8255         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8256         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8257         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8258         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8259
8260         * elf/rtld.c: Display statitics option also if hp timing is not
8261         available.
8262
8263         * login/programs/connection.c: Removed.
8264         * login/programs/database.c Removed.
8265         * login/programs/error.c: Removed.
8266         * login/programs/request.c: Removed.
8267         * login/programs/xtmp.c: Removed.
8268         * login/programs/xtmp.h: Removed.
8269         * login/Makefile: Remove rules for utmpd.
8270         * login/README.utmpd: Removed.
8271         * login/utmp_daemon.c: Removed.
8272         * login/getutent_r.c: Remove references to daemon functions.
8273         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8274         declaration.
8275
8276 2000-04-18  Andreas Jaeger  <aj@suse.de>
8277
8278         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8279         2.2 for libnsl, libresolv, librt, libnss_*.
8280
8281         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8282
8283         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8284
8285 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8286
8287         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8288         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8289         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8290         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8291         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8292         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8293         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8294         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8295         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8296         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8297         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8298         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8299         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8300         it here.
8301         * sysdeps/unix/sysv/aix/msync.c: New file.
8302         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8303         * sysdeps/unix/sysv/aix/net/if.h: New file.
8304         * sysdeps/unix/sysv/aix/pipe.c: New file.
8305         * sysdeps/unix/sysv/aix/poll.c: New file.
8306         * sysdeps/unix/sysv/aix/rename.c: New file.
8307         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8308         * sysdeps/unix/sysv/aix/select.c: New file.
8309         * sysdeps/unix/sysv/aix/semctl.c: New file.
8310         * sysdeps/unix/sysv/aix/semget.c: New file.
8311         * sysdeps/unix/sysv/aix/semop.c: New file.
8312         * sysdeps/unix/sysv/aix/sendto.c: New file.
8313         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8314         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8315         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8316         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8317         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8318         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8319         * sysdeps/unix/sysv/aix/setsid.c: New file.
8320         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8321         * sysdeps/unix/sysv/aix/shmat.c: New file.
8322         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8323         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8324         * sysdeps/unix/sysv/aix/shmget.c: New file.
8325         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8326         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8327         * sysdeps/unix/sysv/aix/socket.c: New file.
8328         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8329         * sysdeps/unix/sysv/aix/speed.c: New file.
8330         * sysdeps/unix/sysv/aix/symlink.c: New file.
8331         * sysdeps/unix/sysv/aix/sync.c: New file.
8332         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8333         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8334         * sysdeps/unix/sysv/aix/times.c: New file.
8335         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8336         * sysdeps/unix/sysv/aix/umask.c: New file.
8337         * sysdeps/unix/sysv/aix/unlink.c: New file.
8338         * sysdeps/unix/sysv/aix/ustat.c: New file.
8339         * sysdeps/unix/sysv/aix/utimes.c: New file.
8340
8341 2000-04-18  Andreas Jaeger  <aj@suse.de>
8342
8343         * manual/startup.texi (Environment Access): Fix putenv prototype
8344         according to recent changes.
8345         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8346         PR libc/1692.
8347
8348         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8349         needed.
8350
8351 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8352
8353         * posix/Makefile (tests): Add tst-getaddrinfo.
8354         * posix/tst-getaddrinfo.c: New file.
8355
8356 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8357
8358         * manual/sysinfo.texi: Document that umount2 is not widely available.
8359
8360         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8361         signal timing is not really implemented.
8362
8363 2000-04-17  Andreas Jaeger  <aj@suse.de>
8364
8365         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8366
8367 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8368
8369         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8370         and inst_libdir.
8371
8372 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8373
8374         * manual/intro.texi: Change reference from System Information to
8375         System Management.
8376         * manual/users.texi: Likewise.
8377         * manual/conf.texi: Likewise.
8378         * manual/sysinfo.texi: Document mount, umount, and umount2.
8379         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8380
8381 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8382
8383         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8384         Create wnumstr as well as numstr to support wide character output
8385         correctly.
8386
8387 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8388
8389         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8390         modification and move it...
8391         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8392         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8393         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8394         switch to $(LD) on sparc-linux.
8395
8396 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8397
8398         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8399         and setresuid from sysdep_routines.
8400
8401 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8402
8403         * manual/Makefile (chapters): Add resource.
8404
8405         * manual/time.texi: Move section on resources to...
8406         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8407         and vtimes.
8408         * manual/setjmp.texi: Adjust back reference.
8409         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8410
8411         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8412         definition.
8413         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8414         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8415         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8416         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8417         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8418         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8419         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8420         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8421         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8422         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8423         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8424         * sysdeps/unix/sysv/aix/Implies: New file.
8425         * sysdeps/unix/sysv/aix/Versions: New file.
8426         * sysdeps/unix/sysv/aix/bind.c: New file.
8427         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8428         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8429         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8430         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8431         * sysdeps/unix/sysv/aix/chdir.c: New file.
8432         * sysdeps/unix/sysv/aix/chmod.c: New file.
8433         * sysdeps/unix/sysv/aix/chroot.c: New file.
8434         * sysdeps/unix/sysv/aix/creat.c: New file.
8435         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8436         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8437         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8438         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8439         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8440         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8441         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8442         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8443         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8444         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8445         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8446         * sysdeps/unix/sysv/aix/link.c: New file.
8447         * sysdeps/unix/sysv/aix/madvise.c: New file.
8448         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8449         * sysdeps/unix/sysv/aix/mknod.c: New file.
8450         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8451         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8452         * sysdeps/unix/sysv/aix/msgget.c: New file.
8453         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8454
8455 2000-04-17  Andreas Jaeger  <aj@suse.de>
8456
8457         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8458         as suggested by Ulrich Drepper.
8459         (__dl_runtime_resolve): Remove unused variable, initialize sym
8460         directly.
8461         (RTLD_START): Document OFFSET_GP_GOT.
8462         (OFFSET_GP_GOT): New magic value.
8463         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8464         (elf_machine_got_rel): Only declare strtab if needed.
8465         (elf_machine_relplt): Removed, it's not needed.
8466         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8467
8468         * sysdeps/mips/add_n.S: Add newline at EOF.
8469         * sysdeps/mips/rshift.S: Likewise.
8470         * sysdeps/mips/mul_1.S: Likewise.
8471         * sysdeps/mips/lshift.S: Likewise.
8472         * sysdeps/mips/addmul_1.S: Likewise.
8473
8474 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8475
8476         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8477
8478         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8479         * elf/dl-lookup.c: Likewise.
8480         * elf/dl-init.c (_dl_init): Likewise.
8481         * elf/dl-fini.c (_dl_fini): Likewise.
8482         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8483         * elf/dl-close.c (_dl_close): Likewise.
8484         * elf/rtld.c (_dl_start_final): Likewise.
8485
8486         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8487
8488 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8489
8490         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8491         only fall back on using Linux.
8492
8493         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8494         Before testing versions check that we actually loaded the object
8495         and whether we are in trace mode.  If not loaded during tracing don't
8496         test versions in this object.
8497         (_dl_check_all_versions): Take new parameter and pass to
8498         _dl_check_map_versions.
8499         * sysdeps/generic/ldsodefs.h: Update prototypes for
8500         _dl_check_all_versions and _dl_check_map_versions.
8501         * elf/rtld.c (struct version_check_args): Add dotrace.
8502         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8503         (dl_main): Pass info about trace mode to version_check_doit.
8504         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8505         _dl_check_all_versions.
8506
8507         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8508         and getutmpx.
8509         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8510
8511         * manual/argp.texi: Document index parameter of argp_parse.
8512         Fix typo.
8513         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8514
8515 2000-04-14  Andreas Jaeger  <aj@suse.de>
8516
8517         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8518         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8519
8520         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8521
8522 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8523
8524         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8525         compat_symbol call for old adjtime.
8526
8527         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8528         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8529
8530         * posix/Makefile (headers): Add spawn.h.
8531         (distribute): Add spawn_int.h.
8532         (routines): Add spawn_faction_init, spawn_faction_destroy,
8533         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8534         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8535         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8536         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8537         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8538         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8539         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8540         posix_spawnattr_init, posix_spawnattr_destroy,
8541         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8542         posix_spawnattr_getflags, posix_spawnattr_setflags,
8543         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8544         and posix_spawnp.
8545         * posix/spawn.c: New file.
8546         * posix/spawn.h: New file.
8547         * posix/spawn_faction_addclose.c: New file.
8548         * posix/spawn_faction_adddup2.c: New file.
8549         * posix/spawn_faction_addopen.c: New file.
8550         * posix/spawn_faction_destroy.c: New file.
8551         * posix/spawn_faction_init.c: New file.
8552         * posix/spawn_int.h: New file.
8553         * posix/spawnattr_destroy.c: New file.
8554         * posix/spawnattr_getdefault.c: New file.
8555         * posix/spawnattr_getflags.c: New file.
8556         * posix/spawnattr_getpgroup.c: New file.
8557         * posix/spawnattr_getschedparam.c: New file.
8558         * posix/spawnattr_getschedpolicy.c: New file.
8559         * posix/spawnattr_getsigmask.c: New file.
8560         * posix/spawnattr_init.c: New file.
8561         * posix/spawnattr_setdefault.c: New file.
8562         * posix/spawnattr_setflags.c: New file.
8563         * posix/spawnattr_setpgroup.c: New file.
8564         * posix/spawnattr_setschedparam.c: New file.
8565         * posix/spawnattr_setschedpolicy.c: New file.
8566         * posix/spawnattr_setsigmask.c: New file.
8567         * posix/spawni.c: New file.
8568         * posix/spawnp.c: New file.
8569
8570         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8571         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8572
8573 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8574
8575         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8576         * malloc/malloc.c: Implement posix_memalign for glibc.
8577         * include/stdlib.h: Add prototype for __posix_memalign.
8578         * stdlib/stdlib.h: Add prototype for posix_memalign.
8579
8580 2000-04-14  Andreas Jaeger  <aj@suse.de>
8581
8582         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8583         symidx correctly.
8584         (elf_machine_got_rel): Cast sym correctly.
8585
8586         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8587         * sysdeps/mips/addmul_1.S: Likewise.
8588         * sysdeps/mips/lshift.S: Likewise.
8589         * sysdeps/mips/mul_1.S: Likewise.
8590         * sysdeps/mips/rshift.S: Likewise.
8591         * sysdeps/mips/sub_n.S: Likewise.
8592         * sysdeps/mips/submul_1.S: Likewise.
8593
8594         * stdlib/stdlib.h: Fix typo in comment.
8595
8596         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8597         2.2 for libdl, ld and libm.
8598
8599         * sysdeps/generic/madvise.c: Fix typos.
8600
8601         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8602
8603         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8604
8605         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8606         warnings.
8607
8608 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8609
8610         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8611         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8612         Make old name weak alias.
8613         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8614         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8615         Make old name weak alias.
8616         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8617
8618         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8619         posix_fallocate, and posix_fallocate64.
8620         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8621         posix_fallocate, and posix_fallocate64.
8622         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8623         posix_fallocate, and posix_fallocate64.
8624         * sysdeps/generic/fadvise.c: New file.
8625         * sysdeps/generic/fadvise64.c: New file.
8626         * sysdeps/generic/fallocate.c: New file.
8627         * sysdeps/generic/fallocate64.c: New file.
8628         * sysdeps/posix/fallocate.c: New file.
8629         * sysdeps/posix/fallocate64.c: New file.
8630         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8631         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8632         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8633         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8634         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8635         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8636         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8637         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8638         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8639
8640         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8641         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8642
8643 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8644
8645         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8646         * misc/sys/mman.h (posix_madvise): Add prototype.
8647         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8648         old name and posix_madvise weak aliases.
8649         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8650         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8651         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8652         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8653         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8654         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8655         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8656
8657 2000-04-13  Andreas Jaeger  <aj@suse.de>
8658
8659         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8660         versioning.
8661         (elf_machine_got_rel): Only add runtime display if needed.
8662         (elf_machine_got_rel): Handle symbol versioning.
8663
8664 2000-04-13  Andreas Jaeger  <aj@suse.de>
8665
8666         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8667
8668         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8669         default.
8670
8671         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8672         with some applications.
8673         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8674
8675         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8676         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8677         * sysdeps/mips/setjmp.S: Likewise.
8678
8679         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8680
8681 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8682
8683         * posix/globtest.sh: Work around inconsistency with expanding ~/
8684         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8685
8686 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8687
8688         * posix/getconf.c: Add support for many more POSIX options.
8689         * sysdeps/posix/sysconf.c: Likewise.
8690         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8691         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8692         _POSIX_SHELL.
8693         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8694         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8695         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8696         CLOCK_THREAD_CPUTIME_ID.
8697         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8698         CLOCK_PROCESS_CPUTIME_ID.
8699         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8700         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8701         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8702         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8703
8704         * malloc/Makefile (tests): Add tst-calloc.
8705         * malloc/tst-calloc.c: New file.
8706
8707         * sysdeps/arm/libm-test-ulps: New file.
8708
8709         * malloc/malloc.c: Undo all of today's changes.
8710
8711         * locale/programs/locale.c (show_info): Don't try to look into
8712         data for LC_ALL (there is none).
8713
8714         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8715         avoid writing over boundary.
8716         Patch by Greg McGary <gkm@eng.ascend.com>.
8717
8718         * sysdeps/arm/memprof.h: New file.
8719
8720 2000-04-12  Andreas Jaeger  <aj@suse.de>
8721
8722         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8723
8724         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8725         for memmem declaration.
8726
8727 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8728
8729         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8730         to -1.
8731         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8732
8733         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8734         mode is invalid.
8735         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8736         Patch by Bart Veer <bartv@redhat.com>.
8737
8738         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8739         function interface.
8740
8741 2000-04-11  Andreas Jaeger  <aj@suse.de>
8742
8743         * sysdeps/mips/dl-machine.h: Update some comments.
8744         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8745
8746 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8749         _POSIX_SHARED_MEMORY_OBJECTS.
8750
8751         * rt/Makefile (tests): Add tst-shm.
8752         Add rules to generate tst-shm.
8753         * rt/tst-shm.c: New file.
8754
8755         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8756         for descriptor.
8757
8758         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8759         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8760         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8761         * sysdeps/generic/shm_open.c: New file.
8762         * sysdeps/generic/shm_unlink.c: New file.
8763         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8764         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8765         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8766          __endmntent, __getmntent_r, __setmntent, and __statfs.
8767
8768         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8769         fragmentation by allocating new memory at the end instead of
8770         reallocating.
8771
8772         * posix/globtest.sh: Fix last change.
8773
8774 2000-04-10  Philip Blundell  <philb@gnu.org>
8775
8776         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8777         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8778         IPV6_DROP_MEMBERSHIP.
8779         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
8780         Likewise.
8781
8782 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8783
8784         * elf/readlib (process_file): Close streams in case of an error.
8785
8786 2000-04-09  Andreas Jaeger  <aj@suse.de>
8787
8788         * elf/readlib.c (process_file): Check if file is big enough to
8789         contain aout and ELF headers.
8790         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
8791
8792 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
8793
8794         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
8795
8796 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8797
8798         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
8799         stream unbuffered.
8800         * rt/Makefile (tests): Add tst-clock.
8801         Add rules to build tst-clock.
8802         * rt/tst-clock.c: New file.
8803         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
8804         about initialization of nsec.
8805         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
8806         about initialization of freq.  Set retval to zero if successful.
8807         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
8808
8809 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8810
8811         * Versions.def (librt): Add GLIBC_2.2.
8812         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
8813         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
8814         timer_getoverr, timer_gettime, and timer_settime.
8815         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
8816         clock_settime, timer_create, timer_delete, timer_getoverrun,
8817         timer_gettime, and timer_settime.
8818         * sysdeps/generic/clock_getcpuclockid.c: New file.
8819         * sysdeps/generic/get_clockfreq.c: New file.
8820         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
8821         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
8822         * sysdeps/mach/hurd/i386/bits/time.h: New file.
8823         * sysdeps/unix/i386/i586/clock_getres.c: New file.
8824         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
8825         * sysdeps/unix/i386/i686/Implies: New file.
8826         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
8827         * time/Makefile (routines): Move clock_getres, clock_gettime,
8828         clock_settime, timer_create, timer_delete, timer_getoverr,
8829         timer_gettime, and timer_settime to rt/Makefile.
8830         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
8831         clock_settime, timer_create, timer_delete, timer_getoverrun,
8832         timer_gettime, and timer_settime.
8833         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
8834
8835         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
8836         and not const as attribute name.
8837
8838 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
8839
8840         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
8841
8842 2000-04-10  Andreas Schwab  <schwab@suse.de>
8843
8844         * posix/globtest.sh: Skip tests that depend on unreadable
8845         directories if run as root.
8846
8847 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8848
8849         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
8850         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
8851
8852 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8853
8854         * sysdeps/unix/clock_gettime.c: New file.
8855         * sysdeps/unix/clock_settime.c: New file.
8856         * sysdeps/posix/clock_getres.c: New file.
8857
8858         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
8859
8860         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
8861         lseek call be passing in a buffer which never allow a successful
8862         first getdents syscall if not at leas the initial entry can be
8863         stored in the user buffer.
8864
8865         * localedata/Makefile: Add rules to clean up directories created by
8866         new strfmon tests.
8867
8868 2000-04-09  Geoff Clare  <gwc@unisoft.com>
8869
8870         * localedata/tst-fmon.data: Added new tests for strfmon()
8871         using test locales with all combinations of cs_precedes,
8872         sign_posn and sep_by_space.
8873         * localedata/tst-fmon.sh: Updated to support the new tests.
8874         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
8875         the localedef source for the new strfmon() test locale.
8876         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
8877         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
8878         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
8879         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
8880         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
8881         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
8882         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
8883         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
8884         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
8885         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
8886         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
8887         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
8888         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
8889         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
8890
8891         * stdlib/strfmon.c: Correct problems with missing or extra
8892         spaces for unusual combinations of sign_posn and sep_by_space.
8893         Improved left-precision alignment code.
8894
8895 2000-04-07  Andreas Jaeger  <aj@suse.de>
8896
8897         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
8898
8899 2000-04-10  Andreas Jaeger  <aj@suse.de>
8900
8901         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
8902
8903 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8904
8905         Implement handling of restartable conversion functions according to
8906         ISO C.
8907         * iconv/gconv.h (__gconv_fct): Add additional parameter.
8908         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
8909         * iconv/gconv.c: Pass additional parameter to conversion function.
8910         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
8911         (internal_ucs4le_loop_single): New function.
8912         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
8913         (__gconv_transform_internal_ascii): Likewise.
8914         (__gconv_transform_internal_utf8): Likewise.
8915         (__gconv_transform_utf8_internal): Likewise.
8916         (__gconv_transform_ucs2_internal): Likewise.
8917         (__gconv_transform_internal_ucs2): Likewise.
8918         (__gconv_transform_ucs2reverse_internal): Likewise.
8919         (__gconv_transform_internal_ucs2reverse): Likewise.
8920         (internal_ucs4le_loop_unaligned): Before return
8921         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
8922         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
8923         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
8924         * iconv/loop.c: Fit in definition of function to convert one character
8925         for processing of left-over bytes from the state object.
8926         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
8927         inend to match names in loop functions.
8928         (RESET_INPUT_BUFFER): Change apprpriately.
8929         (gconv): If needed, call function to process bytes from the state
8930         object.  Similar at the end: store left over bytes if input is
8931         incomplete.
8932         Take extra argument and add new argument to all calls of the
8933         conversion function.
8934         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
8935         information in the state object to not conflict with length count.
8936         * iconvdata/iso-2022-jp.c: Likewise.
8937         * iconvdata/iso-2022-kr.c: Likewise.
8938         * iconvdata/unicode.c: Adjust for change change in parameters of
8939         skeleton function.
8940         * iconvdata/utf-16.c: Likewise.
8941         * libio/iofwide.c: Add new parameter to all calls of conversion
8942         function.
8943         * wcsmbs/btowc.c: Likewise.
8944         * wcsmbs/mbrtowc.c: Likewise.
8945         * wcsmbs/mbsnrtowcs.c: Likewise.
8946         * wcsmbs/mbsrtowcs.c: Likewise.
8947         * wcsmbs/wcrtomb.c: Likewise.
8948         * wcsmbs/wcsnrtombs.c: Likewise.
8949         * wcsmbs/wcsrtombs.c: Likewise.
8950         * wcsmbs/wctob.c: Likewise.
8951
8952         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
8953         MAX_NEEDED_INPUT.
8954
8955 2000-04-07  Andreas Jaeger  <aj@suse.de>
8956
8957         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
8958         newer kernels.
8959
8960 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
8961
8962         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
8963         element a union to allow byte access.
8964         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
8965         mbstate_t.
8966         * iconvdata/iso-2022-jp.c: Likewise.
8967         * iconvdata/iso-2022-kr.c: Likewise.
8968         * wcsmbs/mbsinit.c: Likewise.
8969         * stdlib/mblen.c: Likewise.
8970         * stdio-common/printf-parse.h: Likewise.
8971
8972 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
8973
8974         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
8975         kernel does not allow relative seeks on descriptors associated
8976         with directories.  Go back to get the position in the directory
8977         every time we enter the function.  Return -1 and set errno if one
8978         entry could be read from the kernel but does not fit into the
8979         buffer passed in by the user.
8980
8981         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
8982         Support ..(2).. ellipsis.
8983         (parse_charmap): Recognize ..(2).. etc and pass step down.
8984         Correctly generate names for UCS4 characters.
8985
8986         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
8987         (ctype_finish): We know the wide character value for <SP>,
8988         don't search.
8989         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
8990         (charclass_ucs4_ellipsis): Likewise.
8991         (read_translit_ignore_entry): Store ellipsis step.
8992         (ctype_read): Recognize ..(2).. etc and pass step down.
8993
8994         * locale/programs/linereader.c (lr_token): When seeing comment
8995         character ignore only rest of line in sources but stop at escaped
8996         newline.
8997         Recognize ..(2).. and ....(2).....
8998
8999         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9000         and tok_ellipsis4_2.
9001
9002 2000-04-06  Andreas Jaeger  <aj@suse.de>
9003
9004         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9005         removed, remove it here also.
9006         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9007         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9008         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9009         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9010
9011 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9012
9013         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9014         include bits/sigcontext.h.
9015         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9016
9017 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9018
9019         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9020         collation symbol definition.  Value in quivalence definition must
9021         be defined, don't check that it is not.
9022
9023         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9024         values as character names.
9025
9026         * locale/programs/ld-ctype.c (get_character): Handle missing
9027         repertoire map correctly.
9028
9029 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9030
9031         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9032         because it is used in generic code.
9033         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9034         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9035         * intl/gettext.c: Include <locale.h>.
9036         * intl/ngettext.c: Likewise.
9037
9038 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9039
9040         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9041         socklen_t type for size.
9042         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9043         init function interface.
9044         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9045         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9046         sys/ucontext.h.
9047         (__jmp_buf): Declare the whole type structure here, don't use
9048         ucontext.
9049
9050 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9051
9052         * iconv/skeleton.c (put16u): Fix typo.
9053         Reported by Bruno Haible <haible@ilog.fr>.
9054
9055         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9056         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9057         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9058         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9059         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9060         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9061
9062         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9063         * Makefile (distribute): Add abi-versions.awk and
9064         firstversions.awk.
9065         Patches by Torsten Duwe <duwe@caldera.de>.
9066
9067 2000-04-05  Andreas Schwab  <schwab@suse.de>
9068
9069         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9070
9071 2000-04-05  Andreas Schwab  <schwab@suse.de>
9072
9073         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9074         entry point, used on Hurd.
9075
9076 2000-04-04  Andreas Jaeger  <aj@suse.de>
9077
9078         * intl/Makefile: Only run the gettext test with shared libraries.
9079
9080 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9081
9082         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9083         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9084
9085 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9086
9087         * Makeconfig: Undo last change.
9088         * configure.in: If --disable-shared was given, don't set VERSIONING,
9089         don't define DO_VERSIONING, and don't give scare warning for no
9090         versioning.
9091         * configure: Regenerated.
9092
9093 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9094
9095         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9096
9097 2000-04-04  Andreas Jaeger  <aj@suse.de>
9098
9099         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9100
9101 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9102
9103         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9104         STV_HIDDEN and STV_INTERNAL during lookup.
9105         (profile_fixup): Likewise.
9106         * elf/dl-reloc.c (RESOLVE): Likewise.
9107
9108         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9109         unaligned so that it compiles for system which need unaligned
9110         access handling.
9111
9112 2000-04-04  Andreas Schwab  <schwab@suse.de>
9113
9114         * elf/cache.c (print_entry): Only look at the type field when
9115         printing the type.
9116
9117 2000-04-04  Andreas Schwab  <schwab@suse.de>
9118
9119         * iconvdata/big5.c (BODY): Fix typo.
9120
9121 2000-04-04  Andreas Schwab  <schwab@suse.de>
9122
9123         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9124         function interface.  Remove unused _dl_start_user entry point.
9125
9126 2000-04-03  Andreas Jaeger  <aj@suse.de>
9127
9128         * include/arpa/inet.h (__inet_aton): Add protoype.
9129
9130 2000-04-01  Andreas Jaeger  <aj@suse.de>
9131
9132         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9133
9134         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9135         * sysdeps/mach/mips/thread_state.h: Likewise.
9136
9137         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9138         * sysdeps/generic/fegetenv.c: Likewise.
9139         * sysdeps/generic/fesetenv.c: Likewise.
9140         * sysdeps/generic/feupdateenv.c: Likewise.
9141         * sysdeps/generic/fraiseexcpt.c: Likewise.
9142         * sysdeps/generic/fsetexcptflg.c: Likewise.
9143         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9144         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9145         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9146         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9147
9148 2000-04-02  H.J. Lu  <hjl@gnu.org>
9149
9150         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9151
9152 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9153
9154         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9155         (add_name_to_object): Add cast in malloc call.
9156         (fillin_rpath): Optimize loop to initialize ->status a bit.
9157
9158         * sysdeps/i386/dl-machine.h: Undo last change.
9159         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9160         Restore %edx register after call here.
9161
9162         * sysdeps/arm/atomicity.h: New file.
9163         Contributed by Jesper Skov <jskov@redhat.com>.
9164
9165 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9166
9167         * Makeconfig (preprocess-versions): Undo last change.
9168         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9169
9170         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9171         here, before we might move the stack.
9172         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9173         (init1): And not here.
9174
9175         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9176         change, to restore argc value in call-clobbered register after
9177         RTLD_START_SPECIAL_INIT, which will contain a call.
9178
9179         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9180         allocating and initializing L->l_initfini.
9181
9182         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9183
9184 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9185
9186         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9187         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9188         (open_path): Change type of fourth parameter.  Make pointer to array
9189         of pointers.  Create variable dirs with original type.
9190         Track whether any directory for the object exists and if not,
9191         change *DIRSP to (void*) -1 to signal there is no such search path.
9192         (_dl_map_object): Change all calls of open_path.
9193         Rewrite decompose_rpath calls.
9194
9195 2000-03-31  Andreas Schwab  <schwab@suse.de>
9196
9197         * string/strfry.c: Declare STATE as array of char instead of int
9198         and do not initialize it (done by initstate_r).  Pass correct
9199         size.
9200
9201 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9202
9203         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9204
9205         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9206         instruction out of the code.
9207
9208 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9209
9210         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9211         element at this position.
9212
9213         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9214         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9215         l_reldeps elements.
9216         * elf/dl-lookup.c (add_dependency): New function.
9217         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9218         dynamically loaded object.
9219         (_dl_lookup_symbol_skip): Likewise.
9220         (_dl_lookup_versioned_symbol): Likewise.
9221         (_dl_lookup_versioned_symbol_skip): Likewise.
9222         * elf/dl-open.c: Don't define _dl_load_lock here...
9223         * elf/rtld.c: ...but here...
9224         * elf/dl-support.c: ...and here.
9225         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9226         through relocation.
9227         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9228         relocations.
9229         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9230         anymore.
9231         * dlfcn/glrefmain.c: Add one more debug message.
9232
9233         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9234         command line.
9235         * Makerules (sysd-versions): Use ( ) instead of { }.
9236
9237         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9238         optimize for the non-debugging case.
9239         * elf/dl-lookup.c: Likewise.
9240         * sysdeps/generic/libc-start.c: Likewise.
9241
9242 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9243
9244         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9245         (init1): Don't initialize __environ here, since init already does it.
9246         (first_init): New function, broken out of _init.
9247         (_hurd_stack_setup): Use it.
9248         [SHARED] (_dl_init_first): New function, renamed from old _init.
9249         (init1) [SHARED]: Don't call posixland_init here.
9250         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9251         [SHARED] (_init): Define as alias for posixland_init.
9252         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9253         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9254         RTLD_START_SPECIAL_INIT before calling initializers.
9255         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9256         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9257         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9258         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9259
9260         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9261         since we define the function with the name `tmpfile'.
9262
9263         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9264         * hurd/Versions: Likewise.
9265
9266 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9267
9268         * elf/dl-runtime.c (fixup): Fix typo in comment.
9269
9270         * resolv/netdb.h (getnameinfo): All length parameters are of type
9271         socklen_t.
9272         * inet/getnameinfo.c: Likewise.
9273
9274 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9275
9276         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9277         (gethostname): Change type of second parameter to socklen_t.
9278         * include/unistd.h (__gethostname): Change type of second
9279         parameter to socklen_t.
9280         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9281         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9282         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9283         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9284         Likewise.
9285         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9286         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9287         Allow definition elsewhere.
9288         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9289         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9290         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9291         * sysdeps/generic/bits/types.h: Define __socklen_t.
9292         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9293         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9294         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9295         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9296         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9297         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9298         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9299
9300         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9301         (inet_lnaof): Likewise.
9302         (inet_netof): Likewise.
9303         (inet_network): Likewise.
9304         (inet_aton): Likewise.
9305         (inet_makeaddr): Change parameter types to in_addr_t.
9306         (inet_neta): Likewise.
9307         (inet_ntop): Change type of last parameter to socklen_t.
9308         (inet_aton): Only make available if __USE_MISC.
9309         (inet_neta): Likewise.
9310         (inet_net_ntop): Likewise.
9311         (inet_net_pton): Likewise.
9312         (inet_nsap_ntoa): Likewise.
9313
9314         * inet/in.h: Define in_port_t type.
9315         Define in_addr_t type.
9316         (struct in_addr): Use in_addr_t in definition.
9317         (IN_CLASSA): Use cast to in_addr_t.
9318         (IN_CLASSB): Likewise.
9319         (IN_CLASSC): Likewise.
9320         (IN_CLASSD): Likewise.
9321         (IN_EXPERIMENTAL): Likewise.
9322         (IN_BADCLASS): Likewise.
9323         (INADDR_ANY): Likewise.
9324         (INADDR_BROADCAST): Likewise.
9325         (INADDR_NONE): Likewise.
9326         (INADDR_LOOPBACK): Likewise.
9327         (INADDR_UNSPEC_GROUP): Likewise.
9328         (INADDR_ALLHOSTS_GROUP): Likewise.
9329         (INADDR_ALLRTRS_GROUP): Likewise.
9330         (INADDR_MAX_LOCAL_GROUP): Likewise.
9331         (struct sockaddr_in): Use in_port_t for sin_port element.
9332         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9333         Use uint8_t instead of u_int8_t.
9334
9335         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9336         Call __inet_aton instead of inet_aton.
9337         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9338
9339         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9340         (innetgr): Likewise.
9341         (struct addrinfo): Use socklen_t for ai_addrlen element.
9342
9343         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9344         IPV6_RECVERR): New defines.
9345
9346         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9347         * inet/getnetbyad.c: Likewise.
9348         * inet/getnetbyad_r.c: Likewise.
9349         * nis/nss_nis/nis-network.c: Likewise.
9350         * nis/nssplus_nis/nisplus-network.c: Likewise.
9351         * nss/nss_files/files-network.c: Likewise.
9352         * resolv/netdb.h: Define uint32_t if not already happened.
9353         Include bits/netdb.h.  Remove definition of struct netent.
9354         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9355         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9356         * sysdeps/generic/bits/netdb.h: New file.
9357         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9358
9359         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9360         (tests): Add glrefmain.
9361         Add rules to build modules and run tests.  Ignore result of glrefmain
9362         for now since it fails.
9363         * dlfcn/glrefmain.c: New file.
9364         * dlfcn/glreflib1.c: New file.
9365         * dlfcn/glreflib2.c: New file.
9366
9367         * test-skeleton.c: Include <string.h> for strsignal prototype.
9368
9369         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9370         to be missing.
9371
9372         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9373         former init-first.h.  Initialize __libc_multiple_libcs.
9374
9375 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9376
9377         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9378         #if expression for use of unaligned function to the one used in
9379         the definition of these functions.
9380         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9381         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9382         (internal_ucs4le_loop_unaligned): New function.
9383
9384         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9385         (tests): Add order.
9386         (module-names): Add dep1, dep2, dep3, and dep4.
9387         Add dependencies for dep* modules and order.
9388         Define rule for order.out which checks the result.
9389         * elf/dep1.c: New file.
9390         * elf/dep2.c: New file.
9391         * elf/dep3.c: New file.
9392         * elf/dep4.c: New file.
9393         * elf/order.c: New file.
9394
9395         * elf/dl-init.c: Fix typo in comment.
9396
9397 2000-03-31  Andreas Jaeger  <aj@suse.de>
9398
9399         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9400         init function interface.
9401         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9402
9403 2000-03-31  Andreas Jaeger  <aj@suse.de>
9404
9405         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9406         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9407         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9408         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9409         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9410
9411         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9412         anymore, update comment.
9413
9414         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9415
9416         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9417         SHLIB_COMPAT - the struct is always needed.
9418
9419 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9420
9421         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9422         * elf/dl-support.c: Define _dl_starting_up.
9423
9424 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9425
9426         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9427         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9428
9429         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9430
9431         * elf/Makefile (dl-routines): Remove preinit.
9432         * elf/Versions: Remove _dl_preinit.
9433         * elf/dl-preinit.c: Removed.  Move content into...
9434         * elf/dl-init.c: ...here.
9435         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9436
9437         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9438         elements.
9439
9440 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9441
9442         * stdlib/strfmon.c: Corrected problems with the code that
9443         sets default values for [np]_sep_by_space and
9444         [np]_sign_posn; also the new positive/negative alignment
9445         code from the previous patch was not quite right for
9446         [np]_sign_posn = 0.
9447
9448         * localedata/tst-fmon.data: Changes corresponding to the
9449         two sets of fixes made to stdlib/strfmon.c.
9450
9451 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9452
9453         * malloc/malloc.c: Declare bit flags UL so that they will not
9454         default to int size when being inverted.
9455
9456 2000-03-29  Andreas Jaeger  <aj@suse.de>
9457
9458         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9459         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9460
9461 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9462             Ralf Baechle <ralf@uni-koblenz.de>
9463
9464         * Makeconfig: Introduce new variable SHARED to mark code used in
9465         the shared library.
9466         * elf/dl-close.c: Use it instead of PIC.
9467         * elf/dl-load.c: Likewise.
9468         * elf/dl-open.c: Likewise.
9469         * hurd/geteuids.c: Likewise.
9470         * include/libc-symbols.h: Likewise.
9471         * include/shlib-compat.h: Likewise.
9472         * libio/freopen.c: Likewise.
9473         * linuxthreads/cancel.c: Likewise.
9474         * linuxthreads/pthread.c: Likewise.
9475         * linuxthreads/wrapsyscall.c: Likewise.
9476         * nss/nsswitch.c: Likewise.
9477         * stdio-common/vfprintf.c: Likewise.
9478         * sysdeps/arm/init-first.c: Likewise.
9479         * sysdeps/i386/init-first.c: Likewise
9480         * sysdeps/generic/init-first.c: Likewise.
9481         * sysdeps/generic/libc-start.c: Likewise.
9482         * sysdeps/mips/init-first.c: Likewise.
9483         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9484         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9485         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9486         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9487         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9488
9489         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9490
9491 2000-03-29  Andreas Jaeger  <aj@suse.de>
9492
9493         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9494         Use D_PTR to access relocated entries in l_info.
9495         (elf_machine_rela): Likewise.
9496
9497         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9498         Likewise.
9499         (elf_machine_rela): Likewise.
9500
9501         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9502         Likewise.
9503         (__elf_machine_fixup_plt): Likewise.
9504         (__process_machine_rela): Likewise.
9505
9506         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9507         (elf_machine_rela): Likewise.
9508
9509         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9510         (elf_machine_rel): Likewise.
9511
9512         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9513         (elf_machine_fixup_plt): Likewise.
9514         (elf_machine_rela): Likewise.
9515
9516 2000-03-29  Andreas Jaeger  <aj@suse.de>
9517
9518         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9519         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9520         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9521         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9522         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9523         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9524         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9525         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9526         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9527         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9528         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9529         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9530         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9531         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9532         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9533
9534         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9535         macros, remove K&R prototypes.
9536
9537 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9538
9539         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9540         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9541         (PR libc/1677).
9542
9543 2000-03-30  Andreas Jaeger  <aj@suse.de>
9544
9545         * misc/sys/cdefs.h: Remove K&R support.
9546
9547 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9548
9549         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9550         more cases.
9551         * iconv/loop.c: Likewise.
9552
9553 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9554
9555         * iconv/loop.c (put16): Remove __const. Fix access index.
9556         (put32): Remove __const. Use uint32_t instead of uint16_t.
9557         * iconv/skeleton.c: Likewise.
9558
9559 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9560
9561         * mach/Versions (libc: GLIBC_2.0)
9562         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9563         __vm_allocate on this.
9564         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9565         mutex- and spinlock-related symbols on this.
9566         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9567         New version set.  Lock-related symbols go here instead in this case.
9568         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9569         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9570         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9571         * hurd/Versions
9572         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9573         Put them here instead.
9574         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9575         New version set.  Those cthreads symbols go here instead in this case.
9576         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9577
9578 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9579
9580         * elf/dl-init.c (_dl_init): We don't need to call constructors
9581         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9582
9583         Implement dynamic determination of constructor/destructor order in
9584         the dynamic linker.
9585         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9586         (GLIBC_2.2): Add _dl_init.
9587         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9588         r_duplist is not anymore allocated separately.  l_initfini is and
9589         therefore free it if necessary.
9590         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9591         malloc block.  Otherwise allocate l_initfini list only.
9592         Put dependencies for the object in l_initfini list.
9593         Sort dependencies for the object to be loaded topologically.
9594         * elf/dl-fini.c: Before running the destructors sort the topologically.
9595         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9596         call constructors instead of iterating over the pointers.  Get list of
9597         objects for which to run constructors from l_initfini element. Accept
9598         argc, argv, and env as parameters and pass them to the constructors.
9599         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9600         with size of dynamic section.
9601         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9602         _dl_init_next and calling constructors ourself.
9603         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9604         Take argc, argv, and env as parameters and pass them to the
9605         constructors.  Rewrite to call all constructors and not iterate over
9606         the pointers.
9607         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9608         precompute l_initcount and l_preinitcount.
9609         * elf/link.h (struct link_map): Add l_ldnum member.
9610         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9611         l_initcount, and l_preinitcount.  Add l_initfini.
9612         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9613         one for _dl_init.
9614         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9615         function interface.
9616         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9617         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9618         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9619         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9620         conventions now match.
9621
9622         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9623         effect for shared objects.  Don't emit message and call only for
9624         static library.
9625
9626 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9627
9628         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9629         CSA_Z243.4-1985-1..UCS2.
9630         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9631         ISO-8859-10..UCS2.
9632
9633 2000-03-29  Andreas Jaeger  <aj@suse.de>
9634
9635         * include/unistd.h: Remove duplicate entry for __rmdir.
9636         Remove declaration of __mkdir since __mkdir is declared in
9637         sys/stat.h.
9638
9639         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9640         by Michael Deutschmann <michael@talamasca.ocis.net>.
9641
9642         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9643         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9644         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9645         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9646         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9647
9648 2000-03-28  Andreas Jaeger  <aj@suse.de>
9649
9650         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9651         declaration, the prototype is defined via bits/mathcalls.h.
9652         (__sincosf): Likewise.
9653         (__sincosl): Likewise.
9654         (ldexp): Likewise.
9655         (ldexpf): Likewise.
9656         (ldexpl): Likewise.
9657         (__finite): Likewise.
9658         (__inline_mathcodeNP): New macro without prototype
9659         declarations.
9660         (__inline_mathcodeNP2): Likewise.
9661         (__inline_mathcodeNP3): Likewise.
9662         (__inline_mathcodeNP_): Likewise.
9663         (__inline_mathcodeNP2_): Likewise.
9664         (__inline_mathcodeNP3_): Likewise.
9665         (__inline_mathopNP): Likewise.
9666         (__inline_mathop_declNP): Likewise.
9667         (__inline_mathop_declNP_): Likewise.
9668         (__inline_mathcode_): Use __inline_mathcodeNP_.
9669         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9670         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9671         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9672         (__expm1l): Don't define prototype, the prototype is defined via
9673         bits/mathcalls.h.
9674         (exp): Likewise.
9675         (__expl): Likewise.
9676         (tan): Likewise.
9677         (atan2): Likewise.
9678         (__atan2l): Likewise.
9679         (fmod): Likewise.
9680         (pow): Likewise.
9681         (fabsf): Likewise.
9682         (fabsl): Likewise.
9683         (__fabsl): Likewise.
9684         (asin): Likewise.
9685         (acos): Likewise.
9686         (sinh): Likewise.
9687         (cosh): Likewise.
9688         (tanh): Likewise.
9689         (floor): Likewise.
9690         (ceil): Likewise.
9691         (expm1): Likewise.
9692         (log1p): Likewise.
9693         (asinh): Likewise.
9694         (acosh): Likewise.
9695         (atanh): Likewise.
9696         (hypot): Likewise.
9697         (logb): Likewise.
9698         (fma): Likewise.
9699         (drem): Likewise.
9700         (sqrt): Likewise.
9701         (__sqrtl): Likewise.
9702         (sin): Likewise.
9703         (cos): Likewise.
9704         (atan): Likewise.
9705         (log): Likewise.
9706         (log10): Likewise.
9707         (asinh): Likewise.
9708         (log2): Likewise.
9709         (rint): Likewise.
9710
9711 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9712
9713         * Makerules: If make variable md5 is defined to yes after
9714         generating dependencies generate MD5 sum for the object.
9715
9716         * iconv/gconv_builtin.h: Fix length in transformation definition
9717         for UNICODEBIG.
9718
9719         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9720
9721         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9722         allow as well reading from/writing to unaligned addresses on machines
9723         which don't support this in hardware.  Use FCTNAME macro to define
9724         function name.  Include the file a second time for platforms which
9725         need special unaligned handling.
9726         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9727         to access potentially unaligned addresses.  These macros are intended
9728         to be used only outside the loops.
9729         (unaligned): New definition.  In case the machine can handle unaligned
9730         access define as zero.  Otherwise as a variable which is initialized
9731         as nonzero in case the buffer passed in at runtime is unaligned with
9732         respect to the character set encoding involved.
9733         Call aligned or unaligned looop functions according to unaligned
9734         variable.
9735         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9736         of direct casting pointer to potentially handle unaligned memory
9737         accesses.
9738         * iconvdata/8bit-generic.c: Likewise.
9739         * iconvdata/ansi_x3.110.c: Likewise.
9740         * iconvdata/big5.c: Likewise.
9741         * iconvdata/euc-cn.c: Likewise.
9742         * iconvdata/euc-jp.c: Likewise.
9743         * iconvdata/euc-kr.c: Likewise.
9744         * iconvdata/euc-tw.c: Likewise.
9745         * iconvdata/gbk.c: Likewise.
9746         * iconvdata/iso-2022-cn.c: Likewise.
9747         * iconvdata/iso-2022-jp.c: Likewise.
9748         * iconvdata/iso-2022-kr.c: Likewise.
9749         * iconvdata/iso646.c: Likewise.
9750         * iconvdata/iso_6937-2.c: Likewise.
9751         * iconvdata/iso_6937.c: Likewise.
9752         * iconvdata/johab.c: Likewise.
9753         * iconvdata/sjis.c: Likewise.
9754         * iconvdata/t.61.c: Likewise.
9755         * iconvdata/uhc.c: Likewise.
9756         * iconvdata/unicode.c: Likewise.
9757         * iconvdata/utf-16.c: Likewise.
9758
9759         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9760         prototypes.
9761
9762         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9763         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9764         public.
9765         * malloc/mcheck.h (mcheck_check_all): Declare.
9766
9767         * stdio-common/Makefile (tests): Add tst-obprintf.
9768
9769 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9770
9771         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9772         Declare pthread_sigmask.
9773
9774         * csu/version.c: Add 2000 to copyright years.
9775         Remove Emacs local variables section.
9776
9777 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9778
9779         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
9780         __gconv_transform_internal_ucs2little): Remove declarations.
9781         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
9782         __gconv_transform_internal_ucs2): Never need to bswap_16.
9783         (__gconv_transform_ucs2reverse_internal,
9784         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
9785
9786 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9787
9788         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
9789         obsoleting version not being defined at all, in which case the
9790         result is always true.
9791
9792         * Makeconfig (preprocess-versions): New canned sequence for running
9793         cpp on shlib-versions and the like.
9794         (soversions.i): Use it.
9795         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
9796         Versions.def and Versions files.
9797
9798 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9799
9800         * stdio-common/tst-obprintf.c (main): Add another check to see
9801         obstack_printf handling all possible beginnings of the block
9802         inside an obstack chunk.
9803
9804         * locale/programs/localedef.c: Use __malloc_initialize_hook to
9805         install mcheck handler.
9806
9807         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
9808         handling problem.
9809
9810 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9811
9812         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
9813
9814         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
9815         on [HAVE_ELF && DO_VERSIONING].
9816
9817 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9818
9819         * stdio-common/tst-obprintf.c: New file.
9820
9821 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9822
9823         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
9824         _IO_OVERFLOW directly instead through __overflow.
9825
9826         * locale/programs/localedef.c (construct_output_path): If path
9827         contains a / compute the end of the directory name correctly.
9828
9829         * include/features.h: Undef and document __USE_XOPEN2K.
9830
9831         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
9832         whenever a function is called.  Initiated by calling mcheck_pedantic
9833         instead of mcheck.
9834         * malloc/mcheck.h: Declare mcheck_pedantic.
9835         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
9836         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
9837         for now.
9838
9839 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9840
9841         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
9842         * dlfcn/dlopenold.c: Likewise.
9843         * nss/getXXbyYY_r.c: Likewise.
9844         * nss/getXXent_r.c: Likewise.
9845         * hurd/hurdinit.c: Likewise.
9846         * hurd/compat-20.c: Likewise.
9847         * libio/oldiofopen.c: Likewise.
9848         * libio/oldiofclose.c: Likewise.
9849         * libio/oldiofdopen.c: Likewise.
9850         * libio/oldfileops.c: Likewise.
9851         * libio/oldstdfiles.c: Likewise.
9852         * libio/oldiofsetpos.c: Likewise.
9853         * libio/oldiofgetpos.c: Likewise.
9854         * libio/oldiofgetpos64.c: Likewise.
9855         * libio/oldiofsetpos64.c: Likewise.
9856         * libio/oldiopopen.c: Likewise.
9857         * libio/oldpclose.c: Likewise.
9858         * libio/oldtmpfile.c: Likewise.
9859         * libio/freopen.c (freopen): Likewise.
9860         * libio/iofclose.c (_IO_new_fclose): Likewise.
9861
9862         * sysdeps/mach/sys/reboot.h: Include <features.h>.
9863         (reboot): Declare it.
9864
9865         * libio/Makefile (headers): Add bits/stdio-lock.h here.
9866
9867         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
9868
9869         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
9870
9871         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
9872         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
9873         We need this for the sbrk decl, which can be included without Unix98.
9874
9875 2000-03-20  Richard Henderson  <rth@cygnus.com>
9876
9877         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
9878         argument to yperr2nss is an int, not size_t.
9879         * posix/regex.c (print_partial_compiled_pattern): Cast all
9880         ptrdiff_t to long for printing.
9881         (print_compiled_pattern): Use Z for printing size_t.
9882         * posix/testfnm.c (tests): Avoid trigraphs.
9883         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
9884         Use a C comment, not an assembly comment.
9885
9886         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
9887         of __ASSUME_32BITUIDS.
9888
9889 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9890
9891         * libio/iofopncook.c: Remove K&R prototypes.
9892
9893 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9894
9895         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
9896         an initial value of 1024 instead of RLIM_INFINITY.
9897
9898         * Versions.def (libmachuser, libhurduser): Remove these sections,
9899         since these libraries do not presently use symbol versions.
9900
9901         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
9902         is RLIM_INFINITY, return -1 instead.
9903
9904 2000-03-24  Andreas Jaeger  <aj@suse.de>
9905
9906         * Makefile (postclean): Added soversions.i.
9907
9908 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9909
9910         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
9911         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
9912         and _FPU_IEEE.  Change _FPU_RESERVED.
9913
9914 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9915
9916         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
9917
9918 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9919
9920         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
9921         (gaih_inet): Remove unused duplicate variable.
9922
9923         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
9924         Don't use __libc_sa_len, which only exists for Linux.  Just handle
9925         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
9926         only flavors supported by this function anyway.
9927
9928 2000-03-24  Geoff Clare  <gwc@unisoft.com>
9929
9930         * stdlib/strfmon.c: Corrected problems with missing signs and
9931         missing or extra spaces; allow for sign strings longer than
9932         one character; add padding to ensure positive and negative
9933         formats are aligned when a left precision is used.
9934
9935 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9936
9937         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
9938         Patch by John Mizel <John.Mizel@msdw.com>.
9939
9940 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
9941
9942         * manual/install.texi: Remove references to crypt add-on.
9943
9944 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
9945
9946         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
9947         section while taking the _hurd_rlimit_lock.
9948         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
9949
9950 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9951
9952         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
9953         using $(LN_S).
9954
9955         * sysdeps/mach/hurd/if_index.c: New file.
9956
9957         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
9958         * sysdeps/gnu/net/if.h: here.
9959         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
9960         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
9961         * sysdeps/generic/net/if.h: New file.  Declares just the standard
9962         functions and `struct if_nameindex' type.
9963         * socket/Makefile (headers): Add net/if.h here.
9964         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
9965         * sysdeps/mach/hurd/Dist: Remove it here.
9966         * sysdeps/unix/sysv/linux/Dist: And here.
9967         * sysdeps/generic/if_index.c: Include <net/if.h>.
9968
9969 2000-03-24  Andreas Jaeger  <aj@suse.de>
9970
9971         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
9972         access relocated entries in l_info.
9973         (elf_machine_got_rel): Likewise.
9974         (elf_machine_runtime_setup): Likewise.
9975         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
9976         (elf_machine_runtime_setup): Likewise.
9977         (__dl_runtime_resolve): Likewise.
9978
9979 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
9980
9981         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
9982         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
9983         according to RFC 2553.
9984         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
9985         * inet/getnameinfo.c: Likewise.
9986         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
9987
9988 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9989
9990         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
9991         Remove no-op pointer increment.
9992
9993 2000-03-23  Andreas Jaeger  <aj@suse.de>
9994
9995         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
9996         follow change for libio.h from 2000-03-10.
9997
9998 2000-03-23  Andreas Jaeger  <aj@suse.de>
9999
10000         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10001         change.
10002         * elf/dl-debug.c: Likewise.
10003         * elf/dl-deps.c: Likewise.
10004         * elf/dl-error.c: Likewise.
10005         * elf/dl-fini.c: Likewise.
10006         * elf/dl-init.c: Likewise.
10007         * elf/dl-load.c: Likewise.
10008         * elf/dl-lookup.c: Likewise.
10009         * elf/dl-minimal.c: Likewise.
10010         * elf/dl-object.c: Likewise.
10011         * elf/dl-open.c: Likewise.
10012         * elf/dl-preinit.c: Likewise.
10013         * elf/dl-profile.c: Likewise.
10014         * elf/dl-profstub.c: Likewise.
10015         * elf/dl-reloc.c: Likewise.
10016         * elf/dl-runtime.c: Likewise.
10017         * elf/dl-support.c: Likewise.
10018         * elf/dl-symbol.c: Likewise.
10019         * elf/dl-version.c: Likewise.
10020         * elf/rtld.c: Likewise.
10021         * elf/sprof.c: Likewise.
10022         * sysdeps/generic/dl-cache.c: Likewise.
10023         * sysdeps/generic/dl-origin.c: Likewise.
10024         * sysdeps/generic/dl-sysdep.c: Likewise.
10025         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10026         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10027         * sysdeps/generic/libc-start.c: Likewise.
10028         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10029         * sysdeps/powerpc/dl-machine.c: Likewise.
10030         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10031         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10032         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10033         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10034
10035         * elf/ldsodefs.h: Move file to ...
10036         * sysdeps/generic/ldsodefs.h: ... here.
10037
10038         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10039
10040         * sysdeps/mips/elf/ldsodefs.h: New file.
10041
10042         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10043         entries in l_info.
10044         (_dl_check_map_versions): Likewise.
10045         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10046         * elf/dl-load.c (_dl_init_paths): Likewise.
10047         (_dl_map_object): Likewise.
10048         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10049         (elf_get_dynamic_info): Likewise.
10050         * elf/do-lookup.h (FCT): Likewise.
10051         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10052         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10053         * elf/dl-addr.c (_dl_addr): Likewise.
10054         * elf/dl-runtime.c (profile_fixup): Likewise.
10055         (fixup): Likewise.
10056         * elf/dl-init.c (_dl_init_next): Likewise.
10057         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10058         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10059         (DISTINGUISH_LIB_VERSIONS): Likewise.
10060         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10061         (elf_machine_rel): Likewise.
10062
10063         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10064         for writable dynamic section.
10065
10066 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10067
10068         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10069         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10070
10071 2000-03-22  Andreas Jaeger  <aj@suse.de>
10072
10073         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10074         from latest Linux kernel.
10075
10076 2000-03-21  Andreas Jaeger  <aj@suse.de>
10077
10078         * Versions.def: Add version 2.1.4.
10079
10080 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10081
10082         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10083         * libio/oldiofopen.c: Likewise.
10084         * libio/oldiofclose.c: Likewise.
10085         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10086
10087 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10088
10089         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10090         indicating the first version set to obsolete the conditionalized code.
10091         (compat_symbol): New macro.
10092         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10093         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10094         integer values to the ABI_* macros for supported versions.
10095         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10096         compat_symbol macro.
10097
10098 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10099
10100         * nscd/connections.c (nscd_run): Pretty print.
10101         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10102
10103         * manual/charset.texi: Fix typos.  Rephrase.
10104         * manual/process.texi: Likewise.
10105         * manual/signal.texi: Likewise.
10106         Patches by Mike Coleman <mkc@kc.net>.
10107
10108         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10109         versions.
10110         * libio/iofdopen.c: Likewise.
10111         * libio/iofgetpos.c: Likewise.
10112         * libio/iofgetpos64.c: Likewise.
10113         * libio/iofopen.c: Likewise.
10114         * libio/iofsetpos.c: Likewise.
10115         * libio/iofsetpos64.c: Likewise.
10116         * libio/iopopen.c: Likewise.
10117         * libio/oldiofopen.c: Likewise.
10118         * libio/pclose.c: Likewise.
10119         * sysdeps/gnu/siglist.c: Likewise.
10120         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10121
10122         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10123         chance to expand VERSION_##lib##_##version.
10124
10125         * libio/fileops.c: Use new macros from shlib-compat.h to define
10126         versions.
10127         * libio/iofclose.c: Likewise.
10128         * libio/oldiofclose.c: Likewise.
10129         Patch by Roland McGrath <roland@frob.com>.
10130
10131 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10132
10133         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10134         Lay out struct sigcontext according to what really gets passed on
10135         the stack.
10136         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10137         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10138         (prgregset_t, prfpregset_t): Define to elf_* types.
10139         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10140         Define to correct value.
10141         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10142         sigcontext.
10143         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10144
10145 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10146
10147         * scripts/firstversions.awk: Allow multiple version sets in the
10148         "earliest version" specification, meaning that version sets in the
10149         gaps between listed versions should be folded into the earliest later
10150         version that is explicitly listed.
10151         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10152         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10153
10154 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10155
10156         * iconv/gconv_builtin.c: Include <endian.h>.
10157         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10158         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10159         according to current platform.
10160         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10161         __gconv_transform_internal_ucs2reverse, and
10162         __gconv_transform_internal_ucs4le.
10163         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10164         __gconv_transform_ucs2reverse_internal and
10165         __gconv_transform_internal_ucs2reverse.
10166         * iconvdata/Makefile (modules): Add UNICODE.
10167         (distribute): Add unicode.c.
10168         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10169         * iconvdata/unicode.c: New file.
10170
10171         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10172         determine byte order of input and convert accordingly.
10173
10174         * iconvdata/utf-16.c (gconv_init): Fix typo.
10175
10176 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10177
10178         * iconvdata/gconv-modules: Fix typo.
10179
10180         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10181         more messages.
10182
10183         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10184
10185 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10186
10187         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10188
10189 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10190
10191         * misc/Makefile (routines): Add mincore.
10192
10193 2000-03-20  Andreas Jaeger  <aj@suse.de>
10194
10195         * sysdeps/generic/mincore.c: New stub file.
10196
10197         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10198         from latest Linux kernel.
10199
10200 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10201
10202         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10203         _SC_GETPW_R_SIZE_MAX.
10204
10205 2000-03-20  Richard Henderson  <rth@cygnus.com>
10206
10207         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10208         in GLIBC_2.1.4.
10209
10210 2000-03-20  Richard Henderson  <rth@cygnus.com>
10211
10212         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10213         of arithmetic instructions.
10214
10215         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10216         with the fpcr.  Protect from INV exception.
10217         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10218         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10219         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10220
10221         * sysdeps/alpha/fpu/s_copysign.c: New.
10222         * sysdeps/alpha/fpu/s_copysignf.c: New.
10223         * sysdeps/alpha/fpu/s_fabs.c: New.
10224         * sysdeps/alpha/fpu/s_fabsf.c: New.
10225         * sysdeps/alpha/fpu/s_rint.c: New.
10226         * sysdeps/alpha/fpu/s_rintf.c: New.
10227
10228         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10229
10230         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10231         Kill sethae.
10232         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10233         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10234         Use physical addresses not KSEG addresses.
10235         (io_system): Add PYXIS.
10236         (io): Remove hae.reg, sys, hae_shift.
10237         (stb_mb, stw_mb, stl_mb, __sethae): New.
10238         (inline_outb, inline_outw, inline_outl): Don't set hae.
10239         (inline_inb, inline_inw, inline_inl): Likewise.
10240         (dense_sethae): New null function.
10241         (struct cpuinfo_data): New.
10242         (process_cpuinfo): Use local and stack variables, not static.
10243         Move readlink check here from init_iosys.
10244         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10245         (_iopl): Simplify.
10246         (_hae_shift): Calculate it here.
10247         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10248         add pciconfig_iobase.
10249
10250 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10251
10252         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10253         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10254
10255         * scripts/versions.awk: Fixed version renaming code to distinguish
10256         libraries properly.
10257
10258 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10259
10260         * include/stdlib.h: Add prototype for __cxa_atexit.
10261
10262         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10263         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10264
10265 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10266
10267         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10268         existing rtld-installed-name.
10269         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10270         replace existing rtld-installed-name using $(symbolic-link-prog).
10271
10272 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10273
10274         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10275         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10276         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10277         but not the former.
10278
10279 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10280
10281         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10282         glob64.  Since there is no glob64 in the LFS proposal applications
10283         can assume that glob handles LFS situations.  glob64 is only needed
10284         if alternative filesystem functions are used.
10285
10286 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10287
10288         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10289         when GLOB_DOOFFS is set; correct handling of patterns
10290         containing escaped wildcards (and no unescaped ones);
10291         GLOB_ERR flag was being ignored in some situations.
10292
10293         * posix/globtest.c, posix/globtest.sh: Updated to include
10294         tests for the problems fixed by the above changes to glob.c.
10295
10296         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10297
10298 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10299
10300         * Makeconfig (soversion.i): Use only first match for each lib.
10301
10302         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10303
10304         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10305         rather than $(sysd-dirs-done) to protect these rules.
10306
10307         * Makerules (version-renames.def): Target removed.
10308         (Versions.all): Depend on soversions.i directly and parse it.
10309
10310         * Makeconfig (soversions.i): New target, input-reading parts of
10311         soversions.mk generation moved here; result is a canonicalized
10312         list "LIB VERSION [SET]" for this configuration.
10313         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10314         * Makerules (version-renames.def): New target, generated from
10315         soversions.i with contents that was in $(map-firstversions).
10316         (Versions.all): Don't depend on soversions.mk, depend on
10317         version-renames.def instead; just cat it into the input.
10318
10319         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10320         for $(map-firstversions), which better handles it being empty.
10321
10322         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10323         supported version for libc 0.2.90.libio to GLIBC_2.2.
10324
10325         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10326         and use it to emit new variable `map-firstversions'.
10327         * scripts/firstversions.awk: New file.
10328         * Makerules (Versions.all): Use scripts/firstversions.awk and
10329         the $(map-firstversions) value to generate a modified versions list
10330         that includes renames in "A = B" syntax for each version set earlier
10331         than the "earliest symbol version" named in shlib-versions.
10332         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10333         rename version set A to B in the output to the intermediate file.
10334         * scripts/abi-versions.awk: New file.
10335         * Makerules (abi-versions.h): New target, generated by that script.
10336         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10337         * include/shlib-compat.h: New file, uses that generated header.
10338
10339 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10340
10341         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10342         after stripping # comments, and then run it through cpp.
10343         This allows things like "%ifdef FOO" based on config.h settings.
10344         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10345
10346         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10347         and other errors that indicate a pseudo-receive happened, grok through
10348         the message buffer for port rights that need references fixed up.
10349
10350 2000-03-16  Andreas Jaeger  <aj@suse.de>
10351
10352         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10353
10354         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10355
10356         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10357         from latest Linux kernel.
10358         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10359
10360         * misc/sys/mman.h: Add prototype for mincore.
10361
10362 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10363
10364         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10365         entry for GLIBC_2.0 version of setrlimit.
10366         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10367
10368 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10369
10370         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10371         * nis/nss_compat/compat-initgroups.c: Likewise.
10372         * nis/nss_nis/nis-initgroups.c: Likewise.
10373         * nis/nss_nis/nis-netgrp.c: Likewise.
10374         * nis/nss_nis/nis-proto.c: Likewise.
10375         * nis/nss_nis/nis-rpc.c: Likewise.
10376         * nis/nss_nis/nis-service.c: Likewise.
10377         * nis/ypclnt.c: Likewise.
10378
10379 2000-03-16  Andreas Jaeger  <aj@suse.de>
10380
10381         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10382         doesn't exist, correct checks.  Fixes PR libc/1649.
10383
10384 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10385
10386         * nscd/hstcache.c: Restore correct UID.
10387         * nscd/pwdcache.c: Likewise.
10388         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10389
10390 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10391
10392         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10393         macros for register names, in line with 2000-03-14 linux change.
10394
10395         * sysdeps/mach/sched_yield.c: New file.
10396
10397 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10398
10399         * sysdeps/generic/lockfile.c: Include <stdio.h>
10400         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10401         case <libio.h> defined them.
10402         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10403         from __internal_*.
10404         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10405         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10406
10407         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10408         for more pleasing parse error.
10409
10410 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10411
10412         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10413         memory for eras.
10414         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10415
10416         * elf/Makefile: Add rules to compile and run constload1 test.
10417         * elf/constload1.c: New file.
10418         * elf/constload2.c: New file.
10419         * elf/constload3.c: New file.
10420
10421 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10422
10423         * sysdeps/posix/open64.c: Make __open64 weak alias.
10424         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10425         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10426         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10427         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10428         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10429         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10430         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10431         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10432         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10433         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10434
10435 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10436
10437         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10438         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10439
10440 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10441
10442         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10443         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10444
10445 2000-03-08  Andreas Jaeger  <aj@suse.de>
10446
10447         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10448
10449 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10450
10451         * timezone/africa: Update from tzdata2000d.
10452         * timezone/asia: Likewise.
10453         * timezone/australasia: Likewise.
10454         * timezone/europe: Likewise.
10455         * timezone/northamerica: Likewise.
10456         * timezone/southamerica: Likewise.
10457
10458         * po/fr.po: Update from translation team.
10459         * po/de.po: Likewise.
10460
10461         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10462         last parameter.  Move code to add map to global scope from here...
10463         * elf/dl-open.c (dl_open_worker): ...here.
10464         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10465         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10466
10467         * locale/programs/ld-collate.c (collate_read): Fix warning.
10468
10469         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10470         values and macros for register names.
10471
10472         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10473         returned by seek cookie function is -1.
10474
10475 2000-03-14  Andreas Jaeger  <aj@suse.de>
10476
10477         * locale/localeconv.c (localeconv): Fix typo.
10478         Reported by Andre Charbonneau <andrec@corel.com>.
10479
10480 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10481
10482         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10483         since modules depend on it counting the number of times the conversion
10484         function got called.
10485
10486         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10487
10488         * iconv/gconv.h: Pretty print.
10489
10490 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10491
10492         * posix/wordexp-test.c: Correct one of the tests added in the last
10493         change.  Really get the root passwd entry to check again ~root.
10494
10495 2000-03-10  Andreas Jaeger  <aj@suse.de>
10496
10497         * manual/filesys.texi (Working Directory): Fix last patch.
10498         Patch by Martin Buchholz  <martin@xemacs.org>.
10499
10500 2000-03-10  Andreas Jaeger  <aj@suse.de>
10501
10502         * manual/creature.texi (Feature Test Macros): Fix language.
10503
10504 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10505
10506         * mach/devstream.c (devstream_write, devstream_read): New functions.
10507         (input, output): Functions removed.
10508         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10509         using only the vanilla fopencookie interface.
10510
10511         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10512         as macro for __io_functions.
10513         (funcsio): Use cookie_io_functions_t type name.
10514         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10515
10516         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10517         fopencookie.
10518         (fopencookie): Use it.
10519         * libio/libio.h: Declare _IO_cookie_init.
10520         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10521         _IO_cookie_init.
10522
10523         * libio/libio.h (__io_seek_fn): Fix second argument type
10524         to be a pointer, in line with the manual and the old stdio.
10525         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10526
10527         * sysdeps/generic/bits/stdio-lock.h: New file.
10528         This is a stub with #error, but that's better than no file at all.
10529
10530 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10531
10532         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10533         * manual/message.texi (Using gettextized software): Doc Fixes.
10534         * manual/message.texi (Message Translation): Doc Fixes.
10535         * manual/filesys.texi (File Size): Doc Fixes.
10536         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10537         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10538         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10539         * manual/install.texi: Doc Fixes.
10540         * manual/search.texi (Hash Search Function): Doc Fixes.
10541         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10542         * FAQ.in: Doc Fixes.
10543         * config.h.in: Doc Fixes.
10544         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10545         Doc Fixes.  `allows to' is not correct English.
10546
10547         * elf/rtld.c: Doc fixes.
10548         * manual/creature.texi (Feature Test Macros): Doc fixes.
10549         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10550
10551         * manual/filesys.texi (Working Directory): Check for ERANGE to
10552         avoid infloop.
10553
10554 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10555
10556         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10557         conditions so as not to clobber the final '\0' when there is only one
10558         element in the vector.
10559
10560 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10561
10562         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10563         broken by 2000-02-27 change.
10564
10565         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10566
10567 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10568
10569         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10570         argument type, for 2000-02-22 change in signal/signal.h declaration.
10571
10572 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10573
10574         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10575         to getdirentries64 (no __), since the Linux implementation
10576         has no __ name, and there is no declaration for the __ name.
10577
10578         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10579
10580         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10581         sed regexp so as not to break directory names including /../ within.
10582
10583         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10584         The sysdeps/generic file is right for BSD.  This file was in fact the
10585         Hurd file, but the only difference was the WNOREAP flag that was never
10586         actually implemented or used anywhere.
10587
10588         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10589         since AC_PATH_PROG already does it for us.
10590         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10591         correctness and sh portability.  I replaced the broken check
10592         with a more sensible implementation of the apparently intended
10593         semantics, which might still be questionable.  Using expr causes
10594         a non-numeric value for `perl -V:apiversion` to be accepted,
10595         refusing to use only a perl that reports a number less than 5;
10596         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10597         * configure: Regenerated.
10598
10599 2000-03-08  Andreas Jaeger  <aj@suse.de>
10600
10601         * manual/crypt.texi: Fix paths.
10602
10603 2000-03-07  Andreas Jaeger  <aj@suse.de>
10604
10605         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10606         were swapped.
10607         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10608         libc/1636.
10609
10610 2000-03-06  Andreas Jaeger  <aj@suse.de>
10611
10612         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10613         in __sgn1l, otherwise g++ fails to parse this.
10614         Reported by Sean Chen <sean.chen@turbolinux.com>.
10615
10616 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10617
10618         * configure.in: Compute sizeof-long-double.
10619         * configure: Regenerated.
10620         * config.make.in: Make sizeof-long-double available to sub-makes.
10621
10622 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10623
10624         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10625         call.
10626
10627 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10628
10629         * Makeconfig (rpath-dirs): Add crypt.
10630         (all-subdirs): Remove md5crypt.
10631         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10632         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10633         * sysdeps/generic/crypt-entry.c: Delete.
10634         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10635         * sysdeps/generic/crypt.h: Delete.
10636         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10637         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10638         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10639         * sysdeps/generic/des_impl.c: Delete.
10640         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10641         * crypt/sysdeps: Delete.
10642         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10643         * md5-crypt/Versions: Move to crypt/.
10644         * md5-crypt/md5-crypt.c: Move to crypt/.
10645         * md5-crypt/md5.c: Move to crypt/.
10646         * md5-crypt/md5c-test.c: Move to crypt/.
10647         * md5-crypt/md5test.c: Move to crypt/.
10648         * md5-crypt: Delete.
10649         * crypt/Makefile: Adjust for new structure.
10650
10651 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10652
10653         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10654         define to 1 if not defined.
10655
10656 2000-03-03  Andreas Jaeger  <aj@suse.de>
10657
10658         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10659
10660 2000-03-03  Andreas Jaeger  <aj@suse.de>
10661
10662         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10663         cases.
10664         (xdr_int64_t): Correctly handle lower half.
10665         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10666
10667 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10668
10669         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10670         call.
10671
10672 2000-03-02  Andreas Jaeger  <aj@suse.de>
10673
10674         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10675         2.3.43.
10676
10677 2000-03-02  Andreas Jaeger  <aj@suse.de>
10678
10679         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10680
10681 2000-03-01  Andreas Jaeger  <aj@suse.de>
10682
10683         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10684         (tests): Added tst-getdate.
10685
10686         * time/tst-getdate.c: New file.
10687
10688         * time/datemsk: New file, needed for tst-getdate.
10689
10690 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10691
10692         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10693
10694 2000-02-17  H.J. Lu  <hjl@gnu.org>
10695
10696         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10697
10698         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10699         available.
10700         (svcudp_recv): Set up message with the new "xp_pad" field for
10701         IP_PKTINFO.
10702         (svcudp_reply): Support IP_PKTINFO if available.
10703
10704 2000-03-01  Andreas Jaeger  <aj@suse.de>
10705
10706         * time/getdate.c (check_mday): Fix check for february.
10707         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10708         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10709
10710 2000-03-02  Andreas Jaeger  <aj@suse.de>
10711
10712         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10713         g++ fails to parse this.
10714         Reported by Sean Chen <sean.chen@turbolinux.com>.
10715
10716 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10717
10718         * io/creat.c: Moved to...
10719         * sysdeps/generic/creat.c: ...here.
10720         * io/creat64.c: Moved to...
10721         * sysdeps/generic/creat64.c: ...here.
10722         * io/lockf.c: Moved to...
10723         * sysdeps/generic/lockf.c: ...here.
10724
10725         * crypt/crypt.texi: Moved to...
10726         * manual/crypt.texi: ...here.
10727         * crypt/examples/genpass.c: Moved to...
10728         * manual/examples/genpass.c: ...here.
10729         * crypt/examples/mygenpass.c: Moved to...
10730         * manual/examples/mygenpass.c: ...here.
10731         * crypt/examples/testpass.c: Moved to...
10732         * manual/examples/testpass.c: ...here.
10733
10734         * manual/Makefile (chapters): Add crypt.
10735         * manual/conf.texi: Add usual header for not-last chapter.
10736         * manual/crypt.texi: Add special header for last chapter.
10737
10738 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10739
10740         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10741         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10742         complain if there is no crypt add-on.
10743         * crypt/configure: Removed.
10744
10745         * crypt/crypt.texi: Update documentation of US export restrictions
10746         to match the 14 Jan 2000 regulations.
10747
10748 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10749
10750         * crypt: New subdirectory, merged in from the crypt add-on.
10751
10752 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10753
10754         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10755
10756
10757 See ChangeLog.10 for earlier changes.