Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
4         use the hack with tryopen_o_directory to determine at runtime
5         whether it works.
6         * sysdeps/unix/sysv/linux/opendir.c: New file.
7         * sysdeps/unix/sysv/linux/kernel-features.h: Define
8         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
9
10         * catgets/Depend: New file.  Add intl.
11         * catgets/Makefile (tests): Add tst-catgets.
12         (generated): Remove de.msg.
13         (generated-dirs): Add de.
14         Add dependency if tst-catgets output on de/libc.cat.
15         * catgets/tst-catgets.c: New file.
16
17         * po/ja.po: New file.
18         * po/el.po: Update from translation team.
19
20         * wcsmbs/Depend: New file.
21         * wcsmbs/Makefile (tests): Add tst-btowc.
22         (tst-btowc-ENV): Define.
23         * wcsmbs/tst-btowc.c: New file.
24
25         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
26         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
27
28         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
29
30         * stdlib/Makefile (tests): Add tst-bsearch.
31         * stdlib/tst-bsearch.c: New file.
32
33         * posix/getopt.c (_getopt_internal): Don't recognize an option
34         name as ambiguous if it's a prefix for more than one name but the
35         other struct option values are identical.
36
37         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
38         Don't depend on visual inspection of the output file to recognize
39         errors.
40         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
41
42 2000-09-06  Andreas Jaeger  <aj@suse.de>
43
44         * sysdeps/alpha/soft-fp/Dist: New file.
45         * sysdeps/i386/soft-fp/Dist: New file.
46         * sysdeps/mips/mips64/soft-fp/Dist: New file.
47         * sysdeps/mips/soft-fp/Dist: New file.
48         * sysdeps/powerpc/soft-fp/Dist: New file.
49         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
50         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
51
52         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
53         Use sysdep_routines instead of routines to fix make dist failure.
54         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
55         out code).
56         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
57
58         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
59         sysdep_headers instead of headers for make dist.
60
61         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
62         Likewise.
63
64 2000-09-06  Andreas Schwab  <schwab@suse.de>
65
66         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
67
68 2000-09-06  Andreas Jaeger  <aj@suse.de>
69
70         * soft-fp/Makefile (distribute): Remove ChangeLog.
71
72         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
73         sysdep_routines instead of routines for make dist.
74
75 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
76
77         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
78         compatibility check for old stream and call _IO_wide in doubt.
79         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
80         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
81         needed tst for such an old structure and don't do anything.
82         * libio/freopen.c: Remove declaration of _IO_stdin_used.
83
84 2000-09-06  Andreas Jaeger  <aj@suse.de>
85
86         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
87         sysdep-dl-routines and sysdep_routines instead of rtld-routines
88         and dl-routines.
89
90         * soft-fp/ChangeLog: Merged with this file.
91
92 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
93
94         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
95
96         * soft-fp/Makefile (distribute): Add the math functions, too.
97
98         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
99
100 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
101
102         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
103         as a statement.
104
105         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
106         * soft-fp/sysdeps/powerpc/q_*: New files.
107
108 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
109
110         * stdio-common/vfprintf.c (process_string_arg): Handle precision
111         in wide char case correctly.  Don't allocate too long temporary
112         strings with alloca.
113
114         * stdio-common/Makefile (tests): Add tst-swprintf.
115         (tst-swprintf-ENV): New variable.
116         * stdio-common/tst-swprintf.c: New file.
117
118 2000-09-05  Andreas Jaeger  <aj@suse.de>
119
120         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
121         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
122         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
123
124 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
125
126         * configure.in: Strip out "unknown" from configuration names.
127
128 2000-09-05  Andreas Jaeger  <aj@suse.de>
129
130         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
131
132         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
133         * sysdeps/sparc/sparc32/Implies: Likewise.
134         * sysdeps/powerpc/Implies: Likewise.
135
136         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
137         * libio/oldiofgetpos64.c: Likewise.
138
139         * soft-fp/Makefile (distribute): Remove configure.
140
141         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
142
143         * soft-fp/configure: Remove.
144
145         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
146         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
147
148         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
149         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
150
151         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
152         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
153
154         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
155         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
156
157         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
158         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
159
160         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
161         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
162
163         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
164         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
165
166         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
167         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
168
169         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
170         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
171
172         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
173         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
174
175         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
176         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
177
178         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
179         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
180
181         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
182         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
183
184         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
185         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
186
187         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
188         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
189
190         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
191         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
192
193         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
194         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
195
196         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
197         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
198
199         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
200         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
201
202         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
203         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
204
205         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
206         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
207
208         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
209         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
210
211         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
212         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
213
214         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
215         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
216
217         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
218         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
219
220         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
221         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
222
223         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
224         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
225
226         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
227         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
228
229         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
230         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
231
232         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
233         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
234
235         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
236         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
237
238         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
239         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
240
241         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
242         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
243
244         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
245         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
246
247         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
248         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
249
250         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
251         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
252
253         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
254         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
255
256         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
257         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
258
259         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
260         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
261
262         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
263         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
264
265         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
266         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
267
268         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
269         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
270
271         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
272         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
273
274         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
275         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
276
277         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
278         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
279
280         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
281         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
282
283         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
284         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
285
286         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
287         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
288
289         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
290         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
291
292         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
293         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
294
295         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
296         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
297
298         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
299         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
300
301         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
302         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
303
304         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
305         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
306
307         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
308         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
309
310         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
311         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
312
313         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
314         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
315
316         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
317         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
318
319         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
320         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
321
322         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
323         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
324
325         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
326         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
327
328         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
329         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
330
331         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
332         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
333
334         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
335         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
336
337         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
338         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
339
340         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
341         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
342
343         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
344         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
345
346         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
347         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
348
349         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
350         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
351
352         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
353         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
354
355         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
356         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
357
358         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
359         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
360
361         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
362         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
363
364         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
365         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
366
367         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
368         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
369
370         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
371         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
372
373         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
374         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
375
376         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
377         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
378
379         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
380         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
381
382         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
383         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
384
385         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
386         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
387
388         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
389         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
390
391         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
392         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
393
394         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
395         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
396
397         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
398         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
399
400         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
401         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
402
403         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
404         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
405
406         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
407         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
408
409         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
410         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
411
412         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
413         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
414
415         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
416         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
417
418         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
419         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
420
421         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
422         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
423
424         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
425         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
426
427         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
428         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
429
430         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
431         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
432
433         * soft-fp/sysdeps/powerpc/Versions: Move from here...
434         * sysdeps/powerpc/soft-fp/Versions: ... to here.
435
436         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
437         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
438
439         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
440         change symbol version.
441         * libio/oldiofgetpos64.c: Likewise.
442         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
443
444         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
445         typo.
446         Reported by dyky@kondara.org, closes PR libc/1886.
447
448         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
449         libc/1880.
450
451 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
452
453         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
454         script when ^C is hit.
455
456         * locale/programs/localedef.c (construct_output_path): Correct
457         computation of endp after asprintf.
458         * locale/programs/locfile.c (write_locale_data): Don't add extra
459         slash in filename.
460
461 2000-09-05  Andreas Jaeger  <aj@suse.de>
462
463         * scripts/config.guess: New upstream version.
464         * scripts/config.sub: Likewise.
465         * manual/texinfo.tex: Likewise.
466
467 2000-09-04  Andreas Schwab  <schwab@suse.de>
468
469         * elf/Makefile (all-dl-routines): New variable.
470         (elide-routines.os): Use it instead of $(dl-routines).
471         (all-rtld-routines): New variable.
472         (extra-objs): Use it instead of $(rtld-routines).
473         ($(objpfx)dl-allobjs.os): Likewise.
474         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
475         sysdep-dl-routines and sysdep_routines instead of rtld-routines
476         and dl-routines.
477
478 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
479
480         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
481         Set fname to NULL if the module wasn't found.
482
483 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
484
485         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
486         true if trans->name already ends in ".so".
487
488 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
489
490         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
491         void.
492         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
493         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
494         (__gconv_release_shlib): Change return type to void.
495         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
496         step->__counter here.
497         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
498         if the reference is zero.
499         (release_step): New function.
500         (gen_steps): Always initialize the __counter to 1. Use release_step.
501         Don't call the destructor on the step whose initializer failed.
502         (increment_counter): Use release_step. Don't normally run destructors
503         here.
504         (__gconv_close_transform): Use release_step.
505
506 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
507
508         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
509         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
510
511 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
512
513         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
514         If the first byte is 0x8E, don't ask for 4 bytes until it has been
515         verified that the second byte is valid. Leave it to cns11643_to_ucs4
516         to check for incomplete input.
517         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
518         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
519         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
520         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
521         0x9f9d..0x9fa5.
522         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
523         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
524         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
525         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
526         upto index 0x0052.
527
528 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
529
530         * iconv/gconv_db.c (find_derivation): Always use the least-cost
531         solution.
532
533 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
534
535         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
536         are invalid.
537
538 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
539
540         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
541         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
542         U+007E.
543
544 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
545
546         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
547
548 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
549
550         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
551
552 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
553
554         * iconvdata/tst-tables.sh: New file.
555         * iconvdata/tst-table.sh: New file.
556         * iconvdata/tst-table-from.c: New file.
557         * iconvdata/tst-table-to.c: New file.
558         * iconvdata/tst-table-charmap.sh: New file.
559         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
560         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
561         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
562         ISIRI-3342.irreversible, SJIS.irreversible.
563         (tests): Add dependency on tst-tables.out.
564         (tst-tables.out, tst-tables-clean): New rules.
565         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
566         * iconvdata/ISIRI-3342.irreversible: New file.
567         * iconvdata/EUC-JP.irreversible: New file.
568         * iconvdata/SJIS.irreversible: New file.
569
570 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
571
572         * manual/locale.texi (General Numeric): Update description of
573         representation of the grouping information in the locale data.
574         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
575
576 2000-09-04  Andreas Jaeger  <aj@suse.de>
577
578         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
579         * iconv/iconv_prog.c (options): Fix typo.
580         Reported by dyky@kondara.org, closes PR libc/1885.
581
582 2000-09-04  Andreas Jaeger  <aj@suse.de>
583
584         * sysdeps/generic/fegetenv.c: It's __fegetenv.
585         Reported by Rob Levin <lilo@transvirtual.com>.
586
587 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
588
589         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
590         to the typedefs of __timezone_ptr_t.
591         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
592
593 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
594
595         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
596         the loop.
597
598 2000-09-01  H.J. Lu  <hjl@gnu.org>
599
600         * Makeconfig (built-program-cmd): Don't use the dynamic linker
601         to run a binary if it is in $(tests-static).
602
603         * Rules (binaries-static): Add $(tests-static).
604
605 2000-09-02  Andreas Jaeger  <aj@suse.de>
606
607         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
608
609         * libio/fmemopen.c (fmemopen_close): Revert one part of last
610         patch.
611
612 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
613
614         * iconvdata/big5hkscs.c: Regenerated from charmap.
615         * iconvdata/testdata/BIG5HKSCS: Regenerated.
616         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
617
618         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
619         statement.  General cleanup.
620
621 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
622
623         * wctype/wcfuncs.c (iswblank): New function.
624         * wctype/wcfuncs_l.c (__iswblank_l): New function.
625         * wctype/wcextra.c: Remove file.
626         * wctype/wcextra_l.c: Remove file.
627         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
628
629 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
630
631         * locale/programs/ld-collate.c (collate_output): Remove redundant
632         assert call.
633         * string/strcoll.c: Likewise.
634         * string/strxfrm.c: Include assert.h.  Add assert calls like in
635         string/strcoll.c.
636
637 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
638
639         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
640         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
641         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
642         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
643         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
644         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
645         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
646         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
647         _NL_CTYPE_GAP5/6 respectively.
648
649         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
650         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
651         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
652         Don't initialize __ctype_names and __ctype_width.
653         * wctype/cname-lookup.h: Remove file.
654         * wctype/Makefile (distribute): Remove cname-lookup.h.
655         * wctype/wchar-lookup.h: Include stdint.h.
656         * wctype/wctype.c (__wctype): Assume new locale format.
657         * wctype/wctype_l.c (__wctype_l): Likewise.
658         * wctype/iswctype.c: Don't include cname-lookup.h.
659         (__iswctype): Assume new locale format.
660         * wctype/iswctype_l.c: Don't include cname-lookup.h.
661         (__iswctype_l): Assume new locale format.
662         * wctype/wctrans.c: Don't include ctype.h.
663         (wctrans): Assume new locale format.
664         * wctype/wctrans_l.c (__wctrans_l): Likewise.
665         * wctype/towctrans.c: Don't include cname-lookup.h.
666         (__towctrans): Assume new locale format.
667         * wctype/towctrans_l.c: Don't include cname-lookup.h.
668         (__towctrans_l): Assume new locale format.
669         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
670         localeinfo.h instead.
671         (__NO_WCTYPE): Remove unused macro.
672         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
673         declarations.
674         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
675         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
676         (towlower, towupper): Likewise.
677         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
678         localeinfo.h instead.
679         (__NO_WCTYPE): Remove unused macro.
680         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
681         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
682         __iswxdigit_l): Assume new locale format.
683         (__towlower_l, __towupper_l): Likewise.
684         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
685         (__ctype32_b): Remove declaration.
686         (internal_wcwidth): Assume new locale format.
687         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
688         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
689         to map32_b, rename width_3level to width.
690         (ctype_output): Always create new locale format. Don't emit
691         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
692         (allocate_arrays): Always create new locale format.
693
694         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
695         * locale/weightwc.h (findidx): Assume new locale format.
696         * string/strcoll.c (wcscoll): Remove local variables size, layers,
697         names.
698         * string/strxfrm.c (wcsxfrm): Likewise.
699         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
700         local variable collseq to 'const char *'.
701         (SUFFIX): Don't use, don't undefine.
702         * posix/fnmatch.c: Remove SUFFIX definition.
703         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
704         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
705         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
706         (collate_finish): Always create new locale format. Remove local
707         variables min_total, act_size.
708         (collate_output): Always create new locale format. Remove local
709         variables table_size, names, tablewc. Rename tablewc_3level to
710         tablewc.
711
712 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
713
714         * locale/programs/ld-collate.c (obstack_int32_grow,
715         obstack_int32_grow_fast): New inline functions.
716         (output_weightwc, collate_output): Use them where possible.
717
718 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
719
720         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
721         patch (_mode -> _flags).
722
723         * libio/Makefile (headers): Add stdio_ext.h.
724         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
725         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
726         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
727         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
728         __fsetlocking, and _flushlbf.
729         * libio/__fbufsize.c: New file.
730         * libio/__flbf.c: New file.
731         * libio/__fpending.c: New file.
732         * libio/__fpurge.c: New file.
733         * libio/__freadable.c: New file.
734         * libio/__freading.c: New file.
735         * libio/__fsetlocking.c: New file.
736         * libio/__fwritable.c: New file.
737         * libio/__fwriting.c: New file.
738         * libio/stdio_ext.h: New file.
739         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
740         * libio/libio.h (_IO_USER_LOCK): Define.
741         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
742         test _IO_USER_LOCK flag first.
743
744         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
745         malloc fails.
746
747 2000-09-01  Andreas Jaeger  <aj@suse.de>
748
749         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
750
751         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
752
753 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
754
755         * math/Makefile (tests): Add tst-defintions.
756         * math/tst-definitions.c: New file.
757
758         * stdlib/Makefile (headers): Add bits/wchar.h.
759         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
760         * sysdeps/generic/bits/wchar.h: New file.
761         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
762         file to define WCHAR_MIN and WCHAR_MAX.
763         Change UINT*8_MAX and UIN*16_MAX value to type int.
764         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
765         file to define WCHAR_MIN and WCHAR_MAX.
766         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
767         int values.
768         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
769         * sysdeps/generic/bits/mathdef.h: Likewise.
770         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
771         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
772         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
773         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
774         * locale/locale.h (struct lconv): Add __ prefix to the new members
775         if not C99.
776         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
777         imaxdiv optimizations.
778         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
779         * sysdeps/wordsize-64/ldiv.c: Likewise.
780         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
781         const fenv_t*.
782         * sysdeps/generic/bits/fenv.h: Likewise.
783         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
784         * sysdeps/ia64/bits/fenv.h: Likewise.
785         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
786         * sysdeps/mips/bits/fenv.h: Likewise.
787         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
788         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
789         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
790
791         * inet/rcmd.c: Use *stat64 instead of *stat internally.
792         * inet/ruserpass.c: Likewise.
793         * catgets/open_catalog.c: Likewise.
794         * intl/loadmsgcat.c: Likewise.
795         * io/getdirname.c: Likewise.
796         * locale/loadlocale.c: Likewise.
797         * misc/getusershell.c: Likewise.
798         * stdlib/canonicalize.c: Likewise.
799         * sysdeps/posix/euidaccess.c: Likewise.
800         * sysdeps/posix/isfdtype.c: Likewise.
801         * sysdeps/posix/posix_fallocate.c: Likewise.
802         * sysdeps/posix/tempname.c: Likewise.
803         * sysdeps/unix/grantpt.c: Likewise.
804         * sysdeps/unix/opendir.c: Likewise.
805         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
806         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
807         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
808         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
809         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
810         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
811         * sysvipc/ftok.c: Likewise.
812         * time/getdate.c: Likewise.
813
814         * time/getdate.c: Add extra access test.
815
816 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
817
818         * version.h (VERSION): Bump to 2.1.93.
819
820         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
821         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
822
823         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
824         Make this a new rule depending on tst-gettext.out and run mtrace.
825         * intl/tst-gettext.c: Call mtrace.
826         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
827
828         * elf/dl-reloc.c: Add a few more __builtin_expect.
829
830         * configure.in: Remove --with-gettext option.
831
832         * intl/dcigettext.c (free_mem): Correct freeing of
833         _nl_domain_bindings list.
834
835         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
836         allocated memory.
837
838         * intl/locale.alias: Add aliases for bokmal and nynorsk.
839
840         * locale/iso-639.def: Fix 639-1 code for Bokmal.
841
842         * stdio-common/itoa-digits.c: Move upper digits to...
843         * stdio-common/itoa-udigits.c: ...here.  New file.
844         * stdio-common/Makefile (routines): Add itoa-udigits.
845
846         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
847         relocate ld.so don't add supprt for relocations which should not
848         appear in ld.so.
849
850         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
851         __secure_getenv.  Instead test __libc_enable_secure once.
852
853         * io/pwd.c (main): Provide a good example, use *_unlocked function.
854
855 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
856
857         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
858         whether the new record should be freed if it's a duplicate.
859         (add_module): Adjust insert_module call.
860         (__gconv_read_conf): Likewise.
861         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
862         mtrace-tst-loading.
863         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
864
865         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
866         _dl_all_init_dirs.
867         * include/link.h (struct r_search_path_struct): New.
868         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
869         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
870         _dl_all_init_dirs.
871         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
872         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
873         added at startup time.
874         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
875         contains element to remember fact that we can free memory.
876         (all_dirs): Renamed to _dl_all_dirs.  Made global.
877         (_dl_init_all_dirs): New variable.
878         (fillin_rpath): Save one malloc call.
879         (decompose_rpath): Change interface.  New first parameter points to
880         r_search_path_struct.
881         (_dl_init_paths): Adjust for changes.  Mark all memory as not
882         deletable.  Set _dl_init_all_paths value.
883         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
884         parameter replaced with r_search_path_struct *.  Information about
885         freeing now contained in r_search_path_struct.
886         (_dl_map_object): Adjust for above changes.
887
888         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
889
890         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
891         when adding new entries.
892
893         * elf/dl-load.c (fillin_rpath): Make local copy of where string
894         since the object being loaded can be unloaded.
895
896         * iconvdata/Makefile (tests): Add tst-loading.
897         * iconvdata/tst-loading.c: New file.
898
899 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
900
901         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
902         When comparing a char with an int, always cast the char to
903         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
904         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
905
906 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
907
908         * time/strftime.c (my_strftime): Add compatibility code for use
909         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
910
911         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
912         return 0 for success but always < 0 on failure.
913
914         * nss/getXXbyYY_r.c: Define result to *result before including
915         digits_dots.c.
916
917 2000-08-30  Andreas Jaeger  <aj@suse.de>
918
919         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
920
921 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
922
923         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
924         official file.
925         * iconvdata/TESTS: Add BIG5HKSCS entry.
926         * iconvdata/testdata/BIG5HKSCS: New file.
927         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
928
929         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
930         always true.
931
932         * libio/iogetline.c: Set mode before the loop in case n==0.
933         * libio/iogetwline.c: Likewise.
934
935 2000-08-29  H.J. Lu  <hjl@gnu.org>
936
937         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
938         of fp->_mode < 0.
939         (_IO_new_file_overflow): Likewise.
940         * libio/genops.c (_IO_flush_all): Likewise.
941         * libio/ioftell.c (_IO_ftell): Likewise.
942
943 2000-08-29  Akira Higuchi  <a@kondara.org>
944
945         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
946         and __end_fct fields of struct __gconv_step.
947         * iconv/Makefile (tests): Add iconv-bug2.
948         * iconv/iconv-bug2.c: New file.
949
950         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
951         instead of 'inptr - inend' to ksc5601_to_ucs4.
952
953         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
954
955         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
956         character or shift sequence is found at the end of the input
957         string, return__GCONV_INCOMPLETE_INPUT instead of
958         __GCONV_EMPTY_INPUT.
959         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
960         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
961
962         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
963         __GCONV_ILLEGAL_INPUT for 8bit characters.
964
965 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
966
967         * signal/signal.h (sigpause): Move __THROW before __asm__.
968
969         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
970         names don't match don't return.
971         Patch by Olaf Kirch <okir@flash.lst.de>.
972
973 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
974
975         * time/strftime.c (my_strftime): Handle # flag for %b as well.
976
977 2000-08-27  H.J. Lu  <hjl@gnu.org>
978
979         * posix/Makefile (otherlibs): Add for building with static-nss
980         for "make check".
981
982 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
983
984         * libio/stdio.h: Add fmemopen prototype.
985
986 2000-08-25  Andreas Jaeger  <aj@suse.de>
987
988         * libio/Makefile (routines): Add fmemopen.
989         (tests): Add test-fmemopen.
990         * libio/Versions: Add fmemopen with version GLIBC_2.2.
991         * libio/test-fmemopen.c: New file.
992         * libio/fmemopen.c: New file.
993         Patches by Hanno Mueller <kontakt@hanno.de>.
994
995 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
996
997         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
998         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
999
1000         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1001         to avoid crashing statically linked applications.
1002
1003 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1004
1005         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1006         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1007
1008         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1009         If the result is fits in the buffer, copy only as many bytes as needed.
1010
1011         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1012         buffer after copying numbuf into it.
1013         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1014
1015 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1016
1017         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1018         the result.  When string_len < len, don't clear the rest of the buffer.
1019
1020 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1021
1022         Support for new LC_COLLATE format.
1023         * locale/coll-lookup.h: New file.
1024         * locale/weightwc.h (findidx): When size == 0, call
1025         collidx_table_lookup.
1026         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1027         * wcsmbs/wcsxfrm.c: Likewise.
1028         * posix/fnmatch.c: Likewise.
1029         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1030         collseq_table_lookup.
1031         * locale/programs/3level.h: New file.
1032         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1033         by including "3level.h".
1034         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1035         collseq_table): New types, defined by including "3level.h".
1036         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1037         (encoding_mask, encoding_byte): Remove.
1038         (utf8_encode): Use simple shifts instead.
1039         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1040         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1041         (collate_output): New local variable tablewc_3level. When
1042         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1043         tablewc_3level instead of tablewc. Change format of TABLEWC and
1044         COLLSEQWC entries written to the file.
1045         * locale/C-collate.c (collseqwc): Change format.
1046         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1047         of COLLSEQWC.
1048         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1049
1050 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1051
1052         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1053         (locale_ctype_t): New charnames_idx field.
1054         (ctype_startup): Initialize charnames_idx field.
1055         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1056
1057 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1058
1059         * locale/C-ctype.c: Switch to new locale format.
1060         (_nl_C_LC_CTYPE_names): Remove array.
1061         (STRUCT_CTYPE_CLASS): New macro.
1062         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1063         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1064         New three-level tables.
1065         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1066         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1067         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1068         12 class tables and 2 map tables at the end.
1069         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1070         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1071         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1072         New declarations.
1073         (b): Remove trailing semicolon.
1074         (__ctype_names, __ctype_width): Don't initialize.
1075         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1076
1077 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1078
1079         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1080         is guaranteed to be allocated with the same malloc() and may be
1081         passed to free().
1082         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1083         been set to empty by an earlier open_path call, don't pass it again.
1084
1085 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1086
1087         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1088         we are not optimizing.
1089
1090         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1091         inclusion.
1092
1093         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1094         really match EOF.
1095         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1096
1097 2000-08-28  Andreas Jaeger  <aj@suse.de>
1098
1099         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1100
1101 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1102
1103         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1104         getpeername.  Use ISO C style function definition.
1105         (getpeername): Provide weak alias.
1106         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1107         setrlimit.  Use ISO C style function definition.
1108         (setrlimit): Provide weak alias.
1109
1110 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1111
1112         * shlib-versions: Add a rule for S/390 to the libm version list.
1113         * sysdeps/s390/Versions: New file.
1114         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1115         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1116         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1117         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1118         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1119         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1120         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1121         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1122         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1123         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1124         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1125         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1126         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1127         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1128         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1129         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1130         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1131         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1132
1133 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1134
1135         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1136         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1137
1138         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1139         * elf/dl-close.c (_dl_close): Print debug message if object is not
1140         unloaded.
1141         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1142         returning to caller.
1143
1144         * po/zh.po: Renamed to...
1145         * po/zh_TW.po: ...this.
1146
1147 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1148
1149         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1150
1151         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1152         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1153         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1154         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1155
1156 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1157
1158         * locale/programs/ld-collate.c (insert_weights): Also update
1159         backpointer of next element.
1160         (collate_read): Allow definition of new collation symbols in stage 2.
1161         Symbol after reorder-after can be UCS4 value.
1162         Allow reordering of collation symbols and elements.
1163         Do not only move reorder entry in new position.  Instead call
1164         insert_weight to do this and read the weights.
1165
1166         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1167
1168         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1169         to determine invalid locale name.
1170         * locale/findlocale.c (_nl_find_locale): Likewise.
1171
1172         * posix/annexc.c: Correct test for unavailable feature.
1173
1174         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1175         __inline.
1176
1177 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1178
1179         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1180         syscall.
1181
1182         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1183         (sysdep_routines): Add oldgetrlimit64.
1184
1185         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1186         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1187         (tests): Add unload, reldep, reldep2, and reldep3.
1188         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1189         and reldepmod4.
1190         Add rules to build and run unload, reldep, reldep2, and reldep3.
1191         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1192         Don't create relocation dependency if it is nonzero.
1193         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1194         can never happen here.
1195         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1196         Don't create relocation dependency if it is nonzero.
1197         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1198         stuff.  This can never happen here.
1199         * sysdeps/generic/ldsodefs.h: Change prototypes.
1200         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1201         _dl_lookup_up and _dl_lookup_versioned_symbol.
1202         (RESOLV): Likewise.
1203         * elf/dl-runtime.c (fixup): Likewise.
1204         (profile_fixup): Likewise.
1205         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1206         _dl_lookup_symbol.
1207         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1208         * elf/rtld.c (dl_main): Likewise.
1209         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1210         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1211         and pass down the caller map.
1212         (_dl_vsym): Likewise.
1213         * elf/reldep.c: New file.
1214         * elf/reldep2.c: New file.
1215         * elf/reldep3.c: New file.
1216         * elf/reldepmod1.c: New file.
1217         * elf/reldepmod2.c: New file.
1218         * elf/reldepmod3.c: New file.
1219         * elf/reldepmod4.c: New file.
1220         * elf/unload.c: New file.
1221         * elf/unloadmod.c: New file.
1222
1223         * elf/do-lookup.h: Remove unused undef_name parameter.
1224         * elf/dl-lookup.c: Adjust callers.
1225
1226 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1227
1228         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1229         irreversible in recursive call of conversion function to signal that
1230         no error handling is wanted.
1231         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1232         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1233         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1234         recursive error handling call, otherwise to &lirreversible.  Use it
1235         for calls to conversion functions.
1236         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1237         transliterating.
1238         (ucs4_internal_loop_unaligned): Likewise.
1239         (ucs4le_internal_loop): Likewise.
1240         (ucs4le_internal_loop_unaligned): Likewise.
1241
1242 2000-08-25  Greg McGary  <greg@mcgary.org>
1243
1244         * sysdeps/i386/memchr.S: Check high bound against chars
1245         actually scanned.
1246         * sysdeps/i386/memcmp.S: Likewise.
1247         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1248         account for pointers that lie one beyond end-of-buffer.
1249
1250 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1251
1252         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1253         * elf/nodelete.c (fini_ran): New global variable.
1254         (do_test): Before every dlclose call clear fini_ran and test
1255         afterwards that it is not set by the destructors.
1256         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1257         * elf/nodelmod2.c: Likewise.
1258         * elf/nodelmod4.c: Likewise.
1259
1260 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1261
1262         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1263         getrlimit to the list.
1264
1265 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1266
1267         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1268         long double format so use ldbl-96 instead of ldbl-128.
1269
1270 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1271
1272         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1273         even if bits 10 a 11 are non-zero.
1274         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1275
1276         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1277         included before building gnu/lib-names.h
1278         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1279
1280         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1281         marked DF_1_NODELETE.
1282
1283         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1284         since we call sigaction in the child.
1285
1286 2000-08-25  Andreas Jaeger  <aj@suse.de>
1287
1288         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1289         gconv-modules.
1290
1291 2000-08-25  Andreas Jaeger  <aj@suse.de>
1292
1293         * manual/arith.texi (Control Functions): Clarify possible
1294         arguments.  Closes PR libc/1856.
1295
1296 2000-08-24  H.J. Lu  <hjl@gnu.org>
1297
1298         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1299         * malloc/Makefile (tests): Likewise.
1300
1301 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1302
1303         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1304
1305 2000-08-24  Andreas Jaeger  <aj@suse.de>
1306
1307         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1308         only if LIBGD is available.
1309
1310 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1311
1312         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1313         problems with now restrict parameter types.
1314         (convaddr4to6): Likewise.
1315
1316 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1317
1318         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1319         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1320         * sysdeps/s390/fpu/fegetexcept.c: New file.
1321         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1322         FPC_VALID_MASK.
1323
1324 2000-08-24  Andreas Jaeger  <aj@suse.de>
1325
1326         * malloc/Makefile (extra-objs): Add memusagestat.o.
1327         (generated): Added memusage and memusagestat for make clean.
1328
1329         * libio/tst_putwc.c (do_test): Delete temporary file.
1330         Move inclusion of test-skeleton to front to have prototype for
1331         add_temp_file.
1332
1333         * posix/Makefile (generated): Add wordexp-tst.out.
1334
1335 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1336
1337         * resolv/res_hconf.c (free_mem): Remove not needed if.
1338
1339         * time/tzset.c (free_mem): New function.
1340         * string/strsignal.c (free_mem): New function.
1341         * inet/inet_ntoa.c (free_mem): New function.
1342         * sunrpc/clnt_perr.c (free_mem): New function.
1343
1344 2000-08-24  Andreas Jaeger  <aj@suse.de>
1345
1346         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1347         * sysdeps/unix/sysv/syscalls.list: Likewise.
1348
1349         * posix/unistd.h: Move internal prototypes from here ...
1350         * include/unistd.h: ... to here.
1351
1352         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1353
1354 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1355
1356         * grp/initgroups.c (initgroups): Deallocate groups array.
1357         Reported by jani.raiha@sonera.com [PR libc/1868].
1358
1359         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1360         * sysdeps/alpha/Dist: Likewise.
1361
1362 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1363
1364         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1365         destructor).  Reported by Solar Designer <solar@false.com>.
1366
1367         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1368         avoid adding double slashes.
1369
1370 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1371
1372         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1373         out of the __REDIRECT macro.
1374
1375 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1376
1377         * stdio-common/vfscanf.c: Add %F format support.
1378
1379         * locale/programs/ld-ctype.c (ctype_output): Make sure
1380         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1381         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1382         (ctype_read): Enable returning of wide character strings for reading
1383         transliteration information.
1384
1385 2000-08-23  Andreas Jaeger  <aj@suse.de>
1386
1387         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1388         Use static __inline instead of _EXTERN_INLINE.
1389
1390         * misc/sys/select.h: Move prototypes of __select from here ...
1391         * include/sys/select.h: ... to here.
1392
1393         * socket/sys/socket.h: Move prototypes of __send and __connect
1394         from here....
1395         * include/sys/socket.h: ... to here.
1396
1397         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1398         lr_error.
1399
1400 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1401
1402         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1403         __setrlimit as strong name. Takes only 2 arguments.
1404
1405         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1406         takes only 2 arguments.
1407
1408 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1409
1410         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1411
1412         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1413
1414 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1415
1416         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1417         default_missing character being specified, pick the first
1418         representable.
1419
1420 2000-08-23  Andreas Jaeger  <aj@suse.de>
1421
1422         * include/wchar.h: Add some pure attributes.
1423
1424         * time/time.h: Add const attribute for dysize.
1425
1426         * include/stdlib.h: Add malloc attribute to __posix memalign.
1427
1428         * stdlib/stdlib.h: Add some pure and malloc attributes.
1429         * wcsmbs/wchar.h: Likewise.
1430
1431         * dirent/dirent.h: Add some pure attributes.
1432         * include/dirent.h: Likewise.
1433
1434 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1435
1436         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1437         on 64bit arches.
1438
1439 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1440
1441         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1442         missing buffer size checks.
1443
1444 2000-08-23  Andreas Jaeger  <aj@suse.de>
1445
1446         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1447         strong name.
1448         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1449
1450         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1451         otherwise __LINUX_KERNEL_VERSION might not be defined.
1452         (MIN): Define if not already defined.
1453
1454 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1455
1456         * stdio-common/vfprintf.c: Handle %F format.
1457         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1458         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1459
1460         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1461
1462         * po/zh.po: New file.
1463
1464         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1465         enough room in target buffer.
1466         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1467         * iconvdata/bug-iconv1.c: New file.
1468         * iconvdata/Makefile (tests): Add bug-iconv1.
1469
1470         * locale/iso-4217.def: Update entry for Nicaragua.
1471
1472 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1473
1474         * hurd/hurdsig.c: Rearrange headers a bit.
1475         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1476         when cthreads is being used.
1477
1478 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1479
1480         * elf/Makefile (distribute): Add dl-osinfo.h.
1481         * sysdeps/generic/dl-osinfo.h: New file.
1482         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1483         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1484         if defined.
1485         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1486         only for !SHARED case.  Get the code from dl-osinfo.h.
1487
1488         * stdlib/random_r.c: Cleanups.
1489         * stdlib/tst-random.c: New file.
1490         * stdlib/Makefile (tests): Add tst-random.
1491         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1492
1493 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1494
1495         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1496         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1497         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1498         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1499
1500 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1501
1502         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1503         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1504         (__syscall__sysctl): Add.
1505
1506 2000-08-21  Andreas Jaeger  <aj@suse.de>
1507
1508         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1509         libc/1864).
1510         * stdlib/tst-strtoll.c: Likewise.
1511
1512 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1513
1514         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1515         correctly.
1516         (__initstate_r): Set errno on error.
1517         (__random_r): Likewise.
1518         (__setstate_r): Correct offset when computing
1519         new rptr and fptr.  Test for arg_state being NULL.
1520         Reported by Michael Fischer <fischer@cs.yale.edu>.
1521
1522         * posix/regex.h: Add macro definitions to allow compiling outside
1523         glibc.
1524
1525         * sysdeps/i370/Implies: Removed.
1526         * sysdeps/mvs/Implies: Removed.
1527
1528         * catgets/catgets.c (catopen): Filter out env_var values with / if
1529         necessary.
1530
1531         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1532         locale name after all getenvs.
1533
1534         * configure.in: Allow sed versions like 3.02.8.
1535         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1536
1537 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1538
1539         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1540
1541 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1542
1543         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1544         of gethostbyname2_r call.
1545
1546         * intl/locale.alias: Add aliases for Korean.
1547
1548 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1549
1550         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1551         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1552         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1553         * sysdeps/s390/fpu/fegetenv.c: New file.
1554         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1555         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1556         * sysdeps/s390/fpu/fenv_libc.h: New file.
1557         * sysdeps/s390/fpu/fesetenv.c: New file.
1558         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1559         * sysdeps/s390/fpu/feupdateenv.c: New file.
1560         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1561         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1562         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1563         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1564         * sysdeps/s390/fpu/ftestexcept.c: New file.
1565         * sysdeps/s390/fpu/libm-test-ulps: New file.
1566         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1567         * sysdeps/s390/initfini.c: New file.
1568         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1569         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1570         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1571         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1572         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1573         sys/procfs.h as proposed by Mark Kettenis.
1574         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1575
1576 2000-08-21  Andreas Jaeger  <aj@suse.de>
1577
1578         * include/poll.h: Include include/sys/poll.h to get __poll
1579         declaration.
1580
1581         * io/sys/poll.h: Move __poll declaration from here...
1582         * include/sys/poll.h: ...to here.
1583
1584         * include/sys/socket.h (__getpeername): Add declaration.
1585
1586         * include/wchar.h (__vswprintf): Add declaration.
1587
1588         * include/stdio.h (__flockfile): Add declaration.
1589         (__funlockfile): Likewise.
1590
1591 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1592
1593         * misc/sys/cdefs.h: Define __restrict_arr.
1594         * include/sys/time.h: Add restrict where required by AGd4.
1595         * inet/arpa/inet.h: Likewise.
1596         * io/sys/stat.h: Likewise.
1597         * io/sys/statvfs.h: Likewise.
1598         * misc/search.h: Likewise.
1599         * misc/sys/select.h: Likewise.
1600         * posix/glob.h: Likewise.
1601         * posix/regex.h: Likewise.
1602         * posix/spawn.h: Likewise.
1603         * posix/unistd.h: Likewise.
1604         * rt/aio.h: Likewise.
1605         * signal/signal.h: Likewise.
1606         * socket/sys/socket.h: Likewise.
1607         * stdlib/ucontext.h: Likewise.
1608         * streams/stropts.h: Likewise.
1609         * string/string.h: Likewise.
1610         * time/time.h: Likewise.
1611         * time/sys/time.h: Likewise.
1612
1613         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1614         and posix_spawnattr_setscheparam.
1615
1616         * libio/stdio.h: Make cuserid prototype again available for all
1617         XPG versions.
1618
1619         * argp/argp-help.c: Unify use of function aliases to make more compact
1620         PLT.
1621         * include/libintl.h: Likewise.
1622         * inet/rcmd.c: Likewise.
1623         * intl/dcigettext.c: Likewise.
1624         * libio/iofputws.c: Likewise.
1625         * libio/iofputws_u.c: Likewise.
1626         * libio/iogetwline.c: Likewise.
1627         * libio/swprintf.c: Likewise.
1628         * malloc/malloc.c: Likewise.
1629         * nss/digits_dots.c: Likewise.
1630         * posix/fnmatch.c: Likewise.
1631         * posix/spawn_faction_addclose.c: Likewise.
1632         * posix/spawn_faction_adddup2.c: Likewise.
1633         * posix/spawn_faction_addopen.c: Likewise.
1634         * posix/spawni.c: Likewise.
1635         * posix/wordexp.c: Likewise.
1636         * posix/spawni.c: Likewise.
1637         * resolv/res_hconf.c: Likewise.
1638         * resolv/res_init.c: Likewise.
1639         * shadow/lckpwdf.c: Likewise.
1640         * signal/sighold.c: Likewise.
1641         * signal/sigrelse.c: Likewise.
1642         * stdio-common/printf-parse.h: Likewise.
1643         * stdio-common/printf-prs.c: Likewise.
1644         * stdio-common/printf_fp.c: Likewise.
1645         * stdio-common/vfprintf.c: Likewise.
1646         * stdio-common/vfscanf.c: Likewise.
1647         * stdlib/rpmatch.c: Likewise.
1648         * sunrpc/create_xid.c: Likewise.
1649         * sunrpc/key_call.c: Likewise.
1650         * sysdeps/generic/setrlimit64.c: Likewise.
1651         * sysdeps/generic/utmp_file.c: Likewise.
1652         * sysdeps/generic/vlimit.c: Likewise.
1653         * sysdeps/posix/posix_fallocate.c: Likewise.
1654         * sysdeps/posix/posix_fallocate64.c: Likewise.
1655         * sysdeps/posix/sigpause.c: Likewise.
1656         * sysdeps/posix/sigset.c: Likewise.
1657         * sysdeps/unix/grantpt.c: Likewise.
1658         * sysdeps/unix/bsd/ualarm.c: Likewise.
1659         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1660         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1661         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1662         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1663         * time/strftime.c: Likewise.
1664         * wcsmbs/wcscoll.c: Likewise.
1665         * wcsmbs/wcsxfrm.c: Likewise.
1666
1667         * time/tst-getdate.c (main): Make error messages more human readable.
1668
1669         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1670         postinc/predec instruction.
1671         (_FPU_SETCW): Likewise.
1672         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1673
1674 2000-08-20  Andreas Jaeger  <aj@suse.de>
1675
1676         * time/tst-getdate.c (main): Increase error in case of wrong
1677         conversion.
1678         Fix typo in test case.
1679
1680 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1681
1682         * ctype/ctype.h (isblank): Make available if ISO C99.
1683         * wctype/wctype.h (iswblank): Make available if ISO C99.
1684         * math/math.h (signgam): Don't make available if ISO C99.
1685         * math/tgmath.h (tgamma): Renamed from gamma.
1686         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1687
1688         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1689         Pretty printing.
1690         * intl/plural.y (new_exp): Take number of optional parameters in
1691         second parameter.  Test for correct number of parameters and free
1692         correctly in case of failure.  Adjust all callers.
1693         (yylex): Allow ';' as terminator character.
1694
1695 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1696
1697         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1698         walt_digits.
1699
1700         * locale/findlocale.c (free_mem): Also free here->filename.
1701
1702         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1703
1704         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1705         first test.
1706         (feexcp_nomask_test): Correct printf args.
1707         (feexcp_mask_test): Likewise.
1708
1709 2000-08-19  Andreas Jaeger  <aj@suse.de>
1710
1711         * inet/tst-gethnm.c: Include string.h to provide prototype for
1712         strcmp.
1713
1714         * malloc/mtrace.pl (usage): Inform about --help.
1715
1716 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1717
1718         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1719         size HEAP_MAX_SIZE.
1720
1721 2000-08-19  Andreas Jaeger  <aj@suse.de>
1722
1723         * shlib-versions: Remove libnss_db, libdb and libdb1.
1724
1725 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1726
1727         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1728         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1729         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1730         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1731         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1732         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1733         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1734         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1735         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1736         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1737         getdents.
1738         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1739         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1740
1741 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1742
1743         * include/glob.h (__glob64): Add prototype.
1744         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1745         define glob and glob_in_dir.
1746         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1747         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1748         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1749         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1750         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
1751         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
1752         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
1753         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
1754
1755 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1756
1757         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
1758
1759 2000-08-17  Andreas Jaeger  <aj@suse.de>
1760
1761         * math/test-fenv.c (fe_single_test): New function.
1762         (fe_env_tests): Use fe_single_test.
1763         (feenable_test): New tests for feenable/fedisable and
1764         fegetexcpetions.
1765         (feexcp_mask_test): New function.
1766         (feexcp_nomask_test): New function.
1767
1768 2000-08-19  Richard Henderson  <rth@cygnus.com>
1769
1770         * sysdeps/alpha/fpu/fenv_libc.h: New file.
1771         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
1772         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
1773         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1774         * sysdeps/alpha/fpu/fegetround.c: Likewise.
1775         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
1776         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
1777         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
1778         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
1779         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
1780         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
1781         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
1782         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
1783         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
1784         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
1785         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
1786         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
1787
1788 2000-08-19  Andreas Jaeger  <aj@suse.de>
1789
1790         * elf/constload1.c: Include <stdio.h> for puts prototype.
1791
1792 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1793
1794         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
1795         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
1796         a dynamically loaded object remove old l_initfini list.
1797         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
1798         remove some dynamically allocated memory blocks in the dynamic
1799         loading data structures.
1800         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
1801         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
1802         Instead call _dl_check_map_versions only for the dependencies.
1803         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
1804         information of initial objects as not free-able.
1805         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
1806         element.
1807
1808         * elf/filter.c: Call mtrace.
1809         * elf/restest1.c: Likewise.  Close the objects.
1810         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
1811         debug information.
1812
1813         * elf/constload1.c: Add comment explaining not freed memory.
1814
1815 2000-08-18  Andreas Jaeger  <aj@suse.de>
1816
1817         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
1818         alignment for structs stat and stat64.
1819         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1820
1821 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1822
1823         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
1824         handling.  Patch by Richard Henderson <rth@twiddle.net>.
1825
1826         * nss/Versions: Remove libnss_db information.
1827
1828 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1829
1830         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
1831         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
1832         * sysdeps/sparc/fpu/fegetexcept.c: New file.
1833         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
1834
1835         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
1836         to match Solaris.
1837
1838 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1839
1840         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
1841         (_FPU_SETCW): Likewise.
1842         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1843
1844         * stdio-common/printf_fp.c: Fix chars_needed computation.
1845         Patch by Greg McGary <greg@mcgary.org>.
1846
1847 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1848
1849         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
1850         _dl_loaded are NULL.
1851
1852 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1853
1854         * manual/arith.texi (feholdexcept): Returns 0 on success.
1855
1856 2000-08-17  Andreas Jaeger  <aj@suse.de>
1857
1858         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
1859         (ifr_newname): New.
1860         Reported by Andi Kleen <ak@suse.de>.
1861
1862 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1863
1864         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
1865         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
1866         * sysdeps/alpha/fpu/fegetexcept.c: New file.
1867
1868 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1869
1870         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
1871         of buf->st_ino and kbuf->st_ino, not __st_ino.
1872         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
1873         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
1874         directive so that only linux/getdents.c is used, not some
1875         architecture specific one.
1876
1877 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1878
1879         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
1880         enabled, not disabled exceptions.
1881         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1882         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1883
1884 2000-08-17  Greg McGary  <greg@mcgary.org>
1885
1886         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
1887         from test program name when constructing suffix for $(LDLIBS-*).
1888         (bounded-thread-library): New variable.
1889         * crypt/Makefile
1890         [build-shared, build-static] (libcrypt-dep): Remove variable.
1891         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1892         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1893         * linuxthreads/Makefile (libpthread, librt): Remove variables.
1894         (librt-tests): Add variable.  (tests): Use it.
1895         [build-shared, build-static]
1896         ($(addprefix $(objpfx),$(tests)),
1897         $(addprefix $(objpfx),$(librt-tests))):
1898         Consolidate individual dependencies.
1899         [build-bounded]
1900         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
1901         Add dependencies.
1902         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
1903         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1904         * misc/Makefile
1905         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
1906         * rt/Makefile
1907         [build-shared, build-static]
1908         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1909         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1910
1911 2000-08-17  Greg McGary  <greg@mcgary.org>
1912
1913         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
1914         * sysdeps/unix/make-syscalls.sh: Likewise.
1915         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1916         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1917         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1918         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1919         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1920
1921 2000-08-17  Greg McGary  <greg@mcgary.org>
1922
1923         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
1924         Wrap extern symbols in BP_SYM ().
1925         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1926         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1927         * sysdeps/i386/fpu/s_remquo.S: Likewise.
1928         * sysdeps/i386/fpu/s_remquof.S: Likewise.
1929         * sysdeps/i386/fpu/s_remquol.S: Likewise.
1930         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1931         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1932         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1933         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1934         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1935
1936 2000-08-16  Andreas Schwab  <schwab@suse.de>
1937
1938         * sysdeps/m68k/fpu/fegetexcept.c: New file.
1939         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
1940         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
1941
1942 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1943
1944         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
1945         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
1946         * elf/dl-support.c: Define _nl_nloaded.
1947         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
1948         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
1949         object to global list.
1950         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
1951         from _dl_loaded list.
1952         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1953         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
1954         number here.
1955
1956         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
1957         unmask, exceptions.
1958         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
1959         exceptions.
1960         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
1961
1962 2000-08-16  Andreas Jaeger  <aj@suse.de>
1963
1964         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
1965
1966 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
1967
1968         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
1969
1970 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1971
1972         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
1973         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
1974         (sysdep_routines): Add oldgetrlimit64.
1975         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
1976         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1977
1978         * include/link.h: Undo last patches.  Hurd now has stat64.
1979         * elf/Makefile: Likewise.
1980         * elf/dl-load.c: Likewise.
1981         * elf/dl-misc.c: Likewise.
1982         * elf/dl-profile.c: Likewise.
1983         * sysdeps/generic/sysd-link.h: Removed.
1984         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
1985
1986         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
1987         thread event callback function.
1988         (__aio_notify_only): Use function above.
1989         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
1990
1991 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
1992
1993         * sysdeps/mach/hurd/lseek64.c: New file.
1994
1995 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
1996
1997         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
1998         Remove typedefs.
1999         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2000         typedefs.
2001         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2002         typedefs.
2003         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2004
2005 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2006
2007         * sysdeps/mach/hurd/xstatconv.c: New file.
2008         * sysdeps/mach/hurd/fxstat64.c: New file.
2009         * sysdeps/mach/hurd/lxstat64.c: New file.
2010         * sysdeps/mach/hurd/xstat64.c: New file.
2011         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2012
2013 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2014
2015         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2016         Initialize, needed for change in common symbol handling in newer
2017         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2018
2019 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2020
2021         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2022         * elf/constload2.c: Add destructor to unload constload3.
2023
2024         * include/link.h: Include sysd-link.h.
2025         * sysdeps/generic/sysd-link.h: New file.
2026         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2027         * elf/Makefile (distribute): Add sysd-link.h.
2028         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2029         types and functions directly.
2030         * elf/dl-misc.c: Likewise.
2031         * elf/dl-profile.c: Likewise.
2032
2033         * elf/loadfail.c (main): Close all successfully loaded objects.
2034
2035         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2036         free wd.
2037         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2038         there is already one.
2039
2040         * elf/dl-close.c: Pretty print.
2041
2042 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2043
2044         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2045         global (with file scope).  Add __libc_subfreeres function to free the
2046         string.
2047         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2048         in ttyname function.
2049
2050         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2051
2052         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2053
2054         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2055         mapping them to /x5c and /x7e respectively.
2056
2057         * locale/programs/ld-ctype.c: Add support for more definitions after
2058         copy statement.
2059
2060 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2061
2062         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2063         * sysdeps/unix/sysv/linux/kernel-features.h
2064         (__ASSUME_GETDENTS64_SYSCALL): Define.
2065         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2066         syscall if available to get d_type fields.
2067         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2068         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2069         __lxstat64): Export at GLIBC_2.2.
2070         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2071         Likewise.
2072         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2073         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2074         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2075         getdirentries64, versionsort64): Remove.
2076         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2077         getdirentries64, versionsort64): Remove.
2078
2079 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2080
2081         * posix/Makefile: Remove rules to generate glob package.
2082
2083         * posix/Makefile (tests): Add tst-regexloc.
2084         (tst-regexloc-ENV): Add LOCPATH.
2085         * posix/tst-regexloc.c: New file.
2086
2087 2000-08-12  Andreas Jaeger  <aj@suse.de>
2088
2089         * include/features.h (__STDC_ISO_10646__): Define.
2090         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2091
2092 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2093
2094         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2095
2096         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2097         for revision 6 and up).
2098
2099         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2100         including <time.h>.
2101         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2102         to get definitions of just these types.
2103
2104         * signal/signal.h: Define thread signal handling functions also for
2105         POSIX95.
2106
2107         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2108         POSIX95.
2109         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2110         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2111         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2112         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2113
2114         * sysvipc/sys/shm.h: Define pid_t for XPG.
2115
2116         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2117         they are not anymore required here.
2118
2119         * wcsmbs/wchar.h: Make the various wide char string and stream
2120         functions available for the respective XPG versions.
2121
2122         * nss/Makefile: Remove rules to build and distribute nss_db.
2123
2124         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2125         * sysdeps/generic/scandir64.c: Likewise.
2126         * sysdeps/generic/versionsort64.c: Likewise.
2127
2128 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2129             Benjamin Koznik  <bkoz@redhat.com>
2130
2131         * libio/fileops.c: Merge with libstdc++-v3.
2132         * libio/genops.c: Likewise.
2133         * libio/iofclose.c: Likewise.
2134         * libio/iofopen.c: Likewise.
2135         * libio/iofwide.c: Likewise.
2136         * libio/libio.h: Likewise.
2137         * libio/libioP.h: Likewise.
2138         * libio/stdfiles.c: Likewise.
2139         * libio/stdio.c: Likewise.
2140         * libio/wfileops.c: Likewise.
2141         * libio/wgenops.c: Likewise.
2142
2143         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2144
2145 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2146
2147         * locale/programs/localedef.c: Implement --prefix option to allow
2148         writing in standard places of alternative install directories.
2149
2150         * posix/regex.c (compile_range): Implement collation sequence
2151         handling for glibc.  Use simple character ordering otherwise and
2152         not strcoll.
2153
2154 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2155
2156         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2157
2158 2000-08-12  Andreas Jaeger  <aj@suse.de>
2159
2160         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2161         __USE_FILE_OFFSET64 correctly for locking.
2162         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2163
2164 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2165
2166         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2167         Define for 2.4.1 on sparc as well.
2168         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2169         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2170         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2171         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2172
2173 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2174
2175         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2176         defined.
2177
2178 2000-08-12  Andreas Jaeger  <aj@suse.de>
2179
2180         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2181         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2182
2183         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2184         mips2 for assembler.
2185
2186         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2187         if fnctl64 is not available for F_*LK*64.
2188
2189         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2190
2191 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2192
2193         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2194         Define for 2.4.1 on x86.
2195         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2196         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2197         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2198
2199         * dirent/dirent.h: Define DT_WHT.
2200
2201         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2202         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2203         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2204         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2205         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2206         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2207
2208 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2209
2210         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2211         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2212         * inet/Makefile (tests): Add tst-gethnm.
2213         * inet/tst-gethnm.c: New file.
2214
2215         * rt/aio_cancel.c: If canceling a specific request which is running
2216         *really* do nothing.
2217         * rt/aio_misc.h: Add `done' to states of a request.
2218         * rt/aio_misc.c: Add several tests for the correct state.
2219         Simplify request table memory handling.
2220
2221 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2222
2223         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2224         * dirent/scandir64.c: Move...
2225         * sysdeps/generic/scandir64.c: ...here.
2226         * dirent/alphasort64.c: Move...
2227         * sysdeps/generic/alphasort64.c: ...here.
2228         * dirent/versionsort64.c: Move...
2229         * sysdeps/generic/versionsort64.c: ...here.
2230         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2231         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2232         Export symbols at GLIBC_2.2.
2233         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2234         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2235         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2236         __versionsort64): Add prototypes.
2237         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2238         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2239         unused prototype.
2240         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2241         and GLIBC_2.2.
2242         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2243         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2244         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2245         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2246         __u_quad_t.
2247         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2248         Adjust for kernel-2.4.0-test6 layout.
2249         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2250         GLIBC_2.1 and GLIBC_2.2.
2251         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2252         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2253         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2254         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2255         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2256         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2257         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2258         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2259         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2260         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2261         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2262         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2263         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2264         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2265         __u_quad_t.
2266         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2267         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2268         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2269         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2270         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2271         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2272         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2273         __u_quad_t.
2274         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2275         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2276         Define.
2277         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2278         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2279         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2280         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2281         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2282         Define.
2283         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2284         alpha/readdir.c.
2285         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2286         alpha/readdir_r.c
2287         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2288         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2289         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2290         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2291         st_ino from __st_ino.
2292         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2293         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2294         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2295         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2296         set __st_ino in addition to st_ino.
2297         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2298         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2299         __old_getdents64 as well.
2300         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2301         getdirentries64 and old_getdirentries64 as well.
2302         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2303         __GETDENTS): Define.
2304         (GETDENTS64): Remove.
2305         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2306         Define.
2307         (GETDENTS64): Remove.
2308         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2309         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2310         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2311         as well.
2312         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2313         __old_readdir64_r as well.
2314         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2315         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2316
2317 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2318
2319         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2320         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2321         define of the kernel.
2322         Add missing __SEG_PSTKOVF definition.
2323         Adjust the padding of struct siginfo and struct sigevent to
2324         match the fact that sigval_t is 64 bit.
2325
2326 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2327
2328         * timezone/zic.c: Update from tzcode2000f.
2329         * timezone/australasia: Update from tzdata2000f.
2330         * timezone/europe: Likewise.
2331         * timezone/southamerica: Likewise.
2332         * timezone/yearistype: Likewise.
2333
2334 2000-08-10  Andreas Jaeger  <aj@suse.de>
2335
2336         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2337         stat with current MIPS kernel.
2338
2339 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2340
2341         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2342         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2343         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2344         Remove the junk that's only relevant in the Linux kernel itself.
2345         Add a warning saying that this file is now obsolete, and include
2346         <sys/procfs.h>.
2347         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2348         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2349         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2350         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2351         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2352         and add the notice that the file is primarily there for GDB.
2353         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2354
2355 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2356
2357         * time/tzfile.c (__tzfile_compute): __tzstring zones
2358         from zone_names.
2359
2360 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2361
2362         * resolv/resolv.h (__res_state): Surround prototype with
2363         __BEGIN_DECLS/__END_DECLS.
2364         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2365
2366 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2367
2368         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2369         Make independant of asm/resource.h from the Linux kernel.
2370
2371 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2372
2373         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2374
2375 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2376
2377         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2378         * locale/Makefile (locale-CPPFLAGS): Likewise.
2379
2380 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2381
2382         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2383         for AMD processors.
2384
2385 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2386
2387         * misc/Versions (mincore): Export at GLIBC_2.2.
2388
2389 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2390
2391         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2392
2393 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2394
2395         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2396         socketpair.  Made socketpair a weak alias.
2397         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2398         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2399         conforming, but fall back on the old protocol if the socket server
2400         doesn't support it.
2401         * include/sys/socket.h: Add prototype for __socketpair.
2402
2403 2000-08-09  Andreas Schwab  <schwab@suse.de>
2404
2405         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2406         long long modifier is seen.
2407
2408         * elf/nodelete.c (do_test): Remove reference to undefined member
2409         sa_restorer.
2410         * rt/tst-aio4.c (do_test): Likewise.
2411
2412         * configure.in: Add `-lm' when checking for libgd.
2413         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2414         linking.
2415
2416 2000-08-09  Andreas Jaeger  <aj@suse.de>
2417
2418         * configure.in: Change required make versions.
2419
2420         * manual/install.texi (Tools for Compilation): Document required
2421         make version.
2422         (Supported Configurations): Update list of supported
2423         configurations.
2424
2425 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2426
2427         * locale/linereader.c (get_string): Don't print an error is a string
2428         contains an unknown character.
2429
2430 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2431
2432         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2433         (new_symbol): Take new parameters with name of the symbol.
2434         Adjust callers.
2435         (handle_ellipsis): Don't only allow character symbols.
2436         (collate_read): Allow string of collating elements contain invalid
2437         characters; ignore entry in this case.
2438         Handle ellipsis of collating symbols before first order_start.
2439         Allow ellipsis in state 0.
2440
2441 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2442
2443         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2444         error message.
2445         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2446
2447 2000-08-04  Greg McGary  <greg@mcgary.org>
2448
2449         * posix/regex.c (SET_HIGH_BOUND): New macro.
2450         (MOVE_BUFFER_POINTER): Use it.
2451         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2452         (EXTEND_BUFFER): Use it.
2453
2454 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2455
2456         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2457         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2458         _wide_data but from _IO_FILE directly.
2459         * libio/iofclose.c: Likewise.
2460         * libio/wfileops.c: Likewise.
2461
2462         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2463         * libio/libioP.h: Change prototypes.
2464
2465 2000-08-03  Greg McGary  <greg@mcgary.org>
2466
2467         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2468         frame pointer early so that we save caller's frame pointer.
2469         * sysdeps/i386/elf/setjmp.S: Likewise.
2470
2471         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2472         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2473
2474         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2475         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2476         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2477
2478 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2479
2480         * iconvdata/big5.c: Updated.
2481         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2482
2483 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2484
2485         * Makeconfig (all-subdirs): Add conform.
2486         * conform/Makefile: Include ../Rules.
2487
2488         * Makefile (README): Add rules to generate here as well.
2489
2490 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2491
2492         * version.h (VERSION): Bump to 2.1.92.
2493
2494         * sysdeps/ia64/Dist: Add _mcount.S.
2495
2496         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2497
2498         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2499
2500         * elf/Makefile (distribute): Add missing modules.
2501
2502         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2503
2504         * posix/regex.c (compile_range): Translate range start and end
2505         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2506
2507         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2508         asm/resource.h.
2509
2510         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2511
2512 2000-08-02  Andreas Jaeger  <aj@suse.de>
2513
2514         * elf/elf.h (EM_S390): Added.
2515         (R_390_*): New relocs for S390.
2516
2517         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2518         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2519         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2520         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2521         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2522         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2523         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2524         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2525         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2526         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2527         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2528         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2529         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2530         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2531         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2532         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2533         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2534         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2535         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2536         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2537         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2538         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2539         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2540         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2541         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2542         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2543         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2544         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2545         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2546         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2547         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2548         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2549         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2550         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2551         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2552         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2553         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2554         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2555         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2556         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2557         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2558         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2559         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2560         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2561         * sysdeps/s390/sysdep.h: New file.
2562         * sysdeps/s390/sys/ucontext.h: New file.
2563         * sysdeps/s390/sub_n.S: New file.
2564         * sysdeps/s390/strncpy.S: New file.
2565         * sysdeps/s390/strcpy.S: New file.
2566         * sysdeps/s390/stackinfo.h: New file.
2567         * sysdeps/s390/setjmp.S: New file.
2568         * sysdeps/s390/s390-mcount.S: New file.
2569         * sysdeps/s390/mul_1.S: New file.
2570         * sysdeps/s390/memusage.h: New file.
2571         * sysdeps/s390/memset.S: New file.
2572         * sysdeps/s390/memcpy.S: New file.
2573         * sysdeps/s390/memchr.S: New file.
2574         * sysdeps/s390/machine-gmon.h: New file.
2575         * sysdeps/s390/ldbl2mpn.c: New file.
2576         * sysdeps/s390/gmp-mparam.h: New file.
2577         * sysdeps/s390/fpu/fpu_control.h: New file.
2578         * sysdeps/s390/fpu/fesetround.c: New file.
2579         * sysdeps/s390/fpu/fegetround.c: New file.
2580         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2581         * sysdeps/s390/fpu/bits/fenv.h: New file.
2582         * sysdeps/s390/ffs.c: New file.
2583         * sysdeps/s390/elf/start.S: New file.
2584         * sysdeps/s390/elf/setjmp.S: New file.
2585         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2586         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2587         * sysdeps/s390/dl-machine.h: New file.
2588         * sysdeps/s390/bzero.S: New file.
2589         * sysdeps/s390/bsd-setjmp.S: New file.
2590         * sysdeps/s390/bsd-_setjmp.S: New file.
2591         * sysdeps/s390/bits/string.h: New file.
2592         * sysdeps/s390/bits/setjmp.h: New file.
2593         * sysdeps/s390/bits/huge_val.h: New file.
2594         * sysdeps/s390/bits/endian.h: New file.
2595         * sysdeps/s390/bits/byteswap.h: New file.
2596         * sysdeps/s390/bcopy.S: New file.
2597         * sysdeps/s390/backtrace.c: New file.
2598         * sysdeps/s390/atomicity.h: New file.
2599         * sysdeps/s390/asm-syntax.h: New file.
2600         * sysdeps/s390/addmul_1.S: New file.
2601         * sysdeps/s390/add_n.S: New file.
2602         * sysdeps/s390/abort-instr.h: New file.
2603         * sysdeps/s390/__longjmp.c: New file.
2604         * sysdeps/s390/Makefile: New file.
2605         * sysdeps/s390/Implies: New file.
2606         * sysdeps/s390/Dist: New file.
2607         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2608
2609 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2610
2611         Remove incompatible IPv6 extension of RPC.
2612         * sunrpc/Makefile: Undo changes.
2613         * sunrpc/rpc_main.c: Likewise.
2614         * sunrpc/rpc/clnt.h: Likewise.
2615         * sunrpc/rpc/svc.h: Likewise.
2616         * sunrpc/bindrsvprt6.c: Removed.
2617         * sunrpc/clnt_tcp6.c: Removed.
2618         * sunrpc/clnt_udp6.c: Removed.
2619         * sunrpc/svc_tcp6.c: Removed.
2620         * sunrpc/svc_udp6.c: Removed.
2621
2622         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2623         dgettext, and dcgettetxt.
2624
2625         * intl/locale.alias: Update japanese aliases.
2626
2627         * sysdeps/ia64/bits/byteswap.h: New file.
2628         Patch by Dan Pop <Dan.Pop@cern.ch>.
2629
2630         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2631         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2632
2633 2000-07-13  H.J. Lu  <hjl@gnu.org>
2634
2635         * posix/regex.c (re_max_failures): Set to 4000.
2636
2637 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2638
2639         * gnulib/Makefile (tests): Add tst-gcc.
2640         * gnulib/tst-gcc.c: New file.
2641
2642         * assert/Makefile (routines): Add __assert.
2643         * assert/Versions: Export __assert for glibc 2.2.
2644         * assert/__assert.c: New file.
2645         * assert/assert.h: Declare __assert.
2646
2647 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2648
2649         * locale/localeinfo.h (_ISCTYPE): New macro.
2650         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2651         LC_CTYPE locale format.
2652         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2653         (ctype_output): Output class_b[nr] right before class_3level[nr].
2654         (allocate_arrays): Fill class_b, similarly to class_3level.
2655
2656 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2657             Joseph S. Myers  <jsm28@cam.ac.uk>
2658
2659         * math/tgmath.h: Make standard compliant.  Don't ask how.
2660
2661 2000-07-04  H.J. Lu  <hjl@gnu.org>
2662
2663         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2664         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2665         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2666
2667 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2668
2669         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2670         (__USE_LARGEFILE): Add an explanation.
2671         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2672         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2673
2674 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2675
2676         * libio/Makefile: Enable exception handling for genops, wgenops,
2677         fileops, and wfileops.
2678
2679 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2680
2681         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2682         acount that elf/rtld's main program might remove some varibales
2683         from the environment if we're trying to be secure.  Move the Hurd
2684         startup data if necessary, or, if we there is no startup data,
2685         make sure the magical convention that ARGV[0] is stored just after
2686         the environment list.
2687
2688 2000-08-01  Philip Blundell  <philb@gnu.org>
2689
2690         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2691         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2692         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2693         oldsetrlimit for GLIBC_2.0.
2694
2695 2000-08-01  Andreas Jaeger  <aj@suse.de>
2696
2697         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2698         (LINE_PARSER): Allow any number of spaces between ip address and
2699         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2700
2701         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2702
2703         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2704         constants in.
2705
2706         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2707         _nss_nisplus_getipnodebyname_r.
2708
2709         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2710         now, getipnodebyname is deprecated.
2711         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2712         Likewise.
2713
2714         * inet/Makefile (routines): Don't build getipnodebyaddr and
2715         friends.
2716
2717         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2718
2719         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2720
2721         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2722
2723         * wctype/Makefile (distribute): Add wchar-lookup.h.
2724
2725         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2726
2727         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2728
2729 2000-08-01  Andreas Schwab  <schwab@suse.de>
2730
2731         * Make-dist (dist): Resolve `..' in file names.
2732
2733 2000-08-01  Andreas Jaeger  <aj@suse.de>
2734
2735         * stdio-common/Makefile (distribute): Remove removed files, add
2736         new files.
2737
2738         * Makefile (distribute): Remove include/db_185.h and db.h.
2739
2740         * include/db_185.h: Remove, it's not needed anymore.
2741         * include/db.h: Likewise.
2742
2743 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2744
2745         * inet/Makefile (tests): Remove tst-ipnode.
2746         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2747         now.
2748
2749 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2750
2751         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
2752         endp statements have already been added.
2753
2754 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
2755
2756         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
2757         <sysdeps/ia64/sysdep.h>.
2758
2759         * sysdeps/ia64/_mcount.S: New file.
2760
2761         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
2762         __gmon_start__.  Fix up extraneous whitespace.
2763
2764 2000-01-12  H.J. Lu  <hjl@gnu.org>
2765
2766         * sysdeps/ia64/elf/initfini.c: New file.
2767
2768 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2769
2770         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
2771         dependency between branch and ar.pfs write.
2772
2773 2000-07-31  H.J. Lu  <hjl@gnu.org>
2774
2775         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
2776         handle the wchar_t array.
2777
2778 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2779
2780         * iconvdata/gb18030.c: Don't map to and from positions in ISO
2781         10646 which are not yet assigned.
2782         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
2783
2784 2000-07-31  Andreas Jaeger  <aj@suse.de>
2785
2786         * inet/Versions: Remove getipnodebyaddr and friends from
2787         GLIBC_2.2.
2788
2789         * resolv/netdb.h: Remove getipnodebyaddr and friends.
2790
2791 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2792
2793         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
2794         ch >= 0x81 && ch2 < 0x40 as invalid.
2795
2796 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2797
2798         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
2799         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
2800
2801 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2802
2803         * iconvdata/johab.c (BODY for TO_LOOP): After calling
2804         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
2805
2806 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2807
2808         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
2809         0xb8.
2810         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
2811
2812 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2813
2814         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
2815
2816 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2817
2818         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
2819         (from_ucs4): Change values of U+00A4 and U+00ED.
2820         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
2821
2822 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2823
2824         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
2825         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
2826
2827 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2828
2829         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
2830         * iconvdata/isiri-3342.h: New file.
2831         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
2832         treat 0x80 as a gap.
2833
2834 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2835
2836         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
2837         (utf8_encode): Use simple shifts instead.  Fix return value.
2838
2839 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2840
2841         * timezone/private.h: Update from tzcode2000e.
2842         * timezone/asia: Update from tzdata2000e.
2843         * timezone/australasia: Likewise.
2844         * timezone/europe: Likewise.
2845         * timezone/northamerica: Likewise.
2846         * timezone/zone-tab: Likewise.
2847
2848 2000-07-30  Ralf Baechle  <ralf@gnu.org>
2849
2850         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
2851         the order of struct sigaltstack members is different.
2852
2853 2000-07-26  Philip Blundell  <philb@gnu.org>
2854
2855         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
2856
2857 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
2858
2859         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
2860         * locale/programs/ld-ctype.c: Adjust for this.
2861
2862         * locale/programs/ld-collate.c: Add more alignment checks.
2863         * locale/string/strcoll.c: Likewise.
2864
2865 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
2866
2867         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
2868         outside USE_IN_LIBIO block.
2869
2870 2000-07-26  Philip Blundell  <philb@gnu.org>
2871
2872         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
2873         (elf_machine_rel): Use it for out-of-range PC24 relocs.
2874
2875 2000-07-28  Philip Blundell  <philb@gnu.org>
2876
2877         * math/test-fpucw.c: Ignore reserved bits in control word.
2878
2879 2000-07-28  Philip Blundell  <philb@gnu.org>
2880
2881         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
2882         (ret): Redefine to PSEUDO_RET.
2883         (PSEUDO): Remove jump to syscall_error.
2884
2885 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2886
2887         * resolv/README: Add some information about using the resolver in
2888         multi-threaded code and with C++.  Spelling fixes.
2889
2890 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2891
2892         * resolv/resolv.h (struct __sockaddr_in): Remove.
2893         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
2894
2895 2000-07-29  Greg McGary  <greg@mcgary.org>
2896
2897         * Rules (test-bp-inputs, make-test-out): New variables.
2898         ($(objpfx)%-bp.out): New rule.
2899         ($(objpfx)%.out): Rewrite in terms of new variables.
2900
2901         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
2902         internal function that uses vtable.
2903         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2904         * libio/vswprintf.c (_IO_vswprintf): Likewise.
2905
2906         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
2907         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
2908         (chunk_align): Likewise.
2909
2910         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
2911         in a way that conforms to decl, and avoids spurious bounds violation.
2912
2913         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
2914         * sysdeps/generic/frame.h: Likewise.
2915         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
2916         around return value.
2917         (__backtrace): Qualify frame-pointer chain and return address
2918         pointers as __unbounded.  Wrap bounds around variable `current'.
2919         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
2920         around return value.
2921         (catch_segfault): Qualify frame-pointer chain and return address
2922         pointers as __unbounded.  Wrap bounds around variable `current'.
2923         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
2924         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
2925         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
2926         __unbounded.
2927         (__backtrace): Qualify frame-pointer chain and return address
2928         pointers as __unbounded.  Wrap bounds around variable `current'.
2929
2930         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
2931         * sysdeps/i386/mul_1.S: Likewise.
2932         * sysdeps/i386/submul_1.S: Likewise.
2933         * sysdeps/i386/i586/addmul_1.S: Likewise.
2934         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
2935         * sysdeps/i386/i586/submul_1.S: Likewise.
2936
2937 2000-07-27  Andreas Jaeger  <aj@suse.de>
2938
2939         * libio/Depend: New file, libio needs localedata for tests.
2940         * posix/Depend: Likewise.
2941
2942 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
2943
2944         * stdio-common/_i18n_itoa.c: Removed.
2945         * stdio-common/_i18n_itoa.h: Removed.
2946         * stdio-common/_i18n_itowa.c: Removed.
2947         * stdio-common/_i18n_itowa.h: Removed.
2948         * stdio-common/_i18n_number.h: New file.
2949         * stdio-common/Depend: New file.
2950         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
2951         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
2952         printing.  Change printing of numbers with locale specific digits to
2953         use new code in _i18n_number.h.
2954         * stdio-common/Makefile (routines): Remove _i18n_itoa and
2955         _i18n_itowa.
2956
2957         * stdio-common/bug13.c: Improve messages.
2958
2959         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
2960         (set_class_defaults): Always search also for Uxxxx names.
2961         Detect insufficient number of outdigits.
2962
2963         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
2964
2965 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2966
2967         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
2968         _NL_CTYPE_MAP_NAMES.
2969         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
2970         * wctype/wcfuncs.c (towlower, towupper): Use them.
2971         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
2972         * wctype/wctrans.c (wctrans): Likewise.
2973         * wctype/wctrans_l.c (__wctrans_l): Likewise.
2974
2975 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2976
2977         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
2978         Use the optimized version of this function outside glibc as well.
2979
2980 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
2981
2982         * locale/indigits.h (indigit_value): Correct.
2983         * locale/indigitswc.h (indigitwc_value): Correct.
2984         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
2985         conversion, add GROUP checking for it, fix GROUP number
2986         conversion with strlen(thousands) > 1.
2987         Honour width correctly in the presence of floating
2988         decimal points and thousands separators.
2989         * stdio-common/tst-sscanf.c: New test.
2990         * stdio-common/Makefile: Add it to tests.
2991         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
2992         thousands separators and group argument is non-zero.
2993
2994 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
2995
2996         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
2997         starts at GLIBC_2.2.
2998
2999 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3000
3001         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3002         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3003         _test_and_set.
3004         (headers): Add sys/tas.h.
3005         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3006         GLIBC_2.2 from libc.
3007         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3008         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3009         _test_and_set.
3010
3011 2000-07-28  Andreas Jaeger  <aj@suse.de>
3012
3013         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3014
3015         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3016         ($(objpfx)tst-dladdr.out): new.
3017         (tests): Add tst-dladdr.
3018         ($(objpfx)glrefmain): Use libdl.
3019
3020         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3021         <vs@caldera.de>.
3022
3023 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3024
3025         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3026         ftruncate(64) calls.
3027
3028 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3029
3030         * intl/tst-translit.c: Include string.h to get prototype for
3031         strcmp().
3032
3033 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3034
3035         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3036         name and add weak alias for __fork.
3037
3038         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3039         & pwrite to use __libc_<name> as strong names instead of
3040         __syscall_<name>.
3041
3042         * include/sched.h: Add clone2 prototype.
3043
3044 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3045
3046         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3047         procedure name twice.
3048
3049 2000-07-27  Philip Blundell  <philb@gnu.org>
3050
3051         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3052
3053 2000-07-27  Andreas Jaeger  <aj@suse.de>
3054
3055         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3056         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3057         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3058         Reported by Andi Kleen <ak@suse.de>.
3059
3060         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3061         (do_wait): Test requests with aio_return64.
3062         (do_test): Change callers of do_wait.
3063
3064 2000-07-26  Andreas Jaeger  <aj@suse.de>
3065
3066         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3067         (do_wait): Test requests with aio_return.
3068         (do_test): Change callers of do_wait.
3069
3070 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3071
3072         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3073         from request list.  Don't do the list handling here, call
3074         __aio_remove_request.
3075         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3076         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3077         request might already be processed.  Don't do the list handling
3078         here, call __aio_remove_request.
3079
3080         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3081         LIO_DSYNC.
3082
3083         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3084         are missing.
3085
3086 2000-07-27  Greg McGary  <greg@mcgary.org>
3087
3088         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3089         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3090         in union init.  Pass zero for ignored semnum arg to semctl.
3091         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3092
3093 2000-07-26  Greg McGary  <greg@mcgary.org>
3094
3095         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3096         data structure pointers as __unbounded.
3097         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3098         * sysdeps/generic/bp-semctl.h: New file.
3099         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3100         pointers as __unbounded.  Check bounds of syscall args.
3101         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3102         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3103         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3104         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3105         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3106         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3107         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3108         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3109         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3110         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3111         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3112         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3113         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3114         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3115         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3116         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3117
3118 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3119
3120         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3121         by default.
3122         * locale/C-ctype.c: Likewise.
3123         * wcsmbs/wcsmbsload.c: Likewise.
3124
3125 2000-07-26  Greg McGary  <greg@mcgary.org>
3126
3127         * Makeconfig (+link-bounded, link-libc-bounded,
3128         link-extra-libs-bounded): New variables.
3129         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3130         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3131         * Rules (tests-bp.out): New variable.
3132         (tests): Conditionally add BP tests.
3133         (binaries-bounded): Add variable and associated rule.
3134         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3135         Move conditional stuff after place where condition is defined.
3136
3137         * malloc/malloc.c (bp-checks.h): Add #include.
3138         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3139         (_bin_at): Add unbounded version of bin_at.
3140         (IAV, chunk_alloc): Use unbounded _bin_at.
3141         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3142         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3143         Wrap BOUNDED_N around return value.
3144         (chunk_realloc): Adjust oldsize once.
3145
3146         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3147         (__ubp_memchr): Add correct decl.
3148         (_CHECK_STRING): Use __ubp_memchr.
3149         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3150         New alias for unbounded-pointer __memchr.
3151         * sysdeps/i386/memchr.S: Likewise.
3152         * sysdeps/ia64/memchr.S: Likewise.
3153         * sysdeps/m68k/memchr.S: Likewise.
3154         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3155         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3156         * sysdeps/vax/memchr.s: Likewise.
3157
3158         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3159         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3160         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3161         * sysdeps/i386/i686/strtok.S: Likewise.
3162         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3163         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3164
3165         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3166         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3167
3168         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3169         bounds of copy_result to mount_proc.
3170
3171 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3172
3173         * wctype/wctype.h (__wctrans_l): New declaration.
3174         * wctype/wctrans_l.c: New file.
3175         * wctype/Makefile (routines): Add wctrans_l.
3176
3177 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3178
3179         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3180         Patch by MacGyver <macgyver@tos.net>.
3181
3182 2000-07-26  Andreas Jaeger  <aj@suse.de>
3183
3184         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3185         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3186         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3187
3188         * rt/tst-aio.c (test_file): Fix typo.
3189         * rt/tst-aio64.c (test_file): Likewise.
3190
3191         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3192         * rt/Makefile: Add rules to build and run tst-aio3.
3193
3194         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3195         it's not needed and confuses only.
3196
3197 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3198
3199         * resolv/res_init.c: Add support for nameserver communication with
3200         IPv6.
3201         * resolv/res_send.c: Likewise.
3202         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3203         in nsaddrs field.
3204         Patch by <venaas@nvg.ntnu.no>.
3205
3206 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3207
3208         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3209         (wcwidth_table_get): New function.
3210         (wcwidth_table_add): Call it.
3211         (wctrans_table_get): New function.
3212         (wctrans_table_add): Call it.
3213
3214 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3215
3216         * rt/lio_listio.c (lio_listio): Always disable individual
3217         notification.
3218         * rt/Makefile: Add rules to build and run tst-aio2.
3219         * rt/tst-aio2.c: New file.
3220
3221         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3222         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3223
3224 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3225
3226         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3227         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3228         leading and trailing spaces from host, user and domain name.
3229
3230 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3231
3232         * csu/defs.awk: Add support for need_endp.
3233
3234 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3235
3236         * resolv/resolv.h: Remove __P from res_send_qhook and
3237         res_send_rhook typedefs.
3238
3239 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3240
3241         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3242
3243 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3244
3245         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3246
3247 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3248
3249         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3250         calling thread, set the cancellation flag and return success
3251         instead of EINTR.
3252
3253 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3254
3255         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3256         * libio/tst-widetext.c: New file.
3257         * libio/tst-widetext.input: New file.
3258
3259         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3260
3261         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3262         empty external buffer correctly.
3263
3264 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3265
3266         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3267         __STRING(entry) and not #entry.
3268         (_RTLD_EPILOGUE): Likewise.
3269         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3270
3271 2000-07-25  Andreas Jaeger  <aj@suse.de>
3272
3273         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3274         according to changes in test program, run also with static only
3275         builds.
3276         ($(objpfx)tst-printf.out): Likewise.
3277
3278         * stdio-common/tst-unbputc.sh: Likewise.
3279         * stdio-common/tst-printf.sh: Likewise.
3280
3281 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3282
3283         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3284
3285         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3286         loop.
3287
3288         * libio/fileops.c: Pretty print.
3289
3290 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3291
3292         * wctype/wchar-lookup.h: New file.
3293         * wctype/iswctype.c: Include "wchar-lookup.h".
3294         (__iswctype): Support alternate locale format with 3-level tables.
3295         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3296         * wctype/towctrans.c (__towctrans): Likewise.
3297         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3298         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3299         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3300         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3301         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3302         __iswxdigit, towlower, towupper): Support alternate locale format
3303         with 3-level tables.
3304         * wctype/wcextra.c (iswblank): Likewise.
3305         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3306         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3307         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3308         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3309         format with 3-level tables.
3310         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3311         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3312         format, return a 3-level table pointer.
3313         * wctype/wctype_l.c (__wctype_l): Likewise.
3314         * wctype/wctrans.c (wctrans): Likewise.
3315         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3316         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3317         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3318         (iswctype): Remove macro definition.
3319         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3320         (internal_wcwidth): Support alternate locale format with 3-level
3321         tables.
3322         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3323         New nl_items.
3324         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3325         Define them as being type "word".
3326         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3327         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3328         __ctype32_width): New exported variables.
3329         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3330         alternate locale format. Don't initialize __ctype_names and
3331         __ctype_width in the alternate locale format.
3332         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3333         * locale/programs/localedef.c (oldstyle_tables): New variable.
3334         (OPT_OLDSTYLE): New macro.
3335         (options): Add --old-style option.
3336         (parse_opt): Handle --old-style option.
3337         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3338         map_offset, class_3level, map_3level, width_3level members.
3339         (ctype_output): Support for alternate locale format: Computation of
3340         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3341         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3342         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3343         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3344         now contain both class and map tables.
3345         (struct wctype_table): New type.
3346         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3347         functions.
3348         (struct wcwidth_table): New type.
3349         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3350         functions.
3351         (struct wctrans_table): New type.
3352         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3353         functions.
3354         (allocate_arrays): Support for alternate locale format: Set
3355         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3356         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3357         to the first 256 characters. Compute ctype->map_3level. Set
3358         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3359         instead of ctype->width.
3360
3361 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3362
3363         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3364         string functions.
3365
3366 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3367
3368         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3369         in wide characters, not bytes.
3370         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3371         into file.
3372
3373 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3374
3375         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3376         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3377         LC_MEASUREMENT, LC_IDENTIFICATION.
3378
3379         * locale/xlocale.h (struct __locale_struct): Increase size of
3380         __locales array.
3381         * locale/duplocale.c (__duplocale): Copy newly added categories as
3382         well.
3383         * locale/freelocale.c (__freelocale): Free newly added categories.
3384         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3385         If a base is given, use it, don't simply return it.
3386
3387 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3388
3389         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3390         variables, copied_key and copied_salt, instead of boolean variables.
3391
3392 2000-07-24  Andreas Jaeger  <aj@suse.de>
3393
3394         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3395         check for offset.
3396
3397         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3398         initgroups_function, adopted prototype for change from 2000-07-23.
3399         (initgroups): Follow type change.
3400
3401         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3402         & PAGE_MASK case, reformat.
3403
3404         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3405         from stdin and setup environment.
3406
3407 2000-07-24  Andreas Schwab  <schwab@suse.de>
3408
3409         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3410
3411 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3412
3413         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3414         more.  Patch by scarlet@mit.edu [PR libc/1799].
3415
3416         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3417         [PR libc/1792].
3418
3419         * argp/argp-parse.c (parser_finalize): Reverse order in which
3420         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3421
3422         * grp/initgroups.c (initgroups): Don't limit the possible number
3423         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3424         the setgroups call while the call fails and descrease the number
3425         of groups each round.
3426         The name of the initgroups function in the NSS modules changed.
3427         (compat_call): Adapt for dynamic resizing.
3428         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3429         Implement dynamic resizing.
3430         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3431         Likewise.
3432         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3433         * hesiod/Versions: Change exported interface name.
3434         * nis/Versions: Change exported interface name.
3435
3436 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3437
3438         * locale/iso-639.def: Some errors corrected.
3439         Patch by Keld Simonsen.
3440
3441         * include/limits.h: Update non-gcc portion.
3442         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3443
3444 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3445
3446         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3447         program's data space, reallocate only the space that was just
3448         deallocated to release its backing space.
3449
3450 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3451
3452         * stdio-common/vfprintf.c (process_string_arg): For wide character
3453         version, handle precision also correctly.
3454
3455         * nss/nss_files/files-hosts.c: Correct problem with three or more
3456         entries with the same name.
3457
3458         * nss/nss_files/files-hosts.c: Implement multi handling.
3459         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3460
3461 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3462
3463         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3464         strcasecmp.
3465
3466         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3467         * malloc/Makefile: Likewise.
3468         * malloc/tst-mtrace.sh: Likewise.
3469         * posix/Makefile: Likewise.
3470         * posix/globtest.sh: Likewise.
3471         * posix/wordexp-tst.sh: Likewise.
3472         * string/Makefile: Likewise.
3473
3474 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3475
3476         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3477         size instead of LC_ALL to take into account the new locale
3478         categories.
3479
3480 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3481
3482         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3483         remainders of hash table.
3484         * locale/categories.def: Remove remainders of transliteration
3485         hash table.
3486         * locale/langinfo.h: Likewise.
3487         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3488         transliteration tables.
3489
3490         * locale/gen-translit.pl: New file.
3491         * locale/C-translit.h.in: New file.
3492         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3493         data pointers with data from this file.
3494         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3495         and gen-translit.pl.
3496         Add rule to generate C-translit.h.
3497         * intl/tst-translit.c (main): Update for now performed
3498         transliteration.
3499
3500         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3501         (it's no input error).
3502         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3503         * stdio-common/scanf12.c: Correct expected result for first scanf.
3504
3505         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3506         of multibyte character strings in %s format with precision.
3507
3508 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3509
3510         * locale/programs/ld-collate.c (collate_read): Allow collating
3511         symbols and elements be named in reorder-after instructions.
3512         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3513
3514         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3515         duplication with generated name, not the name of the first
3516         character.
3517         Patch by Yong Li <yong.li@asu.edu>.
3518
3519         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3520         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3521
3522 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3523
3524         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3525         allocations only if a non-main arena cannot be extended.
3526
3527 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3528
3529         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3530         in DF_1_NODEFLIB handling.
3531
3532 2000-07-21  Andreas Jaeger  <aj@suse.de>
3533
3534         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3535         own rule.
3536
3537         * libio/fwide.c: Include <wchar.h> for prototype.
3538
3539 2000-07-21  Greg McGary  <greg@mcgary.org>
3540
3541         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3542         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3543         Define in terms of chunk_at_offset.
3544         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3545         (next_bin, prev_bin): offset by size of real array elements.
3546         (chunk_align): Make `m' a scalar, since that's how it's used.
3547
3548 2000-07-21  Greg McGary  <greg@mcgary.org>
3549
3550         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3551         UNCHECK_BOUNDS.
3552         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3553         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3554         Wrap bounds around argv & envp and each of their string members.
3555         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3556         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3557         symbol in BP_SYM ().  Discard bounds of address arg.
3558         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3559         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3560         Discard bounds on address arg, add bounds to return value.
3561
3562 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3563
3564         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3565         * elf/filter.c: New file.
3566         * elf/filtmod1.c: New file.
3567         * elf/filtmod2.c: New file.
3568
3569         * elf/rtld.c: Define _dl_bind_not variable.
3570         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3571         * elf/dl-support.c: Likewise.
3572         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3573         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3574         _dl_bind_not.
3575         (profile_fixup): Likewise.
3576
3577         * libio/Makefile (routines): Add fwide.
3578         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3579         fwide now.  Internal calls to _IO_fwide must do locking themselves
3580         or don't need locking.
3581         * libio/fwide.c: New file.
3582
3583         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3584
3585         * elf/Makefile: Add no modules for nodelete test.
3586         * elf/nodelmod3.c: New file.
3587         * elf/nodelmod4.c: New file.
3588         * elf/nodelete.c: Also test case where dependency of dlopen() object
3589         is marked nodelete.
3590
3591         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3592         * elf/nodlopen.c: New file.
3593         * elf/nodlopenmod.c: New file.
3594         * include/dlfcn.h: Define __RTLD_DLOPEN.
3595         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3596         and this is a dlopen() call, do not load the binary.
3597         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3598         * dlfcn/dlopenold.c: Likewise.
3599         * configure.in: Add test for -z nodelete option.
3600         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3601
3602 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3603
3604         Make Hesiod NSS module thread-safe.
3605
3606         * hesiod/README.hesiod: Update.
3607
3608         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3609         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3610         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3611         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3612         hesiod-proto.
3613         * hesiod/nss_hesiod/hesiod-init.c: New file.
3614         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3615         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3616         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3617         * hesiod/nss_hesiod/hesiod-service.c
3618         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3619         looking up services by port number.
3620         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3621
3622         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3623         * hesiod/hesiod.h: Likewise.
3624         * hesiod/hesiod_p.h: Likewise.
3625
3626 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3627
3628         Fix problems with `struct __res_state' getting too big.
3629         * resolv/resolv.h (struct __sockaddr_in): New definition.
3630         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3631         the private parts of the structure to save some space.
3632         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3633         (struct sockaddr_in *) in call to sock_eq.
3634         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3635
3636 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3637
3638         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3639         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3640         with nodelete.
3641         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3642         to _dl_map_object.  Return immediately if no object loaded.
3643         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3644         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3645         if it exists into l_flags_1 word.
3646         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3647         it to determine whether loading is wanted or not.
3648         (_dl_map_object): Likewise.
3649         Call _dl_map_object_from_fd with new parameter.
3650         * sysdeps/generic/ldsodefs.h: Update prototype.
3651         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3652         * elf/rtld.c: Likewise.
3653         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3654         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3655         * elf/noload.c: New file.
3656         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3657         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3658         * sysdeps/mips/bits/dlfcn.h: Likewise.
3659         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3660         (tests-nodelete-yes): Define.
3661         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3662         Add rules to build nodelete and modules.
3663         * elf/nodelete.c: New file.
3664         * elf/nodelmod1.c: New file.
3665         * elf/nodelmod2.c: New file.
3666         * configure.in: Add test for -z nodelete option.
3667         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3668
3669         * libio/Makefile (tests): Add tst_wprintf2.
3670         (tst_wprintf2-ARGS): Define.
3671         * libio/tst_wprintf2.c: New file.
3672         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3673
3674         * libio/wfiledoalloc.c: Only allocate external buffer if this
3675         hasn't happened yet.
3676
3677         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3678         something in the buffer.  gconv call can write up to end of the
3679         buffer, not only _IO_write_end.
3680         (_IO_wfile_overflow): Allocate also external buffer.
3681
3682 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3683
3684         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3685         strings with precision in vfwprintf correctly.
3686         * stdio-common/vfprintf.c: Fix completely broken handling of
3687         unbuffered wide character streams.
3688         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3689
3690         * resolv/Makefile (distribute): Add README.
3691
3692         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3693
3694 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3695
3696         Update resolver code to BIND 8.2.3-T5B.
3697
3698         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3699         __res_nclose.
3700         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3701         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3702         __res_search.
3703         * resolv/Banner: BIND-8.2.3-T5B.
3704
3705         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3706         * resolv/herror.c: Likewise.
3707         * resolv/inet_addr.c: Likewise.
3708         * resolv/inet_net_ntop.c: Likewise.
3709         * resolv/inet_net_pton.c: Likewise.
3710         * resolv/inet_neta.c: Likewise.
3711         * resolv/inet_ntop.c: Likewise.
3712         * resolv/nsap_addr.c: Likewise.
3713         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3714         IPv6 addresses (ISC bug #520).
3715
3716         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3717         * resolv/ns_parse.c: Likewise.
3718         * resolv/ns_netint.c: Likewise.
3719         * resolv/ns_samedomain.c: Likewise.
3720         * resolv/ns_ttl.c: Likewise.
3721         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3722         RCS ID in object file.
3723
3724         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3725         * resolv/res_mkquery.c: Likewise.
3726         * resolv/res_query.c: Likewise.
3727         * resolv/res_init.c: Likewise.
3728         (res_setoptions): Mark internal.
3729         * resolv/res_send.c: Likewise.
3730         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3731         by using poll instead.
3732         * resolv/res_comp.c: Likewise.
3733         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3734         weak alias for __dn_expand.
3735         * resolv/res_data.c: Likewise.
3736         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3737         in _res.options.  Avoids a potential security risk by avoiding a
3738         close (0).
3739         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3740         res_mkquery, res_query, res_querydomain adn res_search weak
3741         aliases for __res_mkquery, __res_query, __res_querydomain and
3742         __res_search.
3743         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3744         instead to avoid close(0).
3745         (res_init): Always use the static resolver context.
3746         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3747         alias for __res_init.
3748
3749         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
3750         RES_SET_H_ERRNO and accompanying comment to...
3751         * include/resolv.h: ... here.
3752
3753         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
3754         * resolv/arpa/nameser_compat.h: Likewise.
3755
3756 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3757
3758         * nss/makedb.c (main): Compare result of load_db with
3759         NSS_STATUS_SUCCESS and not 0.
3760         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
3761
3762         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
3763
3764 2000-07-18  Greg McGary  <greg@mcgary.org>
3765
3766         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
3767         (EXTEND_BUFFER): Use it.
3768
3769 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3770
3771         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
3772         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
3773         __builtin_return_address.
3774         * dlfcn/dlopenold.c: Likewise.
3775         * dlfcn/dlsym.c: Likewise.
3776         * dlfcn/dlvsym.c: Likewise.
3777         * elf/dl-profstub.c: Likewise.
3778         * malloc/malloc.c: Likewise.
3779         * sysdeps/generic/machine-gmon.h: Likewise.
3780         Based on a patch by schwidefsky@de.ibm.com.
3781
3782 2000-07-18  Andreas Jaeger  <aj@suse.de>
3783
3784         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
3785         NULL to elf_machine_fixup_plt t argument to silence GCC.
3786
3787         * include/string.h: Add prototype for __memchr.
3788
3789         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
3790
3791         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
3792         instead of memrchr.
3793
3794 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3795
3796         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
3797
3798         * locale/C-ctype.c: Add initializers for gap elements.
3799         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
3800         for gap elements.
3801
3802 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3803
3804         * nscd/nscd.c (print_version): Update copyright year.
3805
3806 2000-07-17  Greg McGary  <greg@mcgary.org>
3807
3808         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
3809         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
3810         signature argnames with angle-brackets for use as word delimiters,
3811         and to induce syntax errors for any args not handled.  Split
3812         multi-echo echoes and comment each stage.
3813         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
3814         * sysdeps/unix/inet/syscalls.list: Likewise.
3815         * sysdeps/unix/mman/syscalls.list: Likewise.
3816         * sysdeps/unix/syscalls.list: Likewise.
3817         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3818         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3819         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3820         * sysdeps/unix/sysv/syscalls.list: Likewise.
3821         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
3822
3823         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
3824         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
3825         qualifiers.  Don't check NULL-terminator of argv & envp.
3826         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
3827         unbounded pointer type in word-size assertion.
3828         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
3829         cases to stifle warnings.
3830
3831         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
3832         _IO_file_attach.
3833         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3834
3835         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
3836         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
3837         ptr as __unbouned.
3838
3839         * Makerules (o-objects): Supplement with $(o-objects$o).
3840         * string/Makefile (o-objects.ob): Add variable to pull
3841         unbounded versions of memcpy, memset and memchr into libc_b.
3842
3843         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
3844         rather than non-existent __ubp_memchr.
3845         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
3846         (_CHECK_STRING, _CHECK_N): New macros.
3847         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
3848         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
3849         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
3850         Add weak alias "memchr".
3851         * sysdeps/generic/memchr.c: Likewise.
3852         * sysdeps/i386/memchr.S: Likewise.
3853         * sysdeps/ia64/memchr.S: Likewise.
3854         * sysdeps/m68k/memchr.S: Likewise.
3855         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3856         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3857         * sysdeps/vax/memchr.s: Likewise.
3858
3859         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
3860
3861         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
3862         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
3863         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
3864         __BOUNDED_POINTERS__.
3865         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
3866         for __BOUNDED_POINTERS__.
3867
3868 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
3869
3870         * iconv/gconv_open.c (__gconv_open): Initialize the __data
3871         field of struct __gconv_trans_data differently.  Don't pass NULL to
3872         trans_init_fct.  Simplify list append operation.
3873
3874 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
3875
3876         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
3877         not only those having tsearch.
3878
3879 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
3880
3881         * locale/langinfo.h: Add placeholder values in enum for removed
3882         LC_CTYPE entries.
3883
3884 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
3885
3886         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
3887         chain if the PHDR check fails.
3888
3889 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
3890
3891         * nss/getent.c (print_hosts): Make sure we always print a space
3892         between numeric addresses and hostnames.
3893
3894 2000-07-17  Wolfram Gloger  <wg@malloc.de>
3895
3896         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
3897         i.e. if n_mmaps_max>0.
3898
3899 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
3900
3901         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
3902         values to remove possible clash with other AI_* constants.
3903         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
3904         hexadecimal constants to stress the fact they're in fact
3905         bit flags.
3906
3907 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
3908
3909         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
3910         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
3911         instead of res_init.
3912
3913 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3914
3915         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
3916         parameters of memset calls to avoid warnings.
3917
3918 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
3919
3920         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
3921         necessary.
3922
3923         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
3924         Patch by Greg McGary <greg@mcgary.org>.
3925
3926         * io/Makefile (tests): Add tst-getcwd.
3927         * io/tst-getcwd.c: New file.
3928
3929         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
3930
3931 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
3932
3933         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
3934         structure.
3935
3936 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
3937
3938         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
3939         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
3940
3941 2000-07-12  H.J. Lu  <hjl@gnu.org>
3942
3943         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
3944         GLIBC_2.2.
3945         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
3946         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
3947         (sysdep-routines): Add clone2.
3948         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
3949
3950 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
3951
3952         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
3953         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
3954
3955 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
3956
3957         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
3958         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
3959         Change type of si_band from "int" to "long".
3960         (si_imm) [USE_GNU]: Define
3961         (si_isr) [USE_GNU]: Ditto.
3962         (ILL_BREAK) [USE_GNU]: Ditto.
3963         (FPE_DECOVF) [USE_GNU]: Ditto.
3964         (FPE_DECDIV) [USE_GNU]: Ditto.
3965         (FPE_DECERR) [USE_GNU]: Ditto.
3966         (FPE_INVASC) [USE_GNU]: Ditto.
3967         (FPE_INVDEC) [USE_GNU]: Ditto.
3968         (TRAP_BRANCH) [USE_GNU]: Ditto.
3969         (TRAP_HWBKPT) [USE_GNU]: Ditto.
3970
3971 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
3972
3973         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
3974         bits/sigcontext as struct mcontext does not depend on it.
3975
3976         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
3977
3978 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
3979
3980         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
3981
3982 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
3983
3984         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
3985
3986 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
3987
3988         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
3989
3990 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
3991
3992         * intl/Makefile (test-srcs): Add tst-translit.
3993         (tests): Likewise.
3994         Add rules to build and run tst-translit.
3995         * intl/tst-translit.c: New file.
3996         * intl/tst-translit.sh: New file.
3997         * intl/translit.po: New file.
3998
3999 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4000
4001         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4002         transliteration function did its job, continue, don't stop.
4003
4004         * iconvdata/iso646.c: Little optimizations in body for conversion
4005         from UCS4.
4006
4007 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4008
4009         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4010
4011 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4012
4013         * configure.in: Check for pwd binary.
4014         * config.make.in: Add PWD_P to be subsituted.
4015         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4016
4017 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4018
4019         * iconvdata/Makefile (modules): Add GB18030.
4020         (distribute): Add gb18030.c.
4021         * iconvdata/gconv-modules: Add entries for GB18030 module.
4022         * iconvdata/gb18030.c: New file.
4023         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4024         and Wu Jian.
4025
4026 2000-07-13  Andreas Jaeger  <aj@suse.de>
4027
4028         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4029         patch.
4030
4031         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4032         * inet/getnetgrent.c (free_mem): Likewise.
4033         * misc/mntent.c (free_mem): Likewise.
4034         * nss/getXXbyYY.c (free_mem): Likewise.
4035         * nss/getXXent.c (free_mem): Likewise.
4036         * pwd/fgetpwent.c (free_mem): Likewise.
4037         * shadow/fgetspent.c (free_mem): Likewise.
4038
4039 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4040
4041         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4042         64-bit architecture correctly [PR libc/1794].
4043
4044 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4045
4046         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4047         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4048         report that we are out of memory.
4049         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4050         * elf/dl-libc.c (dlerror_run): Likewise.
4051         * elf/dl-open.c (_dl_open): Likewise.
4052         * elf/rtld.c (dl_main): Likewise.
4053         * elf/dl-error.c: Define _dl_out_of_memory.
4054         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4055         the error string.
4056         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4057         [PR libc/1813].
4058
4059         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4060
4061         * iconv/loop.c: Fix comment.
4062
4063         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4064
4065 2000-07-13  Andreas Jaeger  <aj@suse.de>
4066
4067         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4068         getcwd (NULL, size) with size > 0.
4069         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4070
4071 2000-07-13  Andreas Jaeger  <aj@suse.de>
4072
4073         * posix/Makefile: Remove build rules for libposix.
4074
4075 2000-07-13  Andreas Schwab  <schwab@suse.de>
4076
4077         * sysdeps/generic/glob.c (glob): Fix memory leak.
4078         [SHELL]: Remove reference to undefined variable `files'.
4079         Fixes PR libc/1782.
4080
4081 2000-07-13  Andreas Jaeger  <aj@suse.de>
4082
4083         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4084         functions.
4085
4086         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4087         memory if it was allocated.
4088
4089 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4090
4091         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4092         step.
4093
4094         * iconv/gconv_open.c (__gconv_open): Reapply
4095         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4096
4097                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4098
4099         * iconv/gconv_open.c: Undo last two changes for now.  They break
4100         everything.
4101
4102 2000-07-12  Andreas Jaeger  <aj@suse.de>
4103
4104         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4105         compiler.
4106         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4107         (CFLAGS-dl-cache.c): Likewise.
4108         (CFLAGS-ldconfig.c): Added, passes directory locations.
4109
4110         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4111         locate cache.
4112         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4113         (main): Use configured LIBDIR and SLIBDIR.
4114
4115 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4116
4117         * math/bits/cmathcalls.h (cimag): Add __THROW.
4118         (creal, conj): Likewise.
4119         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4120         by negative value.
4121
4122 2000-07-12  H.J. Lu  <hjl@gnu.org>
4123
4124         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4125         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4126
4127 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4128
4129         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4130         it is wrong.
4131
4132 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4133
4134         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4135
4136 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4137
4138         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4139         __modname.
4140
4141 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4142
4143         * iconv/gconv_open.c (__gconv_open): Initialize
4144         result->__steps[cnt].__data.
4145
4146 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4147
4148         * nss/getent.c (services_keys): Pass port number in network byte
4149         order in call to getservbyport.
4150
4151 2000-07-11  Andreas Jaeger  <aj@suse.de>
4152
4153         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4154         source dir.
4155         * intl/Makefile (do-gettext-test): Likewise.
4156         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4157
4158 2000-07-11  Andreas Schwab  <schwab@suse.de>
4159
4160         * Makeconfig (run-program-prefix): New rule.
4161         (built-program-cmd): Use run-program-prefix.
4162
4163 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4164
4165         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4166         and NOEXPR unconditionally available.
4167
4168 2000-07-12  Greg McGary  <greg@mcgary.org>
4169
4170         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4171         * sysdeps/posix/open64.c: Likewise.
4172         * sysdeps/generic/fegetenv.c: Likewise.
4173         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4174         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4175         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4176         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4177         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4178         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4179
4180 2000-07-11  Greg McGary  <greg@mcgary.org>
4181
4182         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4183         Add extra level of macro expansion.
4184         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4185         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4186         is available at the time `select' prototype is declared.
4187         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4188         Collect non-versioned weak aliases.  Consider only non-versioned
4189         aliases for the user-visible systemcall name.  Do checks inline with
4190         call to primitive system call.
4191         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4192         stand-alone bounds checks to suppress unused value warnings.
4193         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4194
4195 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4196
4197         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4198         file descriptor checking in SUID programs for the Hurd.
4199
4200         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4201         res_hostalias instead of __hostalias for thread-safety.
4202
4203 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4204
4205         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4206         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4207
4208 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4209
4210         * include/features.h: Include ISO C99 features if the compiler used
4211         is an ISO C99 compiler.
4212         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4213
4214 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4215
4216         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4217
4218 2000-07-10  Andreas Jaeger  <aj@suse.de>
4219
4220         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4221         it's overridden by libpthreads.
4222         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4223         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4224         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4225         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4226         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4227
4228         * malloc/Makefile: Run tst-mtrace only with shared libs.
4229
4230         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4231         with shared libs.
4232
4233 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4234
4235         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4236         that gpreg really points to the GOT section of the calling object.
4237         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4238         checking a start address of first one.
4239         Fix typos.
4240         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4241         Likewise.
4242
4243         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4244
4245 2000-07-10  Andreas Jaeger  <aj@suse.de>
4246
4247         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4248         (string_alias->strong_alias).
4249
4250 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4251
4252         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4253
4254 2000-07-07  Greg McGary  <greg@mcgary.org>
4255
4256         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4257         have no names without leading underscores.
4258
4259 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4260
4261         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4262         U007E.
4263
4264         * stdio-common/Makefile (tests): Remove tst-printf here...
4265         (tests-srcs): ...and add it here.
4266         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4267         Add rules to run tst-printf.sh.
4268         * stdio-common/tst-printf.c: Move code around so that there is really
4269         no further output where it's stated.
4270         * stdio-common/tst-printf.sh: New file.
4271
4272 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4273
4274         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4275         (do_write): Renamed from pwrite.
4276         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4277         `struct _IO_cookie_file'.
4278
4279 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4280
4281         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4282         detected.
4283         * malloc/tst-mtrace.sh: Run mtrace script.
4284
4285 2000-07-07  Greg McGary  <greg@mcgary.org>
4286
4287         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4288         Move all three components of a bounded pointer.
4289
4290 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4291
4292         * locale/programs/locale.c (write_locales): Don't simply add all
4293         directories found in the subdir, test whether at least the
4294         LC_CTYPE file is in there.
4295
4296 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4297
4298         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4299         * iconvdata/euc-kr.c: Likewise.
4300
4301         * stdio-common/vfprintf.c (process_string_arg): Check result of
4302         wcrtomb call and bail out if it failed.
4303
4304         * malloc/Makefile (test-srcs): Add tst-mtrace.
4305         (distribute): Add tst-mtrace.sh.
4306         Add rule to run tst-mtrace.sh.
4307         * malloc/tst-mtrace.c: New file.
4308         * malloc/tst-mtrace.sh: New file.
4309
4310         * include/signal.h: Declare __libc_sigaction.
4311         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4312         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4313         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4314         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4315         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4316         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4317         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4318
4319         * configure.in: Fix CFLAGS-memprofstat.c definition after
4320         2000-06-19 change.
4321         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4322
4323 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4324
4325         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4326         instead of NULL to elf_machine_fixup_plt t argument.
4327         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4328         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4329         cast.
4330
4331 2000-07-06  Andreas Jaeger  <aj@suse.de>
4332
4333         * crypt/Makefile (LDLIBS-cert): Removed.
4334         (LDLIBS-md5c-test): Removed.
4335         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4336         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4337
4338 2000-07-06  Andreas Jaeger  <aj@suse.de>
4339
4340         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4341         of the proc system is "proc".
4342
4343         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4344         thread library for static programs.
4345
4346 2000-07-06  Greg McGary  <greg@mcgary.org>
4347
4348         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4349         New macros.
4350         * sysdeps/generic/strcpy.c: Add bounds checks.
4351         * sysdeps/unix/fxstat.c: Likewise.
4352         * sysdeps/unix/xstat.c: Likewise.
4353         * sysdeps/unix/common/lxstat.c: Likewise.
4354         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4355         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4356         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4357         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4358         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4359         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4360         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4361         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4362         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4363         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4364         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4365         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4366         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4367         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4368         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4369         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4370         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4371         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4372         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4373         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4374         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4375         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4376         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4377         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4378         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4379         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4380         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4381         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4382         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4383         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4384         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4385         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4386         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4387         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4388         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4389         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4390         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4391         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4392         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4393         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4394         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4395         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4396         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4397         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4398         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4399         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4400         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4401         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4402         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4403         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4404         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4405         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4406         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4407         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4408         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4409         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4410         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4411         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4412         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4413         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4414         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4415         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4416         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4417         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4418
4419         * string/endian.h (__LONG_LONG_PAIR): New macro.
4420         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4421         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4422         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4423         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4424         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4425         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4426         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4427         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4428         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4429         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4430         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4431         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4432
4433         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4434
4435 2000-07-06  Andreas Jaeger  <aj@suse.de>
4436
4437         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4438         Initialize result.
4439
4440         * math/test-fpucw.c: Include <stdio.h> for printf.
4441
4442 2000-07-05  Greg McGary  <greg@mcgary.org>
4443
4444         * sysdeps/generic/bp-checks.h: New file.
4445         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4446         with list of #include files.
4447         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4448         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4449         Don't generate BP thunk if `V' appears in signature.
4450         Generate thunks with complete bounds checks.
4451         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4452         * sysdeps/unix/inet/syscalls.list: Likewise.
4453         * sysdeps/unix/mman/syscalls.list: Likewise.
4454         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4455         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4456         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4457         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4458
4459 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4460
4461         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4462         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4463         If mount not in the file fall back on /proc.
4464
4465         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4466         string got copied in.
4467         Patch by Solar Designer <solar@false.com>.
4468
4469 2000-07-05  Andreas Jaeger  <aj@suse.de>
4470
4471         * manual/install.texi (Installation): Update information about
4472         add-ons.
4473         (Configuring and compiling): Update for glibc 2.2.
4474
4475 2000-07-04  Andreas Jaeger  <aj@suse.de>
4476
4477         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4478         (_FPU_IEEE): Likewise.
4479
4480         * math/Makefile (tests): Add test-fpucw.
4481
4482         * math/test-fpucw.c (main): New file.
4483
4484 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4485
4486         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4487
4488         * locale/programs/ld-collate.c (collate_output): Also write out the
4489         collation sequence values and the wide character string for the
4490         collation symbol table.
4491
4492         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4493         * posix/fnmatch_loop.c: Implement collating symbol handling.
4494         * posix/tst-fnmatch.input: Add more tests, especially for collating
4495         symbol handling.
4496
4497         * posix/regex.c: Fix comment.
4498
4499 2000-07-05  Andreas Jaeger  <aj@suse.de>
4500
4501         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4502         (_FPU_GETCW): Remove extra colon.
4503         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4504
4505         * posix/fnmatch_loop.c (FCT): Only declare len if
4506         !WIDE_CHAR_VERSION to silence GCC.
4507
4508         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4509         prototype.
4510         * sysdeps/generic/strchrnul.c: Likewise.
4511         * sysdeps/generic/strlen.c: Likewise.
4512         * sysdeps/generic/strchr.c: Likewise.
4513         * sysdeps/generic/memchr.c: Likewise.
4514
4515 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4516
4517         * posix/fnmatch_loop.c: Implement equivalence class handling.
4518         * posix/tst-fnmatch.input: Add tests for equivalence class
4519         handling.
4520
4521         * posix/fnmatch_loop.c: Improve performance for single-byte
4522         character sets by not using btowc.
4523
4524         * posix/tst-fnmatch.input: Add tests for locale dependent
4525         behaviour.
4526         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4527
4528         * posix/tst-fnmatch.input: Add more test cases.
4529
4530         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4531         are not aligned to alignof(md5_uint32) do it before calling
4532         __md5_process_bytes.
4533         * crypt/md5.c: Make sure buffers are aligned.
4534         * crypt/md5.h: Likewise.
4535         Reported by Solar Designer <solar@false.com>.
4536
4537         * crypt/Makefile: Add dependencies for test programs.
4538
4539         * Rules: Define LC_ALL=C in environments of all programs we run.
4540
4541         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4542
4543 2000-07-03  H.J. Lu  <hjl@gnu.org>
4544
4545         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4546         is 2 + elem + offset, not 2 + elem + offset + 2.
4547
4548 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4549
4550         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4551         suite.
4552         * posix/Makefile (tests): Add tst-fnmatch.
4553         (tst-fnmatch-ENV): Define.
4554         * posix/tst-fnmatch.c: New file.
4555         * posix/tst-fnmatch.sh: New file.
4556
4557 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4558
4559         * locale/programs/charmap.c (charmap_read): Prepend
4560         the condition filename == NULL.
4561
4562 2000-07-03  Greg McGary  <greg@mcgary.org>
4563
4564         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4565
4566         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4567         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4568
4569         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4570         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4571         (FILEBUF_LITERAL): Add cast for CHAIN init.
4572         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4573         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4574         Revert type of `fp' to _IO_FILE*.
4575         (_IO_iter_file): Remove cast.
4576         (_IO_iter_next): Elide intermediate member reference.
4577
4578         * sysdeps/powerpc/strchr.S:  Check bounds.
4579         Wrap extern symbols in BP_SYM ().
4580
4581 2000-07-03  Andreas Jaeger  <aj@suse.de>
4582
4583         * dlfcn/Makefile (generated): New.
4584
4585 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4586
4587         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4588         (__uflow): Likewise.
4589         (__underflow): Likewise.
4590         * libio/wgenops.c (__wunderflow): Likewise.
4591         * stdio-common/tst-unbputc.c: New file.
4592         * stdio-common/tst-unbputc.sh: New file.
4593         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4594
4595         * po/en_GB.po: New file.
4596         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4597
4598 2000-07-01  Andreas Jaeger  <aj@suse.de>
4599
4600         * intl/Makefile (generated-dirs): New.
4601
4602         * elf/Makefile (generated): trusted-dirs.h is always generated,
4603         move out of build-shared condition.
4604         (generated): Merge the two entries for build-shared.
4605
4606 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4607
4608         * debug/Makefile (distribute): Add xtrace.sh.
4609
4610 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4611
4612         * version.h (VERSION): Bump to 2.1.91.
4613
4614         * configure.in: Update warning comment.  glibc should not be
4615         broken anymore.
4616
4617         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4618         ioperm.c, sys/procfs.h, and sys/io.h.
4619
4620         * sysdeps/powerpc/Dist: Add bp-asm.h.
4621
4622         * assert/Depend: Add localedata.
4623         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4624         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4625
4626         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4627         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4628         relocation address to prevent unaligned trap.
4629         Suggested by Richard Henderson <rth@cygnus.com>.
4630
4631 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4632
4633         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4634         if redirecting and either redirection is done using defines or
4635         not optimizing.
4636
4637 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4638
4639         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4640         generated expressions.
4641         Patch by Darren McClelland <dmcclell@zetec.com>.
4642
4643         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4644         since zic uses setlocale and gettext but we cannot make it use the
4645         new locale data since zic calls a shell which might not use the
4646         new libc.
4647
4648         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4649         handling the internation currency symbol.  POSIX says that the
4650         fourth character is used to separate the currency symbol from the
4651         value.  Therefore it does not have to be printed.  But we cannot
4652         remove the space if the currency symbol is printed before the
4653         number since this is what many locales expect.
4654
4655         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4656         whether this information is available.
4657
4658         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4659         buffers in case the translation is too large.  Remember allocated
4660         memory blocks in a list.
4661         (free_mem): Free memory for translations.
4662
4663         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4664
4665         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4666         information is available set the string length to zero.
4667
4668         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4669
4670 2000-06-30  Greg McGary  <greg@mcgary.org>
4671
4672         * sysdeps/powerpc/bp-asm.h: New file.
4673         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4674         Wrap extern symbols in BP_SYM ().
4675         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4676         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4677         * sysdeps/powerpc/setjmp.S: Likewise.
4678         * sysdeps/powerpc/add_n.S: Likewise.
4679         * sysdeps/powerpc/addmul_1.S: Likewise.
4680         * sysdeps/powerpc/lshift.S: Likewise.
4681         * sysdeps/powerpc/rshift.S: Likewise.
4682         * sysdeps/powerpc/mul_1.S: Likewise.
4683         * sysdeps/powerpc/sub_n.S: Likewise.
4684         * sysdeps/powerpc/submul_1.S: Likewise.
4685         * sysdeps/powerpc/strlen.S: Likewise.
4686         * sysdeps/powerpc/memset.S: Likewise.
4687         * sysdeps/powerpc/stpcpy.S: Likewise.
4688         * sysdeps/powerpc/strcmp.S: Likewise.
4689         * sysdeps/powerpc/strcpy.S: Likewise.
4690         * sysdeps/powerpc/elf/bzero.S: Likewise.
4691
4692         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4693         Line up operands column with tabs.
4694
4695 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4696
4697         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4698
4699         * sysdeps/ia64/htonl.S: New file.
4700         * sysdeps/ia64/htons.S: New file.
4701         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4702         floating point registers.
4703         Patches by Dan Pop <Dan.Pop@cern.ch>.
4704
4705 2000-06-30  Andreas Jaeger  <aj@suse.de>
4706
4707         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4708         shared libraries.
4709
4710         * io/Makefile (CFLAGS-test-lfs.c): New.
4711         (tests): Add test-lfs.
4712
4713         * io/test-lfs.c: New file.
4714
4715 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4716
4717         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4718         instruction.
4719
4720 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4721
4722         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4723
4724 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4725
4726         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4727         alias to the fstatfs call.
4728
4729         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4730         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4731
4732         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4733         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4734
4735         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4736         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4737         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4738         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4739
4740         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4741         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4742
4743         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4744         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4745
4746         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4747         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4748
4749         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
4750
4751 2000-06-29  Andreas Jaeger  <aj@suse.de>
4752
4753         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
4754         with syslog.
4755         (print_err_message): Likewise.
4756         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
4757
4758 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4759
4760         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
4761         used as words is properly aligned.
4762
4763         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
4764         data files.
4765
4766 2000-06-29  Greg McGary  <greg@mcgary.org>
4767
4768         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
4769         * sysdeps/unix/make-syscalls.sh: Handle signatures of
4770         length 7..9, just in case...
4771         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
4772
4773         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
4774         (POP_ERRNO_LOCATION_RETURN): Fold insns.
4775         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
4776         (PUSH_SIGNAL_MASK): New macro.
4777         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
4778         LEAVE is unnecessary.  Check bounds of jmp_buf.
4779         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
4780         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
4781         immediately before tail-call.
4782         * sysdeps/i386/setjmp.S: Likewise.
4783         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4784         * sysdeps/i386/bsd-setjmp.S: Likewise.
4785
4786 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
4787
4788         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
4789         versioned_symbol.
4790         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
4791         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
4792         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
4793         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
4794         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
4795         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
4796         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
4797         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
4798
4799 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4800
4801         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
4802         we later need to calling free().
4803         Patch by Matt Wilson <msw@redhat.com>.
4804
4805         * stdio-common/tst-printf.c: Add test for above problem.
4806
4807 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
4808
4809         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
4810         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
4811
4812 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4813
4814         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
4815         prototype for abs().
4816         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
4817
4818 2000-06-23  Andreas Jaeger  <aj@suse.de>
4819
4820         * config.h.in: Don't use regparm with bounded pointers.
4821
4822 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4823
4824         * stdlib/grouping.h: Correctly handle multibyte thousands
4825         separator and decimal point.
4826         * stdlib/stdtod.c: Likewise.
4827         * sysdeps/generic/strtol.c: Likewise.
4828
4829         * locale/categories.def: Add entries for wide character decimal point
4830         and thousands separator in numeric and monetary category.
4831
4832 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4833
4834         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
4835         second definition and initialization of decimal.
4836
4837 2000-06-28  Greg McGary  <greg@mcgary.org>
4838
4839         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
4840         out.
4841         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
4842         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
4843         in.
4844         (_IO_JUMPS): Don't cast THIS--expect arg to be a
4845         (struct _IO_FILE_plus *).
4846         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
4847         THIS, since _IO_JUMPS no longer does it implicitly.
4848         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
4849         arg type as (struct _IO_FILE_plus *).
4850         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
4851         arg as (_IO_strfile *).
4852         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
4853         Declare 1st arg as (_IO_strfile *).
4854         * libio/fileops.c (_IO_new_file_init): Declare
4855         arg type as (struct _IO_FILE_plus *).
4856         * libio/oldfileops.c (_IO_old_file_init): Likewise.
4857         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
4858         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4859         Declare iteration pointer as (struct _IO_FILE_plus *).
4860         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
4861                 (struct _IO_FILE_plus *).
4862         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
4863         * libio/oldstdfiles.c (_IO_list_all): Likewise.
4864         (_IO_check_libio): Set user-visible handles to
4865         (struct _IO_FILE_plus *).
4866         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
4867         to (struct _IO_FILE_plus *).
4868
4869         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
4870         whose high bound includes vtable to all functions that will use
4871         vtable.  For streambufs, pass pointer whose bounds include struct
4872         _IO_strfile.
4873         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
4874         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4875         * libio/iofopen.c (_IO_new_fopen): Likewise.
4876         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
4877         * libio/iofopen64.c (_IO_fopen64): Likewise.
4878         * libio/iopopen.c (_IO_new_popen): Likewise.
4879         * libio/oldiopopen.c (_IO_old_popen): Likewise.
4880         * libio/memstream.c (open_memstream): Likewise.
4881         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
4882         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
4883         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4884         * libio/iofopncook.c (_IO_cookie_init): Likewise.
4885         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
4886         * libio/vasprintf.c (_IO_vasprintf): Likewise.
4887         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4888         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4889         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4890         * stdlib/strfmon.c (__strfmon_l): Likewise.
4891         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4892         (vfprintf): Qualify computed-goto targets as unbounded.
4893
4894 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4895
4896         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
4897         thousands separator correctly.
4898
4899         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
4900         * stdio-common/vfwscanf.c: Likewise.
4901
4902 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
4903
4904         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
4905         count into signatures for most calls.
4906
4907 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4908
4909         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
4910         the generic parser now.
4911
4912 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4913
4914         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
4915         table entries are 32 bit on the ia64 (as specified by the ABI),
4916         not 64 bit as on the Alpha.
4917
4918         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
4919         change of objects to use 32 bit hash table indices (see above).
4920
4921 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4922
4923         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
4924         prototype for abs().
4925
4926 2000-06-28  Wolfram Gloger  <wg@malloc.de>
4927
4928         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
4929         fails, try mmap_chunk() as a last resort even though n_mmaps_max
4930         may have been reached.
4931
4932 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4933
4934         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
4935         symbols in multi-character weights correctly.
4936
4937         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
4938         depending on whether the input string is empty or not.
4939
4940         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
4941         given state and not avoiding this by modifying a local object.
4942         * wcsmbs/wcrtomb.c: Likewise.
4943
4944         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
4945         object since some incomplete characters might be in there.
4946
4947         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
4948         sequences with first byte 0x8e correctly.
4949
4950         * iconvdata/jis0208.h: Remove redundant test.
4951
4952 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
4953
4954         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
4955         Add it where it is needed now.
4956
4957         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
4958         the input charset into account when generating the hash table.
4959         (allocate_arrays): Correct setting default width.  Not all empty slots
4960         in the table are filled, only those not covert explicitly by the
4961         locale description and in the charset.
4962
4963         * wctype/towctrans.c (__towctrans): Be graceful and accept error
4964         return values from the wctrans function.
4965
4966         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
4967         wide character version.
4968         For %C handling, test correct pointer variable for NULL.
4969
4970         * wcsmbs/wctob.c: Handle WEOF special.
4971
4972         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
4973
4974         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
4975         always-true test to avoid warning.
4976
4977 2000-06-27  Greg McGary  <greg@mcgary.org>
4978
4979         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
4980         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
4981         (symbol_version, default_symbol_version): Factor redundant
4982         definitions out of conditional.
4983
4984 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
4985
4986         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
4987         not obstack_blank.
4988
4989 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
4990
4991         * include/libc-symbols.h (symbol_version): Add extra level of
4992         macro expansion.
4993         (default_symbol_version): Likewise.
4994
4995 2000-06-26  Greg McGary  <greg@mcgary.org>
4996
4997         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
4998         for BP return value & push implicit struct-return pointer to
4999         __errno_location.
5000         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5001         (SYSCALL_ERROR_HANDLER): Likewise.
5002         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5003         (SYSCALL_ERROR_HANDLER): Likewise.
5004
5005         * Makeconfig: Add missing comment.
5006         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5007         BP-flavored startup object.
5008         ($(objpfx)b$(start-installed-name)): New rule.
5009         * include/libc-symbols.h (symbol_set_declare): Change type
5010         of `__start_##set' and `__stop_##set' to pointer-to-function.
5011         (symbol_set_declare): Change type of `set' to array of
5012         pointer-to-function.
5013         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5014         pointer-to-function.
5015
5016         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5017
5018         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5019         Remove clock_* and timer_* entries.
5020         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5021         arg-count with signatures.
5022
5023         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5024         Check bounds of arguments.
5025         * sysdeps/i386/addmul_1.S: Likewise.
5026         * sysdeps/i386/lshift.S: Likewise.
5027         * sysdeps/i386/mul_1.S: Likewise.
5028         * sysdeps/i386/rshift.S: Likewise.
5029         * sysdeps/i386/sub_n.S: Likewise.
5030         * sysdeps/i386/submul_1.S: Likewise.
5031         * sysdeps/i386/i586/add_n.S: Likewise.
5032         * sysdeps/i386/i586/addmul_1.S: Likewise.
5033         * sysdeps/i386/i586/lshift.S: Likewise.
5034         * sysdeps/i386/i586/rshift.S: Likewise.
5035         * sysdeps/i386/i586/sub_n.S: Likewise.
5036         * sysdeps/i386/i686/add_n.S: Likewise.
5037
5038         * sysdeps/i386/memchr.S: Likewise.
5039         * sysdeps/i386/memcmp.S: Likewise.
5040         * sysdeps/i386/rawmemchr.S: Likewise.
5041         * sysdeps/i386/i586/bzero.S: Likewise.
5042         * sysdeps/i386/i586/memcpy.S: Likewise.
5043         * sysdeps/i386/i586/mempcpy.S: Likewise.
5044         * sysdeps/i386/i586/memset.S: Likewise.
5045         * sysdeps/i386/i686/bzero.S: Likewise.
5046         * sysdeps/i386/i686/memcpy.S: Likewise.
5047         * sysdeps/i386/i686/mempcpy.S: Likewise.
5048         * sysdeps/i386/i686/memset.S: Likewise.
5049
5050         * sysdeps/i386/stpcpy.S: Likewise.
5051         * sysdeps/i386/stpncpy.S: Likewise.
5052         * sysdeps/i386/strchr.S: Likewise.
5053         * sysdeps/i386/strchrnul.S: Likewise.
5054         * sysdeps/i386/strcspn.S: Likewise.
5055         * sysdeps/i386/strpbrk.S: Likewise.
5056         * sysdeps/i386/strrchr.S: Likewise.
5057         * sysdeps/i386/strspn.S: Likewise.
5058         * sysdeps/i386/strtok.S: Likewise.
5059         * sysdeps/i386/strtok_r.S: Likewise.
5060         * sysdeps/i386/i486/strcat.S: Likewise.
5061         * sysdeps/i386/i486/strlen.S: Likewise.
5062         * sysdeps/i386/i586/strchr.S: Likewise.
5063         * sysdeps/i386/i586/strcpy.S: Likewise.
5064         * sysdeps/i386/i586/strlen.S: Likewise.
5065         * sysdeps/i386/i686/strcmp.S: Likewise.
5066         * sysdeps/i386/i686/strtok.S: Likewise.
5067         * sysdeps/i386/i686/strtok_r.S: Likewise.
5068
5069         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5070         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5071         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5072         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5073         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5074
5075         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5076         * sysdeps/i386/mul_1.S: Likewise.
5077         * sysdeps/i386/submul_1.S: Likewise.
5078         * sysdeps/i386/i586/add_n.S: Likewise.
5079         * sysdeps/i386/i586/addmul_1.S: Likewise.
5080         * sysdeps/i386/i586/lshift.S: Likewise.
5081         * sysdeps/i386/i586/mul_1.S: Likewise.
5082         * sysdeps/i386/i586/rshift.S: Likewise.
5083         * sysdeps/i386/i586/sub_n.S: Likewise.
5084         * sysdeps/i386/i586/submul_1.S: Likewise.
5085
5086 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5087
5088         * rt/Makefile (librt-routines): Add clock_nanosleep.
5089         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5090         * sysdeps/generic/clock_nanosleep.c: New file.
5091         * sysdeps/unix/clock_nanosleep.c: New file.
5092         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5093         * time/time.h: Declare clock_nanosleep.
5094
5095 2000-06-26  Greg McGary  <greg@mcgary.org>
5096
5097         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5098         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5099         (ALIGN): Cleanup surrounding conditionals.
5100
5101         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5102         Call ENTER/LEAVE macros.
5103         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5104         * sysdeps/i386/submul_1.S: Likewise.
5105
5106         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5107         syntax.  Define & use symbolic argument stack offsets.  Call
5108         ENTER/LEAVE macros.
5109         * sysdeps/i386/i586/mul_1.S: Likewise.
5110         * sysdeps/i386/i586/submul_1.S: Likewise.
5111
5112 2000-06-25  Greg McGary  <greg@mcgary.org>
5113
5114         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5115         not as bcopy.
5116
5117 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5118
5119         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5120         * iconvdata/gen-8bit-gap.sh: Likewise.
5121         * iconvdata/gen-8bit.sh: Likewise.
5122
5123         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5124
5125         * locale/programs/ld-collate.c (collate_read): Don't actually read
5126         the copy locale if we are ignoring the content.
5127
5128         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5129         unknown character.
5130
5131         * locale/programs/ld-collate.c: Correct handling of different
5132         collation sections.
5133         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5134         as extra parameter from which to copy category information.
5135         Change all callers.
5136         (load_locale): Likewise.
5137         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5138         and load_locale.
5139         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5140         * locale/programs/locfile.h: Likewise.
5141         * locale/programs/locfile-kw.gperf: Add entry for script.
5142         * locale/programs/locfile-token.h: Add tok_script.
5143
5144         * locale/programs/locale.c: Update copyright year.
5145         * locale/programs/localedef.c: Likewise.
5146
5147 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5148
5149         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5150         Jens Moeller <jens.moeller@waii.com>.
5151
5152 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5153
5154         * locale/programs/ld-name.c (name_finish): Add missing format
5155         specifier to test for name_fmt.
5156
5157         * locale/programs/ld-address.c (iso639): Correct length of string
5158         elements.
5159         (iso3166): Likewise.
5160
5161         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5162
5163         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5164         Define.
5165
5166         * elf/elf.h (NT_PRFPXREG): Define.
5167
5168 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5169
5170         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5171         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5172
5173 2000-06-23  Andreas Schwab  <schwab@suse.de>
5174
5175         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5176         with signatures.
5177
5178 2000-06-23  Andreas Jaeger  <aj@suse.de>
5179
5180         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5181
5182         * io/test-stat.c: Add copyright header, mention Maciej.
5183
5184         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5185         SYS_mincore, SYS_madvise): Added.
5186
5187         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5188         execve.
5189
5190 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5191
5192         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5193         (CFLAGS-tst_putwc.c): New definition.
5194         * libio/tst_getwc.c: New file.
5195         * libio/tst_getwc.input: New file.
5196         * libio/tst_putwc.c: New file.
5197
5198         * include/string.h: Add prototype for __strdup.
5199
5200 2000-06-22  Greg McGary  <greg@mcgary.org>
5201
5202         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5203         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5204         Fix signatures.
5205
5206 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5207
5208         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5209
5210 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5211
5212         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5213
5214 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5215
5216         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5217         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5218
5219 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5220
5221         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5222         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5223         and __S_TYPEISSHM.
5224         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5225         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5226         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5227         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5228         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5229         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5230         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5231         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5232         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5233         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5234         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5235         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5236         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5237         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5238         S_TYPEISSHM.
5239
5240 2000-06-22  Andreas Jaeger  <aj@suse.de>
5241
5242         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5243         with signatures.
5244
5245         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5246
5247         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5248
5249 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5252         ahead.
5253
5254 2000-06-21  Greg McGary  <greg@mcgary.org>
5255
5256         * Makerules (elide-routines.*, elide-bp-thunks):
5257         Define unconditionally.
5258
5259 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5260
5261         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5262
5263 2000-06-21  Andreas Jaeger  <aj@suse.de>
5264
5265         * io/Makefile (tests): Add test-stat.
5266         (CFLAGS-test-stat.c): New.
5267
5268         * io/test-stat.c: New file from Maciej W. Rozycki
5269         <macro@ds2.pg.gda.pl>.
5270
5271 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5272
5273         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5274         in __rlimit_resource to make them match the kernel order.
5275         rlim_t is always 64 bit, use __rlim64_t to declare it
5276         unconditionally.
5277
5278 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5279
5280         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5281         RLIM_INFINITY before defining it to avoid clash with kernel header
5282
5283 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5284
5285         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5286
5287 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5288
5289         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5290
5291 2000-06-21  Andreas Jaeger  <aj@suse.de>
5292
5293         * stdio-common/temptest.c: Include <stdlib.h>.
5294         * stdio-common/tst-fileno.c: Likewise.
5295         * stdio-common/scanf4.c: Likewise.
5296         * stdio-common/scanf5.c: Likewise.
5297         * time/clocktest.c: Likewise.
5298         * posix/test-vfork.c: Likewise.
5299         * posix/globtest.c: Likewise.
5300         * io/test-utime.c: Likewise.
5301         * wctype/test_wcfuncs.c: Likewise.
5302         * crypt/cert.c: Likewise.
5303
5304         * stdio-common/tst-printfsz.c: Include <string.h>.
5305         * libio/tst_swscanf.c: Likewise.
5306         * libio/tst_wscanf.c: Likewise.
5307         * posix/runtests.c: Likewise.
5308         * posix/tst-getaddrinfo.c: Likewise.
5309         * posix/wordexp-test.c: Likewise.
5310         * misc/tst-efgcvt.c: Likewise.
5311
5312         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5313         * nss/test-netdb.c: Likewise.
5314
5315         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5316         supported kernel for MIPS.
5317
5318         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5319         * rt/aio_suspend.c: Likewise.
5320
5321 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5322
5323         * math/libm-test.inc: Include <string.h>.
5324
5325 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5326
5327         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5328
5329 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5330
5331         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5332         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5333
5334 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5335
5336         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5337
5338 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5339
5340         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5341
5342 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5343
5344         * locale/programs/ld-collate.c (insert_value): Now take string and
5345         length instead of struct token* parameter.  Adjust use of token.
5346         (handle_ellipsis): Likewise.
5347         (collate_read): Allow <Uxxxx> names and transform them into names
5348         to be passed to insert_value and handle_ellipsis.
5349
5350         * locale/programs/ld-ctype.c (uninames): New array with names of
5351         digits in <Uxxxxxxxx> format.
5352         (ctype_finish): Correct search for space character value.  Likewise
5353         for default outdigits values.
5354
5355 2000-06-20  Greg McGary  <greg@mcgary.org>
5356
5357         * Makerules (objects): Add BP thunks.
5358
5359 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5360
5361         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5362         in width definitions.
5363
5364 2000-06-20  Andreas Jaeger  <aj@suse.de>
5365
5366         * sysdeps/mips/fpu/libm-test-ulps: New file.
5367
5368         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5369         first.
5370
5371         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5372
5373         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5374
5375 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5376
5377         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5378         change in gconv_builtin.h.
5379
5380         * malloc/Makefile: Change all references to memprof into memusage.
5381         * malloc/memprof.c: Rename to...
5382         * malloc/memusage.c: ...this.  New file.
5383         * malloc/memprof.sh: Rename to...
5384         * malloc/memusage.sh: ...this.  New file.
5385         * malloc/memprofstat.c: Rename to...
5386         * malloc/memusagestat.c: ...this.  New file.
5387         * sysdeps/alpha/memprof.h: Rename to..
5388         * sysdeps/alpha/memusage.h: ...this.  New file.
5389         * sysdeps/arm/memprof.h: Rename to..
5390         * sysdeps/arm/memusage.h: ...this.  New file.
5391         * sysdeps/generic/memprof.h: Rename to..
5392         * sysdeps/generic/memusage.h: ...this.  New file.
5393         * sysdeps/i386/memprof.h: Rename to..
5394         * sysdeps/i386/memusage.h: ...this.  New file.
5395         * sysdeps/ia64/memprof.h: Rename to..
5396         * sysdeps/ia64/memusage.h: ...this.  New file.
5397         * sysdeps/m68k/memprof.h: Rename to..
5398         * sysdeps/m68k/memusage.h: ...this.  New file.
5399         * sysdeps/mips/memprof.h: Rename to..
5400         * sysdeps/mips/memusage.h: ...this.  New file.
5401         * sysdeps/powerpc/memprof.h: Rename to..
5402         * sysdeps/powerpc/memusage.h: ...this.  New file.
5403         * sysdeps/sparc/memprof.h: Rename to..
5404         * sysdeps/sparc/memusage.h: ...this.  New file.
5405         * sysdeps/sh/memprof.h: Rename to..
5406         * sysdeps/sh/memusage.h: ...this.  New file.
5407
5408         * elf/sprof.c (print_version): Update year.
5409
5410         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5411         table entry values.  Use D_PTR.
5412         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5413         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5414
5415 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5416
5417         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5418         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5419         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5420         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5421
5422 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5423
5424         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5425
5426 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5427
5428         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5429         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5430         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5431
5432         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5433
5434         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5435         kernel change.
5436
5437         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5438         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5439         structure.
5440         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5441         implementation.
5442
5443 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5444
5445         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5446
5447 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5448
5449         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5450
5451 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5452
5453         * iconv/gconv_int.h (strict gconv_module): Remove all members
5454         associated with regular expressions.  Use a simple string as the
5455         from name.
5456         * iconv/gconv_db.c: Remove code handling regular expressions.
5457         * iconv/gconv_conf.c: Likewise.
5458         * iconv/iconv_prog.c: Likewise.
5459         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5460
5461         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5462         General namespace cleanup.
5463         (struct __gconv_trans_data): Add next field.
5464         (struct __gconv_step_data): Make __trans a pointer.
5465         * iconv/gconv_conf.c: Split out code to find gconv directories from
5466         __gconv_read_conf in new functions.
5467         * iconv/gconv_int.h: Define new data structure and declare new
5468         functions for handling of gconv directory list.
5469         * iconv/gconv_open.c: Allow more than one error handling step being
5470         used.  Call function to load error handling module if it is none
5471         of the builtin transformations.
5472         * iconv/gconv_close.c: Add code to free transliteration data.
5473         * iconv/gconv_trans.c: Add functions to load and unload modules
5474         implementing transliteration etc.
5475         * iconv/skeleton.c: Call all context functions now that more than
5476         one module is allowed.
5477         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5478         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5479         where the full error handling using transliteration is needed.
5480         * iconvdata/8bit-gap.c: Likewise.
5481         * iconvdata/8bit-generic.c: Likewise.
5482         * iconvdata/ansi_x3.110.c: Likewise.
5483         * iconvdata/big5.c: Likewise.
5484         * iconvdata/big5hkscs.c: Likewise.
5485         * iconvdata/euc-cn.c: Likewise.
5486         * iconvdata/euc-jp.c: Likewise.
5487         * iconvdata/euc-kr.c: Likewise.
5488         * iconvdata/euc-tw.c: Likewise.
5489         * iconvdata/gbgbk.c: Likewise.
5490         * iconvdata/gbk.c: Likewise.
5491         * iconvdata/iso-2022-cn.c: Likewise.
5492         * iconvdata/iso-2022-jp.c: Likewise.
5493         * iconvdata/iso-2022-kr.c: Likewise.
5494         * iconvdata/iso646.c: Likewise.
5495         * iconvdata/iso8859-1.c: Likewise.
5496         * iconvdata/iso_6937-2.c: Likewise.
5497         * iconvdata/iso_6937.c: Likewise.
5498         * iconvdata/johab.c: Likewise.
5499         * iconvdata/sjis.c: Likewise.
5500         * iconvdata/t.61.c: Likewise.
5501         * iconvdata/uhc.c: Likewise.
5502         * iconvdata/unicode.c: Likewise.
5503         * iconvdata/utf-16.c: Likewise.
5504         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5505         structure correctly after last change.
5506         * wcsmbs/btowc.c: Likewise.
5507         * wcsmbs/mbrtowc.c: Likewise.
5508         * wcsmbs/mbsnrtowcs.c: Likewise.
5509         * wcsmbs/mbsrtowcs.c: Likewise.
5510         * wcsmbs/wcrtomb.c: Likewise.
5511         * wcsmbs/wcsnrtombs.c: Likewise.
5512         * wcsmbs/wcsrtombs.c: Likewise.
5513         * wcsmbs/wctob.c: Likewise.
5514
5515         * localedata/Makefile: Set -Wno-format for some files since gcc does
5516         not know all the format specifiers.
5517
5518 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5519
5520         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5521         unneeded code.
5522         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5523
5524 2000-06-18  Andreas Jaeger  <aj@suse.de>
5525
5526         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5527         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5528
5529 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5530
5531         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5532         LINUX_LINK_MAX.
5533         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5534
5535         * locale/programs/ld-ctype.c (ctype_output): Really write out
5536         mboutdigits information.
5537         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5538         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5539         * localedata/tests/trans.def: Add outdigit information.
5540
5541         * localedata/tst-mbswcs3.c: Remove comment.
5542
5543         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5544         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5545         * libio/tst_wprintf.c (main): Add test for I flag.
5546
5547         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5548         * locale/langinfo.h: Add entries for translit_ignore information.
5549         * locale/categories.def: Add entries for new LC_CTYPE elements.
5550         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5551         pointer instead of "" where possible.
5552         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5553         * intl/Depend: Add localedata.
5554         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5555         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5556
5557 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5558
5559         * locale/langinfo.h: Add entries for default_missing information.
5560         * locale/C-ctype.c: Add initializers for new fields.
5561         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5562         information.
5563         * locale/categories.h: Add entries for all LC_CTYPE values.
5564         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5565         information.
5566
5567         * localedata/tst-trans.c: Write out an error message if class is
5568         not found.
5569
5570         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5571         * iconv/gconv_open.c: Remove error handling specification from `from'
5572         character set name.
5573         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5574         new parameter to always enable transliteration.
5575         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5576         change.
5577         (struct locale_data): Add new members use_translit and options.
5578         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5579         character set name contained modifier TRANSLIT.
5580         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5581         and options fields.
5582         (_nl_unload_locale): Free options string if necessary.
5583         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5584         the locale names suggested this.
5585         * locale/C-address.c: Add two new initialilzers to adjust data
5586         structure for new format.
5587         * locale/C-collate.c: Likewise.
5588         * locale/C-ctype.c: Likewise.
5589         * locale/C-identification.c: Likewise.
5590         * locale/C-measurement.c: Likewise.
5591         * locale/C-messages.c: Likewise.
5592         * locale/C-monetary.c: Likewise.
5593         * locale/C-name.c: Likewise.
5594         * locale/C-numeric.c: Likewise.
5595         * locale/C-paper.c: Likewise.
5596         * locale/C-telephone.c: Likewise.
5597         * locale/C-time.c: Likewise.
5598
5599         * locale/setlocale.c: Add some more __builtin_expect.
5600
5601 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5602
5603         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5604         unsigned char **.
5605         (__gconv_init_fct): Remove two parameters.
5606         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5607         gconv_transliterate.  Remove two parameters.
5608         Change prototypes of builtin functions according to __gconv_fct change.
5609         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5610         != NULL only during error handling.  Stop in this case after the
5611         conversion.
5612         * iconv/gconv_trans.c: Replace with real implementation for
5613         __gconv_transliterate.
5614         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5615         * iconv/gconv.c: Change calls to downstream functions once again.
5616         Use NULL for the fifth parameter instead of pointer to output buffer.
5617         * libio/iofwide.c: Likewise.
5618         * wcsmbs/btowc.c: Likewise.
5619         * wcsmbs/mbrtowc.c: Likewise.
5620         * wcsmbs/mbsnrtowcs.c: Likewise.
5621         * wcsmbs/mbsrtowcs.c: Likewise.
5622         * wcsmbs/wcrtomb.c: Likewise.
5623         * wcsmbs/wcsnrtombs.c: Likewise.
5624         * wcsmbs/wcsrtombs.c: Likewise.
5625         * wcsmbs/wctob.c: Likewise.
5626         * iconv/gconv_simple.c: Remove two parameters from error handling
5627         function call.
5628         * iconvdata/8bit-gap.c: Likewise.
5629         * iconvdata/8bit-generic.c: Likewise.
5630         * iconvdata/ansi_x3.110.c: Likewise.
5631         * iconvdata/big5.c: Likewise.
5632         * iconvdata/big5hkscs.c: Likewise.
5633         * iconvdata/euc-cn.c: Likewise.
5634         * iconvdata/euc-jp.c: Likewise.
5635         * iconvdata/euc-kr.c: Likewise.
5636         * iconvdata/euc-tw.c: Likewise.
5637         * iconvdata/gbgbk.c: Likewise.
5638         * iconvdata/gbk.c: Likewise.
5639         * iconvdata/iso-2022-cn.c: Likewise.
5640         * iconvdata/iso-2022-jp.c: Likewise.
5641         * iconvdata/iso-2022-kr.c: Likewise.
5642         * iconvdata/iso646.c: Likewise.
5643         * iconvdata/iso8859-1.c: Likewise.
5644         * iconvdata/iso_6937-2.c: Likewise.
5645         * iconvdata/iso_6937.c: Likewise.
5646         * iconvdata/johab.c: Likewise.
5647         * iconvdata/sjis.c: Likewise.
5648         * iconvdata/t.61.c: Likewise.
5649         * iconvdata/uhc.c: Likewise.
5650         * iconvdata/unicode.c: Likewise.
5651         * iconvdata/utf-16.c: Likewise.
5652
5653 2000-06-15  Greg McGary  <greg@mcgary.org>
5654
5655         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5656         of callnum assignment.  Tolerate callnum expressions containing
5657         parens.
5658
5659 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5660
5661         * login/Makefile (utmpd): Remove rule to build utmpd.
5662
5663         * csu/Versions: Move libgcc frame handling functions from here...
5664         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5665         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5666         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5667         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5668         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5669         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5670         New file.
5671         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5672
5673         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5674
5675         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5676
5677 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5678
5679         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5680         compatibility.
5681         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5682         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5683         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5684         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5685
5686 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5687
5688         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5689         defined, terminate quotes and read them after the comment char.
5690         * configure.in (HAVE_SECTION_QUOTES): Test whether
5691         __attribute__((section ("x"))) puts quotes around x or not.
5692         * config.h.in (HAVE_SECTION_QUOTES): Add.
5693         * configure: Rebuilt.
5694
5695 2000-06-14  Andreas Jaeger  <aj@suse.de>
5696
5697         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5698         depending on the configure option --sysconfdir.
5699         Closes PR libc/1762.
5700         Patch by Andreas Schwab <schwab@suse.de>.
5701
5702         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5703         entry point.
5704         Reported by Jim Pick <jim@jimpick.com>.
5705
5706 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5707
5708         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5709         crashing the application.  Emit some simple error message.
5710         Reported by mju@panasas.com [PR libc/1769].
5711
5712 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5713
5714         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5715
5716         * crypt/Makefile (distribute): Add md5.h.
5717
5718         * Makefile (distribute): Add include/shlib-compat.h.
5719
5720         * Make-dist: Search for tests also in sysdeps hierachy.
5721
5722         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5723         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5724
5725         * sysdeps/sparc/Subdirs: New file.
5726
5727         * locale/Makefile (distribute): Add weightwc.h and
5728         programs/localedef.h.
5729
5730         * time/Makefile (distribute): Add datemsk.
5731
5732         * sysdeps/ia64/Dist: Add softpipe.h.
5733
5734         * sysdeps/unix/sysv/aix/Dist: New file.
5735
5736         * posix/setpgrp.c: Moved to...
5737         * sysdeps/generic/setpgrp.c: ...here.  New file.
5738         * io/mknod.c: Moved to...
5739         * sysdeps/generic/mknod.c: ...here.  New file.
5740
5741         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5742
5743         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5744
5745         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5746
5747         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5748         gprsave0.S, gprrest1.S, and gprrest0.S.
5749
5750         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
5751
5752         * posix/Makefile (routines): Add spawnattr_getsigmask,
5753         spawnattr_getschedpolicy, spawnattr_getschedparam,
5754         spawnattr_setsigmask, spawnattr_setschedpolicy, and
5755         spawnattr_setschedparam.
5756         * posix/Versions: Add posix_spawnattr_getschedpolicy,
5757         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
5758         posix_spawnattr_setschedparam.
5759
5760         * posix/spawnattr_setschedparam.c: Fix typo.
5761
5762         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
5763         Correct typo.
5764
5765         * login/programs/utmpd.c: Removed.
5766         * login/programs/utmpd.h: Removed.
5767         * login/programs/utmpd-private.h: Removed.
5768
5769         * Makefile (distribute): Add include/db_185.h and include/db.h.
5770
5771         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
5772         iso-ir-165.h.
5773
5774         * elf/Makefile (distribute): Add missing files.
5775
5776         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
5777         * elf/eval.c: Moved to...
5778         * dlfcn/eval.c: ...here.  New file.
5779
5780         * Makefile (distribute): Also distribute ChangeLog.1?.
5781
5782         * Make-dist (+tsrcs): Remove .args handling here as well.
5783
5784         * rt/Makefile (tests): Add tst-timer.
5785         * sysdeps/generic/tst-timer.c: New file.
5786
5787         * Makerules (sources): Don't add BP sources here.
5788
5789         * login/Makefile (distribute): Remove xtmp.h.
5790
5791         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
5792         is true.  Reported by Bruno Haible <haible@ilog.fr>.
5793
5794 2000-06-13  Andreas Jaeger  <aj@suse.de>
5795
5796         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
5797         Patch by Ralf Baechle <ralf@gnu.org>.
5798
5799 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5800
5801         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
5802         for mincore syscall.
5803
5804         * misc/sys/cdefs.h: Define __bounded and __unbounded if
5805         __BOUNDED_POINTERS__ is not defined.
5806
5807 2000-06-07  Greg McGary  <greg@mcgary.org>
5808
5809         * sysdeps/generic/bp-sym.h: New file.
5810         * sysdeps/generic/bp-start.h: New file.
5811         * sysdeps/i386/elf/start.S: Designate BP symbols.
5812         * sysdeps/generic/libc-start.c: Wrap bounds around
5813         argv & envp and each of their string members.
5814
5815 2000-06-07  Greg McGary  <greg@mcgary.org>
5816
5817         * sysdeps/unix/make-syscalls.sh: Add comments to
5818         output that aid debugging & comprehension.
5819         Map simple syscall signatures to number of args.
5820         Generate BP syscall thunk definitions.
5821         * sysdeps/generic/bp-thunks.h: New file.
5822         * sysdeps/unix/syscalls.list: Replace arg-count with
5823         simple return+arg signature.
5824         * sysdeps/unix/common/syscalls.list: Likewise.
5825         * sysdeps/unix/inet/syscalls.list: Likewise.
5826         * sysdeps/unix/mman/syscalls.list: Likewise.
5827         * sysdeps/unix/sysv/syscalls.list: Likewise.
5828         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5829         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
5830
5831 2000-06-07  Greg McGary  <greg@mcgary.org>
5832
5833         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
5834         for all files *.[cS].
5835         (CFLAGS-.ob): Don't optimize sibling calls.
5836         (bppfx): New variable.
5837         * Makerules (elide-bp-thunks): New variable.
5838         (elide-routines.*): Elide BP-* files for all but *.ob.
5839         (sources): Include bp-thunks.
5840
5841 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5842
5843         * iconv/gconv_simple.c: Remove unnecessary prototype.
5844
5845         * iconv/gconv_trans.c: Pretty print.
5846
5847         * elf/elf.h (R_SH_NUM): Got accidently dropped.
5848
5849         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
5850         minimal kernel versions.  Add information about IA-64 kernel.
5851
5852         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
5853         specific minimal supported kernel versions to be specified.
5854
5855         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
5856         step data structure.
5857         * wcsmbs/btowc.c: Likewise.
5858         * wcsmbs/mbrtowc.c: Likewise.
5859         * wcsmbs/mbsnrtowcs.c: Likewise.
5860         * wcsmbs/mbsrtowcs.c: Likewise.
5861         * wcsmbs/wcrtomb.c: Likewise.
5862         * wcsmbs/wcsnrtombs.c: Likewise.
5863         * wcsmbs/wcsrtombs.c: Likewise.
5864         * wcsmbs/wctob.c: Likewise.
5865
5866         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
5867         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
5868
5869         * shlib-versions: Earliest backward compatible version for SH is 2.2.
5870
5871         * misc/sys/cdefs.h: Remove one more __P.
5872
5873         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
5874         Reported by HJ Lu.
5875
5876         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
5877         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
5878         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
5879
5880 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5881             Yutaka Niibe  <gniibe@chroot.org>
5882
5883         * configure.in: Add machine sh3, sh4.
5884         * elf/elf.h: Add SH specific declarations of relocations.
5885         * shlib-versions: Add sh*-*-linux* cases.
5886
5887 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5888
5889         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
5890         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
5891         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
5892         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
5893         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
5894         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
5895
5896         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
5897         instead of KERNEL_MATH_EMULATION.
5898         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
5899         KERNEL_MATH_EMULATION.
5900
5901         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
5902         * sysdeps/sh/sh3/dl-machine.h: Moved to...
5903         * sysdeps/sh/dl-machine.h: ...here.  New file.
5904         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
5905         and include generic SH version.
5906         * sysdeps/sh/sh3/bits/endian.h: Move to...
5907         * sysdeps/sh/bits/endian.h: ...here.  New file.
5908         * sysdeps/sh/sh4/bits/endian.h: Removed.
5909         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
5910         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
5911         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
5912
5913         * include/libc-symbols.h (link_warning): Work around a change in
5914         GAS which warns about changing section attributes.
5915         Proposed by Nick Clifton <nickc@redhat.com>.
5916
5917 2000-06-12  H.J. Lu  <hjl@gnu.org>
5918
5919         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
5920
5921 2000-06-11  H.J. Lu  <hjl@gnu.org>
5922
5923         * sysdeps/i386/fpu/Versions: New file.
5924
5925 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5926
5927         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
5928         parameters.
5929         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
5930         exists.
5931
5932 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
5933
5934         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5935         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
5936         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
5937
5938         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
5939         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
5940         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
5941
5942 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5943             Yutaka Niibe  <gniibe@chroot.org>
5944
5945         * sysdeps/sh/Dist: New file.
5946         * sysdeps/sh/Implies: New file.
5947         * sysdeps/sh/elf/initfini.c: New file.
5948         * sysdeps/sh/gmp-mparam.h: New file.
5949         * sysdeps/sh/init-first.c: New file.
5950         * sysdeps/sh/machine-gmon.h: New file.
5951         * sysdeps/sh/memcpy.S: New file.
5952         * sysdeps/sh/memprof.h: New file.
5953         * sysdeps/sh/memset.S: New file.
5954         * sysdeps/sh/sh3/__longjmp.S: New file.
5955         * sysdeps/sh/sh3/bits/endian.h: New file.
5956         * sysdeps/sh/sh3/bits/huge_val.h: New file.
5957         * sysdeps/sh/sh3/bits/setjmp.h: New file.
5958         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
5959         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
5960         * sysdeps/sh/sh3/dl-machine.h: New file.
5961         * sysdeps/sh/sh3/setjmp.S: New file.
5962         * sysdeps/sh/sh4/__longjmp.S: New file.
5963         * sysdeps/sh/sh4/bits/endian.h: New file.
5964         * sysdeps/sh/sh4/bits/huge_val.h: New file.
5965         * sysdeps/sh/sh4/bits/setjmp.h: New file.
5966         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
5967         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
5968         * sysdeps/sh/sh4/dl-machine.h: New file.
5969         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
5970         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
5971         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
5972         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
5973         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
5974         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
5975         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
5976         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
5977         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
5978         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
5979         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
5980         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
5981         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
5982         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
5983         * sysdeps/sh/sh4/setjmp.S: New file.
5984         * sysdeps/sh/elf/start.S: New file.
5985         * sysdeps/sh/sys/ucontext.h: New file.
5986         * sysdeps/sh/strlen.S: New file.
5987         * sysdeps/sh/sysdep.h: New file.
5988         * sysdeps/unix/sh/sysdep.S: New file.
5989         * sysdeps/unix/sh/sysdep.h: New file.
5990         * sysdeps/unix/sysv/linux/sh/Dist: New file.
5991         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
5992         * sysdeps/unix/sysv/linux/sh/Versions: New file.
5993         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
5994         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
5995         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
5996         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
5997         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
5998         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
5999         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6000         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6001         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6002         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6003         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6004         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6005         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6006         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6007         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6008         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6009         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6010         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6011         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6012         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6013         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6014         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6015         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6016         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6017         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6018         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6019         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6020         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6021         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6022         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6023         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6024         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6025         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6026         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6027         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6028         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6029         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6030         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6031         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6032         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6033         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6034         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6035         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6036         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6037         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6038         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6039         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6040
6041 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6042
6043         * Rules (%.out): Define GCONV_PATH in the environment.
6044         * assert/Depend: New file.
6045         * iconvdata/Depend: New file.
6046         * intl/Depend: New file.
6047         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6048         * intl/tst-gettext.sh: Likewise.
6049         * iconv/Makefile (routines): Add gconv_trans.
6050         * iconv/gconv_trans.c: New file.
6051         * iconv/gconv.h (struct __gconv_trans_data): New type.
6052         (__gconv_fct): New parameter with starting position in output buffer.
6053         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6054         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6055         (struct __gconv_step): Add new member __trans.
6056         * iconv/gconv_int.h: Pretty print prototypes.
6057         (gconv_transliterate): New prototype.
6058         (__BUILTIN_TRANS): Update for new conversion function interface.
6059         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6060         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6061         in names, find appropriate function, and install in the conversion
6062         steps it can be used.
6063         * iconv/skeleton.c: Add additional parameter for beginning of output
6064         buffer.  Change calls of downstream functions.
6065         * iconv/loop.c: Change loop function interface completely.  Pass in
6066         step and step_data structure.  Remove optimization for BODY with
6067         NEED_LENGTH_TEST == 0.
6068         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6069         appropriate error handling code to use transliteration steps.  Remove
6070         optimization for BODY with NEED_LENGTH_TEST == 0.
6071         * iconvdata/8bit-gap.c: Likewise.
6072         * iconvdata/8bit-generic.c: Likewise.
6073         * iconvdata/ansi_x3.110.c: Likewise.
6074         * iconvdata/big5.c: Likewise.
6075         * iconvdata/big5hkscs.c: Likewise.
6076         * iconvdata/euc-cn.c: Likewise.
6077         * iconvdata/euc-jp.c: Likewise.
6078         * iconvdata/euc-kr.c: Likewise.
6079         * iconvdata/euc-tw.c: Likewise.
6080         * iconvdata/gbgbk.c: Likewise.
6081         * iconvdata/gbk.c: Likewise.
6082         * iconvdata/iso-2022-cn.c: Likewise.
6083         * iconvdata/iso-2022-jp.c: Likewise.
6084         * iconvdata/iso-2022-kr.c: Likewise.
6085         * iconvdata/iso646.c: Likewise.
6086         * iconvdata/iso8859-1.c: Likewise.
6087         * iconvdata/iso_6937-2.c: Likewise.
6088         * iconvdata/iso_6937.c: Likewise.
6089         * iconvdata/johab.c: Likewise.
6090         * iconvdata/sjis.c: Likewise.
6091         * iconvdata/t.61.c: Likewise.
6092         * iconvdata/uhc.c: Likewise.
6093         * iconvdata/unicode.c: Likewise.
6094         * iconvdata/utf-16.c: Likewise.
6095         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6096         DL_CALL_FCT.
6097         * wcsmbs/btowc.c: Likewise.
6098         * wcsmbs/mbrtowc.c: Likewise.
6099         * wcsmbs/mbsnrtowcs.c: Likewise.
6100         * wcsmbs/mbsrtowcs.c: Likewise.
6101         * wcsmbs/wcrtomb.c: Likewise.
6102         * wcsmbs/wcsnrtombs.c: Likewise.
6103         * wcsmbs/wcsrtombs.c: Likewise.
6104         * wcsmbs/wctob.c: Likewise.
6105
6106 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6107
6108         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6109         other header files.  Mention about 128-byte cache line sizes.
6110         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6111         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6112         for current calling sequence.
6113         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6114
6115         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6116         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6117
6118         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6119         and setrlimit syscalls for backwards compatibility.
6120
6121 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6122
6123         * iconv/skeleton.c:  Rename converted written to correcter name
6124         irreversible.
6125         * iconv/gconv.c: Rename converted variable to correcter name
6126         irreversible.
6127         * iconv/gconv_int.h: Likewise.
6128         * iconv/gconv_simple.c: Likewise.
6129         * iconv/iconv.c: Likewise.
6130         * iconv/loop.c: Likewise.
6131         * iconvdata/8bit-gap.c: Likewise.
6132         * iconvdata/8bit-generic.c: Likewise.
6133         * iconvdata/ansi_x3.110.c: Likewise.
6134         * iconvdata/big5.c: Likewise.
6135         * iconvdata/big5hkscs.c: Likewise.
6136         * iconvdata/euc-cn.c: Likewise.
6137         * iconvdata/euc-jp.c: Likewise.
6138         * iconvdata/euc-kr.c: Likewise.
6139         * iconvdata/gbgbk.c: Likewise.
6140         * iconvdata/gbk.c: Likewise.
6141         * iconvdata/iso-2022-cn.c: Likewise.
6142         * iconvdata/iso-2022-jp.c: Likewise.
6143         * iconvdata/iso-2022-kr.c: Likewise.
6144         * iconvdata/iso646.c: Likewise.
6145         * iconvdata/iso8859-1.c: Likewise.
6146         * iconvdata/iso_6937-2.c: Likewise.
6147         * iconvdata/iso_6937.c: Likewise.
6148         * iconvdata/johab.c: Likewise.
6149         * iconvdata/sjis.c: Likewise.
6150         * iconvdata/t.61.c: Likewise.
6151         * iconvdata/uhc.c: Likewise.
6152         * iconvdata/unicode.c: Likewise.
6153         * iconvdata/utf-16.c: Likewise.
6154
6155         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6156         __cmsg_data field with __extension__.
6157
6158 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6159
6160         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6161
6162 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6163
6164         * iconv/gconv_simple.c: Fix various small bugs in several
6165         functions.
6166
6167         * iconv/loop.c: Fix comment.
6168
6169 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6170
6171         * elf/link.h: Remove libc internal declarations.
6172         * include/link.h: Move them here.
6173
6174 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6175
6176         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6177         Patch by Dan Pop <Dan.Pop@cern.ch>.
6178
6179         Rewrite error message handling.
6180         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6181         _dl_catch_error.
6182         * elf/dl-error (struct catch): Add objname member.
6183         (_dl_signal_error): Take new parameter with object name.  When
6184         passing message on simply store object name and duplicate error
6185         message.
6186         (_dl_catch_error): Take new parameter.  Store object name in the
6187         place pointed to.
6188         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6189         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6190         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6191         (dlerror): Add objname to asprintf() parameters.
6192         (_dl_error_run): Pass new parameter to _dl_catch_error.
6193         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6194         * elf/dl-open.c (_dl_open): Likewise.
6195         * elf/rtld.c (dl_main): Likewise.
6196         * elf/dl-close.c: Mark error messages with N_().
6197         * elf/dl-deps.c: Likewise.
6198         * elf/dl-error.c: Likewise.
6199         * elf/dl-load.c: Likewise.
6200         * elf/dl-open.c: Likewise.
6201         * elf/dl-reloc.c: Likewise.
6202         * elf/dl-support.c: Likewise.
6203         * elf/dl-sym.c: Likewise.
6204         * elf/dl-version.c: Likewise.
6205         * elf/dl-lookup.c: Add comments about problems with error message
6206         translations.
6207         * elf/dl-reloc.c: Likewise.
6208         * elf/dl-version.c: Likewise.
6209
6210 2000-06-09  H.J. Lu  <hjl@gnu.org>
6211
6212         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6213         after freeing it.
6214
6215         * dlfcn/Makefile (distribute): Add failtestmod.c.
6216         (tests): Add failtest.
6217         Add rules to build and run failtest.
6218         * dlfcn/failtest.c: New file.
6219         * dlfcn/failtestmod.c: New file.
6220
6221 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6222
6223         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6224         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6225         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6226         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6227         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6228
6229 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6230
6231         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6232         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6233
6234 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6235             Ulrich Drepper  <drepper@redhat.com>
6236
6237         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6238         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6239         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6240         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6241         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6242         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6243
6244 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6245
6246         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6247         to find correct mount point despite wrong information from the
6248         kernel.
6249
6250 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6251
6252         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6253         the address of a symbol so function pointers are handled properly.
6254
6255 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6256
6257         * sysdeps/i386/Dist: Add bp-asm.h.
6258
6259         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6260         defaultdir variable instead of "/var/shm" everywhere.
6261         (defaultdir): Change to /dev/shm/.
6262
6263 2000-06-08  Greg McGary  <greg@mcgary.org>
6264
6265         * sysdeps/i386/bp-asm.h: New file.
6266         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6267         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6268         frame-pointer chain when debugging.
6269         * sysdeps/i386/add_n.S: Likewise.
6270         * sysdeps/i386/addmul_1.S: Likewise.
6271         * sysdeps/i386/lshift.S: Likewise.
6272         * sysdeps/i386/memchr.S: Likewise.
6273         * sysdeps/i386/memcmp.S: Likewise.
6274         * sysdeps/i386/mul_1.S: Likewise.
6275         * sysdeps/i386/rawmemchr.S: Likewise.
6276         * sysdeps/i386/rshift.S: Likewise.
6277         * sysdeps/i386/stpcpy.S: Likewise.
6278         * sysdeps/i386/stpncpy.S: Likewise.
6279         * sysdeps/i386/strchr.S: Likewise.
6280         * sysdeps/i386/strchrnul.S: Likewise.
6281         * sysdeps/i386/strcspn.S: Likewise.
6282         * sysdeps/i386/strpbrk.S: Likewise.
6283         * sysdeps/i386/strrchr.S: Likewise.
6284         * sysdeps/i386/strspn.S: Likewise.
6285         * sysdeps/i386/strtok.S: Likewise.
6286         * sysdeps/i386/sub_n.S: Likewise.
6287         * sysdeps/i386/submul_1.S: Likewise.
6288         * sysdeps/i386/elf/setjmp.S: Likewise.
6289         * sysdeps/i386/i486/strcat.S: Likewise.
6290         * sysdeps/i386/i486/strlen.S: Likewise.
6291         * sysdeps/i386/i586/add_n.S: Likewise.
6292         * sysdeps/i386/i586/lshift.S: Likewise.
6293         * sysdeps/i386/i586/memcpy.S: Likewise.
6294         * sysdeps/i386/i586/memset.S: Likewise.
6295         * sysdeps/i386/i586/rshift.S: Likewise.
6296         * sysdeps/i386/i586/strchr.S: Likewise.
6297         * sysdeps/i386/i586/strcpy.S: Likewise.
6298         * sysdeps/i386/i586/strlen.S: Likewise.
6299         * sysdeps/i386/i586/sub_n.S: Likewise.
6300         * sysdeps/i386/i686/add_n.S: Likewise.
6301         * sysdeps/i386/i686/memcpy.S: Likewise.
6302         * sysdeps/i386/i686/mempcpy.S: Likewise.
6303         * sysdeps/i386/i686/memset.S: Likewise.
6304         * sysdeps/i386/i686/strcmp.S: Likewise.
6305
6306 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6307
6308         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6309
6310         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6311         256 and don't use OPEN_MAX.
6312
6313         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6314         use it instead of LINK_MAX.
6315         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6316
6317 2000-06-08  Andreas Jaeger  <aj@suse.de>
6318
6319         * libio/genops.c (_IO_list_lock): Only compile body if we're
6320         thread safe.
6321         (_IO_list_unlock): Likewise.
6322         (_IO_list_resetlock): Likewise.
6323
6324 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6325
6326         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6327         unless user defined it.
6328
6329         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6330         if not defined by the user.
6331
6332         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6333         * libio/iofwrite.c (_IO_fwrite): Likewise.
6334
6335         * time/time.h: Add missing __THROW for clock_getcpuclockid
6336         prototype.
6337
6338         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6339         * include/elf.h: Include also <dl-dtprocnum.h>.
6340         * elf/dl-deps.c: Likewise.
6341         * elf/dl-lookup.c: Likewise.
6342         * elf/dl-runtime.c: Likewise.
6343         * elf/dl-version.c: Likewise.
6344         * elf/do-rel.h: Likewise.
6345         * elf/dynamic-link.h: Likewise.
6346         * elf/link.h: Likewise.
6347         * elf/rtld.c: Likewise.
6348         * sysdeps/generic/dl-dtprocnum.h: New file.
6349         * sysdeps/ia64/dl-dtprocnum.h: New file.
6350         * sysdeps/mips/dl-dtprocnum.h: New file.
6351         * sysdeps/sparc/dl-dtprocnum.h: New file.
6352
6353         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6354
6355         * elf/do-lookup.h: Add some __builtin_expect.
6356
6357         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6358
6359         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6360         (_dl_dynamic_weak): New variable.
6361         * elf/dl-support.c: Likewise.
6362         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6363         * elf/do-lookup.h: If we find a weak definition treat it like a
6364         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6365         case treat it like before.
6366
6367         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6368         is in main program.
6369         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6370
6371         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6372         using l_map_start and l_map_end.
6373
6374         * elf/dl-version.c: Add __builtin_expect in many places.
6375
6376         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6377         Update.
6378
6379 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6380
6381         Lock for stdio stream list becomes global, for use in LinuxThreads.
6382
6383         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6384         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6385         _IO_list_resetlock): New interface for iterating global list of
6386         streams without accessing the _IO_list_all global variable,
6387         and for manipulating the lock which protects this list.
6388         * libio/libioP.h: Likewise.
6389         * libio/Version: Add entries for the new functions.
6390
6391         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6392         pointer to _IO_FILE.
6393
6394 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6395
6396         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6397         BIT() must actually be BITw().
6398
6399         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6400
6401         * locale/programs/charmap.c: Allow string arguments for
6402         code_set_name and repertoiremap.
6403
6404 2000-06-07  Andreas Jaeger  <aj@suse.de>
6405
6406         * elf/Makefile: Build ldconfig only when building shared libraries.
6407
6408 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6409
6410         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6411         __USE_ISOC99.
6412         (fdimf, __fdim, fdim): Likewise.
6413
6414 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6415
6416         * locale/findlocale.c: Add __builtin_expect in many places.
6417         * locale/loadlocale.c: Likewise.
6418
6419 2000-06-06  Greg McGary  <greg@mcgary.org>
6420
6421         * sysdeps/mips/elf/start.S: Trim redundant code.
6422
6423         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6424         Use C comments throughout.  Line up operands column with tabs.
6425         * sysdeps/powerpc/strchr.S: Likewise.
6426         * sysdeps/powerpc/strcmp.S: Likewise.
6427         * sysdeps/powerpc/strcpy.S: Likewise.
6428         * sysdeps/powerpc/strlen.S: Likewise.
6429
6430         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6431         Get low part of &__curbrk with @l.
6432
6433 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6434
6435         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6436         * iconvdata/unicode.c: Likewise.
6437         * iconvdata/uhc.c: Likewise.
6438         * iconvdata/t.61.c: Likewise.
6439         * iconvdata/sjis.c: Likewise.
6440         * iconvdata/johab.c: Likewise.
6441         * iconvdata/iso_6937.c: Likewise.
6442         * iconvdata/iso_6937-2.c: Likewise.
6443         * iconvdata/iso8859-1.c: Likewise.
6444         * iconvdata/iso646.c: Likewise.
6445         * iconvdata/iso-2022-kr.c: Likewise.
6446         * iconvdata/iso-2022-jp.c: Likewise.
6447         * iconvdata/iso-2022-cn.c: Likewise.
6448         * iconvdata/gbgbk.c: Likewise.
6449         * iconvdata/gbk.c: Likewise.
6450         * iconvdata/euc-kr.c: Likewise.
6451         * iconvdata/euc-jp.c: Likewise.
6452         * iconvdata/euc-cn.c: Likewise.
6453
6454 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6455
6456         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6457         * iconvdata/big5.c: Likewise.
6458         * iconvdata/ansi_x3.110.c: Likewise.
6459         * iconvdata/8bit-generic.c: Likewise.
6460         * iconvdata/8bit-gap.c: Likewise.
6461         * iconv/loop.c: Likewise.
6462         * iconv/gconv_db.c: Likewise.
6463         * iconv/gconv_dl.c: Likewise.
6464         * iconv/gconv_simple.c: Likewise.
6465         * iconv/skeleton.c: Likewise.
6466
6467         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6468         (struct __gconv_step_data): Rename __is_last to __flags.
6469         * iconv/gconv_close.c: Change all uses of __is_last.
6470         * iconv/skeleton.c: Likewise.
6471         * iconvdata/iso-2022-cn.c: Likewise.
6472         * iconvdata/iso-2022-jp.c: Likewise.
6473         * iconvdata/iso-2022-kr.c: Likewise.
6474         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6475         Recognize IGNORE error handling, set flag, and remove from name.
6476         * iconv/loop.c (ignore_errors_p): Define.
6477         Add flags parameter to both functions.
6478         * iconv/skeleton.c: Pass flags to all conversion functions.
6479         * iconv/gconv_simple.c: Add flags parameter to all functions.
6480         Don't return error for invald error if ignore flag is set.
6481         (ucs4_internal_loop_single): Add missing pointer increment.
6482         (internal_ucs4le_loop_single): Likewise.
6483         * iconv/iconv_prog.c: Implement handling of -c parameter.
6484         * iconvdata/8bit-gap.c: Don't return error for invald error if
6485         ignore flag is set.
6486         * iconvdata/8bit-generic.c: Likewise.
6487         * iconvdata/ansi_x3.110.c: Likewise.
6488         * iconvdata/big5.c: Likewise.
6489         * iconvdata/big5hkscs.c: Likewise.
6490         * iconvdata/euc-cn.c: Likewise.
6491         * iconvdata/euc-jp.c: Likewise.
6492         * iconvdata/euc-kr.c: Likewise.
6493         * iconvdata/gbgbk.c: Likewise.
6494         * iconvdata/gbk.c: Likewise.
6495         * iconvdata/iso-2022-cn.c: Likewise.
6496         * iconvdata/iso-2022-jp.c: Likewise.
6497         * iconvdata/iso-2022-kr.c: Likewise.
6498         * iconvdata/iso646.c: Likewise.
6499         * iconvdata/iso8859-1.c: Likewise.
6500         * iconvdata/iso_6937-2.c: Likewise.
6501         * iconvdata/iso_6937.c: Likewise.
6502         * iconvdata/johab.c: Likewise.
6503         * iconvdata/sjis.c: Likewise.
6504         * iconvdata/t.61.c: Likewise.
6505         * iconvdata/uhc.c: Likewise.
6506         * iconvdata/unicode.c: Likewise.
6507         * iconvdata/utf-16.c: Likewise.
6508         * libio/fileops.c: Likewise.
6509         * libio/iofwide.c: Likewise.
6510         * wcsmbs/btowc.c: Likewise.
6511         * wcsmbs/mbrtowc.c: Likewise.
6512         * wcsmbs/mbsnrtowcs.c: Likewise.
6513         * wcsmbs/mbsrtowcs.c: Likewise.
6514         * wcsmbs/wcrtomb.c: Likewise.
6515         * wcsmbs/wcsnrtombs.c: Likewise.
6516         * wcsmbs/wcsrtombs.c: Likewise.
6517         * wcsmbs/wctob.c: Likewise.
6518
6519         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6520         an error.
6521
6522 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6523
6524         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6525         counter for the object we are releasing, just decrement it.
6526         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6527
6528 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6529
6530         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6531         if -ffast-math.
6532
6533 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6534
6535         * iconvdata/big5hkscs.c: New file.
6536         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6537
6538         * iconvdata/gconv-modules: Add entry for new module.
6539         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6540         (distribute): Add big5hkscs.c.
6541
6542 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6543
6544         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6545         inlines to match prototypes in mathcalls.h.
6546         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6547         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6548         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6549         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6550
6551 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6552
6553         * elf/elf.h (SHT_SUNW_move): Define.
6554
6555         * elf/elf.h: Add more Solaris compatiblity definitions.
6556
6557 2000-06-03  Andreas Jaeger  <aj@suse.de>
6558
6559         * sysdeps/powerpc/dl-start.S: Close open comment.
6560
6561 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6562
6563         * inet/Versions: Fix typo in rresvport_af export.
6564
6565 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6566
6567         * math/tgmath.h: Pretty print.
6568
6569 2000-06-02  Andreas Jaeger  <aj@suse.de>
6570
6571         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6572         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6573
6574 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6575
6576         * elf/rtld.c (process_envvars): Test for = after variable name.
6577
6578 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6579
6580         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6581         have extra call to __gmon_start__, use the pointer we already have.
6582
6583         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6584         shifting.
6585
6586         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6587         binutils.  gas now emits a jump through the PLT instead of a
6588         relative jump if the jump target is an exported symbol.
6589
6590 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6591
6592         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6593
6594 2000-05-31  Andreas Jaeger  <aj@suse.de>
6595
6596         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6597         gregset_t.
6598
6599         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6600         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6601
6602         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6603         syscall.
6604         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6605
6606 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6607
6608         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6609
6610         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6611         * locale/localeconv.c: Make function versioned (with same definition).
6612
6613         * elf/Makefile (modules-names): Strip before using it.
6614
6615 2000-05-30  Andreas Jaeger  <aj@suse.de>
6616
6617         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6618         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6619         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6620         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6621         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6622         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6623
6624 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6625
6626         * Makefile: Add GNU make magic.
6627
6628         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6629         Removed.
6630         * inet/rcmd.c: Remove __P.  Remove unused variables.
6631         (iruserfopen): Make first parameter const.
6632         (ruserok_sa): Return result of ruserok2_sa.
6633         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6634         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6635         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6636         (ruserpass): Check results of memory allocation.
6637         * include/netdb.h: Add prototype for ruserpass.
6638
6639 2000-05-29  Andreas Jaeger  <aj@suse.de>
6640
6641         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6642         for all platforms.
6643
6644 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6645
6646         * inet/rcmd.c (rresvport_af): Use correct port number.
6647
6648 2000-05-26  Andreas Schwab  <schwab@suse.de>
6649
6650         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6651         entries in all-sonames.
6652         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6653         preserving the old name if different for compatibility.
6654
6655 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6656
6657         * posix/Makefile (tests): Add tst-spawn.
6658         (tst-spawn-ARGS): New variable.
6659         * posix/tst-spawn.c: New file.
6660
6661         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6662         * posix/spawn_faction_adddup2.c: Likewise.
6663         * posix/spawn_faction_addopen.c: Likewise.
6664         * posix/spawni.c: Correctly test for success of dup2 calls.
6665
6666         * posix/tst-preadwrite.c: Check success of malloc call.
6667
6668 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6669
6670         * posix/Makefile (tests): Add tst-exec.
6671         (tst-exec-ARGS): New variable.
6672         * posix/tst-exec.c: New file.
6673
6674         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6675
6676 2000-05-04  Andreas Jaeger  <aj@suse.de>
6677
6678         * string/string.h: Remove __strdup prototype, it's not needed in
6679         this file anymore.
6680
6681 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6682
6683         * posix/Makefile (tests): Add tst-fork.
6684         * posix/tst-fork.c: New file.
6685
6686         * resolv/inet_pton.c: Loose __P.
6687
6688 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6689
6690         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6691         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6692         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6693         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6694         _IO_CHECK_WIDE fails.
6695
6696 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6697
6698         * po/da.po: New file.
6699
6700         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6701         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6702
6703         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6704         (Other iconv Implementations): Fix typo.
6705         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6706
6707 2000-05-27  Andreas Jaeger  <aj@suse.de>
6708
6709         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6710         normal version now.
6711         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6712         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6713         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6714         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6715         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6716         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6717
6718         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6719         endianness to decide how to pass arguments.
6720         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6721
6722         * elf/vismain.c: Use test-skeleton interface.
6723         (TEST_FUNCTION): New macro.
6724         (do_test): Renamed from main.
6725
6726 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6727
6728         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6729         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6730
6731         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6732         handling of AI_V4MAPPED flag.
6733
6734         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6735         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6736         perform lookup for T_A type and tell getanswer_r to convert the
6737         result with new argument.
6738         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6739         Don't convert addresses from IPv4 to IPv6 here.
6740         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6741         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6742         IPv4 mapping has to be done.  Perform mappings if required by the
6743         caller and not if RES_USE_INET6 bit in _res.options is set.
6744         Add several __builtin_expect.
6745
6746 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6747
6748         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6749
6750         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
6751         NULL.
6752
6753         * posix/tst-preadwrite.c: Allow parallel execution of
6754         tst-preadwrite and tst-preadwrite64.
6755
6756         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
6757         * posix/tst-truncate.c: New file.
6758         * posix/tst-truncate64.c: New file.
6759
6760         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
6761         was switched.
6762
6763         * posix/Makefile (tests): Add tst-preadwrite64.
6764         * posix/tst-preadwrite.c: Alloc file being used also for testing
6765         pread64 and pwrite64.
6766         * posix/tst-preadwrite64.c: New file.
6767
6768 2000-05-26  Andreas Jaeger  <aj@suse.de>
6769
6770         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
6771         of arguments dependend on endianness.
6772         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6773
6774         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
6775         normal version now.
6776         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6777         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6778         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6779         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6780
6781         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
6782         endianness to check how to pass argument.
6783         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
6784
6785         * elf/ldconfig.h: Update parameter list for process_elf_file.
6786
6787         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
6788         Add parameter file_length and pass it ot process_elf*file.
6789
6790         * sysdeps/generic/readelflib.c (check_ptr): New.
6791         (process_elf_file): Use check_ptr to check all accesses to the
6792         mmapped file. Add parameter file_length.
6793
6794         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
6795         library names.
6796
6797         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
6798         Closes PR libc/1573, reported by Bradley White
6799         <bww@laurelnetworks.com>.
6800
6801 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
6802
6803         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
6804         __FAST_MATH__ is defined.
6805
6806 2000-05-22  Andreas Jaeger  <aj@suse.de>
6807
6808         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
6809         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
6810
6811         * manual/math.texi (FP Function Optimizations): Document gcc
6812         -ffast-math behaviour with mathinlines.
6813
6814         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
6815         functions unless -ffast-math is given to gcc.
6816
6817 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
6818
6819         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
6820         __sincosl): Guard with __USE_GNU.
6821
6822 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
6823
6824         * csu/Makefile (routines): Add check_fds.
6825         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
6826         binaries.  Add various __builtin_expect.
6827         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
6828         * sysdeps/generic/check_fds.c: ...here.  New file.
6829
6830         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
6831         binaries if file /etc/suid-debug is available.
6832
6833         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
6834         and wcseqorder members.
6835         (struct locale_collate_t): Likewise.
6836         (collate_finish): Assign collation sequence value to each character.
6837         Create tables for output.
6838         (collate_output): Write out tables with collation sequence information.
6839         * locale/C-collate.c: Provide C locale data for collation sequence
6840         table.
6841         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
6842         _NL_COLLATE_COLLSEQWC.
6843         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
6844         _NL_COLLATE_COLLSEQWC.
6845         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
6846         include fnmatch_loop.c.
6847         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
6848         character is matched by range expression.  Use collation sequence
6849         table.  Outside glibc fall back on simple character value comparison.
6850
6851 2000-05-24  Andreas Jaeger  <aj@suse.de>
6852
6853         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
6854         words.
6855
6856         * intl/Makefile: Run gettext-test only if msgfmt is available.
6857
6858         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
6859         Define it for newer kernels.
6860
6861 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
6862
6863         * elf/dl-sym.c: Minor cleanups.
6864
6865         * configure.in: Add test for .protected.
6866         * config.make.in: Add have-protected variable.
6867         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
6868         (tests-vis-yes): Add vismain.
6869         (modules-names): Add $(modules-vis-$(have-protected)).
6870         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
6871         Add rules to generate and run vismain.
6872         * elf/vismain.c: New file.
6873         * elf/vismod1.c: New file.
6874         * elf/vismod2.c: New file.
6875         * elf/vismod3.c: New file.
6876
6877 2000-05-23  Andreas Jaeger  <aj@suse.de>
6878
6879         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
6880
6881         * manual/search.texi (Array Sort Function): Document that qsort is
6882         not necessarily in-place.
6883
6884         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
6885         Closes PR libc/1731.
6886
6887         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
6888         * dirent/scandir64.c: Likewise.
6889         * pwd/getpw.c: Likewise.
6890         * stdlib/bsearch.c (bsearch): Likewise.
6891         * stdlib/tst-strtoll.c: Likewise.
6892         * localedata/collate-test.c: Likewise.
6893         * localedata/xfrm-test.c: Likewise.
6894         * posix/bsd-getpgrp.c: Likewise.
6895         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
6896         * sysdeps/generic/bits/siginfo.h: Likewise.
6897         * sysdeps/generic/bits/sockaddr.h: Likewise.
6898         * sysdeps/generic/sys/swap.h: Likewise.
6899         * sysdeps/generic/sys/sysinfo.h: Likewise.
6900         * sysdeps/generic/vfork.c: Likewise.
6901         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
6902         * sysdeps/mach/hurd/fdopen.c: Likewise.
6903         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
6904         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6905         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6906         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6907         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
6908         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
6909         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
6910
6911         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
6912         * shadow/lckpwdf.c: Likewise.
6913         * stdlib/tst-strtol.c: Likewise.
6914         * sysdeps/generic/tcsetattr.c: Likewise.
6915         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6916         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6917
6918 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
6919
6920         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
6921         free it and set to (void *) -1.
6922
6923 2000-05-22  Jakub Jelinek <jakub@redhat.com>
6924
6925         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
6926         not the second character in the range.
6927         * stdio-common/tstscanf.c (main): Add testcase for the above.
6928         Reported by jik@kamens.brookline.ma.us.
6929
6930 2000-05-21  H.J. Lu  <hjl@gnu.org>
6931
6932         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
6933         with noexec and noplt parameter.
6934         (do_lookup): Likewise.
6935
6936         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
6937         do_lookup.  Support STV_PROTECTED.
6938         (_dl_lookup_symbol_skip): Likewise.
6939         (_dl_lookup_versioned_symbol): Likewise.
6940         (_dl_lookup_versioned_symbol_skip): Likewise.
6941
6942         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
6943
6944         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
6945
6946 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6947
6948         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
6949         * sysdeps/i386/bits/huge_val.h: Likewise.
6950         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6951         * sysdeps/m68k/bits/huge_val.h: Likewise.
6952         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
6953         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
6954
6955 2000-05-22  Andreas Jaeger  <aj@suse.de>
6956
6957         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
6958         change in iconv.h.
6959
6960 2000-05-19  Andreas Jaeger  <aj@suse.de>
6961
6962         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6963         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
6964         breaks compilation without linuxthreads.
6965
6966 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
6967
6968         * sysdeps/ia64/memccpy.S: New file.
6969         * sysdeps/ia64/memchr.S: New file.
6970         * sysdeps/ia64/memcmp.S: New file.
6971         * sysdeps/ia64/memcpy.S: New file.
6972         * sysdeps/ia64/memmove.S: New file.
6973         * sysdeps/ia64/memset.S: New file.
6974         * sysdeps/ia64/strcat.S: New file.
6975         * sysdeps/ia64/strchr.S: New file.
6976         * sysdeps/ia64/strcmp.S: New file.
6977         * sysdeps/ia64/strcpy.S: New file.
6978         * sysdeps/ia64/strlen.S: New file.
6979         * sysdeps/ia64/strncmp.S: New file.
6980         * sysdeps/ia64/strncpy.S: New file.
6981         * sysdeps/ia64/softpipe.h: New file.
6982         Patches by Dan Pop <Dan.Pop@cern.ch>.
6983
6984         * manual/memory.texi: Document memory handling functions (mlock,
6985         munlock, mlockall, munlockall, brk, and sbrk)
6986         * manual/time.texi: Document timespec and friends.
6987         * manual/conf.texi: Fix references.
6988         * manual/ctype.texi: Likewise.
6989         * manual/errno.texi: Likewise.
6990         * manual/intro.texi: Likewise.
6991         * manual/locale.texi: Likewise.
6992         * manual/sysinfo.texi: Likewise.
6993         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
6994
6995 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
6996
6997         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
6998         * sysdeps/ia64/dl-lookupcfg.h: ...here.
6999
7000 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7001
7002         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7003         dxfer_direction.
7004
7005 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7006
7007         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7008         * locale/localeconv.c: Initialize new elements from ISO C99.
7009         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7010         new standard elements.
7011         * locale/categories.def: Adjust accordingly.
7012
7013         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7014         * iconv/iconv.c: Likewise.
7015         * conform/data/iconv.h-data: Likewise.
7016         * iconv/iconv_prog.c (process_block): Remove const from second
7017         parameter.
7018         (main): Remove const from addr definition.
7019         * manual/charset.texi (Generic Conversion Interface): Remove from
7020         inbuf parameter of iconv.
7021
7022         * intl/dcigettext.c: Fix typo in comment.
7023
7024 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7025
7026         * resolv/res_libc.c (_res): Initialize _sock to -1.
7027
7028 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7029
7030         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7031         (fopencookie@@GLIBC_2.2): New.
7032         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7033         (fopencookie@GLIBC_2.0): New.
7034         * libio/Versions: Add fopencookie to GLIBC_2.2.
7035
7036 2000-05-18  Andreas Jaeger  <aj@suse.de>
7037
7038         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7039         Closes PR libc/1731.
7040
7041         * manual/arith.texi (Parsing of Integers): Fix typo.
7042         Closes PR libc/1744, reported by blp@gnu.org.
7043
7044 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7045
7046         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7047         __extension__ to hexadecimal floating constant notation.
7048         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7049         Likewise.
7050         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7051         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7052         Likewise.
7053         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7054         HUGE_VALL): Likewise.
7055         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7056         HUGE_VALL): Likewise.
7057         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7058
7059 2000-05-17  Andreas Jaeger  <aj@suse.de>
7060
7061         * string/envz.h: Add pure attributes if possible.
7062
7063         * string/argz.h: argz_count is a pure function.
7064
7065         * string/strings.h: Add pure and const attributes if possible.
7066
7067         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7068         possibly searching through the whole memory.
7069         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7070
7071 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7072
7073         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7074         not yet defined.
7075         (_dl_cache_check_flags): Likewise.
7076         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7077         dl-cache.h.
7078
7079 2000-05-17  Andreas Jaeger  <aj@suse.de>
7080
7081         * manual/creature.texi (Feature Test Macros): Remove paragraph
7082         since the description is wrong.
7083         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7084
7085         * scripts/config.sub: New version.
7086         * scripts/config.guess: Likewise.
7087         * manual/texinfo.tex: Likewise.
7088
7089         * time/test_time.args: Removed.
7090         * time/Makefile (test_time-ARGS): Added contents here instead.
7091
7092         * posix/tstgetopt.args: Removed.
7093         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7094
7095         * Rules: Allow arguments for test files to be specified in
7096         Makefile with testname-ARGS; remove rules with .args in it.
7097
7098         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7099         remove old bogus rule for opendir-tst1.args.
7100
7101         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7102
7103         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7104         into objdir.  This allows a readonly sourcetree.
7105         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7106
7107 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7108             David Huggins-Daines <dhd@linuxcare.com>
7109
7110         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7111         cache_data in case of only new cache format correctly.
7112
7113         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7114         cache_file_new.
7115
7116         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7117         struct cache_file_new.
7118
7119         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7120         present.
7121
7122         * elf/cache.c (save_cache): Align struct new_file_cache.
7123         (print_cache): Likewise.
7124
7125 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7126
7127         * elf/soinit.c (__libc_global_ctors): Move
7128         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7129         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7130         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7131         variable, don't define it to __res_state call.
7132
7133 2000-05-13  Andreas Jaeger  <aj@suse.de>
7134
7135         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7136         Linux 2.3.99pre7.
7137         (AF_PPPOX): Likewise.
7138         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7139         (AF_PPPOX): Likewise.
7140
7141 2000-05-12  Andreas Jaeger  <aj@suse.de>
7142
7143         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7144         Reported by tmoestl@gmx.net, closes PR libc/1732.
7145
7146 2000-05-11  Jan Hubicka  <jh@suse.cz>
7147
7148         * misc/sys/cdefs.h: Add support for pure attribute.
7149
7150         * include/string.h: Add __attribute_pure__ to various functions.
7151         * string/string.h: Likewise.
7152
7153 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7154
7155         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7156         argument.
7157         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7158         R_SPARC_UA64.
7159         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7160
7161 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7162
7163         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7164         at proper place.  Compute the high nibble correctly.
7165
7166 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7167
7168         * elf/ldconfig.c: Include elf.h.
7169
7170         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7171         (_dl_vsym): Likewise.
7172         Reported by Owen Taylor <otaylor@redhat.com>.
7173
7174         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7175         always.
7176
7177 2000-05-08  Andreas Jaeger  <aj@suse.de>
7178
7179         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7180
7181         * intl/bindtextdom.c (set_binding_values): Add prototype.
7182
7183 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7186         call to elf_machine_fixup_plt.
7187         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7188         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7189
7190 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7191
7192         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7193         they are not dlclose'd from underneath us.
7194
7195 2000-05-08  Andreas Schwab  <schwab@suse.de>
7196
7197         * posix/execle.c: Fix size parameter of memcpy.
7198
7199 2000-05-08  Andreas Schwab  <schwab@suse.de>
7200
7201         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7202         getpagesize syscall if available.
7203
7204 2000-05-08  Andreas Jaeger  <aj@suse.de>
7205
7206         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7207         set errno.
7208
7209 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7210
7211         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7212         sizeof(struct link_map *) chunks, not in bytes.
7213
7214 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7215
7216         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7217         only needed for locale.
7218         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7219         It's only needed for catgets.
7220         Patches by Greg McGary <gkm@eng.ascend.com>.
7221
7222 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7223
7224         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7225         Remove duplicate <errno.h> include.  Remove inclusion of
7226         <libintl.h> and "nsswitch.h".
7227         (set_cloexec_flag): New function, broken out of dbopen.
7228         (dbopen): Changed return type to `enum
7229         nss_status'.  Mostly rewritten to make sure that we do not report
7230         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7231         (internal_setent): Change return type to nss_status.
7232         Document, and make sure that the function
7233         behaves accordingly.  Make dynamically loading the database
7234         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7235         failed.
7236         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7237         unecessary casts.
7238         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7239         documentation.
7240         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7241         c_get function member.
7242         * nss/nss_db/nss_db.h: Add and tweak some comments.
7243         (DBT): Move typedef before NSS_DBC typedef.
7244         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7245
7246 2000-05-07  H.J. Lu  <hjl@gnu.org>
7247
7248         * csu/initfini.c: Moved to ....
7249         * sysdeps/generic/initfini.c: ...here.
7250
7251         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7252
7253 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7254
7255         * manual/resource.texi: Document POSIX scheduling functions.
7256         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7257
7258         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7259         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7260
7261         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7262         for x since promotion in comparison might leads to unexpected
7263         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7264
7265         * iconv/Makefile (tests): Add tst-iconv1.
7266         * iconv/tst-iconv1.c: New file.
7267         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7268         empty input buffer over full output buffer.
7269         (ucs4_internal_loop): Likewise.
7270         (ucs4_internal_loop_unaligned): Likewise.
7271         (internal_ucs4le_loop): Likewise.
7272         (internal_ucs4le_loop_unaligned): Likewise.
7273         (ucs4le_internal_loop): Likewise.
7274         (ucs4le_internal_loop_unaligned): Likewise.
7275         Reported by yaoz@nih.gov.
7276
7277 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7278
7279         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7280         returned != __GCONV_OK, there is nothing to clean up.
7281
7282 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7283
7284         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7285         OUTPUT_CHARSET environment variables.
7286
7287 2000-05-06  Andreas Jaeger  <aj@suse.de>
7288
7289         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7290         (struct cache_file_new): New.
7291         (struct file_entry): New (moved from cache.c).
7292         (struct cache_file): New (moved from cache.c).
7293
7294         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7295         from _dl_load_cache_lookup.
7296         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7297         the different cache formats.
7298         New variable cache_new for new format.
7299
7300         * elf/ldconfig.h: Change according to changes in cache.c and
7301         ldconfig.c; remove cache_libcmp; add opt_format.
7302
7303         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7304         stuff that's defined in those headers.
7305         Add hwcap to struct lib_entry.
7306         (opt_format): New variable to select cache format.
7307         (options): Add format parameter.
7308         (is_hwcap): New function.
7309         (path_hwcap): New function.
7310         (parse_opt): Handle new format parameter.
7311         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7312
7313         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7314         ldconfig is part of glibc.
7315         Include dl-cache.h and remove stuff that's defined there.
7316         (struct cache_entry): Add new member hwcap.
7317         (print_entry): Print hwcap, cleanup a bit.
7318         (print_cache): Print new and old formats.
7319         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7320         (save_cache): Save new and old formats.
7321         (add_to_cache): Handle hwcap.
7322
7323         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7324         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7325         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7326         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7327         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7328         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7329
7330 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7331
7332         * intl/dcigettext.c (alignof): New macro.
7333         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7334         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7335         freemem_size to 0.
7336
7337 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7338
7339         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7340         return value.
7341
7342 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7343
7344         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7345         (mempcpy): Correct typo is parameter list.
7346
7347 2000-05-06  Andreas Jaeger  <aj@suse.de>
7348
7349         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7350         functions unless -ffast-math is given to gcc.
7351
7352 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7353
7354         * po/ko.po: Update from translation team.
7355
7356 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7357
7358         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7359         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7360         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7361         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7362         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7363         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7364
7365         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7366         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7367         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7368
7369         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7370         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7371         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7372         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7373
7374         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7375         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7376
7377 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7378
7379         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7380         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7381
7382         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7383         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7384
7385         * sysdeps/ia64/Implies: New file.
7386         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7387         * sysdeps/ia64/Makefile: New file.
7388         * sysdeps/ia64/gmp-mparam.h: New file,
7389
7390         * sysdeps/ia64/elf/start.S: New file.
7391
7392         * sysdeps/ia64/bits/fenv.h: New file.
7393
7394 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7395
7396         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7397
7398 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7399
7400         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7401         ia64 has 64 bit .hash entries just as the Alpha.
7402
7403 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7404
7405         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7406
7407 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7408
7409         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7410         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7411         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7412         * sysdeps/ia64/fpu/fegetenv.c: New file.
7413         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7414         * sysdeps/ia64/fpu/fegetround.c: New file.
7415         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7416         * sysdeps/ia64/fpu/fesetenv.c: New file.
7417         * sysdeps/ia64/fpu/fesetround.c: New file.
7418         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7419         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7420         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7421         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7422         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7423
7424 2000-05-05  Andreas Jaeger  <aj@suse.de>
7425
7426         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7427
7428         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7429         (_dl_string_hwcap): New, does nothing.
7430
7431         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7432         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7433         (_dl_string_hwcap): New function, converts from string to hwcap
7434         encoding.
7435         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7436         (_DL_HWCAP_COUNT): New.
7437         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7438         (_dl_string_hwcap): New function, converts from string to hwcap
7439         encoding.
7440         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7441         (_DL_HWCAP_COUNT): New.
7442         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7443         (_dl_string_hwcap): New function, converts from string to hwcap
7444         encoding.
7445
7446 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7447
7448         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7449         * sysdeps/ia64/Dist: New file.
7450
7451         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7452         parameter to mprotect and for variable assignments.
7453
7454 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7455
7456         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7457         validity of map before dereferencing it.
7458
7459         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7460
7461 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7462
7463         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7464         lookup to the arguments to elf_machine_fixup_plt().
7465
7466         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7467         of the symbol being resolved to input argument list and make the
7468         function return the pointer to the reloc.
7469
7470         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7471         return valuie to lookup_t and return the value.
7472         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7473         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7474         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7475         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7476         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7477         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7478
7479         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7480         Make it an inline function returning value after calling
7481         __elf_machine_fixup_plt().
7482
7483         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7484         symbol address.
7485
7486         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7487         obtain the symbol address.
7488
7489         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7490         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7491
7492         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7493         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7494         inline on non ia64.
7495
7496 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7497
7498         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7499         symbol address of an object.
7500
7501         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7502         the symbol address of an object.
7503
7504         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7505         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7506         (_dl_lookup_symbol_skip): Likewise.
7507         (_dl_lookup_versioned_symbol): Likewise.
7508         (_dl_lookup_versioned_symbol_skip): Likewise.
7509
7510 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7511
7512         * elf/rtld.c (_dl_start): Get the function pointer return address
7513         via _dl_start_address for architectures that need a function
7514         pointer descriptor rather than just a pointer (ia64).
7515
7516         * sysdeps/generic/dl-lookupcfg.h: New file.
7517         * sysdeps/ia64/dl-lookupcfg.h: New file.
7518         * sysdeps/ia64/dl-machine.h: New file.
7519         * sysdeps/ia64/dl-symaddr.c: New file.
7520         * sysdeps/ia64/dl-fptr.c: New file.
7521
7522         * elf/elf.h: Add IA-64 specific definitions.
7523
7524 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7525
7526         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7527         end of enum.
7528
7529 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7530
7531         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7532         happy.
7533
7534 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7535
7536         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7537         symbol.  Call _dl_init rather than the old way.
7538
7539 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7540
7541         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7542         test for pointer in range of DSO address space.
7543
7544 2000-05-04  Andreas Jaeger  <aj@suse.de>
7545
7546         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7547
7548 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7549
7550         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7551         calls of _nl_make_l10nflist.
7552
7553         * libio/stdio.h: Make fseeko and ftello prototypes available is
7554         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7555
7556         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7557         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7558
7559 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7560
7561         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7562         before calling tfind.
7563
7564 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7565
7566         * resolv/resolv.h (res_querydomain): Remove redefinition to
7567         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7568
7569 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7570
7571         * po/gl.po: Update from translation team.
7572
7573         * manual/intro.texi (Program Basics): Change section title.
7574         * manual/process.texi: Fix reference.
7575         (Executing a File): Add reference exec in other section.
7576         * manual/signal.texi: Fix reference.
7577         * manual/startup.texi: Document syscall function.
7578         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7579
7580 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7581
7582         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7583         * intl/bindtextdom.c (set_binding_values): New function.
7584         (bindtextdomain): Call it.
7585         (bind_textdomain_codeset): New function.
7586         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7587         (free_mem): Free each binding's codeset.
7588         * intl/gettextP.h (struct binding): Add codeset field.
7589         (_nl_find_domain): Add domainbinding argument.
7590         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7591         Pass it to _nl_make_l10nflist.
7592         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7593         (_nl_make_l10nflist): Add domainbinding argument.
7594         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7595         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7596         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7597         locale_charset().
7598         * manual/message.texi: New node "Charset conversion in gettext".
7599
7600 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7601
7602         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7603         appropriate.  Handle possible __read error.
7604
7605 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7606
7607         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7608         compiler builtin.
7609         * intl/loadinfo.h (__builtin_expect): Likewise.
7610         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7611         __builtin_expect where appropriate.
7612         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7613         * intl/localealias.c (extend_alias_table): Return an error indicator.
7614         (read_alias_file): Bail out if extend_alias_table fails.
7615
7616 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7617
7618         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7619         * intl/localealias.c: Likewise.
7620
7621 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7622
7623         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7624         Initialize domain->plural and domain->nplurals even if there is no
7625         nullentry.
7626
7627 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7628
7629         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7630         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7631         In case of failure, goto converted.
7632
7633 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7634
7635         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7636         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7637         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7638         __gconv_open.
7639
7640 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7641
7642         * intl/dcigettext.c (transcmp): Compare the domains as well.
7643         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7644         not before.
7645         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7646         <errno.h>.
7647
7648 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7649
7650         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7651         Reported by Bruno Haible.
7652
7653 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7654
7655         * manual/arith.texi: Remove @w from @itemize.
7656
7657 2000-05-02  Andreas Jaeger  <aj@suse.de>
7658
7659         * conform/data/tar.h-data: Add some checks for specific values.
7660
7661         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7662         and RAND_MAX.
7663
7664         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7665         FOPEN_MAX.
7666
7667         * conform/data/netinet/in.h-data: Add exact checks for the values
7668         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7669
7670         * conform/data/float.h-data: Add some minimal values.
7671
7672         * conform/conformtest.pl: Test for macros with string constants,
7673         check for minimum and maximum values.
7674         Add limits.h to headers.
7675
7676         * conform/data/cpio.h-data: Test for value of MAGIC.
7677
7678         * conform/data/limits.h-data: New file.
7679
7680 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7681
7682         * math/Makefile (headers): Add bits/fenvinline.h.
7683
7684 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7685
7686         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7687         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7688
7689         * posix/Versions: Change posix_spawnattr_getdefault and
7690         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7691         and posix_spawnattr_setsigdefault respectively.
7692         * posix/spawn.h: Likewise.
7693         * posix/spawnattr_getdefault.h: Likewise.
7694         * posix/spawnattr_setdefault.h: Likewise.
7695         * conform/data/spawn.h-data: Likewise.
7696
7697 2000-05-01  Andreas Jaeger  <aj@suse.de>
7698
7699         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7700
7701 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7702
7703         * manual/sysinfo.texi: Document getdomainname, setdomainname
7704         and sysctl.
7705         * manual/string.texi: Fix typo.
7706         * manual/terminal.texi: Document gtty and stty.
7707         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7708
7709 2000-04-30  Andreas Jaeger  <aj@suse.de>
7710
7711         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7712         accordance with Austin Draft.
7713
7714 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7715
7716         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7717         to recognize second character in comment line.
7718
7719         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7720         ENOBUFS if we are out of memory.
7721
7722         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7723         available if __USE_XOPEN2K.
7724         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7725         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7726         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7727         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7728         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7729         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7730         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7731         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7732
7733 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7734
7735         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7736         Recognize option -s, -c, and -l.
7737
7738 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7739
7740         * nscd/nscd.c: Start new session for nscd, drop privilegs
7741         to configured user if requested and no -S parameter are used.
7742         * nscd/nscd.conf: Add new option "server-user".
7743         * nscd/nscd_conf.c: Add support for new "server-user" option.
7744         * nscd/nscd.h: Add declaration for server_user variable.
7745         Based on patch by Chris Wing <wingc@engin.umich.edu>
7746
7747 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7748
7749         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
7750         that changing the __restore and __restore_rt signal return code
7751         will break GDB.
7752
7753 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7754
7755         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
7756         <sys/user.h>.
7757
7758 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7759
7760         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
7761
7762 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7763
7764         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
7765         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
7766         arpa/inet.h.
7767         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
7768         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
7769         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
7770         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
7771         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
7772         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
7773         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
7774         posix_fallocate, and posix_madvise.
7775         * conform/data/netdb.h-data: New file.
7776         * conform/data/pthread.h-data: Add pthread_barrier_t,
7777         pthread_barrierattr_t, pthread_barrier_destroy,
7778         pthread_barrier_init, pthread_barrier_wait,
7779         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
7780         pthread_barrierattr_init, pthread_barrierattr_setpshared,
7781         pthread_condattr_getclock, pthread_condattr_setclock,
7782         pthread_getcpuclockid, pthread_mutex_timedlock,
7783         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7784         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
7785         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
7786         * conform/data/sched.h-data: Add sched_ss_low_priority,
7787         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
7788         SCHED_SPORADIC.
7789         * conform/data/semaphore.h-data: Add sem_timedwait.
7790         * conform/data/signal.h-data: Add SIGIO.
7791         * conform/data/spawn.h-data: New file.
7792         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
7793         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
7794         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
7795         Fix typo in gmtime_r definition.
7796         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
7797         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
7798         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
7799         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
7800         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
7801         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
7802         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
7803         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
7804         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
7805         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
7806         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
7807         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
7808         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
7809         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
7810         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
7811         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
7812         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
7813         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
7814         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
7815         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
7816         typo in off_t definition.
7817         * conform/data/net/if.h-data: New file.
7818         * conform/data/netinet/in.h-data: New file.
7819         * conform/data/netinet/tcp.h-data: New file.
7820         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
7821         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
7822         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
7823         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
7824         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
7825         and posix_typed_mem_open.
7826         * conform/data/sys/socket.h-data: New file.
7827         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
7828         * conform/data/sys/types.h-data: Add pthread_barrier_t,
7829         pthread_barrierattr_t, and pthread_spinlock_t.
7830         * conform/data/sys/un.h-data: New file.
7831         * conform/data/sys/utsname.h-data: New file.
7832
7833         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
7834         parameter.
7835         * inet/gethstbyad.c (gethostbyname): Likewise.
7836         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
7837         * inet/getipnodebyad.c (getipnodebyad): Likewise.
7838         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
7839         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
7840         Likewise.
7841         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
7842         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
7843         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
7844         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
7845         * resolv/gethnamaddr.c (gethostbyname): Likewise.
7846         * resolv/netdb.h (struct hostent): Fix type of h_length member.
7847         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
7848         and second parameter.
7849
7850         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
7851         == NULL.
7852
7853 2000-04-29  Andreas Jaeger  <aj@suse.de>
7854
7855         * conform/data/arpa/inet.h-data: New file.
7856
7857 2000-04-28  Geoff Clare <gwc@unisoft.com>
7858
7859         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
7860         path passed to ftw() or nftw() is an empty string.
7861         Closes PR libc/1710.
7862
7863 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7864
7865         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
7866         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
7867         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
7868         * localedata/tst-mbswcs4.c: New file.
7869         * localedata/tst-mbswcs5.c: New file.
7870
7871         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
7872         == NULL.  Little optimization.
7873
7874         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
7875         DT_PREINIT_ARRAYSZ).
7876         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
7877
7878         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
7879         overflows in conversion from ASCII.
7880
7881 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7882
7883         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
7884         * Makerules (full_config_sysdirs): Likewise.
7885         * MakeTAGS (full_config_sysdirs): Likewise.
7886
7887 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7888
7889         * .cvsignore: Remove linuxthreads.
7890         * po/.cvsignore: Remove *.pot.
7891         * posix/glob/.cvsignore: Removed.
7892         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
7893
7894 2000-04-25  Andreas Jaeger  <aj@suse.de>
7895
7896         * conform/Makefile (distribute): Also distribute contents of
7897         subdirectories.
7898
7899         * Makerules (no_deps): Remove abi-versions.h.
7900
7901         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
7902
7903 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7904
7905         * sysdeps/sparc/sparc64/elf/Dist: Remove.
7906         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
7907         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
7908         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
7909         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
7910         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
7911         objects.
7912
7913 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
7914
7915         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
7916
7917 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7918
7919         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
7920         * intl/l10nflist.c: Likewise.
7921
7922 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7923
7924         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
7925         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
7926         * intl/textdomain.c [!_LIBC]: Likewise.
7927         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
7928         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
7929         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
7930         syntax error.
7931
7932 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7933
7934         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
7935         character set conversion also in the case the translation was found
7936         after a hash collision or through binary search.  Store the maximum
7937         index together with the converted message.  Use iconv() when available.
7938         In case of out of memory during conversion, return the unconverted
7939         translated string, not NULL.
7940
7941 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7942
7943         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
7944         to avoid name clashes with the ia32 linker.
7945
7946 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7947
7948         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
7949         handling.
7950
7951 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7952
7953         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
7954         strtoumax, strfry, and memfrob.
7955         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
7956         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7957
7958         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
7959         if this function is available.
7960
7961         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
7962         all values.
7963
7964 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
7965
7966         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
7967
7968 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7969
7970         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
7971         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
7972         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
7973         * localedata/tst-mbswcs3.c: New file.
7974
7975 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
7976
7977         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
7978         characters.  Don't handle incomplete characters as errors.
7979         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
7980         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
7981         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
7982         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
7983         * localedata/tst-mbswcs2.c: New file.
7984
7985         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
7986         stored character in state in UNPACK_BYTES macro.
7987         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
7988         test for available characters, handle result of BODY code correctly.
7989         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
7990         (distribute): Add tst-mbswcs.sh.
7991         Add rule to run tst-mbswcs.sh.
7992         * localedata/tst-mbswcs.sh: New file.
7993         * localedata/tst-mbswcs1.c: New file.
7994
7995 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7996
7997         * nis/nis_callback.c (__nis_create_callback): Do failed memory
7998         allocation fixups centrally, fix __builtin_expect call, return NULL
7999         on failure, not NIS_NOMEMORY.
8000
8001 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8002
8003         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8004
8005         * intl/loadinfo.h (internal_function): Define if not already defined.
8006
8007 2000-04-27  Andreas Jaeger  <aj@suse.de>
8008
8009         * intl/libintl.h: Fix typo, reported by Bruno Haible
8010         <haible@clisp.cons.org>.
8011
8012 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8013
8014         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8015         setting the state to GMON_PROF_BUSY.
8016
8017 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8018
8019         * elf/dl-profile.c (_dl_start_profile): define all variables which
8020         do not have to be global as local variables.
8021
8022         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8023         patch.  Keep needed tests for failed memory allocation.
8024
8025         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8026         __builtin_expect saying that we don't normally expect to profile.
8027
8028         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8029         __builtin_expect where desirable.
8030
8031 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8032
8033         * manual/Makefile (chapters): Add syslog.
8034         * manual/syslog.texi: New file.
8035         * manual/math.texi: Fix references.
8036         * manual/terminal.texi: Likewise.
8037         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8038
8039 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8042         stdlib.h was not included or __USE_XOPEN not defined.
8043
8044 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8045
8046         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8047         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8048
8049 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8050
8051         * manual/examples/subopt.c (mount_opts): Add missing terminating
8052         entry.
8053         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8054
8055         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8056         * libio/ftello.c: Likewise.
8057         * libio/ftello64.c: Likewise.
8058         * libio/ioftell.c: Likewise.
8059         * sysdeps/generic/memrchr.c: Likewise.
8060         * sysdeps/posix/libc_fatal.c: Likewise.
8061         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8062         * misc/fstab.c: Include <string.h> for strcmp prototype.
8063         * sysdeps/generic/ldsodefs.h: Likewise.
8064         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8065         Patch by Kurt Roeckx <Q@ping.be>.
8066
8067         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8068         Remove db-open.  Change all uses.
8069         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8070
8071 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8072
8073         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8074         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8075         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8076         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8077         with .set noat/at to shut up warnings.
8078         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8079         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8080         compilation if __NR_pciconfig_iobase is not defined.
8081         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8082         Add alias.
8083
8084 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8085
8086         * manual/sysinfo.texi: Fix typo.
8087         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8088         Replace "high precision time" with "high accuracy clock".
8089         Fix language.
8090         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8091
8092         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8093         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8094         instead of malloc.
8095         * nis/nis_subr.c: Use __builtin_expect.
8096         * nis/ypclnt.c: Likewise.
8097         * nis/nis_getservlist.c: Likewise.
8098         * nis/nis_creategroup.c: Likewise.
8099
8100         * nis/nis_callback.c (__nis_create_callback): Check result of
8101         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8102         (__nis_destroy_callback): Fix memory leaks.
8103
8104 2000-04-21  Andreas Jaeger  <aj@suse.de>
8105
8106         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8107         * sysdeps/mips/mips64/add_n.S: Likewise.
8108         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8109         * sysdeps/mips/mips64/lshift.S: Likewise.
8110         * sysdeps/mips/mips64/mul_1.S: Likewise.
8111         * sysdeps/mips/mips64/rshift.S: Likewise.
8112         * sysdeps/mips/mips64/setjmp.S: Likewise.
8113         * sysdeps/mips/mips64/sub_n.S: Likewise.
8114         * sysdeps/mips/mips64/submul_1.S: Likewise
8115         * sysdeps/unix/mips/sysdep.S: Likewise.
8116
8117         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8118         and update comment.  The strtab from _dl_relocate_object can be
8119         used.
8120
8121 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8122
8123         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8124         * iconv/iconv_close.c (iconv_close): Likewise.
8125         * iconv/iconv_open.c (iconv_open): Likewise.
8126
8127         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8128         __builtin_expect where useful.
8129
8130         * grp/initgroups.c (initgroups): Test for result of memory
8131         allocation and punt if it fails.
8132
8133         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8134         * grp/fgetgrent.c (fgetfrent): Likewise.
8135         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8136
8137 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8138
8139         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8140
8141 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8142
8143         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8144         don't search for NUL byte to decrement counter.
8145         Reported by Ulrich.Brink@sap.com.
8146
8147         * iconv/gconv_simple.c: Define separate functions to convert from
8148         UCS4/UCS4-LE to the internal encoding.
8149         * iconv/gconv_builtin.h: Use separate functions to convert from
8150         UCS4/UCS4-LE to the internal encoding.
8151         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8152         __gconv_transform_ucs4le_internal.
8153
8154         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8155         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8156
8157         * iconv/skeleton.c: Add some more __builtin_expect.
8158         * iconv/loop.c: Likewise.
8159
8160 2000-03-08  H.J. Lu  <hjl@gnu.org>
8161
8162         * posix/regex.c (regex_compile): Correctly handle "\{" when
8163         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8164
8165 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8166
8167         * manual/stdio.texi: Give advise about handling error when using
8168         stream functions.
8169         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8170
8171 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8172
8173         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8174         field to nelems * sizeof (uint32_t).
8175         * locale/programs/ld-address.c (address_output): Align word fields
8176         properly.
8177         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8178         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8179         field.
8180         Avoid giving arbitrary garbage in the crncystr field.
8181         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8182         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8183         fields.
8184         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8185         Don't restart idx pointers to idx end at the decimal_point_wc field.
8186         * locale/programs/ld-time.c (time_output): week_1stday should be
8187         word, not byte.  Align it properly.
8188
8189 2000-04-19  H.J. Lu  <hjl@gnu.org>
8190
8191         * csu/gmon-start.c (_start): Declared as "extern void".
8192         (etext): Likewise.
8193
8194 2000-04-18  Andreas Jaeger  <aj@suse.de>
8195
8196         * manual/install.texi (Running make install): Don't mention utmpd
8197         anymore.
8198
8199 2000-04-18  Andreas Jaeger  <aj@suse.de>
8200
8201         * linuxthreads/Versions: Use ld instead of ld.so.
8202
8203         * elf/Makefile (ld-map): Use ld.map.
8204
8205         * Versions.def: Use ld instead of ld.so.
8206         * elf/Versions: Likewise.
8207         * sysdeps/mach/hurd/Versions: Likewise.
8208
8209 2000-04-20  Andreas Jaeger  <aj@suse.de>
8210
8211         * elf/rtld.c (print_statistics): Move ifndef further up.
8212         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8213         (dl_main): Likewise.
8214
8215 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8216
8217         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8218         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8219
8220         * po/cs.po: Update from translation team.
8221
8222         * sysdeps/generic/updwtmp.c: Remove daemon support.
8223
8224         * login/Makefile (routines): Remove utmp_daemon.
8225
8226         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8227         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8228         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8229         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8230
8231         * elf/rtld.c: Display statitics option also if hp timing is not
8232         available.
8233
8234         * login/programs/connection.c: Removed.
8235         * login/programs/database.c Removed.
8236         * login/programs/error.c: Removed.
8237         * login/programs/request.c: Removed.
8238         * login/programs/xtmp.c: Removed.
8239         * login/programs/xtmp.h: Removed.
8240         * login/Makefile: Remove rules for utmpd.
8241         * login/README.utmpd: Removed.
8242         * login/utmp_daemon.c: Removed.
8243         * login/getutent_r.c: Remove references to daemon functions.
8244         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8245         declaration.
8246
8247 2000-04-18  Andreas Jaeger  <aj@suse.de>
8248
8249         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8250         2.2 for libnsl, libresolv, librt, libnss_*.
8251
8252         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8253
8254         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8255
8256 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8257
8258         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8259         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8260         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8261         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8262         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8263         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8264         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8265         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8266         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8267         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8268         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8269         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8270         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8271         it here.
8272         * sysdeps/unix/sysv/aix/msync.c: New file.
8273         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8274         * sysdeps/unix/sysv/aix/net/if.h: New file.
8275         * sysdeps/unix/sysv/aix/pipe.c: New file.
8276         * sysdeps/unix/sysv/aix/poll.c: New file.
8277         * sysdeps/unix/sysv/aix/rename.c: New file.
8278         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8279         * sysdeps/unix/sysv/aix/select.c: New file.
8280         * sysdeps/unix/sysv/aix/semctl.c: New file.
8281         * sysdeps/unix/sysv/aix/semget.c: New file.
8282         * sysdeps/unix/sysv/aix/semop.c: New file.
8283         * sysdeps/unix/sysv/aix/sendto.c: New file.
8284         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8285         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8286         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8287         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8288         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8289         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8290         * sysdeps/unix/sysv/aix/setsid.c: New file.
8291         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8292         * sysdeps/unix/sysv/aix/shmat.c: New file.
8293         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8294         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8295         * sysdeps/unix/sysv/aix/shmget.c: New file.
8296         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8297         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8298         * sysdeps/unix/sysv/aix/socket.c: New file.
8299         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8300         * sysdeps/unix/sysv/aix/speed.c: New file.
8301         * sysdeps/unix/sysv/aix/symlink.c: New file.
8302         * sysdeps/unix/sysv/aix/sync.c: New file.
8303         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8304         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8305         * sysdeps/unix/sysv/aix/times.c: New file.
8306         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8307         * sysdeps/unix/sysv/aix/umask.c: New file.
8308         * sysdeps/unix/sysv/aix/unlink.c: New file.
8309         * sysdeps/unix/sysv/aix/ustat.c: New file.
8310         * sysdeps/unix/sysv/aix/utimes.c: New file.
8311
8312 2000-04-18  Andreas Jaeger  <aj@suse.de>
8313
8314         * manual/startup.texi (Environment Access): Fix putenv prototype
8315         according to recent changes.
8316         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8317         PR libc/1692.
8318
8319         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8320         needed.
8321
8322 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8323
8324         * posix/Makefile (tests): Add tst-getaddrinfo.
8325         * posix/tst-getaddrinfo.c: New file.
8326
8327 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8328
8329         * manual/sysinfo.texi: Document that umount2 is not widely available.
8330
8331         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8332         signal timing is not really implemented.
8333
8334 2000-04-17  Andreas Jaeger  <aj@suse.de>
8335
8336         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8337
8338 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8339
8340         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8341         and inst_libdir.
8342
8343 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8344
8345         * manual/intro.texi: Change reference from System Information to
8346         System Management.
8347         * manual/users.texi: Likewise.
8348         * manual/conf.texi: Likewise.
8349         * manual/sysinfo.texi: Document mount, umount, and umount2.
8350         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8351
8352 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8353
8354         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8355         Create wnumstr as well as numstr to support wide character output
8356         correctly.
8357
8358 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8359
8360         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8361         modification and move it...
8362         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8363         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8364         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8365         switch to $(LD) on sparc-linux.
8366
8367 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8368
8369         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8370         and setresuid from sysdep_routines.
8371
8372 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8373
8374         * manual/Makefile (chapters): Add resource.
8375
8376         * manual/time.texi: Move section on resources to...
8377         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8378         and vtimes.
8379         * manual/setjmp.texi: Adjust back reference.
8380         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8381
8382         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8383         definition.
8384         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8385         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8386         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8387         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8388         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8389         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8390         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8391         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8392         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8393         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8394         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8395         * sysdeps/unix/sysv/aix/Implies: New file.
8396         * sysdeps/unix/sysv/aix/Versions: New file.
8397         * sysdeps/unix/sysv/aix/bind.c: New file.
8398         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8399         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8400         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8401         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8402         * sysdeps/unix/sysv/aix/chdir.c: New file.
8403         * sysdeps/unix/sysv/aix/chmod.c: New file.
8404         * sysdeps/unix/sysv/aix/chroot.c: New file.
8405         * sysdeps/unix/sysv/aix/creat.c: New file.
8406         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8407         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8408         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8409         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8410         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8411         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8412         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8413         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8414         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8415         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8416         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8417         * sysdeps/unix/sysv/aix/link.c: New file.
8418         * sysdeps/unix/sysv/aix/madvise.c: New file.
8419         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8420         * sysdeps/unix/sysv/aix/mknod.c: New file.
8421         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8422         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8423         * sysdeps/unix/sysv/aix/msgget.c: New file.
8424         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8425
8426 2000-04-17  Andreas Jaeger  <aj@suse.de>
8427
8428         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8429         as suggested by Ulrich Drepper.
8430         (__dl_runtime_resolve): Remove unused variable, initialize sym
8431         directly.
8432         (RTLD_START): Document OFFSET_GP_GOT.
8433         (OFFSET_GP_GOT): New magic value.
8434         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8435         (elf_machine_got_rel): Only declare strtab if needed.
8436         (elf_machine_relplt): Removed, it's not needed.
8437         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8438
8439         * sysdeps/mips/add_n.S: Add newline at EOF.
8440         * sysdeps/mips/rshift.S: Likewise.
8441         * sysdeps/mips/mul_1.S: Likewise.
8442         * sysdeps/mips/lshift.S: Likewise.
8443         * sysdeps/mips/addmul_1.S: Likewise.
8444
8445 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8446
8447         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8448
8449         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8450         * elf/dl-lookup.c: Likewise.
8451         * elf/dl-init.c (_dl_init): Likewise.
8452         * elf/dl-fini.c (_dl_fini): Likewise.
8453         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8454         * elf/dl-close.c (_dl_close): Likewise.
8455         * elf/rtld.c (_dl_start_final): Likewise.
8456
8457         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8458
8459 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8460
8461         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8462         only fall back on using Linux.
8463
8464         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8465         Before testing versions check that we actually loaded the object
8466         and whether we are in trace mode.  If not loaded during tracing don't
8467         test versions in this object.
8468         (_dl_check_all_versions): Take new parameter and pass to
8469         _dl_check_map_versions.
8470         * sysdeps/generic/ldsodefs.h: Update prototypes for
8471         _dl_check_all_versions and _dl_check_map_versions.
8472         * elf/rtld.c (struct version_check_args): Add dotrace.
8473         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8474         (dl_main): Pass info about trace mode to version_check_doit.
8475         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8476         _dl_check_all_versions.
8477
8478         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8479         and getutmpx.
8480         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8481
8482         * manual/argp.texi: Document index parameter of argp_parse.
8483         Fix typo.
8484         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8485
8486 2000-04-14  Andreas Jaeger  <aj@suse.de>
8487
8488         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8489         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8490
8491         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8492
8493 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8494
8495         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8496         compat_symbol call for old adjtime.
8497
8498         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8499         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8500
8501         * posix/Makefile (headers): Add spawn.h.
8502         (distribute): Add spawn_int.h.
8503         (routines): Add spawn_faction_init, spawn_faction_destroy,
8504         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8505         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8506         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8507         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8508         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8509         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8510         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8511         posix_spawnattr_init, posix_spawnattr_destroy,
8512         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8513         posix_spawnattr_getflags, posix_spawnattr_setflags,
8514         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8515         and posix_spawnp.
8516         * posix/spawn.c: New file.
8517         * posix/spawn.h: New file.
8518         * posix/spawn_faction_addclose.c: New file.
8519         * posix/spawn_faction_adddup2.c: New file.
8520         * posix/spawn_faction_addopen.c: New file.
8521         * posix/spawn_faction_destroy.c: New file.
8522         * posix/spawn_faction_init.c: New file.
8523         * posix/spawn_int.h: New file.
8524         * posix/spawnattr_destroy.c: New file.
8525         * posix/spawnattr_getdefault.c: New file.
8526         * posix/spawnattr_getflags.c: New file.
8527         * posix/spawnattr_getpgroup.c: New file.
8528         * posix/spawnattr_getschedparam.c: New file.
8529         * posix/spawnattr_getschedpolicy.c: New file.
8530         * posix/spawnattr_getsigmask.c: New file.
8531         * posix/spawnattr_init.c: New file.
8532         * posix/spawnattr_setdefault.c: New file.
8533         * posix/spawnattr_setflags.c: New file.
8534         * posix/spawnattr_setpgroup.c: New file.
8535         * posix/spawnattr_setschedparam.c: New file.
8536         * posix/spawnattr_setschedpolicy.c: New file.
8537         * posix/spawnattr_setsigmask.c: New file.
8538         * posix/spawni.c: New file.
8539         * posix/spawnp.c: New file.
8540
8541         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8542         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8543
8544 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8545
8546         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8547         * malloc/malloc.c: Implement posix_memalign for glibc.
8548         * include/stdlib.h: Add prototype for __posix_memalign.
8549         * stdlib/stdlib.h: Add prototype for posix_memalign.
8550
8551 2000-04-14  Andreas Jaeger  <aj@suse.de>
8552
8553         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8554         symidx correctly.
8555         (elf_machine_got_rel): Cast sym correctly.
8556
8557         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8558         * sysdeps/mips/addmul_1.S: Likewise.
8559         * sysdeps/mips/lshift.S: Likewise.
8560         * sysdeps/mips/mul_1.S: Likewise.
8561         * sysdeps/mips/rshift.S: Likewise.
8562         * sysdeps/mips/sub_n.S: Likewise.
8563         * sysdeps/mips/submul_1.S: Likewise.
8564
8565         * stdlib/stdlib.h: Fix typo in comment.
8566
8567         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8568         2.2 for libdl, ld and libm.
8569
8570         * sysdeps/generic/madvise.c: Fix typos.
8571
8572         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8573
8574         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8575
8576         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8577         warnings.
8578
8579 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8580
8581         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8582         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8583         Make old name weak alias.
8584         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8585         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8586         Make old name weak alias.
8587         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8588
8589         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8590         posix_fallocate, and posix_fallocate64.
8591         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8592         posix_fallocate, and posix_fallocate64.
8593         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8594         posix_fallocate, and posix_fallocate64.
8595         * sysdeps/generic/fadvise.c: New file.
8596         * sysdeps/generic/fadvise64.c: New file.
8597         * sysdeps/generic/fallocate.c: New file.
8598         * sysdeps/generic/fallocate64.c: New file.
8599         * sysdeps/posix/fallocate.c: New file.
8600         * sysdeps/posix/fallocate64.c: New file.
8601         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8602         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8603         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8604         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8605         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8606         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8607         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8608         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8609         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8610
8611         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8612         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8613
8614 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8615
8616         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8617         * misc/sys/mman.h (posix_madvise): Add prototype.
8618         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8619         old name and posix_madvise weak aliases.
8620         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8621         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8622         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8623         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8624         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8625         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8626         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8627
8628 2000-04-13  Andreas Jaeger  <aj@suse.de>
8629
8630         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8631         versioning.
8632         (elf_machine_got_rel): Only add runtime display if needed.
8633         (elf_machine_got_rel): Handle symbol versioning.
8634
8635 2000-04-13  Andreas Jaeger  <aj@suse.de>
8636
8637         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8638
8639         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8640         default.
8641
8642         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8643         with some applications.
8644         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8645
8646         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8647         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8648         * sysdeps/mips/setjmp.S: Likewise.
8649
8650         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8651
8652 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8653
8654         * posix/globtest.sh: Work around inconsistency with expanding ~/
8655         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8656
8657 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8658
8659         * posix/getconf.c: Add support for many more POSIX options.
8660         * sysdeps/posix/sysconf.c: Likewise.
8661         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8662         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8663         _POSIX_SHELL.
8664         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8665         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8666         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8667         CLOCK_THREAD_CPUTIME_ID.
8668         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8669         CLOCK_PROCESS_CPUTIME_ID.
8670         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8671         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8672         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8673         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8674
8675         * malloc/Makefile (tests): Add tst-calloc.
8676         * malloc/tst-calloc.c: New file.
8677
8678         * sysdeps/arm/libm-test-ulps: New file.
8679
8680         * malloc/malloc.c: Undo all of today's changes.
8681
8682         * locale/programs/locale.c (show_info): Don't try to look into
8683         data for LC_ALL (there is none).
8684
8685         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8686         avoid writing over boundary.
8687         Patch by Greg McGary <gkm@eng.ascend.com>.
8688
8689         * sysdeps/arm/memprof.h: New file.
8690
8691 2000-04-12  Andreas Jaeger  <aj@suse.de>
8692
8693         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8694
8695         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8696         for memmem declaration.
8697
8698 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8699
8700         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8701         to -1.
8702         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8703
8704         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8705         mode is invalid.
8706         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8707         Patch by Bart Veer <bartv@redhat.com>.
8708
8709         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8710         function interface.
8711
8712 2000-04-11  Andreas Jaeger  <aj@suse.de>
8713
8714         * sysdeps/mips/dl-machine.h: Update some comments.
8715         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8716
8717 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8718
8719         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8720         _POSIX_SHARED_MEMORY_OBJECTS.
8721
8722         * rt/Makefile (tests): Add tst-shm.
8723         Add rules to generate tst-shm.
8724         * rt/tst-shm.c: New file.
8725
8726         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8727         for descriptor.
8728
8729         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8730         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8731         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8732         * sysdeps/generic/shm_open.c: New file.
8733         * sysdeps/generic/shm_unlink.c: New file.
8734         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8735         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8736         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8737          __endmntent, __getmntent_r, __setmntent, and __statfs.
8738
8739         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8740         fragmentation by allocating new memory at the end instead of
8741         reallocating.
8742
8743         * posix/globtest.sh: Fix last change.
8744
8745 2000-04-10  Philip Blundell  <philb@gnu.org>
8746
8747         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8748         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8749         IPV6_DROP_MEMBERSHIP.
8750         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
8751         Likewise.
8752
8753 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8754
8755         * elf/readlib (process_file): Close streams in case of an error.
8756
8757 2000-04-09  Andreas Jaeger  <aj@suse.de>
8758
8759         * elf/readlib.c (process_file): Check if file is big enough to
8760         contain aout and ELF headers.
8761         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
8762
8763 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
8764
8765         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
8766
8767 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8768
8769         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
8770         stream unbuffered.
8771         * rt/Makefile (tests): Add tst-clock.
8772         Add rules to build tst-clock.
8773         * rt/tst-clock.c: New file.
8774         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
8775         about initialization of nsec.
8776         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
8777         about initialization of freq.  Set retval to zero if successful.
8778         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
8779
8780 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8781
8782         * Versions.def (librt): Add GLIBC_2.2.
8783         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
8784         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
8785         timer_getoverr, timer_gettime, and timer_settime.
8786         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
8787         clock_settime, timer_create, timer_delete, timer_getoverrun,
8788         timer_gettime, and timer_settime.
8789         * sysdeps/generic/clock_getcpuclockid.c: New file.
8790         * sysdeps/generic/get_clockfreq.c: New file.
8791         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
8792         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
8793         * sysdeps/mach/hurd/i386/bits/time.h: New file.
8794         * sysdeps/unix/i386/i586/clock_getres.c: New file.
8795         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
8796         * sysdeps/unix/i386/i686/Implies: New file.
8797         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
8798         * time/Makefile (routines): Move clock_getres, clock_gettime,
8799         clock_settime, timer_create, timer_delete, timer_getoverr,
8800         timer_gettime, and timer_settime to rt/Makefile.
8801         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
8802         clock_settime, timer_create, timer_delete, timer_getoverrun,
8803         timer_gettime, and timer_settime.
8804         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
8805
8806         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
8807         and not const as attribute name.
8808
8809 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
8810
8811         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
8812
8813 2000-04-10  Andreas Schwab  <schwab@suse.de>
8814
8815         * posix/globtest.sh: Skip tests that depend on unreadable
8816         directories if run as root.
8817
8818 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8819
8820         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
8821         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
8822
8823 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8824
8825         * sysdeps/unix/clock_gettime.c: New file.
8826         * sysdeps/unix/clock_settime.c: New file.
8827         * sysdeps/posix/clock_getres.c: New file.
8828
8829         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
8830
8831         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
8832         lseek call be passing in a buffer which never allow a successful
8833         first getdents syscall if not at leas the initial entry can be
8834         stored in the user buffer.
8835
8836         * localedata/Makefile: Add rules to clean up directories created by
8837         new strfmon tests.
8838
8839 2000-04-09  Geoff Clare  <gwc@unisoft.com>
8840
8841         * localedata/tst-fmon.data: Added new tests for strfmon()
8842         using test locales with all combinations of cs_precedes,
8843         sign_posn and sep_by_space.
8844         * localedata/tst-fmon.sh: Updated to support the new tests.
8845         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
8846         the localedef source for the new strfmon() test locale.
8847         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
8848         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
8849         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
8850         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
8851         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
8852         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
8853         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
8854         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
8855         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
8856         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
8857         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
8858         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
8859         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
8860         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
8861
8862         * stdlib/strfmon.c: Correct problems with missing or extra
8863         spaces for unusual combinations of sign_posn and sep_by_space.
8864         Improved left-precision alignment code.
8865
8866 2000-04-07  Andreas Jaeger  <aj@suse.de>
8867
8868         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
8869
8870 2000-04-10  Andreas Jaeger  <aj@suse.de>
8871
8872         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
8873
8874 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8875
8876         Implement handling of restartable conversion functions according to
8877         ISO C.
8878         * iconv/gconv.h (__gconv_fct): Add additional parameter.
8879         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
8880         * iconv/gconv.c: Pass additional parameter to conversion function.
8881         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
8882         (internal_ucs4le_loop_single): New function.
8883         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
8884         (__gconv_transform_internal_ascii): Likewise.
8885         (__gconv_transform_internal_utf8): Likewise.
8886         (__gconv_transform_utf8_internal): Likewise.
8887         (__gconv_transform_ucs2_internal): Likewise.
8888         (__gconv_transform_internal_ucs2): Likewise.
8889         (__gconv_transform_ucs2reverse_internal): Likewise.
8890         (__gconv_transform_internal_ucs2reverse): Likewise.
8891         (internal_ucs4le_loop_unaligned): Before return
8892         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
8893         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
8894         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
8895         * iconv/loop.c: Fit in definition of function to convert one character
8896         for processing of left-over bytes from the state object.
8897         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
8898         inend to match names in loop functions.
8899         (RESET_INPUT_BUFFER): Change apprpriately.
8900         (gconv): If needed, call function to process bytes from the state
8901         object.  Similar at the end: store left over bytes if input is
8902         incomplete.
8903         Take extra argument and add new argument to all calls of the
8904         conversion function.
8905         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
8906         information in the state object to not conflict with length count.
8907         * iconvdata/iso-2022-jp.c: Likewise.
8908         * iconvdata/iso-2022-kr.c: Likewise.
8909         * iconvdata/unicode.c: Adjust for change change in parameters of
8910         skeleton function.
8911         * iconvdata/utf-16.c: Likewise.
8912         * libio/iofwide.c: Add new parameter to all calls of conversion
8913         function.
8914         * wcsmbs/btowc.c: Likewise.
8915         * wcsmbs/mbrtowc.c: Likewise.
8916         * wcsmbs/mbsnrtowcs.c: Likewise.
8917         * wcsmbs/mbsrtowcs.c: Likewise.
8918         * wcsmbs/wcrtomb.c: Likewise.
8919         * wcsmbs/wcsnrtombs.c: Likewise.
8920         * wcsmbs/wcsrtombs.c: Likewise.
8921         * wcsmbs/wctob.c: Likewise.
8922
8923         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
8924         MAX_NEEDED_INPUT.
8925
8926 2000-04-07  Andreas Jaeger  <aj@suse.de>
8927
8928         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
8929         newer kernels.
8930
8931 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
8932
8933         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
8934         element a union to allow byte access.
8935         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
8936         mbstate_t.
8937         * iconvdata/iso-2022-jp.c: Likewise.
8938         * iconvdata/iso-2022-kr.c: Likewise.
8939         * wcsmbs/mbsinit.c: Likewise.
8940         * stdlib/mblen.c: Likewise.
8941         * stdio-common/printf-parse.h: Likewise.
8942
8943 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
8944
8945         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
8946         kernel does not allow relative seeks on descriptors associated
8947         with directories.  Go back to get the position in the directory
8948         every time we enter the function.  Return -1 and set errno if one
8949         entry could be read from the kernel but does not fit into the
8950         buffer passed in by the user.
8951
8952         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
8953         Support ..(2).. ellipsis.
8954         (parse_charmap): Recognize ..(2).. etc and pass step down.
8955         Correctly generate names for UCS4 characters.
8956
8957         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
8958         (ctype_finish): We know the wide character value for <SP>,
8959         don't search.
8960         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
8961         (charclass_ucs4_ellipsis): Likewise.
8962         (read_translit_ignore_entry): Store ellipsis step.
8963         (ctype_read): Recognize ..(2).. etc and pass step down.
8964
8965         * locale/programs/linereader.c (lr_token): When seeing comment
8966         character ignore only rest of line in sources but stop at escaped
8967         newline.
8968         Recognize ..(2).. and ....(2).....
8969
8970         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
8971         and tok_ellipsis4_2.
8972
8973 2000-04-06  Andreas Jaeger  <aj@suse.de>
8974
8975         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
8976         removed, remove it here also.
8977         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8978         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
8979         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
8980         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
8981
8982 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
8983
8984         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
8985         include bits/sigcontext.h.
8986         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8987
8988 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
8989
8990         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
8991         collation symbol definition.  Value in quivalence definition must
8992         be defined, don't check that it is not.
8993
8994         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
8995         values as character names.
8996
8997         * locale/programs/ld-ctype.c (get_character): Handle missing
8998         repertoire map correctly.
8999
9000 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9001
9002         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9003         because it is used in generic code.
9004         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9005         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9006         * intl/gettext.c: Include <locale.h>.
9007         * intl/ngettext.c: Likewise.
9008
9009 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9010
9011         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9012         socklen_t type for size.
9013         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9014         init function interface.
9015         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9016         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9017         sys/ucontext.h.
9018         (__jmp_buf): Declare the whole type structure here, don't use
9019         ucontext.
9020
9021 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9022
9023         * iconv/skeleton.c (put16u): Fix typo.
9024         Reported by Bruno Haible <haible@ilog.fr>.
9025
9026         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9027         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9028         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9029         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9030         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9031         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9032
9033         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9034         * Makefile (distribute): Add abi-versions.awk and
9035         firstversions.awk.
9036         Patches by Torsten Duwe <duwe@caldera.de>.
9037
9038 2000-04-05  Andreas Schwab  <schwab@suse.de>
9039
9040         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9041
9042 2000-04-05  Andreas Schwab  <schwab@suse.de>
9043
9044         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9045         entry point, used on Hurd.
9046
9047 2000-04-04  Andreas Jaeger  <aj@suse.de>
9048
9049         * intl/Makefile: Only run the gettext test with shared libraries.
9050
9051 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9052
9053         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9054         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9055
9056 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9057
9058         * Makeconfig: Undo last change.
9059         * configure.in: If --disable-shared was given, don't set VERSIONING,
9060         don't define DO_VERSIONING, and don't give scare warning for no
9061         versioning.
9062         * configure: Regenerated.
9063
9064 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9065
9066         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9067
9068 2000-04-04  Andreas Jaeger  <aj@suse.de>
9069
9070         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9071
9072 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9073
9074         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9075         STV_HIDDEN and STV_INTERNAL during lookup.
9076         (profile_fixup): Likewise.
9077         * elf/dl-reloc.c (RESOLVE): Likewise.
9078
9079         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9080         unaligned so that it compiles for system which need unaligned
9081         access handling.
9082
9083 2000-04-04  Andreas Schwab  <schwab@suse.de>
9084
9085         * elf/cache.c (print_entry): Only look at the type field when
9086         printing the type.
9087
9088 2000-04-04  Andreas Schwab  <schwab@suse.de>
9089
9090         * iconvdata/big5.c (BODY): Fix typo.
9091
9092 2000-04-04  Andreas Schwab  <schwab@suse.de>
9093
9094         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9095         function interface.  Remove unused _dl_start_user entry point.
9096
9097 2000-04-03  Andreas Jaeger  <aj@suse.de>
9098
9099         * include/arpa/inet.h (__inet_aton): Add protoype.
9100
9101 2000-04-01  Andreas Jaeger  <aj@suse.de>
9102
9103         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9104
9105         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9106         * sysdeps/mach/mips/thread_state.h: Likewise.
9107
9108         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9109         * sysdeps/generic/fegetenv.c: Likewise.
9110         * sysdeps/generic/fesetenv.c: Likewise.
9111         * sysdeps/generic/feupdateenv.c: Likewise.
9112         * sysdeps/generic/fraiseexcpt.c: Likewise.
9113         * sysdeps/generic/fsetexcptflg.c: Likewise.
9114         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9115         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9116         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9117         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9118
9119 2000-04-02  H.J. Lu  <hjl@gnu.org>
9120
9121         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9122
9123 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9124
9125         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9126         (add_name_to_object): Add cast in malloc call.
9127         (fillin_rpath): Optimize loop to initialize ->status a bit.
9128
9129         * sysdeps/i386/dl-machine.h: Undo last change.
9130         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9131         Restore %edx register after call here.
9132
9133         * sysdeps/arm/atomicity.h: New file.
9134         Contributed by Jesper Skov <jskov@redhat.com>.
9135
9136 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9137
9138         * Makeconfig (preprocess-versions): Undo last change.
9139         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9140
9141         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9142         here, before we might move the stack.
9143         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9144         (init1): And not here.
9145
9146         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9147         change, to restore argc value in call-clobbered register after
9148         RTLD_START_SPECIAL_INIT, which will contain a call.
9149
9150         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9151         allocating and initializing L->l_initfini.
9152
9153         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9154
9155 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9156
9157         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9158         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9159         (open_path): Change type of fourth parameter.  Make pointer to array
9160         of pointers.  Create variable dirs with original type.
9161         Track whether any directory for the object exists and if not,
9162         change *DIRSP to (void*) -1 to signal there is no such search path.
9163         (_dl_map_object): Change all calls of open_path.
9164         Rewrite decompose_rpath calls.
9165
9166 2000-03-31  Andreas Schwab  <schwab@suse.de>
9167
9168         * string/strfry.c: Declare STATE as array of char instead of int
9169         and do not initialize it (done by initstate_r).  Pass correct
9170         size.
9171
9172 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9173
9174         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9175
9176         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9177         instruction out of the code.
9178
9179 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9180
9181         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9182         element at this position.
9183
9184         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9185         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9186         l_reldeps elements.
9187         * elf/dl-lookup.c (add_dependency): New function.
9188         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9189         dynamically loaded object.
9190         (_dl_lookup_symbol_skip): Likewise.
9191         (_dl_lookup_versioned_symbol): Likewise.
9192         (_dl_lookup_versioned_symbol_skip): Likewise.
9193         * elf/dl-open.c: Don't define _dl_load_lock here...
9194         * elf/rtld.c: ...but here...
9195         * elf/dl-support.c: ...and here.
9196         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9197         through relocation.
9198         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9199         relocations.
9200         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9201         anymore.
9202         * dlfcn/glrefmain.c: Add one more debug message.
9203
9204         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9205         command line.
9206         * Makerules (sysd-versions): Use ( ) instead of { }.
9207
9208         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9209         optimize for the non-debugging case.
9210         * elf/dl-lookup.c: Likewise.
9211         * sysdeps/generic/libc-start.c: Likewise.
9212
9213 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9214
9215         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9216         (init1): Don't initialize __environ here, since init already does it.
9217         (first_init): New function, broken out of _init.
9218         (_hurd_stack_setup): Use it.
9219         [SHARED] (_dl_init_first): New function, renamed from old _init.
9220         (init1) [SHARED]: Don't call posixland_init here.
9221         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9222         [SHARED] (_init): Define as alias for posixland_init.
9223         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9224         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9225         RTLD_START_SPECIAL_INIT before calling initializers.
9226         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9227         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9228         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9229         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9230
9231         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9232         since we define the function with the name `tmpfile'.
9233
9234         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9235         * hurd/Versions: Likewise.
9236
9237 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9238
9239         * elf/dl-runtime.c (fixup): Fix typo in comment.
9240
9241         * resolv/netdb.h (getnameinfo): All length parameters are of type
9242         socklen_t.
9243         * inet/getnameinfo.c: Likewise.
9244
9245 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9246
9247         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9248         (gethostname): Change type of second parameter to socklen_t.
9249         * include/unistd.h (__gethostname): Change type of second
9250         parameter to socklen_t.
9251         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9252         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9253         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9254         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9255         Likewise.
9256         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9257         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9258         Allow definition elsewhere.
9259         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9260         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9261         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9262         * sysdeps/generic/bits/types.h: Define __socklen_t.
9263         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9264         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9265         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9266         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9267         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9268         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9269         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9270
9271         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9272         (inet_lnaof): Likewise.
9273         (inet_netof): Likewise.
9274         (inet_network): Likewise.
9275         (inet_aton): Likewise.
9276         (inet_makeaddr): Change parameter types to in_addr_t.
9277         (inet_neta): Likewise.
9278         (inet_ntop): Change type of last parameter to socklen_t.
9279         (inet_aton): Only make available if __USE_MISC.
9280         (inet_neta): Likewise.
9281         (inet_net_ntop): Likewise.
9282         (inet_net_pton): Likewise.
9283         (inet_nsap_ntoa): Likewise.
9284
9285         * inet/in.h: Define in_port_t type.
9286         Define in_addr_t type.
9287         (struct in_addr): Use in_addr_t in definition.
9288         (IN_CLASSA): Use cast to in_addr_t.
9289         (IN_CLASSB): Likewise.
9290         (IN_CLASSC): Likewise.
9291         (IN_CLASSD): Likewise.
9292         (IN_EXPERIMENTAL): Likewise.
9293         (IN_BADCLASS): Likewise.
9294         (INADDR_ANY): Likewise.
9295         (INADDR_BROADCAST): Likewise.
9296         (INADDR_NONE): Likewise.
9297         (INADDR_LOOPBACK): Likewise.
9298         (INADDR_UNSPEC_GROUP): Likewise.
9299         (INADDR_ALLHOSTS_GROUP): Likewise.
9300         (INADDR_ALLRTRS_GROUP): Likewise.
9301         (INADDR_MAX_LOCAL_GROUP): Likewise.
9302         (struct sockaddr_in): Use in_port_t for sin_port element.
9303         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9304         Use uint8_t instead of u_int8_t.
9305
9306         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9307         Call __inet_aton instead of inet_aton.
9308         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9309
9310         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9311         (innetgr): Likewise.
9312         (struct addrinfo): Use socklen_t for ai_addrlen element.
9313
9314         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9315         IPV6_RECVERR): New defines.
9316
9317         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9318         * inet/getnetbyad.c: Likewise.
9319         * inet/getnetbyad_r.c: Likewise.
9320         * nis/nss_nis/nis-network.c: Likewise.
9321         * nis/nssplus_nis/nisplus-network.c: Likewise.
9322         * nss/nss_files/files-network.c: Likewise.
9323         * resolv/netdb.h: Define uint32_t if not already happened.
9324         Include bits/netdb.h.  Remove definition of struct netent.
9325         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9326         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9327         * sysdeps/generic/bits/netdb.h: New file.
9328         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9329
9330         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9331         (tests): Add glrefmain.
9332         Add rules to build modules and run tests.  Ignore result of glrefmain
9333         for now since it fails.
9334         * dlfcn/glrefmain.c: New file.
9335         * dlfcn/glreflib1.c: New file.
9336         * dlfcn/glreflib2.c: New file.
9337
9338         * test-skeleton.c: Include <string.h> for strsignal prototype.
9339
9340         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9341         to be missing.
9342
9343         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9344         former init-first.h.  Initialize __libc_multiple_libcs.
9345
9346 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9347
9348         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9349         #if expression for use of unaligned function to the one used in
9350         the definition of these functions.
9351         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9352         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9353         (internal_ucs4le_loop_unaligned): New function.
9354
9355         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9356         (tests): Add order.
9357         (module-names): Add dep1, dep2, dep3, and dep4.
9358         Add dependencies for dep* modules and order.
9359         Define rule for order.out which checks the result.
9360         * elf/dep1.c: New file.
9361         * elf/dep2.c: New file.
9362         * elf/dep3.c: New file.
9363         * elf/dep4.c: New file.
9364         * elf/order.c: New file.
9365
9366         * elf/dl-init.c: Fix typo in comment.
9367
9368 2000-03-31  Andreas Jaeger  <aj@suse.de>
9369
9370         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9371         init function interface.
9372         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9373
9374 2000-03-31  Andreas Jaeger  <aj@suse.de>
9375
9376         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9377         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9378         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9379         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9380         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9381
9382         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9383         anymore, update comment.
9384
9385         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9386
9387         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9388         SHLIB_COMPAT - the struct is always needed.
9389
9390 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9391
9392         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9393         * elf/dl-support.c: Define _dl_starting_up.
9394
9395 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9396
9397         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9398         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9399
9400         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9401
9402         * elf/Makefile (dl-routines): Remove preinit.
9403         * elf/Versions: Remove _dl_preinit.
9404         * elf/dl-preinit.c: Removed.  Move content into...
9405         * elf/dl-init.c: ...here.
9406         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9407
9408         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9409         elements.
9410
9411 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9412
9413         * stdlib/strfmon.c: Corrected problems with the code that
9414         sets default values for [np]_sep_by_space and
9415         [np]_sign_posn; also the new positive/negative alignment
9416         code from the previous patch was not quite right for
9417         [np]_sign_posn = 0.
9418
9419         * localedata/tst-fmon.data: Changes corresponding to the
9420         two sets of fixes made to stdlib/strfmon.c.
9421
9422 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9423
9424         * malloc/malloc.c: Declare bit flags UL so that they will not
9425         default to int size when being inverted.
9426
9427 2000-03-29  Andreas Jaeger  <aj@suse.de>
9428
9429         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9430         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9431
9432 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9433             Ralf Baechle <ralf@uni-koblenz.de>
9434
9435         * Makeconfig: Introduce new variable SHARED to mark code used in
9436         the shared library.
9437         * elf/dl-close.c: Use it instead of PIC.
9438         * elf/dl-load.c: Likewise.
9439         * elf/dl-open.c: Likewise.
9440         * hurd/geteuids.c: Likewise.
9441         * include/libc-symbols.h: Likewise.
9442         * include/shlib-compat.h: Likewise.
9443         * libio/freopen.c: Likewise.
9444         * linuxthreads/cancel.c: Likewise.
9445         * linuxthreads/pthread.c: Likewise.
9446         * linuxthreads/wrapsyscall.c: Likewise.
9447         * nss/nsswitch.c: Likewise.
9448         * stdio-common/vfprintf.c: Likewise.
9449         * sysdeps/arm/init-first.c: Likewise.
9450         * sysdeps/i386/init-first.c: Likewise
9451         * sysdeps/generic/init-first.c: Likewise.
9452         * sysdeps/generic/libc-start.c: Likewise.
9453         * sysdeps/mips/init-first.c: Likewise.
9454         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9455         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9456         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9457         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9458         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9459
9460         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9461
9462 2000-03-29  Andreas Jaeger  <aj@suse.de>
9463
9464         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9465         Use D_PTR to access relocated entries in l_info.
9466         (elf_machine_rela): Likewise.
9467
9468         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9469         Likewise.
9470         (elf_machine_rela): Likewise.
9471
9472         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9473         Likewise.
9474         (__elf_machine_fixup_plt): Likewise.
9475         (__process_machine_rela): Likewise.
9476
9477         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9478         (elf_machine_rela): Likewise.
9479
9480         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9481         (elf_machine_rel): Likewise.
9482
9483         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9484         (elf_machine_fixup_plt): Likewise.
9485         (elf_machine_rela): Likewise.
9486
9487 2000-03-29  Andreas Jaeger  <aj@suse.de>
9488
9489         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9490         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9491         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9492         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9493         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9494         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9495         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9496         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9497         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9498         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9499         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9500         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9501         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9502         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9503         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9504
9505         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9506         macros, remove K&R prototypes.
9507
9508 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9509
9510         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9511         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9512         (PR libc/1677).
9513
9514 2000-03-30  Andreas Jaeger  <aj@suse.de>
9515
9516         * misc/sys/cdefs.h: Remove K&R support.
9517
9518 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9519
9520         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9521         more cases.
9522         * iconv/loop.c: Likewise.
9523
9524 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9525
9526         * iconv/loop.c (put16): Remove __const. Fix access index.
9527         (put32): Remove __const. Use uint32_t instead of uint16_t.
9528         * iconv/skeleton.c: Likewise.
9529
9530 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9531
9532         * mach/Versions (libc: GLIBC_2.0)
9533         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9534         __vm_allocate on this.
9535         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9536         mutex- and spinlock-related symbols on this.
9537         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9538         New version set.  Lock-related symbols go here instead in this case.
9539         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9540         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9541         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9542         * hurd/Versions
9543         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9544         Put them here instead.
9545         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9546         New version set.  Those cthreads symbols go here instead in this case.
9547         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9548
9549 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9550
9551         * elf/dl-init.c (_dl_init): We don't need to call constructors
9552         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9553
9554         Implement dynamic determination of constructor/destructor order in
9555         the dynamic linker.
9556         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9557         (GLIBC_2.2): Add _dl_init.
9558         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9559         r_duplist is not anymore allocated separately.  l_initfini is and
9560         therefore free it if necessary.
9561         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9562         malloc block.  Otherwise allocate l_initfini list only.
9563         Put dependencies for the object in l_initfini list.
9564         Sort dependencies for the object to be loaded topologically.
9565         * elf/dl-fini.c: Before running the destructors sort the topologically.
9566         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9567         call constructors instead of iterating over the pointers.  Get list of
9568         objects for which to run constructors from l_initfini element. Accept
9569         argc, argv, and env as parameters and pass them to the constructors.
9570         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9571         with size of dynamic section.
9572         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9573         _dl_init_next and calling constructors ourself.
9574         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9575         Take argc, argv, and env as parameters and pass them to the
9576         constructors.  Rewrite to call all constructors and not iterate over
9577         the pointers.
9578         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9579         precompute l_initcount and l_preinitcount.
9580         * elf/link.h (struct link_map): Add l_ldnum member.
9581         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9582         l_initcount, and l_preinitcount.  Add l_initfini.
9583         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9584         one for _dl_init.
9585         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9586         function interface.
9587         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9588         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9589         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9590         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9591         conventions now match.
9592
9593         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9594         effect for shared objects.  Don't emit message and call only for
9595         static library.
9596
9597 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9598
9599         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9600         CSA_Z243.4-1985-1..UCS2.
9601         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9602         ISO-8859-10..UCS2.
9603
9604 2000-03-29  Andreas Jaeger  <aj@suse.de>
9605
9606         * include/unistd.h: Remove duplicate entry for __rmdir.
9607         Remove declaration of __mkdir since __mkdir is declared in
9608         sys/stat.h.
9609
9610         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9611         by Michael Deutschmann <michael@talamasca.ocis.net>.
9612
9613         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9614         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9615         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9616         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9617         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9618
9619 2000-03-28  Andreas Jaeger  <aj@suse.de>
9620
9621         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9622         declaration, the prototype is defined via bits/mathcalls.h.
9623         (__sincosf): Likewise.
9624         (__sincosl): Likewise.
9625         (ldexp): Likewise.
9626         (ldexpf): Likewise.
9627         (ldexpl): Likewise.
9628         (__finite): Likewise.
9629         (__inline_mathcodeNP): New macro without prototype
9630         declarations.
9631         (__inline_mathcodeNP2): Likewise.
9632         (__inline_mathcodeNP3): Likewise.
9633         (__inline_mathcodeNP_): Likewise.
9634         (__inline_mathcodeNP2_): Likewise.
9635         (__inline_mathcodeNP3_): Likewise.
9636         (__inline_mathopNP): Likewise.
9637         (__inline_mathop_declNP): Likewise.
9638         (__inline_mathop_declNP_): Likewise.
9639         (__inline_mathcode_): Use __inline_mathcodeNP_.
9640         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9641         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9642         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9643         (__expm1l): Don't define prototype, the prototype is defined via
9644         bits/mathcalls.h.
9645         (exp): Likewise.
9646         (__expl): Likewise.
9647         (tan): Likewise.
9648         (atan2): Likewise.
9649         (__atan2l): Likewise.
9650         (fmod): Likewise.
9651         (pow): Likewise.
9652         (fabsf): Likewise.
9653         (fabsl): Likewise.
9654         (__fabsl): Likewise.
9655         (asin): Likewise.
9656         (acos): Likewise.
9657         (sinh): Likewise.
9658         (cosh): Likewise.
9659         (tanh): Likewise.
9660         (floor): Likewise.
9661         (ceil): Likewise.
9662         (expm1): Likewise.
9663         (log1p): Likewise.
9664         (asinh): Likewise.
9665         (acosh): Likewise.
9666         (atanh): Likewise.
9667         (hypot): Likewise.
9668         (logb): Likewise.
9669         (fma): Likewise.
9670         (drem): Likewise.
9671         (sqrt): Likewise.
9672         (__sqrtl): Likewise.
9673         (sin): Likewise.
9674         (cos): Likewise.
9675         (atan): Likewise.
9676         (log): Likewise.
9677         (log10): Likewise.
9678         (asinh): Likewise.
9679         (log2): Likewise.
9680         (rint): Likewise.
9681
9682 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9683
9684         * Makerules: If make variable md5 is defined to yes after
9685         generating dependencies generate MD5 sum for the object.
9686
9687         * iconv/gconv_builtin.h: Fix length in transformation definition
9688         for UNICODEBIG.
9689
9690         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9691
9692         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9693         allow as well reading from/writing to unaligned addresses on machines
9694         which don't support this in hardware.  Use FCTNAME macro to define
9695         function name.  Include the file a second time for platforms which
9696         need special unaligned handling.
9697         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9698         to access potentially unaligned addresses.  These macros are intended
9699         to be used only outside the loops.
9700         (unaligned): New definition.  In case the machine can handle unaligned
9701         access define as zero.  Otherwise as a variable which is initialized
9702         as nonzero in case the buffer passed in at runtime is unaligned with
9703         respect to the character set encoding involved.
9704         Call aligned or unaligned looop functions according to unaligned
9705         variable.
9706         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9707         of direct casting pointer to potentially handle unaligned memory
9708         accesses.
9709         * iconvdata/8bit-generic.c: Likewise.
9710         * iconvdata/ansi_x3.110.c: Likewise.
9711         * iconvdata/big5.c: Likewise.
9712         * iconvdata/euc-cn.c: Likewise.
9713         * iconvdata/euc-jp.c: Likewise.
9714         * iconvdata/euc-kr.c: Likewise.
9715         * iconvdata/euc-tw.c: Likewise.
9716         * iconvdata/gbk.c: Likewise.
9717         * iconvdata/iso-2022-cn.c: Likewise.
9718         * iconvdata/iso-2022-jp.c: Likewise.
9719         * iconvdata/iso-2022-kr.c: Likewise.
9720         * iconvdata/iso646.c: Likewise.
9721         * iconvdata/iso_6937-2.c: Likewise.
9722         * iconvdata/iso_6937.c: Likewise.
9723         * iconvdata/johab.c: Likewise.
9724         * iconvdata/sjis.c: Likewise.
9725         * iconvdata/t.61.c: Likewise.
9726         * iconvdata/uhc.c: Likewise.
9727         * iconvdata/unicode.c: Likewise.
9728         * iconvdata/utf-16.c: Likewise.
9729
9730         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9731         prototypes.
9732
9733         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9734         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9735         public.
9736         * malloc/mcheck.h (mcheck_check_all): Declare.
9737
9738         * stdio-common/Makefile (tests): Add tst-obprintf.
9739
9740 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9741
9742         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9743         Declare pthread_sigmask.
9744
9745         * csu/version.c: Add 2000 to copyright years.
9746         Remove Emacs local variables section.
9747
9748 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9749
9750         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
9751         __gconv_transform_internal_ucs2little): Remove declarations.
9752         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
9753         __gconv_transform_internal_ucs2): Never need to bswap_16.
9754         (__gconv_transform_ucs2reverse_internal,
9755         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
9756
9757 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9758
9759         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
9760         obsoleting version not being defined at all, in which case the
9761         result is always true.
9762
9763         * Makeconfig (preprocess-versions): New canned sequence for running
9764         cpp on shlib-versions and the like.
9765         (soversions.i): Use it.
9766         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
9767         Versions.def and Versions files.
9768
9769 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9770
9771         * stdio-common/tst-obprintf.c (main): Add another check to see
9772         obstack_printf handling all possible beginnings of the block
9773         inside an obstack chunk.
9774
9775         * locale/programs/localedef.c: Use __malloc_initialize_hook to
9776         install mcheck handler.
9777
9778         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
9779         handling problem.
9780
9781 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9782
9783         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
9784
9785         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
9786         on [HAVE_ELF && DO_VERSIONING].
9787
9788 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9789
9790         * stdio-common/tst-obprintf.c: New file.
9791
9792 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9793
9794         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
9795         _IO_OVERFLOW directly instead through __overflow.
9796
9797         * locale/programs/localedef.c (construct_output_path): If path
9798         contains a / compute the end of the directory name correctly.
9799
9800         * include/features.h: Undef and document __USE_XOPEN2K.
9801
9802         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
9803         whenever a function is called.  Initiated by calling mcheck_pedantic
9804         instead of mcheck.
9805         * malloc/mcheck.h: Declare mcheck_pedantic.
9806         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
9807         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
9808         for now.
9809
9810 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9811
9812         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
9813         * dlfcn/dlopenold.c: Likewise.
9814         * nss/getXXbyYY_r.c: Likewise.
9815         * nss/getXXent_r.c: Likewise.
9816         * hurd/hurdinit.c: Likewise.
9817         * hurd/compat-20.c: Likewise.
9818         * libio/oldiofopen.c: Likewise.
9819         * libio/oldiofclose.c: Likewise.
9820         * libio/oldiofdopen.c: Likewise.
9821         * libio/oldfileops.c: Likewise.
9822         * libio/oldstdfiles.c: Likewise.
9823         * libio/oldiofsetpos.c: Likewise.
9824         * libio/oldiofgetpos.c: Likewise.
9825         * libio/oldiofgetpos64.c: Likewise.
9826         * libio/oldiofsetpos64.c: Likewise.
9827         * libio/oldiopopen.c: Likewise.
9828         * libio/oldpclose.c: Likewise.
9829         * libio/oldtmpfile.c: Likewise.
9830         * libio/freopen.c (freopen): Likewise.
9831         * libio/iofclose.c (_IO_new_fclose): Likewise.
9832
9833         * sysdeps/mach/sys/reboot.h: Include <features.h>.
9834         (reboot): Declare it.
9835
9836         * libio/Makefile (headers): Add bits/stdio-lock.h here.
9837
9838         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
9839
9840         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
9841
9842         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
9843         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
9844         We need this for the sbrk decl, which can be included without Unix98.
9845
9846 2000-03-20  Richard Henderson  <rth@cygnus.com>
9847
9848         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
9849         argument to yperr2nss is an int, not size_t.
9850         * posix/regex.c (print_partial_compiled_pattern): Cast all
9851         ptrdiff_t to long for printing.
9852         (print_compiled_pattern): Use Z for printing size_t.
9853         * posix/testfnm.c (tests): Avoid trigraphs.
9854         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
9855         Use a C comment, not an assembly comment.
9856
9857         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
9858         of __ASSUME_32BITUIDS.
9859
9860 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9861
9862         * libio/iofopncook.c: Remove K&R prototypes.
9863
9864 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9865
9866         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
9867         an initial value of 1024 instead of RLIM_INFINITY.
9868
9869         * Versions.def (libmachuser, libhurduser): Remove these sections,
9870         since these libraries do not presently use symbol versions.
9871
9872         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
9873         is RLIM_INFINITY, return -1 instead.
9874
9875 2000-03-24  Andreas Jaeger  <aj@suse.de>
9876
9877         * Makefile (postclean): Added soversions.i.
9878
9879 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9880
9881         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
9882         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
9883         and _FPU_IEEE.  Change _FPU_RESERVED.
9884
9885 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9886
9887         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
9888
9889 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9890
9891         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
9892         (gaih_inet): Remove unused duplicate variable.
9893
9894         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
9895         Don't use __libc_sa_len, which only exists for Linux.  Just handle
9896         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
9897         only flavors supported by this function anyway.
9898
9899 2000-03-24  Geoff Clare  <gwc@unisoft.com>
9900
9901         * stdlib/strfmon.c: Corrected problems with missing signs and
9902         missing or extra spaces; allow for sign strings longer than
9903         one character; add padding to ensure positive and negative
9904         formats are aligned when a left precision is used.
9905
9906 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9907
9908         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
9909         Patch by John Mizel <John.Mizel@msdw.com>.
9910
9911 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
9912
9913         * manual/install.texi: Remove references to crypt add-on.
9914
9915 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
9916
9917         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
9918         section while taking the _hurd_rlimit_lock.
9919         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
9920
9921 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9922
9923         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
9924         using $(LN_S).
9925
9926         * sysdeps/mach/hurd/if_index.c: New file.
9927
9928         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
9929         * sysdeps/gnu/net/if.h: here.
9930         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
9931         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
9932         * sysdeps/generic/net/if.h: New file.  Declares just the standard
9933         functions and `struct if_nameindex' type.
9934         * socket/Makefile (headers): Add net/if.h here.
9935         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
9936         * sysdeps/mach/hurd/Dist: Remove it here.
9937         * sysdeps/unix/sysv/linux/Dist: And here.
9938         * sysdeps/generic/if_index.c: Include <net/if.h>.
9939
9940 2000-03-24  Andreas Jaeger  <aj@suse.de>
9941
9942         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
9943         access relocated entries in l_info.
9944         (elf_machine_got_rel): Likewise.
9945         (elf_machine_runtime_setup): Likewise.
9946         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
9947         (elf_machine_runtime_setup): Likewise.
9948         (__dl_runtime_resolve): Likewise.
9949
9950 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
9951
9952         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
9953         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
9954         according to RFC 2553.
9955         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
9956         * inet/getnameinfo.c: Likewise.
9957         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
9958
9959 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9960
9961         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
9962         Remove no-op pointer increment.
9963
9964 2000-03-23  Andreas Jaeger  <aj@suse.de>
9965
9966         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
9967         follow change for libio.h from 2000-03-10.
9968
9969 2000-03-23  Andreas Jaeger  <aj@suse.de>
9970
9971         * elf/dl-addr.c: Adjust include paths for ldsodefs location
9972         change.
9973         * elf/dl-debug.c: Likewise.
9974         * elf/dl-deps.c: Likewise.
9975         * elf/dl-error.c: Likewise.
9976         * elf/dl-fini.c: Likewise.
9977         * elf/dl-init.c: Likewise.
9978         * elf/dl-load.c: Likewise.
9979         * elf/dl-lookup.c: Likewise.
9980         * elf/dl-minimal.c: Likewise.
9981         * elf/dl-object.c: Likewise.
9982         * elf/dl-open.c: Likewise.
9983         * elf/dl-preinit.c: Likewise.
9984         * elf/dl-profile.c: Likewise.
9985         * elf/dl-profstub.c: Likewise.
9986         * elf/dl-reloc.c: Likewise.
9987         * elf/dl-runtime.c: Likewise.
9988         * elf/dl-support.c: Likewise.
9989         * elf/dl-symbol.c: Likewise.
9990         * elf/dl-version.c: Likewise.
9991         * elf/rtld.c: Likewise.
9992         * elf/sprof.c: Likewise.
9993         * sysdeps/generic/dl-cache.c: Likewise.
9994         * sysdeps/generic/dl-origin.c: Likewise.
9995         * sysdeps/generic/dl-sysdep.c: Likewise.
9996         * sysdeps/generic/elf/backtracesyms.c: Likewise.
9997         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9998         * sysdeps/generic/libc-start.c: Likewise.
9999         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10000         * sysdeps/powerpc/dl-machine.c: Likewise.
10001         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10002         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10003         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10004         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10005
10006         * elf/ldsodefs.h: Move file to ...
10007         * sysdeps/generic/ldsodefs.h: ... here.
10008
10009         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10010
10011         * sysdeps/mips/elf/ldsodefs.h: New file.
10012
10013         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10014         entries in l_info.
10015         (_dl_check_map_versions): Likewise.
10016         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10017         * elf/dl-load.c (_dl_init_paths): Likewise.
10018         (_dl_map_object): Likewise.
10019         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10020         (elf_get_dynamic_info): Likewise.
10021         * elf/do-lookup.h (FCT): Likewise.
10022         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10023         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10024         * elf/dl-addr.c (_dl_addr): Likewise.
10025         * elf/dl-runtime.c (profile_fixup): Likewise.
10026         (fixup): Likewise.
10027         * elf/dl-init.c (_dl_init_next): Likewise.
10028         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10029         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10030         (DISTINGUISH_LIB_VERSIONS): Likewise.
10031         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10032         (elf_machine_rel): Likewise.
10033
10034         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10035         for writable dynamic section.
10036
10037 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10038
10039         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10040         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10041
10042 2000-03-22  Andreas Jaeger  <aj@suse.de>
10043
10044         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10045         from latest Linux kernel.
10046
10047 2000-03-21  Andreas Jaeger  <aj@suse.de>
10048
10049         * Versions.def: Add version 2.1.4.
10050
10051 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10052
10053         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10054         * libio/oldiofopen.c: Likewise.
10055         * libio/oldiofclose.c: Likewise.
10056         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10057
10058 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10059
10060         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10061         indicating the first version set to obsolete the conditionalized code.
10062         (compat_symbol): New macro.
10063         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10064         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10065         integer values to the ABI_* macros for supported versions.
10066         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10067         compat_symbol macro.
10068
10069 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10070
10071         * nscd/connections.c (nscd_run): Pretty print.
10072         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10073
10074         * manual/charset.texi: Fix typos.  Rephrase.
10075         * manual/process.texi: Likewise.
10076         * manual/signal.texi: Likewise.
10077         Patches by Mike Coleman <mkc@kc.net>.
10078
10079         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10080         versions.
10081         * libio/iofdopen.c: Likewise.
10082         * libio/iofgetpos.c: Likewise.
10083         * libio/iofgetpos64.c: Likewise.
10084         * libio/iofopen.c: Likewise.
10085         * libio/iofsetpos.c: Likewise.
10086         * libio/iofsetpos64.c: Likewise.
10087         * libio/iopopen.c: Likewise.
10088         * libio/oldiofopen.c: Likewise.
10089         * libio/pclose.c: Likewise.
10090         * sysdeps/gnu/siglist.c: Likewise.
10091         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10092
10093         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10094         chance to expand VERSION_##lib##_##version.
10095
10096         * libio/fileops.c: Use new macros from shlib-compat.h to define
10097         versions.
10098         * libio/iofclose.c: Likewise.
10099         * libio/oldiofclose.c: Likewise.
10100         Patch by Roland McGrath <roland@frob.com>.
10101
10102 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10103
10104         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10105         Lay out struct sigcontext according to what really gets passed on
10106         the stack.
10107         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10108         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10109         (prgregset_t, prfpregset_t): Define to elf_* types.
10110         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10111         Define to correct value.
10112         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10113         sigcontext.
10114         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10115
10116 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10117
10118         * scripts/firstversions.awk: Allow multiple version sets in the
10119         "earliest version" specification, meaning that version sets in the
10120         gaps between listed versions should be folded into the earliest later
10121         version that is explicitly listed.
10122         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10123         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10124
10125 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10126
10127         * iconv/gconv_builtin.c: Include <endian.h>.
10128         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10129         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10130         according to current platform.
10131         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10132         __gconv_transform_internal_ucs2reverse, and
10133         __gconv_transform_internal_ucs4le.
10134         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10135         __gconv_transform_ucs2reverse_internal and
10136         __gconv_transform_internal_ucs2reverse.
10137         * iconvdata/Makefile (modules): Add UNICODE.
10138         (distribute): Add unicode.c.
10139         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10140         * iconvdata/unicode.c: New file.
10141
10142         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10143         determine byte order of input and convert accordingly.
10144
10145         * iconvdata/utf-16.c (gconv_init): Fix typo.
10146
10147 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10148
10149         * iconvdata/gconv-modules: Fix typo.
10150
10151         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10152         more messages.
10153
10154         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10155
10156 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10157
10158         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10159
10160 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10161
10162         * misc/Makefile (routines): Add mincore.
10163
10164 2000-03-20  Andreas Jaeger  <aj@suse.de>
10165
10166         * sysdeps/generic/mincore.c: New stub file.
10167
10168         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10169         from latest Linux kernel.
10170
10171 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10172
10173         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10174         _SC_GETPW_R_SIZE_MAX.
10175
10176 2000-03-20  Richard Henderson  <rth@cygnus.com>
10177
10178         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10179         in GLIBC_2.1.4.
10180
10181 2000-03-20  Richard Henderson  <rth@cygnus.com>
10182
10183         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10184         of arithmetic instructions.
10185
10186         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10187         with the fpcr.  Protect from INV exception.
10188         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10189         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10190         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10191
10192         * sysdeps/alpha/fpu/s_copysign.c: New.
10193         * sysdeps/alpha/fpu/s_copysignf.c: New.
10194         * sysdeps/alpha/fpu/s_fabs.c: New.
10195         * sysdeps/alpha/fpu/s_fabsf.c: New.
10196         * sysdeps/alpha/fpu/s_rint.c: New.
10197         * sysdeps/alpha/fpu/s_rintf.c: New.
10198
10199         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10200
10201         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10202         Kill sethae.
10203         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10204         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10205         Use physical addresses not KSEG addresses.
10206         (io_system): Add PYXIS.
10207         (io): Remove hae.reg, sys, hae_shift.
10208         (stb_mb, stw_mb, stl_mb, __sethae): New.
10209         (inline_outb, inline_outw, inline_outl): Don't set hae.
10210         (inline_inb, inline_inw, inline_inl): Likewise.
10211         (dense_sethae): New null function.
10212         (struct cpuinfo_data): New.
10213         (process_cpuinfo): Use local and stack variables, not static.
10214         Move readlink check here from init_iosys.
10215         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10216         (_iopl): Simplify.
10217         (_hae_shift): Calculate it here.
10218         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10219         add pciconfig_iobase.
10220
10221 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10222
10223         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10224         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10225
10226         * scripts/versions.awk: Fixed version renaming code to distinguish
10227         libraries properly.
10228
10229 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10230
10231         * include/stdlib.h: Add prototype for __cxa_atexit.
10232
10233         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10234         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10235
10236 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10237
10238         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10239         existing rtld-installed-name.
10240         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10241         replace existing rtld-installed-name using $(symbolic-link-prog).
10242
10243 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10244
10245         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10246         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10247         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10248         but not the former.
10249
10250 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10251
10252         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10253         glob64.  Since there is no glob64 in the LFS proposal applications
10254         can assume that glob handles LFS situations.  glob64 is only needed
10255         if alternative filesystem functions are used.
10256
10257 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10258
10259         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10260         when GLOB_DOOFFS is set; correct handling of patterns
10261         containing escaped wildcards (and no unescaped ones);
10262         GLOB_ERR flag was being ignored in some situations.
10263
10264         * posix/globtest.c, posix/globtest.sh: Updated to include
10265         tests for the problems fixed by the above changes to glob.c.
10266
10267         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10268
10269 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10270
10271         * Makeconfig (soversion.i): Use only first match for each lib.
10272
10273         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10274
10275         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10276         rather than $(sysd-dirs-done) to protect these rules.
10277
10278         * Makerules (version-renames.def): Target removed.
10279         (Versions.all): Depend on soversions.i directly and parse it.
10280
10281         * Makeconfig (soversions.i): New target, input-reading parts of
10282         soversions.mk generation moved here; result is a canonicalized
10283         list "LIB VERSION [SET]" for this configuration.
10284         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10285         * Makerules (version-renames.def): New target, generated from
10286         soversions.i with contents that was in $(map-firstversions).
10287         (Versions.all): Don't depend on soversions.mk, depend on
10288         version-renames.def instead; just cat it into the input.
10289
10290         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10291         for $(map-firstversions), which better handles it being empty.
10292
10293         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10294         supported version for libc 0.2.90.libio to GLIBC_2.2.
10295
10296         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10297         and use it to emit new variable `map-firstversions'.
10298         * scripts/firstversions.awk: New file.
10299         * Makerules (Versions.all): Use scripts/firstversions.awk and
10300         the $(map-firstversions) value to generate a modified versions list
10301         that includes renames in "A = B" syntax for each version set earlier
10302         than the "earliest symbol version" named in shlib-versions.
10303         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10304         rename version set A to B in the output to the intermediate file.
10305         * scripts/abi-versions.awk: New file.
10306         * Makerules (abi-versions.h): New target, generated by that script.
10307         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10308         * include/shlib-compat.h: New file, uses that generated header.
10309
10310 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10311
10312         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10313         after stripping # comments, and then run it through cpp.
10314         This allows things like "%ifdef FOO" based on config.h settings.
10315         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10316
10317         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10318         and other errors that indicate a pseudo-receive happened, grok through
10319         the message buffer for port rights that need references fixed up.
10320
10321 2000-03-16  Andreas Jaeger  <aj@suse.de>
10322
10323         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10324
10325         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10326
10327         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10328         from latest Linux kernel.
10329         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10330
10331         * misc/sys/mman.h: Add prototype for mincore.
10332
10333 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10334
10335         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10336         entry for GLIBC_2.0 version of setrlimit.
10337         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10338
10339 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10340
10341         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10342         * nis/nss_compat/compat-initgroups.c: Likewise.
10343         * nis/nss_nis/nis-initgroups.c: Likewise.
10344         * nis/nss_nis/nis-netgrp.c: Likewise.
10345         * nis/nss_nis/nis-proto.c: Likewise.
10346         * nis/nss_nis/nis-rpc.c: Likewise.
10347         * nis/nss_nis/nis-service.c: Likewise.
10348         * nis/ypclnt.c: Likewise.
10349
10350 2000-03-16  Andreas Jaeger  <aj@suse.de>
10351
10352         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10353         doesn't exist, correct checks.  Fixes PR libc/1649.
10354
10355 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10356
10357         * nscd/hstcache.c: Restore correct UID.
10358         * nscd/pwdcache.c: Likewise.
10359         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10360
10361 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10362
10363         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10364         macros for register names, in line with 2000-03-14 linux change.
10365
10366         * sysdeps/mach/sched_yield.c: New file.
10367
10368 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10369
10370         * sysdeps/generic/lockfile.c: Include <stdio.h>
10371         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10372         case <libio.h> defined them.
10373         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10374         from __internal_*.
10375         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10376         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10377
10378         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10379         for more pleasing parse error.
10380
10381 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10382
10383         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10384         memory for eras.
10385         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10386
10387         * elf/Makefile: Add rules to compile and run constload1 test.
10388         * elf/constload1.c: New file.
10389         * elf/constload2.c: New file.
10390         * elf/constload3.c: New file.
10391
10392 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10393
10394         * sysdeps/posix/open64.c: Make __open64 weak alias.
10395         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10396         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10397         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10398         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10399         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10400         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10401         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10402         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10403         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10404         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10405
10406 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10407
10408         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10409         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10410
10411 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10412
10413         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10414         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10415
10416 2000-03-08  Andreas Jaeger  <aj@suse.de>
10417
10418         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10419
10420 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10421
10422         * timezone/africa: Update from tzdata2000d.
10423         * timezone/asia: Likewise.
10424         * timezone/australasia: Likewise.
10425         * timezone/europe: Likewise.
10426         * timezone/northamerica: Likewise.
10427         * timezone/southamerica: Likewise.
10428
10429         * po/fr.po: Update from translation team.
10430         * po/de.po: Likewise.
10431
10432         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10433         last parameter.  Move code to add map to global scope from here...
10434         * elf/dl-open.c (dl_open_worker): ...here.
10435         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10436         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10437
10438         * locale/programs/ld-collate.c (collate_read): Fix warning.
10439
10440         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10441         values and macros for register names.
10442
10443         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10444         returned by seek cookie function is -1.
10445
10446 2000-03-14  Andreas Jaeger  <aj@suse.de>
10447
10448         * locale/localeconv.c (localeconv): Fix typo.
10449         Reported by Andre Charbonneau <andrec@corel.com>.
10450
10451 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10452
10453         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10454         since modules depend on it counting the number of times the conversion
10455         function got called.
10456
10457         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10458
10459         * iconv/gconv.h: Pretty print.
10460
10461 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10462
10463         * posix/wordexp-test.c: Correct one of the tests added in the last
10464         change.  Really get the root passwd entry to check again ~root.
10465
10466 2000-03-10  Andreas Jaeger  <aj@suse.de>
10467
10468         * manual/filesys.texi (Working Directory): Fix last patch.
10469         Patch by Martin Buchholz  <martin@xemacs.org>.
10470
10471 2000-03-10  Andreas Jaeger  <aj@suse.de>
10472
10473         * manual/creature.texi (Feature Test Macros): Fix language.
10474
10475 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10476
10477         * mach/devstream.c (devstream_write, devstream_read): New functions.
10478         (input, output): Functions removed.
10479         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10480         using only the vanilla fopencookie interface.
10481
10482         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10483         as macro for __io_functions.
10484         (funcsio): Use cookie_io_functions_t type name.
10485         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10486
10487         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10488         fopencookie.
10489         (fopencookie): Use it.
10490         * libio/libio.h: Declare _IO_cookie_init.
10491         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10492         _IO_cookie_init.
10493
10494         * libio/libio.h (__io_seek_fn): Fix second argument type
10495         to be a pointer, in line with the manual and the old stdio.
10496         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10497
10498         * sysdeps/generic/bits/stdio-lock.h: New file.
10499         This is a stub with #error, but that's better than no file at all.
10500
10501 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10502
10503         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10504         * manual/message.texi (Using gettextized software): Doc Fixes.
10505         * manual/message.texi (Message Translation): Doc Fixes.
10506         * manual/filesys.texi (File Size): Doc Fixes.
10507         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10508         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10509         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10510         * manual/install.texi: Doc Fixes.
10511         * manual/search.texi (Hash Search Function): Doc Fixes.
10512         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10513         * FAQ.in: Doc Fixes.
10514         * config.h.in: Doc Fixes.
10515         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10516         Doc Fixes.  `allows to' is not correct English.
10517
10518         * elf/rtld.c: Doc fixes.
10519         * manual/creature.texi (Feature Test Macros): Doc fixes.
10520         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10521
10522         * manual/filesys.texi (Working Directory): Check for ERANGE to
10523         avoid infloop.
10524
10525 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10526
10527         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10528         conditions so as not to clobber the final '\0' when there is only one
10529         element in the vector.
10530
10531 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10532
10533         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10534         broken by 2000-02-27 change.
10535
10536         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10537
10538 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10539
10540         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10541         argument type, for 2000-02-22 change in signal/signal.h declaration.
10542
10543 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10544
10545         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10546         to getdirentries64 (no __), since the Linux implementation
10547         has no __ name, and there is no declaration for the __ name.
10548
10549         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10550
10551         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10552         sed regexp so as not to break directory names including /../ within.
10553
10554         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10555         The sysdeps/generic file is right for BSD.  This file was in fact the
10556         Hurd file, but the only difference was the WNOREAP flag that was never
10557         actually implemented or used anywhere.
10558
10559         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10560         since AC_PATH_PROG already does it for us.
10561         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10562         correctness and sh portability.  I replaced the broken check
10563         with a more sensible implementation of the apparently intended
10564         semantics, which might still be questionable.  Using expr causes
10565         a non-numeric value for `perl -V:apiversion` to be accepted,
10566         refusing to use only a perl that reports a number less than 5;
10567         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10568         * configure: Regenerated.
10569
10570 2000-03-08  Andreas Jaeger  <aj@suse.de>
10571
10572         * manual/crypt.texi: Fix paths.
10573
10574 2000-03-07  Andreas Jaeger  <aj@suse.de>
10575
10576         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10577         were swapped.
10578         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10579         libc/1636.
10580
10581 2000-03-06  Andreas Jaeger  <aj@suse.de>
10582
10583         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10584         in __sgn1l, otherwise g++ fails to parse this.
10585         Reported by Sean Chen <sean.chen@turbolinux.com>.
10586
10587 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10588
10589         * configure.in: Compute sizeof-long-double.
10590         * configure: Regenerated.
10591         * config.make.in: Make sizeof-long-double available to sub-makes.
10592
10593 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10594
10595         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10596         call.
10597
10598 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10599
10600         * Makeconfig (rpath-dirs): Add crypt.
10601         (all-subdirs): Remove md5crypt.
10602         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10603         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10604         * sysdeps/generic/crypt-entry.c: Delete.
10605         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10606         * sysdeps/generic/crypt.h: Delete.
10607         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10608         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10609         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10610         * sysdeps/generic/des_impl.c: Delete.
10611         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10612         * crypt/sysdeps: Delete.
10613         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10614         * md5-crypt/Versions: Move to crypt/.
10615         * md5-crypt/md5-crypt.c: Move to crypt/.
10616         * md5-crypt/md5.c: Move to crypt/.
10617         * md5-crypt/md5c-test.c: Move to crypt/.
10618         * md5-crypt/md5test.c: Move to crypt/.
10619         * md5-crypt: Delete.
10620         * crypt/Makefile: Adjust for new structure.
10621
10622 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10623
10624         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10625         define to 1 if not defined.
10626
10627 2000-03-03  Andreas Jaeger  <aj@suse.de>
10628
10629         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10630
10631 2000-03-03  Andreas Jaeger  <aj@suse.de>
10632
10633         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10634         cases.
10635         (xdr_int64_t): Correctly handle lower half.
10636         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10637
10638 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10639
10640         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10641         call.
10642
10643 2000-03-02  Andreas Jaeger  <aj@suse.de>
10644
10645         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10646         2.3.43.
10647
10648 2000-03-02  Andreas Jaeger  <aj@suse.de>
10649
10650         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10651
10652 2000-03-01  Andreas Jaeger  <aj@suse.de>
10653
10654         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10655         (tests): Added tst-getdate.
10656
10657         * time/tst-getdate.c: New file.
10658
10659         * time/datemsk: New file, needed for tst-getdate.
10660
10661 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10662
10663         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10664
10665 2000-02-17  H.J. Lu  <hjl@gnu.org>
10666
10667         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10668
10669         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10670         available.
10671         (svcudp_recv): Set up message with the new "xp_pad" field for
10672         IP_PKTINFO.
10673         (svcudp_reply): Support IP_PKTINFO if available.
10674
10675 2000-03-01  Andreas Jaeger  <aj@suse.de>
10676
10677         * time/getdate.c (check_mday): Fix check for february.
10678         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10679         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10680
10681 2000-03-02  Andreas Jaeger  <aj@suse.de>
10682
10683         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10684         g++ fails to parse this.
10685         Reported by Sean Chen <sean.chen@turbolinux.com>.
10686
10687 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10688
10689         * io/creat.c: Moved to...
10690         * sysdeps/generic/creat.c: ...here.
10691         * io/creat64.c: Moved to...
10692         * sysdeps/generic/creat64.c: ...here.
10693         * io/lockf.c: Moved to...
10694         * sysdeps/generic/lockf.c: ...here.
10695
10696         * crypt/crypt.texi: Moved to...
10697         * manual/crypt.texi: ...here.
10698         * crypt/examples/genpass.c: Moved to...
10699         * manual/examples/genpass.c: ...here.
10700         * crypt/examples/mygenpass.c: Moved to...
10701         * manual/examples/mygenpass.c: ...here.
10702         * crypt/examples/testpass.c: Moved to...
10703         * manual/examples/testpass.c: ...here.
10704
10705         * manual/Makefile (chapters): Add crypt.
10706         * manual/conf.texi: Add usual header for not-last chapter.
10707         * manual/crypt.texi: Add special header for last chapter.
10708
10709 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10710
10711         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10712         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10713         complain if there is no crypt add-on.
10714         * crypt/configure: Removed.
10715
10716         * crypt/crypt.texi: Update documentation of US export restrictions
10717         to match the 14 Jan 2000 regulations.
10718
10719 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10720
10721         * crypt: New subdirectory, merged in from the crypt add-on.
10722
10723 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10724
10725         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10726
10727
10728 See ChangeLog.10 for earlier changes.