e49fa847b1918faae6893c110eb6bf8c8e71c2c1
[jlayton/glibc.git] / ChangeLog
1 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
2
3         * stdio-common/vfprintf.c (process_string_arg): Handle precision
4         in wide char case correctly.  Don't allocate too long temporary
5         strings with alloca.
6
7         * stdio-common/Makefile (tests): Add tst-swprintf.
8         (tst-swprintf-ENV): New variable.
9         * stdio-common/tst-swprintf.c: New file.
10
11 2000-09-05  Andreas Jaeger  <aj@suse.de>
12
13         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
14         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
15         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
16
17 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
18
19         * configure.in: Strip out "unknown" from configuration names.
20
21 2000-09-05  Andreas Jaeger  <aj@suse.de>
22
23         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
24
25         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
26         * sysdeps/sparc/sparc32/Implies: Likewise.
27         * sysdeps/powerpc/Implies: Likewise.
28
29         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
30         * libio/oldiofgetpos64.c: Likewise.
31
32         * soft-fp/Makefile (distribute): Remove configure.
33
34         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
35
36         * soft-fp/configure: Remove.
37
38         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
39         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
40
41         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
42         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
43
44         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
45         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
46
47         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
48         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
49
50         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
51         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
52
53         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
54         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
55
56         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
57         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
58
59         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
60         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
61
62         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
63         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
64
65         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
66         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
67
68         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
69         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
70
71         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
72         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
73
74         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
75         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
76
77         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
78         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
79
80         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
81         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
82
83         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
84         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
85
86         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
87         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
88
89         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
90         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
91
92         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
93         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
94
95         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
96         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
97
98         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
99         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
100
101         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
102         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
103
104         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
105         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
106
107         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
108         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
109
110         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
111         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
112
113         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
114         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
115
116         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
117         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
118
119         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
120         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
121
122         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
123         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
124
125         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
126         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
127
128         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
129         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
130
131         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
132         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
133
134         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
135         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
136
137         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
138         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
139
140         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
141         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
142
143         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
144         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
145
146         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
147         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
148
149         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
150         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
151
152         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
153         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
154
155         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
156         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
157
158         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
159         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
160
161         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
162         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
163
164         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
165         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
166
167         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
168         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
169
170         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
171         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
172
173         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
174         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
175
176         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
177         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
178
179         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
180         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
181
182         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
183         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
184
185         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
186         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
187
188         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
189         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
190
191         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
192         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
193
194         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
195         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
196
197         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
198         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
199
200         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
201         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
202
203         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
204         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
205
206         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
207         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
208
209         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
210         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
211
212         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
213         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
214
215         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
216         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
217
218         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
219         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
220
221         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
222         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
223
224         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
225         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
226
227         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
228         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
229
230         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
231         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
232
233         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
234         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
235
236         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
237         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
238
239         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
240         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
241
242         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
243         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
244
245         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
246         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
247
248         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
249         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
250
251         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
252         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
253
254         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
255         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
256
257         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
258         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
259
260         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
261         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
262
263         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
264         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
265
266         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
267         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
268
269         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
270         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
271
272         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
273         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
274
275         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
276         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
277
278         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
279         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
280
281         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
282         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
283
284         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
285         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
286
287         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
288         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
289
290         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
291         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
292
293         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
294         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
295
296         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
297         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
298
299         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
300         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
301
302         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
303         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
304
305         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
306         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
307
308         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
309         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
310
311         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
312         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
313
314         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
315         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
316
317         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
318         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
319
320         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
321         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
322
323         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
324         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
325
326         * soft-fp/sysdeps/powerpc/Versions: Move from here...
327         * sysdeps/powerpc/soft-fp/Versions: ... to here.
328
329         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
330         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
331
332         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
333         change symbol version.
334         * libio/oldiofgetpos64.c: Likewise.
335         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
336
337         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
338         typo.
339         Reported by dyky@kondara.org, closes PR libc/1886.
340
341         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
342         libc/1880.
343
344 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
345
346         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
347         script when ^C is hit.
348
349         * locale/programs/localedef.c (construct_output_path): Correct
350         computation of endp after asprintf.
351         * locale/programs/locfile.c (write_locale_data): Don't add extra
352         slash in filename.
353
354 2000-09-05  Andreas Jaeger  <aj@suse.de>
355
356         * scripts/config.guess: New upstream version.
357         * scripts/config.sub: Likewise.
358         * manual/texinfo.tex: Likewise.
359
360 2000-09-04  Andreas Schwab  <schwab@suse.de>
361
362         * elf/Makefile (all-dl-routines): New variable.
363         (elide-routines.os): Use it instead of $(dl-routines).
364         (all-rtld-routines): New variable.
365         (extra-objs): Use it instead of $(rtld-routines).
366         ($(objpfx)dl-allobjs.os): Likewise.
367         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
368         sysdep-dl-routines and sysdep_routines instead of rtld-routines
369         and dl-routines.
370
371 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
372
373         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
374         Set fname to NULL if the module wasn't found.
375
376 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
377
378         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
379         true if trans->name already ends in ".so".
380
381 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
382
383         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
384         void.
385         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
386         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
387         (__gconv_release_shlib): Change return type to void.
388         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
389         step->__counter here.
390         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
391         if the reference is zero.
392         (release_step): New function.
393         (gen_steps): Always initialize the __counter to 1. Use release_step.
394         Don't call the destructor on the step whose initializer failed.
395         (increment_counter): Use release_step. Don't normally run destructors
396         here.
397         (__gconv_close_transform): Use release_step.
398
399 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
400
401         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
402         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
403
404 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
405
406         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
407         If the first byte is 0x8E, don't ask for 4 bytes until it has been
408         verified that the second byte is valid. Leave it to cns11643_to_ucs4
409         to check for incomplete input.
410         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
411         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
412         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
413         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
414         0x9f9d..0x9fa5.
415         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
416         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
417         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
418         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
419         upto index 0x0052.
420
421 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
422
423         * iconv/gconv_db.c (find_derivation): Always use the least-cost
424         solution.
425
426 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
427
428         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
429         are invalid.
430
431 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
432
433         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
434         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
435         U+007E.
436
437 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
438
439         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
440
441 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
442
443         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
444
445 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
446
447         * iconvdata/tst-tables.sh: New file.
448         * iconvdata/tst-table.sh: New file.
449         * iconvdata/tst-table-from.c: New file.
450         * iconvdata/tst-table-to.c: New file.
451         * iconvdata/tst-table-charmap.sh: New file.
452         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
453         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
454         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
455         ISIRI-3342.irreversible, SJIS.irreversible.
456         (tests): Add dependency on tst-tables.out.
457         (tst-tables.out, tst-tables-clean): New rules.
458         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
459         * iconvdata/ISIRI-3342.irreversible: New file.
460         * iconvdata/EUC-JP.irreversible: New file.
461         * iconvdata/SJIS.irreversible: New file.
462
463 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
464
465         * manual/locale.texi (General Numeric): Update description of
466         representation of the grouping information in the locale data.
467         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
468
469 2000-09-04  Andreas Jaeger  <aj@suse.de>
470
471         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
472         * iconv/iconv_prog.c (options): Fix typo.
473         Reported by dyky@kondara.org, closes PR libc/1885.
474
475 2000-09-04  Andreas Jaeger  <aj@suse.de>
476
477         * sysdeps/generic/fegetenv.c: It's __fegetenv.
478         Reported by Rob Levin <lilo@transvirtual.com>.
479
480 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
481
482         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
483         to the typedefs of __timezone_ptr_t.
484         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
485
486 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
487
488         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
489         the loop.
490
491 2000-09-01  H.J. Lu  <hjl@gnu.org>
492
493         * Makeconfig (built-program-cmd): Don't use the dynamic linker
494         to run a binary if it is in $(tests-static).
495
496         * Rules (binaries-static): Add $(tests-static).
497
498 2000-09-02  Andreas Jaeger  <aj@suse.de>
499
500         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
501
502         * libio/fmemopen.c (fmemopen_close): Revert one part of last
503         patch.
504
505 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
506
507         * iconvdata/big5hkscs.c: Regenerated from charmap.
508         * iconvdata/testdata/BIG5HKSCS: Regenerated.
509         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
510
511         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
512         statement.  General cleanup.
513
514 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
515
516         * wctype/wcfuncs.c (iswblank): New function.
517         * wctype/wcfuncs_l.c (__iswblank_l): New function.
518         * wctype/wcextra.c: Remove file.
519         * wctype/wcextra_l.c: Remove file.
520         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
521
522 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
523
524         * locale/programs/ld-collate.c (collate_output): Remove redundant
525         assert call.
526         * string/strcoll.c: Likewise.
527         * string/strxfrm.c: Include assert.h.  Add assert calls like in
528         string/strcoll.c.
529
530 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
531
532         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
533         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
534         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
535         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
536         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
537         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
538         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
539         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
540         _NL_CTYPE_GAP5/6 respectively.
541
542         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
543         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
544         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
545         Don't initialize __ctype_names and __ctype_width.
546         * wctype/cname-lookup.h: Remove file.
547         * wctype/Makefile (distribute): Remove cname-lookup.h.
548         * wctype/wchar-lookup.h: Include stdint.h.
549         * wctype/wctype.c (__wctype): Assume new locale format.
550         * wctype/wctype_l.c (__wctype_l): Likewise.
551         * wctype/iswctype.c: Don't include cname-lookup.h.
552         (__iswctype): Assume new locale format.
553         * wctype/iswctype_l.c: Don't include cname-lookup.h.
554         (__iswctype_l): Assume new locale format.
555         * wctype/wctrans.c: Don't include ctype.h.
556         (wctrans): Assume new locale format.
557         * wctype/wctrans_l.c (__wctrans_l): Likewise.
558         * wctype/towctrans.c: Don't include cname-lookup.h.
559         (__towctrans): Assume new locale format.
560         * wctype/towctrans_l.c: Don't include cname-lookup.h.
561         (__towctrans_l): Assume new locale format.
562         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
563         localeinfo.h instead.
564         (__NO_WCTYPE): Remove unused macro.
565         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
566         declarations.
567         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
568         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
569         (towlower, towupper): Likewise.
570         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
571         localeinfo.h instead.
572         (__NO_WCTYPE): Remove unused macro.
573         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
574         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
575         __iswxdigit_l): Assume new locale format.
576         (__towlower_l, __towupper_l): Likewise.
577         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
578         (__ctype32_b): Remove declaration.
579         (internal_wcwidth): Assume new locale format.
580         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
581         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
582         to map32_b, rename width_3level to width.
583         (ctype_output): Always create new locale format. Don't emit
584         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
585         (allocate_arrays): Always create new locale format.
586
587         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
588         * locale/weightwc.h (findidx): Assume new locale format.
589         * string/strcoll.c (wcscoll): Remove local variables size, layers,
590         names.
591         * string/strxfrm.c (wcsxfrm): Likewise.
592         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
593         local variable collseq to 'const char *'.
594         (SUFFIX): Don't use, don't undefine.
595         * posix/fnmatch.c: Remove SUFFIX definition.
596         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
597         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
598         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
599         (collate_finish): Always create new locale format. Remove local
600         variables min_total, act_size.
601         (collate_output): Always create new locale format. Remove local
602         variables table_size, names, tablewc. Rename tablewc_3level to
603         tablewc.
604
605 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
606
607         * locale/programs/ld-collate.c (obstack_int32_grow,
608         obstack_int32_grow_fast): New inline functions.
609         (output_weightwc, collate_output): Use them where possible.
610
611 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
612
613         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
614         patch (_mode -> _flags).
615
616         * libio/Makefile (headers): Add stdio_ext.h.
617         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
618         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
619         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
620         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
621         __fsetlocking, and _flushlbf.
622         * libio/__fbufsize.c: New file.
623         * libio/__flbf.c: New file.
624         * libio/__fpending.c: New file.
625         * libio/__fpurge.c: New file.
626         * libio/__freadable.c: New file.
627         * libio/__freading.c: New file.
628         * libio/__fsetlocking.c: New file.
629         * libio/__fwritable.c: New file.
630         * libio/__fwriting.c: New file.
631         * libio/stdio_ext.h: New file.
632         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
633         * libio/libio.h (_IO_USER_LOCK): Define.
634         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
635         test _IO_USER_LOCK flag first.
636
637         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
638         malloc fails.
639
640 2000-09-01  Andreas Jaeger  <aj@suse.de>
641
642         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
643
644         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
645
646 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
647
648         * math/Makefile (tests): Add tst-defintions.
649         * math/tst-definitions.c: New file.
650
651         * stdlib/Makefile (headers): Add bits/wchar.h.
652         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
653         * sysdeps/generic/bits/wchar.h: New file.
654         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
655         file to define WCHAR_MIN and WCHAR_MAX.
656         Change UINT*8_MAX and UIN*16_MAX value to type int.
657         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
658         file to define WCHAR_MIN and WCHAR_MAX.
659         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
660         int values.
661         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
662         * sysdeps/generic/bits/mathdef.h: Likewise.
663         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
664         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
665         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
666         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
667         * locale/locale.h (struct lconv): Add __ prefix to the new members
668         if not C99.
669         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
670         imaxdiv optimizations.
671         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
672         * sysdeps/wordsize-64/ldiv.c: Likewise.
673         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
674         const fenv_t*.
675         * sysdeps/generic/bits/fenv.h: Likewise.
676         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
677         * sysdeps/ia64/bits/fenv.h: Likewise.
678         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
679         * sysdeps/mips/bits/fenv.h: Likewise.
680         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
681         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
682         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
683
684         * inet/rcmd.c: Use *stat64 instead of *stat internally.
685         * inet/ruserpass.c: Likewise.
686         * catgets/open_catalog.c: Likewise.
687         * intl/loadmsgcat.c: Likewise.
688         * io/getdirname.c: Likewise.
689         * locale/loadlocale.c: Likewise.
690         * misc/getusershell.c: Likewise.
691         * stdlib/canonicalize.c: Likewise.
692         * sysdeps/posix/euidaccess.c: Likewise.
693         * sysdeps/posix/isfdtype.c: Likewise.
694         * sysdeps/posix/posix_fallocate.c: Likewise.
695         * sysdeps/posix/tempname.c: Likewise.
696         * sysdeps/unix/grantpt.c: Likewise.
697         * sysdeps/unix/opendir.c: Likewise.
698         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
699         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
700         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
701         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
702         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
703         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
704         * sysvipc/ftok.c: Likewise.
705         * time/getdate.c: Likewise.
706
707         * time/getdate.c: Add extra access test.
708
709 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
710
711         * version.h (VERSION): Bump to 2.1.93.
712
713         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
714         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
715
716         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
717         Make this a new rule depending on tst-gettext.out and run mtrace.
718         * intl/tst-gettext.c: Call mtrace.
719         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
720
721         * elf/dl-reloc.c: Add a few more __builtin_expect.
722
723         * configure.in: Remove --with-gettext option.
724
725         * intl/dcigettext.c (free_mem): Correct freeing of
726         _nl_domain_bindings list.
727
728         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
729         allocated memory.
730
731         * intl/locale.alias: Add aliases for bokmal and nynorsk.
732
733         * locale/iso-639.def: Fix 639-1 code for Bokmal.
734
735         * stdio-common/itoa-digits.c: Move upper digits to...
736         * stdio-common/itoa-udigits.c: ...here.  New file.
737         * stdio-common/Makefile (routines): Add itoa-udigits.
738
739         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
740         relocate ld.so don't add supprt for relocations which should not
741         appear in ld.so.
742
743         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
744         __secure_getenv.  Instead test __libc_enable_secure once.
745
746         * io/pwd.c (main): Provide a good example, use *_unlocked function.
747
748 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
749
750         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
751         whether the new record should be freed if it's a duplicate.
752         (add_module): Adjust insert_module call.
753         (__gconv_read_conf): Likewise.
754         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
755         mtrace-tst-loading.
756         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
757
758         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
759         _dl_all_init_dirs.
760         * include/link.h (struct r_search_path_struct): New.
761         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
762         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
763         _dl_all_init_dirs.
764         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
765         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
766         added at startup time.
767         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
768         contains element to remember fact that we can free memory.
769         (all_dirs): Renamed to _dl_all_dirs.  Made global.
770         (_dl_init_all_dirs): New variable.
771         (fillin_rpath): Save one malloc call.
772         (decompose_rpath): Change interface.  New first parameter points to
773         r_search_path_struct.
774         (_dl_init_paths): Adjust for changes.  Mark all memory as not
775         deletable.  Set _dl_init_all_paths value.
776         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
777         parameter replaced with r_search_path_struct *.  Information about
778         freeing now contained in r_search_path_struct.
779         (_dl_map_object): Adjust for above changes.
780
781         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
782
783         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
784         when adding new entries.
785
786         * elf/dl-load.c (fillin_rpath): Make local copy of where string
787         since the object being loaded can be unloaded.
788
789         * iconvdata/Makefile (tests): Add tst-loading.
790         * iconvdata/tst-loading.c: New file.
791
792 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
793
794         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
795         When comparing a char with an int, always cast the char to
796         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
797         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
798
799 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
800
801         * time/strftime.c (my_strftime): Add compatibility code for use
802         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
803
804         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
805         return 0 for success but always < 0 on failure.
806
807         * nss/getXXbyYY_r.c: Define result to *result before including
808         digits_dots.c.
809
810 2000-08-30  Andreas Jaeger  <aj@suse.de>
811
812         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
813
814 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
815
816         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
817         official file.
818         * iconvdata/TESTS: Add BIG5HKSCS entry.
819         * iconvdata/testdata/BIG5HKSCS: New file.
820         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
821
822         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
823         always true.
824
825         * libio/iogetline.c: Set mode before the loop in case n==0.
826         * libio/iogetwline.c: Likewise.
827
828 2000-08-29  H.J. Lu  <hjl@gnu.org>
829
830         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
831         of fp->_mode < 0.
832         (_IO_new_file_overflow): Likewise.
833         * libio/genops.c (_IO_flush_all): Likewise.
834         * libio/ioftell.c (_IO_ftell): Likewise.
835
836 2000-08-29  Akira Higuchi  <a@kondara.org>
837
838         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
839         and __end_fct fields of struct __gconv_step.
840         * iconv/Makefile (tests): Add iconv-bug2.
841         * iconv/iconv-bug2.c: New file.
842
843         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
844         instead of 'inptr - inend' to ksc5601_to_ucs4.
845
846         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
847
848         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
849         character or shift sequence is found at the end of the input
850         string, return__GCONV_INCOMPLETE_INPUT instead of
851         __GCONV_EMPTY_INPUT.
852         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
853         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
854
855         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
856         __GCONV_ILLEGAL_INPUT for 8bit characters.
857
858 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
859
860         * signal/signal.h (sigpause): Move __THROW before __asm__.
861
862         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
863         names don't match don't return.
864         Patch by Olaf Kirch <okir@flash.lst.de>.
865
866 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
867
868         * time/strftime.c (my_strftime): Handle # flag for %b as well.
869
870 2000-08-27  H.J. Lu  <hjl@gnu.org>
871
872         * posix/Makefile (otherlibs): Add for building with static-nss
873         for "make check".
874
875 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
876
877         * libio/stdio.h: Add fmemopen prototype.
878
879 2000-08-25  Andreas Jaeger  <aj@suse.de>
880
881         * libio/Makefile (routines): Add fmemopen.
882         (tests): Add test-fmemopen.
883         * libio/Versions: Add fmemopen with version GLIBC_2.2.
884         * libio/test-fmemopen.c: New file.
885         * libio/fmemopen.c: New file.
886         Patches by Hanno Mueller <kontakt@hanno.de>.
887
888 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
889
890         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
891         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
892
893         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
894         to avoid crashing statically linked applications.
895
896 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
897
898         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
899         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
900
901         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
902         If the result is fits in the buffer, copy only as many bytes as needed.
903
904         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
905         buffer after copying numbuf into it.
906         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
907
908 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
909
910         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
911         the result.  When string_len < len, don't clear the rest of the buffer.
912
913 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
914
915         Support for new LC_COLLATE format.
916         * locale/coll-lookup.h: New file.
917         * locale/weightwc.h (findidx): When size == 0, call
918         collidx_table_lookup.
919         * wcsmbs/wcscoll.c: Include coll-lookup.h.
920         * wcsmbs/wcsxfrm.c: Likewise.
921         * posix/fnmatch.c: Likewise.
922         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
923         collseq_table_lookup.
924         * locale/programs/3level.h: New file.
925         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
926         by including "3level.h".
927         * locale/programs/ld-collate.c (wchead_table, collidx_table,
928         collseq_table): New types, defined by including "3level.h".
929         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
930         (encoding_mask, encoding_byte): Remove.
931         (utf8_encode): Use simple shifts instead.
932         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
933         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
934         (collate_output): New local variable tablewc_3level. When
935         !oldstyle_tables, set table_size to 0 and names to NULL and fill
936         tablewc_3level instead of tablewc. Change format of TABLEWC and
937         COLLSEQWC entries written to the file.
938         * locale/C-collate.c (collseqwc): Change format.
939         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
940         of COLLSEQWC.
941         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
942
943 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
944
945         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
946         (locale_ctype_t): New charnames_idx field.
947         (ctype_startup): Initialize charnames_idx field.
948         (find_idx): Speed up dramatically by using charnames_idx inverse table.
949
950 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
951
952         * locale/C-ctype.c: Switch to new locale format.
953         (_nl_C_LC_CTYPE_names): Remove array.
954         (STRUCT_CTYPE_CLASS): New macro.
955         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
956         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
957         New three-level tables.
958         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
959         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
960         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
961         12 class tables and 2 map tables at the end.
962         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
963         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
964         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
965         New declarations.
966         (b): Remove trailing semicolon.
967         (__ctype_names, __ctype_width): Don't initialize.
968         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
969
970 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
971
972         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
973         is guaranteed to be allocated with the same malloc() and may be
974         passed to free().
975         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
976         been set to empty by an earlier open_path call, don't pass it again.
977
978 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
979
980         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
981         we are not optimizing.
982
983         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
984         inclusion.
985
986         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
987         really match EOF.
988         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
989
990 2000-08-28  Andreas Jaeger  <aj@suse.de>
991
992         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
993
994 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
995
996         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
997         getpeername.  Use ISO C style function definition.
998         (getpeername): Provide weak alias.
999         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1000         setrlimit.  Use ISO C style function definition.
1001         (setrlimit): Provide weak alias.
1002
1003 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1004
1005         * shlib-versions: Add a rule for S/390 to the libm version list.
1006         * sysdeps/s390/Versions: New file.
1007         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1008         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1009         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1010         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1011         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1012         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1013         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1014         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1015         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1016         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1017         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1018         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1019         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1020         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1021         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1022         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1023         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1024         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1025
1026 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1027
1028         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1029         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1030
1031         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1032         * elf/dl-close.c (_dl_close): Print debug message if object is not
1033         unloaded.
1034         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1035         returning to caller.
1036
1037         * po/zh.po: Renamed to...
1038         * po/zh_TW.po: ...this.
1039
1040 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1041
1042         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1043
1044         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1045         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1046         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1047         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1048
1049 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1050
1051         * locale/programs/ld-collate.c (insert_weights): Also update
1052         backpointer of next element.
1053         (collate_read): Allow definition of new collation symbols in stage 2.
1054         Symbol after reorder-after can be UCS4 value.
1055         Allow reordering of collation symbols and elements.
1056         Do not only move reorder entry in new position.  Instead call
1057         insert_weight to do this and read the weights.
1058
1059         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1060
1061         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1062         to determine invalid locale name.
1063         * locale/findlocale.c (_nl_find_locale): Likewise.
1064
1065         * posix/annexc.c: Correct test for unavailable feature.
1066
1067         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1068         __inline.
1069
1070 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1071
1072         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1073         syscall.
1074
1075         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1076         (sysdep_routines): Add oldgetrlimit64.
1077
1078         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1079         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1080         (tests): Add unload, reldep, reldep2, and reldep3.
1081         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1082         and reldepmod4.
1083         Add rules to build and run unload, reldep, reldep2, and reldep3.
1084         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1085         Don't create relocation dependency if it is nonzero.
1086         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1087         can never happen here.
1088         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1089         Don't create relocation dependency if it is nonzero.
1090         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1091         stuff.  This can never happen here.
1092         * sysdeps/generic/ldsodefs.h: Change prototypes.
1093         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1094         _dl_lookup_up and _dl_lookup_versioned_symbol.
1095         (RESOLV): Likewise.
1096         * elf/dl-runtime.c (fixup): Likewise.
1097         (profile_fixup): Likewise.
1098         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1099         _dl_lookup_symbol.
1100         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1101         * elf/rtld.c (dl_main): Likewise.
1102         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1103         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1104         and pass down the caller map.
1105         (_dl_vsym): Likewise.
1106         * elf/reldep.c: New file.
1107         * elf/reldep2.c: New file.
1108         * elf/reldep3.c: New file.
1109         * elf/reldepmod1.c: New file.
1110         * elf/reldepmod2.c: New file.
1111         * elf/reldepmod3.c: New file.
1112         * elf/reldepmod4.c: New file.
1113         * elf/unload.c: New file.
1114         * elf/unloadmod.c: New file.
1115
1116         * elf/do-lookup.h: Remove unused undef_name parameter.
1117         * elf/dl-lookup.c: Adjust callers.
1118
1119 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1120
1121         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1122         irreversible in recursive call of conversion function to signal that
1123         no error handling is wanted.
1124         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1125         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1126         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1127         recursive error handling call, otherwise to &lirreversible.  Use it
1128         for calls to conversion functions.
1129         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1130         transliterating.
1131         (ucs4_internal_loop_unaligned): Likewise.
1132         (ucs4le_internal_loop): Likewise.
1133         (ucs4le_internal_loop_unaligned): Likewise.
1134
1135 2000-08-25  Greg McGary  <greg@mcgary.org>
1136
1137         * sysdeps/i386/memchr.S: Check high bound against chars
1138         actually scanned.
1139         * sysdeps/i386/memcmp.S: Likewise.
1140         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1141         account for pointers that lie one beyond end-of-buffer.
1142
1143 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1144
1145         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1146         * elf/nodelete.c (fini_ran): New global variable.
1147         (do_test): Before every dlclose call clear fini_ran and test
1148         afterwards that it is not set by the destructors.
1149         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1150         * elf/nodelmod2.c: Likewise.
1151         * elf/nodelmod4.c: Likewise.
1152
1153 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1154
1155         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1156         getrlimit to the list.
1157
1158 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1159
1160         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1161         long double format so use ldbl-96 instead of ldbl-128.
1162
1163 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1164
1165         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1166         even if bits 10 a 11 are non-zero.
1167         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1168
1169         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1170         included before building gnu/lib-names.h
1171         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1172
1173         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1174         marked DF_1_NODELETE.
1175
1176         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1177         since we call sigaction in the child.
1178
1179 2000-08-25  Andreas Jaeger  <aj@suse.de>
1180
1181         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1182         gconv-modules.
1183
1184 2000-08-25  Andreas Jaeger  <aj@suse.de>
1185
1186         * manual/arith.texi (Control Functions): Clarify possible
1187         arguments.  Closes PR libc/1856.
1188
1189 2000-08-24  H.J. Lu  <hjl@gnu.org>
1190
1191         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1192         * malloc/Makefile (tests): Likewise.
1193
1194 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1195
1196         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1197
1198 2000-08-24  Andreas Jaeger  <aj@suse.de>
1199
1200         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1201         only if LIBGD is available.
1202
1203 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1204
1205         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1206         problems with now restrict parameter types.
1207         (convaddr4to6): Likewise.
1208
1209 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1210
1211         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1212         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1213         * sysdeps/s390/fpu/fegetexcept.c: New file.
1214         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1215         FPC_VALID_MASK.
1216
1217 2000-08-24  Andreas Jaeger  <aj@suse.de>
1218
1219         * malloc/Makefile (extra-objs): Add memusagestat.o.
1220         (generated): Added memusage and memusagestat for make clean.
1221
1222         * libio/tst_putwc.c (do_test): Delete temporary file.
1223         Move inclusion of test-skeleton to front to have prototype for
1224         add_temp_file.
1225
1226         * posix/Makefile (generated): Add wordexp-tst.out.
1227
1228 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1229
1230         * resolv/res_hconf.c (free_mem): Remove not needed if.
1231
1232         * time/tzset.c (free_mem): New function.
1233         * string/strsignal.c (free_mem): New function.
1234         * inet/inet_ntoa.c (free_mem): New function.
1235         * sunrpc/clnt_perr.c (free_mem): New function.
1236
1237 2000-08-24  Andreas Jaeger  <aj@suse.de>
1238
1239         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1240         * sysdeps/unix/sysv/syscalls.list: Likewise.
1241
1242         * posix/unistd.h: Move internal prototypes from here ...
1243         * include/unistd.h: ... to here.
1244
1245         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1246
1247 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1248
1249         * grp/initgroups.c (initgroups): Deallocate groups array.
1250         Reported by jani.raiha@sonera.com [PR libc/1868].
1251
1252         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1253         * sysdeps/alpha/Dist: Likewise.
1254
1255 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1256
1257         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1258         destructor).  Reported by Solar Designer <solar@false.com>.
1259
1260         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1261         avoid adding double slashes.
1262
1263 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1264
1265         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1266         out of the __REDIRECT macro.
1267
1268 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1269
1270         * stdio-common/vfscanf.c: Add %F format support.
1271
1272         * locale/programs/ld-ctype.c (ctype_output): Make sure
1273         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1274         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1275         (ctype_read): Enable returning of wide character strings for reading
1276         transliteration information.
1277
1278 2000-08-23  Andreas Jaeger  <aj@suse.de>
1279
1280         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1281         Use static __inline instead of _EXTERN_INLINE.
1282
1283         * misc/sys/select.h: Move prototypes of __select from here ...
1284         * include/sys/select.h: ... to here.
1285
1286         * socket/sys/socket.h: Move prototypes of __send and __connect
1287         from here....
1288         * include/sys/socket.h: ... to here.
1289
1290         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1291         lr_error.
1292
1293 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1294
1295         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1296         __setrlimit as strong name. Takes only 2 arguments.
1297
1298         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1299         takes only 2 arguments.
1300
1301 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1302
1303         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1304
1305         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1306
1307 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1308
1309         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1310         default_missing character being specified, pick the first
1311         representable.
1312
1313 2000-08-23  Andreas Jaeger  <aj@suse.de>
1314
1315         * include/wchar.h: Add some pure attributes.
1316
1317         * time/time.h: Add const attribute for dysize.
1318
1319         * include/stdlib.h: Add malloc attribute to __posix memalign.
1320
1321         * stdlib/stdlib.h: Add some pure and malloc attributes.
1322         * wcsmbs/wchar.h: Likewise.
1323
1324         * dirent/dirent.h: Add some pure attributes.
1325         * include/dirent.h: Likewise.
1326
1327 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1328
1329         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1330         on 64bit arches.
1331
1332 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1333
1334         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1335         missing buffer size checks.
1336
1337 2000-08-23  Andreas Jaeger  <aj@suse.de>
1338
1339         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1340         strong name.
1341         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1342
1343         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1344         otherwise __LINUX_KERNEL_VERSION might not be defined.
1345         (MIN): Define if not already defined.
1346
1347 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1348
1349         * stdio-common/vfprintf.c: Handle %F format.
1350         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1351         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1352
1353         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1354
1355         * po/zh.po: New file.
1356
1357         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1358         enough room in target buffer.
1359         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1360         * iconvdata/bug-iconv1.c: New file.
1361         * iconvdata/Makefile (tests): Add bug-iconv1.
1362
1363         * locale/iso-4217.def: Update entry for Nicaragua.
1364
1365 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1366
1367         * hurd/hurdsig.c: Rearrange headers a bit.
1368         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1369         when cthreads is being used.
1370
1371 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1372
1373         * elf/Makefile (distribute): Add dl-osinfo.h.
1374         * sysdeps/generic/dl-osinfo.h: New file.
1375         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1376         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1377         if defined.
1378         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1379         only for !SHARED case.  Get the code from dl-osinfo.h.
1380
1381         * stdlib/random_r.c: Cleanups.
1382         * stdlib/tst-random.c: New file.
1383         * stdlib/Makefile (tests): Add tst-random.
1384         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1385
1386 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1387
1388         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1389         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1390         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1391         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1392
1393 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1394
1395         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1396         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1397         (__syscall__sysctl): Add.
1398
1399 2000-08-21  Andreas Jaeger  <aj@suse.de>
1400
1401         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1402         libc/1864).
1403         * stdlib/tst-strtoll.c: Likewise.
1404
1405 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1406
1407         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1408         correctly.
1409         (__initstate_r): Set errno on error.
1410         (__random_r): Likewise.
1411         (__setstate_r): Correct offset when computing
1412         new rptr and fptr.  Test for arg_state being NULL.
1413         Reported by Michael Fischer <fischer@cs.yale.edu>.
1414
1415         * posix/regex.h: Add macro definitions to allow compiling outside
1416         glibc.
1417
1418         * sysdeps/i370/Implies: Removed.
1419         * sysdeps/mvs/Implies: Removed.
1420
1421         * catgets/catgets.c (catopen): Filter out env_var values with / if
1422         necessary.
1423
1424         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1425         locale name after all getenvs.
1426
1427         * configure.in: Allow sed versions like 3.02.8.
1428         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1429
1430 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1431
1432         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1433
1434 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1435
1436         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1437         of gethostbyname2_r call.
1438
1439         * intl/locale.alias: Add aliases for Korean.
1440
1441 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1442
1443         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1444         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1445         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1446         * sysdeps/s390/fpu/fegetenv.c: New file.
1447         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1448         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1449         * sysdeps/s390/fpu/fenv_libc.h: New file.
1450         * sysdeps/s390/fpu/fesetenv.c: New file.
1451         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1452         * sysdeps/s390/fpu/feupdateenv.c: New file.
1453         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1454         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1455         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1456         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1457         * sysdeps/s390/fpu/ftestexcept.c: New file.
1458         * sysdeps/s390/fpu/libm-test-ulps: New file.
1459         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1460         * sysdeps/s390/initfini.c: New file.
1461         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1462         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1463         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1464         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1465         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1466         sys/procfs.h as proposed by Mark Kettenis.
1467         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1468
1469 2000-08-21  Andreas Jaeger  <aj@suse.de>
1470
1471         * include/poll.h: Include include/sys/poll.h to get __poll
1472         declaration.
1473
1474         * io/sys/poll.h: Move __poll declaration from here...
1475         * include/sys/poll.h: ...to here.
1476
1477         * include/sys/socket.h (__getpeername): Add declaration.
1478
1479         * include/wchar.h (__vswprintf): Add declaration.
1480
1481         * include/stdio.h (__flockfile): Add declaration.
1482         (__funlockfile): Likewise.
1483
1484 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1485
1486         * misc/sys/cdefs.h: Define __restrict_arr.
1487         * include/sys/time.h: Add restrict where required by AGd4.
1488         * inet/arpa/inet.h: Likewise.
1489         * io/sys/stat.h: Likewise.
1490         * io/sys/statvfs.h: Likewise.
1491         * misc/search.h: Likewise.
1492         * misc/sys/select.h: Likewise.
1493         * posix/glob.h: Likewise.
1494         * posix/regex.h: Likewise.
1495         * posix/spawn.h: Likewise.
1496         * posix/unistd.h: Likewise.
1497         * rt/aio.h: Likewise.
1498         * signal/signal.h: Likewise.
1499         * socket/sys/socket.h: Likewise.
1500         * stdlib/ucontext.h: Likewise.
1501         * streams/stropts.h: Likewise.
1502         * string/string.h: Likewise.
1503         * time/time.h: Likewise.
1504         * time/sys/time.h: Likewise.
1505
1506         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1507         and posix_spawnattr_setscheparam.
1508
1509         * libio/stdio.h: Make cuserid prototype again available for all
1510         XPG versions.
1511
1512         * argp/argp-help.c: Unify use of function aliases to make more compact
1513         PLT.
1514         * include/libintl.h: Likewise.
1515         * inet/rcmd.c: Likewise.
1516         * intl/dcigettext.c: Likewise.
1517         * libio/iofputws.c: Likewise.
1518         * libio/iofputws_u.c: Likewise.
1519         * libio/iogetwline.c: Likewise.
1520         * libio/swprintf.c: Likewise.
1521         * malloc/malloc.c: Likewise.
1522         * nss/digits_dots.c: Likewise.
1523         * posix/fnmatch.c: Likewise.
1524         * posix/spawn_faction_addclose.c: Likewise.
1525         * posix/spawn_faction_adddup2.c: Likewise.
1526         * posix/spawn_faction_addopen.c: Likewise.
1527         * posix/spawni.c: Likewise.
1528         * posix/wordexp.c: Likewise.
1529         * posix/spawni.c: Likewise.
1530         * resolv/res_hconf.c: Likewise.
1531         * resolv/res_init.c: Likewise.
1532         * shadow/lckpwdf.c: Likewise.
1533         * signal/sighold.c: Likewise.
1534         * signal/sigrelse.c: Likewise.
1535         * stdio-common/printf-parse.h: Likewise.
1536         * stdio-common/printf-prs.c: Likewise.
1537         * stdio-common/printf_fp.c: Likewise.
1538         * stdio-common/vfprintf.c: Likewise.
1539         * stdio-common/vfscanf.c: Likewise.
1540         * stdlib/rpmatch.c: Likewise.
1541         * sunrpc/create_xid.c: Likewise.
1542         * sunrpc/key_call.c: Likewise.
1543         * sysdeps/generic/setrlimit64.c: Likewise.
1544         * sysdeps/generic/utmp_file.c: Likewise.
1545         * sysdeps/generic/vlimit.c: Likewise.
1546         * sysdeps/posix/posix_fallocate.c: Likewise.
1547         * sysdeps/posix/posix_fallocate64.c: Likewise.
1548         * sysdeps/posix/sigpause.c: Likewise.
1549         * sysdeps/posix/sigset.c: Likewise.
1550         * sysdeps/unix/grantpt.c: Likewise.
1551         * sysdeps/unix/bsd/ualarm.c: Likewise.
1552         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1553         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1554         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1555         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1556         * time/strftime.c: Likewise.
1557         * wcsmbs/wcscoll.c: Likewise.
1558         * wcsmbs/wcsxfrm.c: Likewise.
1559
1560         * time/tst-getdate.c (main): Make error messages more human readable.
1561
1562         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1563         postinc/predec instruction.
1564         (_FPU_SETCW): Likewise.
1565         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1566
1567 2000-08-20  Andreas Jaeger  <aj@suse.de>
1568
1569         * time/tst-getdate.c (main): Increase error in case of wrong
1570         conversion.
1571         Fix typo in test case.
1572
1573 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1574
1575         * ctype/ctype.h (isblank): Make available if ISO C99.
1576         * wctype/wctype.h (iswblank): Make available if ISO C99.
1577         * math/math.h (signgam): Don't make available if ISO C99.
1578         * math/tgmath.h (tgamma): Renamed from gamma.
1579         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1580
1581         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1582         Pretty printing.
1583         * intl/plural.y (new_exp): Take number of optional parameters in
1584         second parameter.  Test for correct number of parameters and free
1585         correctly in case of failure.  Adjust all callers.
1586         (yylex): Allow ';' as terminator character.
1587
1588 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1589
1590         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1591         walt_digits.
1592
1593         * locale/findlocale.c (free_mem): Also free here->filename.
1594
1595         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1596
1597         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1598         first test.
1599         (feexcp_nomask_test): Correct printf args.
1600         (feexcp_mask_test): Likewise.
1601
1602 2000-08-19  Andreas Jaeger  <aj@suse.de>
1603
1604         * inet/tst-gethnm.c: Include string.h to provide prototype for
1605         strcmp.
1606
1607         * malloc/mtrace.pl (usage): Inform about --help.
1608
1609 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1610
1611         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1612         size HEAP_MAX_SIZE.
1613
1614 2000-08-19  Andreas Jaeger  <aj@suse.de>
1615
1616         * shlib-versions: Remove libnss_db, libdb and libdb1.
1617
1618 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1619
1620         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1621         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1622         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1623         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1624         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1625         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1626         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1627         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1628         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1629         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1630         getdents.
1631         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1632         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1633
1634 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1635
1636         * include/glob.h (__glob64): Add prototype.
1637         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1638         define glob and glob_in_dir.
1639         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1640         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1641         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1642         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1643         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
1644         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
1645         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
1646         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
1647
1648 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1649
1650         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
1651
1652 2000-08-17  Andreas Jaeger  <aj@suse.de>
1653
1654         * math/test-fenv.c (fe_single_test): New function.
1655         (fe_env_tests): Use fe_single_test.
1656         (feenable_test): New tests for feenable/fedisable and
1657         fegetexcpetions.
1658         (feexcp_mask_test): New function.
1659         (feexcp_nomask_test): New function.
1660
1661 2000-08-19  Richard Henderson  <rth@cygnus.com>
1662
1663         * sysdeps/alpha/fpu/fenv_libc.h: New file.
1664         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
1665         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
1666         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1667         * sysdeps/alpha/fpu/fegetround.c: Likewise.
1668         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
1669         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
1670         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
1671         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
1672         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
1673         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
1674         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
1675         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
1676         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
1677         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
1678         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
1679         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
1680
1681 2000-08-19  Andreas Jaeger  <aj@suse.de>
1682
1683         * elf/constload1.c: Include <stdio.h> for puts prototype.
1684
1685 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1686
1687         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
1688         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
1689         a dynamically loaded object remove old l_initfini list.
1690         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
1691         remove some dynamically allocated memory blocks in the dynamic
1692         loading data structures.
1693         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
1694         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
1695         Instead call _dl_check_map_versions only for the dependencies.
1696         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
1697         information of initial objects as not free-able.
1698         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
1699         element.
1700
1701         * elf/filter.c: Call mtrace.
1702         * elf/restest1.c: Likewise.  Close the objects.
1703         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
1704         debug information.
1705
1706         * elf/constload1.c: Add comment explaining not freed memory.
1707
1708 2000-08-18  Andreas Jaeger  <aj@suse.de>
1709
1710         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
1711         alignment for structs stat and stat64.
1712         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1713
1714 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1715
1716         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
1717         handling.  Patch by Richard Henderson <rth@twiddle.net>.
1718
1719         * nss/Versions: Remove libnss_db information.
1720
1721 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1722
1723         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
1724         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
1725         * sysdeps/sparc/fpu/fegetexcept.c: New file.
1726         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
1727
1728         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
1729         to match Solaris.
1730
1731 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1732
1733         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
1734         (_FPU_SETCW): Likewise.
1735         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1736
1737         * stdio-common/printf_fp.c: Fix chars_needed computation.
1738         Patch by Greg McGary <greg@mcgary.org>.
1739
1740 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1741
1742         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
1743         _dl_loaded are NULL.
1744
1745 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1746
1747         * manual/arith.texi (feholdexcept): Returns 0 on success.
1748
1749 2000-08-17  Andreas Jaeger  <aj@suse.de>
1750
1751         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
1752         (ifr_newname): New.
1753         Reported by Andi Kleen <ak@suse.de>.
1754
1755 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1756
1757         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
1758         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
1759         * sysdeps/alpha/fpu/fegetexcept.c: New file.
1760
1761 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1762
1763         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
1764         of buf->st_ino and kbuf->st_ino, not __st_ino.
1765         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
1766         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
1767         directive so that only linux/getdents.c is used, not some
1768         architecture specific one.
1769
1770 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1771
1772         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
1773         enabled, not disabled exceptions.
1774         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1775         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1776
1777 2000-08-17  Greg McGary  <greg@mcgary.org>
1778
1779         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
1780         from test program name when constructing suffix for $(LDLIBS-*).
1781         (bounded-thread-library): New variable.
1782         * crypt/Makefile
1783         [build-shared, build-static] (libcrypt-dep): Remove variable.
1784         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1785         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1786         * linuxthreads/Makefile (libpthread, librt): Remove variables.
1787         (librt-tests): Add variable.  (tests): Use it.
1788         [build-shared, build-static]
1789         ($(addprefix $(objpfx),$(tests)),
1790         $(addprefix $(objpfx),$(librt-tests))):
1791         Consolidate individual dependencies.
1792         [build-bounded]
1793         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
1794         Add dependencies.
1795         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
1796         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1797         * misc/Makefile
1798         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
1799         * rt/Makefile
1800         [build-shared, build-static]
1801         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
1802         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
1803
1804 2000-08-17  Greg McGary  <greg@mcgary.org>
1805
1806         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
1807         * sysdeps/unix/make-syscalls.sh: Likewise.
1808         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
1809         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1810         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
1811         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
1812         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
1813
1814 2000-08-17  Greg McGary  <greg@mcgary.org>
1815
1816         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
1817         Wrap extern symbols in BP_SYM ().
1818         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1819         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1820         * sysdeps/i386/fpu/s_remquo.S: Likewise.
1821         * sysdeps/i386/fpu/s_remquof.S: Likewise.
1822         * sysdeps/i386/fpu/s_remquol.S: Likewise.
1823         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1824         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1825         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1826         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1827         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1828
1829 2000-08-16  Andreas Schwab  <schwab@suse.de>
1830
1831         * sysdeps/m68k/fpu/fegetexcept.c: New file.
1832         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
1833         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
1834
1835 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1836
1837         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
1838         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
1839         * elf/dl-support.c: Define _nl_nloaded.
1840         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
1841         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
1842         object to global list.
1843         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
1844         from _dl_loaded list.
1845         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1846         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
1847         number here.
1848
1849         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
1850         unmask, exceptions.
1851         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
1852         exceptions.
1853         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
1854
1855 2000-08-16  Andreas Jaeger  <aj@suse.de>
1856
1857         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
1858
1859 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
1860
1861         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
1862
1863 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1864
1865         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
1866         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
1867         (sysdep_routines): Add oldgetrlimit64.
1868         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
1869         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1870
1871         * include/link.h: Undo last patches.  Hurd now has stat64.
1872         * elf/Makefile: Likewise.
1873         * elf/dl-load.c: Likewise.
1874         * elf/dl-misc.c: Likewise.
1875         * elf/dl-profile.c: Likewise.
1876         * sysdeps/generic/sysd-link.h: Removed.
1877         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
1878
1879         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
1880         thread event callback function.
1881         (__aio_notify_only): Use function above.
1882         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
1883
1884 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
1885
1886         * sysdeps/mach/hurd/lseek64.c: New file.
1887
1888 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
1889
1890         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
1891         Remove typedefs.
1892         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
1893         typedefs.
1894         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
1895         typedefs.
1896         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
1897
1898 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
1899
1900         * sysdeps/mach/hurd/xstatconv.c: New file.
1901         * sysdeps/mach/hurd/fxstat64.c: New file.
1902         * sysdeps/mach/hurd/lxstat64.c: New file.
1903         * sysdeps/mach/hurd/xstat64.c: New file.
1904         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
1905
1906 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
1907
1908         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
1909         Initialize, needed for change in common symbol handling in newer
1910         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
1911
1912 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
1913
1914         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
1915         * elf/constload2.c: Add destructor to unload constload3.
1916
1917         * include/link.h: Include sysd-link.h.
1918         * sysdeps/generic/sysd-link.h: New file.
1919         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
1920         * elf/Makefile (distribute): Add sysd-link.h.
1921         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
1922         types and functions directly.
1923         * elf/dl-misc.c: Likewise.
1924         * elf/dl-profile.c: Likewise.
1925
1926         * elf/loadfail.c (main): Close all successfully loaded objects.
1927
1928         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
1929         free wd.
1930         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
1931         there is already one.
1932
1933         * elf/dl-close.c: Pretty print.
1934
1935 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
1936
1937         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
1938         global (with file scope).  Add __libc_subfreeres function to free the
1939         string.
1940         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
1941         in ttyname function.
1942
1943         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
1944
1945         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
1946
1947         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
1948         mapping them to /x5c and /x7e respectively.
1949
1950         * locale/programs/ld-ctype.c: Add support for more definitions after
1951         copy statement.
1952
1953 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
1954
1955         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
1956         * sysdeps/unix/sysv/linux/kernel-features.h
1957         (__ASSUME_GETDENTS64_SYSCALL): Define.
1958         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
1959         syscall if available to get d_type fields.
1960         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
1961         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
1962         __lxstat64): Export at GLIBC_2.2.
1963         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
1964         Likewise.
1965         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
1966         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
1967         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
1968         getdirentries64, versionsort64): Remove.
1969         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
1970         getdirentries64, versionsort64): Remove.
1971
1972 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
1973
1974         * posix/Makefile: Remove rules to generate glob package.
1975
1976         * posix/Makefile (tests): Add tst-regexloc.
1977         (tst-regexloc-ENV): Add LOCPATH.
1978         * posix/tst-regexloc.c: New file.
1979
1980 2000-08-12  Andreas Jaeger  <aj@suse.de>
1981
1982         * include/features.h (__STDC_ISO_10646__): Define.
1983         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
1984
1985 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
1986
1987         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
1988
1989         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
1990         for revision 6 and up).
1991
1992         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
1993         including <time.h>.
1994         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
1995         to get definitions of just these types.
1996
1997         * signal/signal.h: Define thread signal handling functions also for
1998         POSIX95.
1999
2000         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2001         POSIX95.
2002         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2003         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2004         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2005         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2006
2007         * sysvipc/sys/shm.h: Define pid_t for XPG.
2008
2009         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2010         they are not anymore required here.
2011
2012         * wcsmbs/wchar.h: Make the various wide char string and stream
2013         functions available for the respective XPG versions.
2014
2015         * nss/Makefile: Remove rules to build and distribute nss_db.
2016
2017         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2018         * sysdeps/generic/scandir64.c: Likewise.
2019         * sysdeps/generic/versionsort64.c: Likewise.
2020
2021 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2022             Benjamin Koznik  <bkoz@redhat.com>
2023
2024         * libio/fileops.c: Merge with libstdc++-v3.
2025         * libio/genops.c: Likewise.
2026         * libio/iofclose.c: Likewise.
2027         * libio/iofopen.c: Likewise.
2028         * libio/iofwide.c: Likewise.
2029         * libio/libio.h: Likewise.
2030         * libio/libioP.h: Likewise.
2031         * libio/stdfiles.c: Likewise.
2032         * libio/stdio.c: Likewise.
2033         * libio/wfileops.c: Likewise.
2034         * libio/wgenops.c: Likewise.
2035
2036         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2037
2038 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2039
2040         * locale/programs/localedef.c: Implement --prefix option to allow
2041         writing in standard places of alternative install directories.
2042
2043         * posix/regex.c (compile_range): Implement collation sequence
2044         handling for glibc.  Use simple character ordering otherwise and
2045         not strcoll.
2046
2047 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2048
2049         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2050
2051 2000-08-12  Andreas Jaeger  <aj@suse.de>
2052
2053         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2054         __USE_FILE_OFFSET64 correctly for locking.
2055         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2056
2057 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2058
2059         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2060         Define for 2.4.1 on sparc as well.
2061         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2062         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2063         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2064         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2065
2066 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2067
2068         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2069         defined.
2070
2071 2000-08-12  Andreas Jaeger  <aj@suse.de>
2072
2073         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2074         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2075
2076         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2077         mips2 for assembler.
2078
2079         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2080         if fnctl64 is not available for F_*LK*64.
2081
2082         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2083
2084 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2085
2086         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2087         Define for 2.4.1 on x86.
2088         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2089         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2090         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2091
2092         * dirent/dirent.h: Define DT_WHT.
2093
2094         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2095         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2096         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2097         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2098         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2099         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2100
2101 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2102
2103         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2104         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2105         * inet/Makefile (tests): Add tst-gethnm.
2106         * inet/tst-gethnm.c: New file.
2107
2108         * rt/aio_cancel.c: If canceling a specific request which is running
2109         *really* do nothing.
2110         * rt/aio_misc.h: Add `done' to states of a request.
2111         * rt/aio_misc.c: Add several tests for the correct state.
2112         Simplify request table memory handling.
2113
2114 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2115
2116         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2117         * dirent/scandir64.c: Move...
2118         * sysdeps/generic/scandir64.c: ...here.
2119         * dirent/alphasort64.c: Move...
2120         * sysdeps/generic/alphasort64.c: ...here.
2121         * dirent/versionsort64.c: Move...
2122         * sysdeps/generic/versionsort64.c: ...here.
2123         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2124         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2125         Export symbols at GLIBC_2.2.
2126         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2127         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2128         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2129         __versionsort64): Add prototypes.
2130         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2131         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2132         unused prototype.
2133         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2134         and GLIBC_2.2.
2135         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2136         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2137         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2138         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2139         __u_quad_t.
2140         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2141         Adjust for kernel-2.4.0-test6 layout.
2142         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2143         GLIBC_2.1 and GLIBC_2.2.
2144         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2145         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2146         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2147         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2148         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2149         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2150         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2151         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2152         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2153         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2154         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2155         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2156         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2157         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2158         __u_quad_t.
2159         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2160         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2161         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2162         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2163         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2164         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2165         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2166         __u_quad_t.
2167         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2168         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2169         Define.
2170         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2171         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2172         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2173         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2174         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2175         Define.
2176         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2177         alpha/readdir.c.
2178         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2179         alpha/readdir_r.c
2180         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2181         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2182         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2183         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2184         st_ino from __st_ino.
2185         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2186         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2187         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2188         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2189         set __st_ino in addition to st_ino.
2190         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2191         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2192         __old_getdents64 as well.
2193         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2194         getdirentries64 and old_getdirentries64 as well.
2195         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2196         __GETDENTS): Define.
2197         (GETDENTS64): Remove.
2198         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2199         Define.
2200         (GETDENTS64): Remove.
2201         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2202         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2203         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2204         as well.
2205         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2206         __old_readdir64_r as well.
2207         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2208         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2209
2210 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2211
2212         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2213         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2214         define of the kernel.
2215         Add missing __SEG_PSTKOVF definition.
2216         Adjust the padding of struct siginfo and struct sigevent to
2217         match the fact that sigval_t is 64 bit.
2218
2219 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2220
2221         * timezone/zic.c: Update from tzcode2000f.
2222         * timezone/australasia: Update from tzdata2000f.
2223         * timezone/europe: Likewise.
2224         * timezone/southamerica: Likewise.
2225         * timezone/yearistype: Likewise.
2226
2227 2000-08-10  Andreas Jaeger  <aj@suse.de>
2228
2229         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2230         stat with current MIPS kernel.
2231
2232 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2233
2234         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2235         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2236         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2237         Remove the junk that's only relevant in the Linux kernel itself.
2238         Add a warning saying that this file is now obsolete, and include
2239         <sys/procfs.h>.
2240         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2241         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2242         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2243         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2244         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2245         and add the notice that the file is primarily there for GDB.
2246         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2247
2248 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2249
2250         * time/tzfile.c (__tzfile_compute): __tzstring zones
2251         from zone_names.
2252
2253 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2254
2255         * resolv/resolv.h (__res_state): Surround prototype with
2256         __BEGIN_DECLS/__END_DECLS.
2257         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2258
2259 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2260
2261         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2262         Make independant of asm/resource.h from the Linux kernel.
2263
2264 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2265
2266         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2267
2268 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2269
2270         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2271         * locale/Makefile (locale-CPPFLAGS): Likewise.
2272
2273 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2274
2275         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2276         for AMD processors.
2277
2278 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2279
2280         * misc/Versions (mincore): Export at GLIBC_2.2.
2281
2282 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2283
2284         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2285
2286 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2287
2288         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2289         socketpair.  Made socketpair a weak alias.
2290         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2291         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2292         conforming, but fall back on the old protocol if the socket server
2293         doesn't support it.
2294         * include/sys/socket.h: Add prototype for __socketpair.
2295
2296 2000-08-09  Andreas Schwab  <schwab@suse.de>
2297
2298         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2299         long long modifier is seen.
2300
2301         * elf/nodelete.c (do_test): Remove reference to undefined member
2302         sa_restorer.
2303         * rt/tst-aio4.c (do_test): Likewise.
2304
2305         * configure.in: Add `-lm' when checking for libgd.
2306         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2307         linking.
2308
2309 2000-08-09  Andreas Jaeger  <aj@suse.de>
2310
2311         * configure.in: Change required make versions.
2312
2313         * manual/install.texi (Tools for Compilation): Document required
2314         make version.
2315         (Supported Configurations): Update list of supported
2316         configurations.
2317
2318 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2319
2320         * locale/linereader.c (get_string): Don't print an error is a string
2321         contains an unknown character.
2322
2323 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2324
2325         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2326         (new_symbol): Take new parameters with name of the symbol.
2327         Adjust callers.
2328         (handle_ellipsis): Don't only allow character symbols.
2329         (collate_read): Allow string of collating elements contain invalid
2330         characters; ignore entry in this case.
2331         Handle ellipsis of collating symbols before first order_start.
2332         Allow ellipsis in state 0.
2333
2334 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2335
2336         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2337         error message.
2338         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2339
2340 2000-08-04  Greg McGary  <greg@mcgary.org>
2341
2342         * posix/regex.c (SET_HIGH_BOUND): New macro.
2343         (MOVE_BUFFER_POINTER): Use it.
2344         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2345         (EXTEND_BUFFER): Use it.
2346
2347 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2348
2349         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2350         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2351         _wide_data but from _IO_FILE directly.
2352         * libio/iofclose.c: Likewise.
2353         * libio/wfileops.c: Likewise.
2354
2355         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2356         * libio/libioP.h: Change prototypes.
2357
2358 2000-08-03  Greg McGary  <greg@mcgary.org>
2359
2360         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2361         frame pointer early so that we save caller's frame pointer.
2362         * sysdeps/i386/elf/setjmp.S: Likewise.
2363
2364         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2365         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2366
2367         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2368         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2369         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2370
2371 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2372
2373         * iconvdata/big5.c: Updated.
2374         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2375
2376 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2377
2378         * Makeconfig (all-subdirs): Add conform.
2379         * conform/Makefile: Include ../Rules.
2380
2381         * Makefile (README): Add rules to generate here as well.
2382
2383 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2384
2385         * version.h (VERSION): Bump to 2.1.92.
2386
2387         * sysdeps/ia64/Dist: Add _mcount.S.
2388
2389         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2390
2391         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2392
2393         * elf/Makefile (distribute): Add missing modules.
2394
2395         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2396
2397         * posix/regex.c (compile_range): Translate range start and end
2398         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2399
2400         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2401         asm/resource.h.
2402
2403         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2404
2405 2000-08-02  Andreas Jaeger  <aj@suse.de>
2406
2407         * elf/elf.h (EM_S390): Added.
2408         (R_390_*): New relocs for S390.
2409
2410         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2411         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2412         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2413         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2414         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2415         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2416         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2417         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2418         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2419         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2420         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2421         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2422         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2423         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2424         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2425         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2426         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2427         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2428         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2429         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2430         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2431         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2432         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2433         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2434         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2435         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2436         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2437         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2438         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2439         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2440         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2441         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2442         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2443         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2444         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2445         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2446         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2447         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2448         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2449         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2450         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2451         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2452         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2453         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2454         * sysdeps/s390/sysdep.h: New file.
2455         * sysdeps/s390/sys/ucontext.h: New file.
2456         * sysdeps/s390/sub_n.S: New file.
2457         * sysdeps/s390/strncpy.S: New file.
2458         * sysdeps/s390/strcpy.S: New file.
2459         * sysdeps/s390/stackinfo.h: New file.
2460         * sysdeps/s390/setjmp.S: New file.
2461         * sysdeps/s390/s390-mcount.S: New file.
2462         * sysdeps/s390/mul_1.S: New file.
2463         * sysdeps/s390/memusage.h: New file.
2464         * sysdeps/s390/memset.S: New file.
2465         * sysdeps/s390/memcpy.S: New file.
2466         * sysdeps/s390/memchr.S: New file.
2467         * sysdeps/s390/machine-gmon.h: New file.
2468         * sysdeps/s390/ldbl2mpn.c: New file.
2469         * sysdeps/s390/gmp-mparam.h: New file.
2470         * sysdeps/s390/fpu/fpu_control.h: New file.
2471         * sysdeps/s390/fpu/fesetround.c: New file.
2472         * sysdeps/s390/fpu/fegetround.c: New file.
2473         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2474         * sysdeps/s390/fpu/bits/fenv.h: New file.
2475         * sysdeps/s390/ffs.c: New file.
2476         * sysdeps/s390/elf/start.S: New file.
2477         * sysdeps/s390/elf/setjmp.S: New file.
2478         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2479         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2480         * sysdeps/s390/dl-machine.h: New file.
2481         * sysdeps/s390/bzero.S: New file.
2482         * sysdeps/s390/bsd-setjmp.S: New file.
2483         * sysdeps/s390/bsd-_setjmp.S: New file.
2484         * sysdeps/s390/bits/string.h: New file.
2485         * sysdeps/s390/bits/setjmp.h: New file.
2486         * sysdeps/s390/bits/huge_val.h: New file.
2487         * sysdeps/s390/bits/endian.h: New file.
2488         * sysdeps/s390/bits/byteswap.h: New file.
2489         * sysdeps/s390/bcopy.S: New file.
2490         * sysdeps/s390/backtrace.c: New file.
2491         * sysdeps/s390/atomicity.h: New file.
2492         * sysdeps/s390/asm-syntax.h: New file.
2493         * sysdeps/s390/addmul_1.S: New file.
2494         * sysdeps/s390/add_n.S: New file.
2495         * sysdeps/s390/abort-instr.h: New file.
2496         * sysdeps/s390/__longjmp.c: New file.
2497         * sysdeps/s390/Makefile: New file.
2498         * sysdeps/s390/Implies: New file.
2499         * sysdeps/s390/Dist: New file.
2500         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2501
2502 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2503
2504         Remove incompatible IPv6 extension of RPC.
2505         * sunrpc/Makefile: Undo changes.
2506         * sunrpc/rpc_main.c: Likewise.
2507         * sunrpc/rpc/clnt.h: Likewise.
2508         * sunrpc/rpc/svc.h: Likewise.
2509         * sunrpc/bindrsvprt6.c: Removed.
2510         * sunrpc/clnt_tcp6.c: Removed.
2511         * sunrpc/clnt_udp6.c: Removed.
2512         * sunrpc/svc_tcp6.c: Removed.
2513         * sunrpc/svc_udp6.c: Removed.
2514
2515         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2516         dgettext, and dcgettetxt.
2517
2518         * intl/locale.alias: Update japanese aliases.
2519
2520         * sysdeps/ia64/bits/byteswap.h: New file.
2521         Patch by Dan Pop <Dan.Pop@cern.ch>.
2522
2523         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2524         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2525
2526 2000-07-13  H.J. Lu  <hjl@gnu.org>
2527
2528         * posix/regex.c (re_max_failures): Set to 4000.
2529
2530 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2531
2532         * gnulib/Makefile (tests): Add tst-gcc.
2533         * gnulib/tst-gcc.c: New file.
2534
2535         * assert/Makefile (routines): Add __assert.
2536         * assert/Versions: Export __assert for glibc 2.2.
2537         * assert/__assert.c: New file.
2538         * assert/assert.h: Declare __assert.
2539
2540 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2541
2542         * locale/localeinfo.h (_ISCTYPE): New macro.
2543         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2544         LC_CTYPE locale format.
2545         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2546         (ctype_output): Output class_b[nr] right before class_3level[nr].
2547         (allocate_arrays): Fill class_b, similarly to class_3level.
2548
2549 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2550             Joseph S. Myers  <jsm28@cam.ac.uk>
2551
2552         * math/tgmath.h: Make standard compliant.  Don't ask how.
2553
2554 2000-07-04  H.J. Lu  <hjl@gnu.org>
2555
2556         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2557         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2558         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2559
2560 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2561
2562         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2563         (__USE_LARGEFILE): Add an explanation.
2564         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2565         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2566
2567 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2568
2569         * libio/Makefile: Enable exception handling for genops, wgenops,
2570         fileops, and wfileops.
2571
2572 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2573
2574         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2575         acount that elf/rtld's main program might remove some varibales
2576         from the environment if we're trying to be secure.  Move the Hurd
2577         startup data if necessary, or, if we there is no startup data,
2578         make sure the magical convention that ARGV[0] is stored just after
2579         the environment list.
2580
2581 2000-08-01  Philip Blundell  <philb@gnu.org>
2582
2583         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2584         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2585         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2586         oldsetrlimit for GLIBC_2.0.
2587
2588 2000-08-01  Andreas Jaeger  <aj@suse.de>
2589
2590         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2591         (LINE_PARSER): Allow any number of spaces between ip address and
2592         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2593
2594         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2595
2596         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2597         constants in.
2598
2599         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2600         _nss_nisplus_getipnodebyname_r.
2601
2602         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2603         now, getipnodebyname is deprecated.
2604         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2605         Likewise.
2606
2607         * inet/Makefile (routines): Don't build getipnodebyaddr and
2608         friends.
2609
2610         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2611
2612         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2613
2614         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2615
2616         * wctype/Makefile (distribute): Add wchar-lookup.h.
2617
2618         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2619
2620         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2621
2622 2000-08-01  Andreas Schwab  <schwab@suse.de>
2623
2624         * Make-dist (dist): Resolve `..' in file names.
2625
2626 2000-08-01  Andreas Jaeger  <aj@suse.de>
2627
2628         * stdio-common/Makefile (distribute): Remove removed files, add
2629         new files.
2630
2631         * Makefile (distribute): Remove include/db_185.h and db.h.
2632
2633         * include/db_185.h: Remove, it's not needed anymore.
2634         * include/db.h: Likewise.
2635
2636 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2637
2638         * inet/Makefile (tests): Remove tst-ipnode.
2639         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2640         now.
2641
2642 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2643
2644         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
2645         endp statements have already been added.
2646
2647 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
2648
2649         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
2650         <sysdeps/ia64/sysdep.h>.
2651
2652         * sysdeps/ia64/_mcount.S: New file.
2653
2654         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
2655         __gmon_start__.  Fix up extraneous whitespace.
2656
2657 2000-01-12  H.J. Lu  <hjl@gnu.org>
2658
2659         * sysdeps/ia64/elf/initfini.c: New file.
2660
2661 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2662
2663         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
2664         dependency between branch and ar.pfs write.
2665
2666 2000-07-31  H.J. Lu  <hjl@gnu.org>
2667
2668         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
2669         handle the wchar_t array.
2670
2671 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2672
2673         * iconvdata/gb18030.c: Don't map to and from positions in ISO
2674         10646 which are not yet assigned.
2675         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
2676
2677 2000-07-31  Andreas Jaeger  <aj@suse.de>
2678
2679         * inet/Versions: Remove getipnodebyaddr and friends from
2680         GLIBC_2.2.
2681
2682         * resolv/netdb.h: Remove getipnodebyaddr and friends.
2683
2684 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2685
2686         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
2687         ch >= 0x81 && ch2 < 0x40 as invalid.
2688
2689 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2690
2691         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
2692         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
2693
2694 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2695
2696         * iconvdata/johab.c (BODY for TO_LOOP): After calling
2697         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
2698
2699 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2700
2701         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
2702         0xb8.
2703         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
2704
2705 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2706
2707         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
2708
2709 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2710
2711         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
2712         (from_ucs4): Change values of U+00A4 and U+00ED.
2713         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
2714
2715 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2716
2717         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
2718         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
2719
2720 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2721
2722         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
2723         * iconvdata/isiri-3342.h: New file.
2724         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
2725         treat 0x80 as a gap.
2726
2727 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2728
2729         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
2730         (utf8_encode): Use simple shifts instead.  Fix return value.
2731
2732 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2733
2734         * timezone/private.h: Update from tzcode2000e.
2735         * timezone/asia: Update from tzdata2000e.
2736         * timezone/australasia: Likewise.
2737         * timezone/europe: Likewise.
2738         * timezone/northamerica: Likewise.
2739         * timezone/zone-tab: Likewise.
2740
2741 2000-07-30  Ralf Baechle  <ralf@gnu.org>
2742
2743         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
2744         the order of struct sigaltstack members is different.
2745
2746 2000-07-26  Philip Blundell  <philb@gnu.org>
2747
2748         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
2749
2750 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
2751
2752         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
2753         * locale/programs/ld-ctype.c: Adjust for this.
2754
2755         * locale/programs/ld-collate.c: Add more alignment checks.
2756         * locale/string/strcoll.c: Likewise.
2757
2758 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
2759
2760         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
2761         outside USE_IN_LIBIO block.
2762
2763 2000-07-26  Philip Blundell  <philb@gnu.org>
2764
2765         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
2766         (elf_machine_rel): Use it for out-of-range PC24 relocs.
2767
2768 2000-07-28  Philip Blundell  <philb@gnu.org>
2769
2770         * math/test-fpucw.c: Ignore reserved bits in control word.
2771
2772 2000-07-28  Philip Blundell  <philb@gnu.org>
2773
2774         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
2775         (ret): Redefine to PSEUDO_RET.
2776         (PSEUDO): Remove jump to syscall_error.
2777
2778 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2779
2780         * resolv/README: Add some information about using the resolver in
2781         multi-threaded code and with C++.  Spelling fixes.
2782
2783 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2784
2785         * resolv/resolv.h (struct __sockaddr_in): Remove.
2786         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
2787
2788 2000-07-29  Greg McGary  <greg@mcgary.org>
2789
2790         * Rules (test-bp-inputs, make-test-out): New variables.
2791         ($(objpfx)%-bp.out): New rule.
2792         ($(objpfx)%.out): Rewrite in terms of new variables.
2793
2794         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
2795         internal function that uses vtable.
2796         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
2797         * libio/vswprintf.c (_IO_vswprintf): Likewise.
2798
2799         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
2800         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
2801         (chunk_align): Likewise.
2802
2803         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
2804         in a way that conforms to decl, and avoids spurious bounds violation.
2805
2806         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
2807         * sysdeps/generic/frame.h: Likewise.
2808         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
2809         around return value.
2810         (__backtrace): Qualify frame-pointer chain and return address
2811         pointers as __unbounded.  Wrap bounds around variable `current'.
2812         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
2813         around return value.
2814         (catch_segfault): Qualify frame-pointer chain and return address
2815         pointers as __unbounded.  Wrap bounds around variable `current'.
2816         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
2817         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
2818         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
2819         __unbounded.
2820         (__backtrace): Qualify frame-pointer chain and return address
2821         pointers as __unbounded.  Wrap bounds around variable `current'.
2822
2823         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
2824         * sysdeps/i386/mul_1.S: Likewise.
2825         * sysdeps/i386/submul_1.S: Likewise.
2826         * sysdeps/i386/i586/addmul_1.S: Likewise.
2827         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
2828         * sysdeps/i386/i586/submul_1.S: Likewise.
2829
2830 2000-07-27  Andreas Jaeger  <aj@suse.de>
2831
2832         * libio/Depend: New file, libio needs localedata for tests.
2833         * posix/Depend: Likewise.
2834
2835 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
2836
2837         * stdio-common/_i18n_itoa.c: Removed.
2838         * stdio-common/_i18n_itoa.h: Removed.
2839         * stdio-common/_i18n_itowa.c: Removed.
2840         * stdio-common/_i18n_itowa.h: Removed.
2841         * stdio-common/_i18n_number.h: New file.
2842         * stdio-common/Depend: New file.
2843         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
2844         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
2845         printing.  Change printing of numbers with locale specific digits to
2846         use new code in _i18n_number.h.
2847         * stdio-common/Makefile (routines): Remove _i18n_itoa and
2848         _i18n_itowa.
2849
2850         * stdio-common/bug13.c: Improve messages.
2851
2852         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
2853         (set_class_defaults): Always search also for Uxxxx names.
2854         Detect insufficient number of outdigits.
2855
2856         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
2857
2858 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2859
2860         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
2861         _NL_CTYPE_MAP_NAMES.
2862         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
2863         * wctype/wcfuncs.c (towlower, towupper): Use them.
2864         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
2865         * wctype/wctrans.c (wctrans): Likewise.
2866         * wctype/wctrans_l.c (__wctrans_l): Likewise.
2867
2868 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2869
2870         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
2871         Use the optimized version of this function outside glibc as well.
2872
2873 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
2874
2875         * locale/indigits.h (indigit_value): Correct.
2876         * locale/indigitswc.h (indigitwc_value): Correct.
2877         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
2878         conversion, add GROUP checking for it, fix GROUP number
2879         conversion with strlen(thousands) > 1.
2880         Honour width correctly in the presence of floating
2881         decimal points and thousands separators.
2882         * stdio-common/tst-sscanf.c: New test.
2883         * stdio-common/Makefile: Add it to tests.
2884         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
2885         thousands separators and group argument is non-zero.
2886
2887 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
2888
2889         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
2890         starts at GLIBC_2.2.
2891
2892 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2893
2894         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
2895         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
2896         _test_and_set.
2897         (headers): Add sys/tas.h.
2898         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
2899         GLIBC_2.2 from libc.
2900         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
2901         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
2902         _test_and_set.
2903
2904 2000-07-28  Andreas Jaeger  <aj@suse.de>
2905
2906         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
2907
2908         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
2909         ($(objpfx)tst-dladdr.out): new.
2910         (tests): Add tst-dladdr.
2911         ($(objpfx)glrefmain): Use libdl.
2912
2913         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
2914         <vs@caldera.de>.
2915
2916 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
2917
2918         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
2919         ftruncate(64) calls.
2920
2921 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
2922
2923         * intl/tst-translit.c: Include string.h to get prototype for
2924         strcmp().
2925
2926 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
2927
2928         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
2929         name and add weak alias for __fork.
2930
2931         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
2932         & pwrite to use __libc_<name> as strong names instead of
2933         __syscall_<name>.
2934
2935         * include/sched.h: Add clone2 prototype.
2936
2937 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
2938
2939         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
2940         procedure name twice.
2941
2942 2000-07-27  Philip Blundell  <philb@gnu.org>
2943
2944         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
2945
2946 2000-07-27  Andreas Jaeger  <aj@suse.de>
2947
2948         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
2949         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
2950         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
2951         Reported by Andi Kleen <ak@suse.de>.
2952
2953         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
2954         (do_wait): Test requests with aio_return64.
2955         (do_test): Change callers of do_wait.
2956
2957 2000-07-26  Andreas Jaeger  <aj@suse.de>
2958
2959         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
2960         (do_wait): Test requests with aio_return.
2961         (do_test): Change callers of do_wait.
2962
2963 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
2964
2965         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
2966         from request list.  Don't do the list handling here, call
2967         __aio_remove_request.
2968         * rt/aio_misc.h: Add prototype for __aio_remove_request.
2969         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
2970         request might already be processed.  Don't do the list handling
2971         here, call __aio_remove_request.
2972
2973         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
2974         LIO_DSYNC.
2975
2976         * rt/aio_misc.c: Add comment explaining why writer memory barriers
2977         are missing.
2978
2979 2000-07-27  Greg McGary  <greg@mcgary.org>
2980
2981         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
2982         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
2983         in union init.  Pass zero for ignored semnum arg to semctl.
2984         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
2985
2986 2000-07-26  Greg McGary  <greg@mcgary.org>
2987
2988         * sysdeps/gnu/bits/msq.h: Qualify kernel's
2989         data structure pointers as __unbounded.
2990         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2991         * sysdeps/generic/bp-semctl.h: New file.
2992         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
2993         pointers as __unbounded.  Check bounds of syscall args.
2994         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
2995         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
2996         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
2997         * sysdeps/unix/sysv/linux/semop.c: Likewise.
2998         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
2999         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3000         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3001         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3002         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3003         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3004         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3005         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3006         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3007         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3008         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3009         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3010
3011 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3012
3013         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3014         by default.
3015         * locale/C-ctype.c: Likewise.
3016         * wcsmbs/wcsmbsload.c: Likewise.
3017
3018 2000-07-26  Greg McGary  <greg@mcgary.org>
3019
3020         * Makeconfig (+link-bounded, link-libc-bounded,
3021         link-extra-libs-bounded): New variables.
3022         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3023         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3024         * Rules (tests-bp.out): New variable.
3025         (tests): Conditionally add BP tests.
3026         (binaries-bounded): Add variable and associated rule.
3027         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3028         Move conditional stuff after place where condition is defined.
3029
3030         * malloc/malloc.c (bp-checks.h): Add #include.
3031         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3032         (_bin_at): Add unbounded version of bin_at.
3033         (IAV, chunk_alloc): Use unbounded _bin_at.
3034         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3035         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3036         Wrap BOUNDED_N around return value.
3037         (chunk_realloc): Adjust oldsize once.
3038
3039         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3040         (__ubp_memchr): Add correct decl.
3041         (_CHECK_STRING): Use __ubp_memchr.
3042         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3043         New alias for unbounded-pointer __memchr.
3044         * sysdeps/i386/memchr.S: Likewise.
3045         * sysdeps/ia64/memchr.S: Likewise.
3046         * sysdeps/m68k/memchr.S: Likewise.
3047         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3048         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3049         * sysdeps/vax/memchr.s: Likewise.
3050
3051         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3052         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3053         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3054         * sysdeps/i386/i686/strtok.S: Likewise.
3055         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3056         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3057
3058         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3059         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3060
3061         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3062         bounds of copy_result to mount_proc.
3063
3064 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3065
3066         * wctype/wctype.h (__wctrans_l): New declaration.
3067         * wctype/wctrans_l.c: New file.
3068         * wctype/Makefile (routines): Add wctrans_l.
3069
3070 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3071
3072         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3073         Patch by MacGyver <macgyver@tos.net>.
3074
3075 2000-07-26  Andreas Jaeger  <aj@suse.de>
3076
3077         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3078         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3079         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3080
3081         * rt/tst-aio.c (test_file): Fix typo.
3082         * rt/tst-aio64.c (test_file): Likewise.
3083
3084         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3085         * rt/Makefile: Add rules to build and run tst-aio3.
3086
3087         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3088         it's not needed and confuses only.
3089
3090 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3091
3092         * resolv/res_init.c: Add support for nameserver communication with
3093         IPv6.
3094         * resolv/res_send.c: Likewise.
3095         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3096         in nsaddrs field.
3097         Patch by <venaas@nvg.ntnu.no>.
3098
3099 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3100
3101         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3102         (wcwidth_table_get): New function.
3103         (wcwidth_table_add): Call it.
3104         (wctrans_table_get): New function.
3105         (wctrans_table_add): Call it.
3106
3107 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3108
3109         * rt/lio_listio.c (lio_listio): Always disable individual
3110         notification.
3111         * rt/Makefile: Add rules to build and run tst-aio2.
3112         * rt/tst-aio2.c: New file.
3113
3114         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3115         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3116
3117 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3118
3119         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3120         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3121         leading and trailing spaces from host, user and domain name.
3122
3123 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3124
3125         * csu/defs.awk: Add support for need_endp.
3126
3127 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3128
3129         * resolv/resolv.h: Remove __P from res_send_qhook and
3130         res_send_rhook typedefs.
3131
3132 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3133
3134         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3135
3136 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3137
3138         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3139
3140 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3141
3142         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3143         calling thread, set the cancellation flag and return success
3144         instead of EINTR.
3145
3146 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3147
3148         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3149         * libio/tst-widetext.c: New file.
3150         * libio/tst-widetext.input: New file.
3151
3152         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3153
3154         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3155         empty external buffer correctly.
3156
3157 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3158
3159         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3160         __STRING(entry) and not #entry.
3161         (_RTLD_EPILOGUE): Likewise.
3162         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3163
3164 2000-07-25  Andreas Jaeger  <aj@suse.de>
3165
3166         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3167         according to changes in test program, run also with static only
3168         builds.
3169         ($(objpfx)tst-printf.out): Likewise.
3170
3171         * stdio-common/tst-unbputc.sh: Likewise.
3172         * stdio-common/tst-printf.sh: Likewise.
3173
3174 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3175
3176         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3177
3178         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3179         loop.
3180
3181         * libio/fileops.c: Pretty print.
3182
3183 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3184
3185         * wctype/wchar-lookup.h: New file.
3186         * wctype/iswctype.c: Include "wchar-lookup.h".
3187         (__iswctype): Support alternate locale format with 3-level tables.
3188         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3189         * wctype/towctrans.c (__towctrans): Likewise.
3190         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3191         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3192         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3193         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3194         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3195         __iswxdigit, towlower, towupper): Support alternate locale format
3196         with 3-level tables.
3197         * wctype/wcextra.c (iswblank): Likewise.
3198         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3199         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3200         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3201         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3202         format with 3-level tables.
3203         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3204         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3205         format, return a 3-level table pointer.
3206         * wctype/wctype_l.c (__wctype_l): Likewise.
3207         * wctype/wctrans.c (wctrans): Likewise.
3208         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3209         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3210         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3211         (iswctype): Remove macro definition.
3212         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3213         (internal_wcwidth): Support alternate locale format with 3-level
3214         tables.
3215         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3216         New nl_items.
3217         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3218         Define them as being type "word".
3219         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3220         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3221         __ctype32_width): New exported variables.
3222         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3223         alternate locale format. Don't initialize __ctype_names and
3224         __ctype_width in the alternate locale format.
3225         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3226         * locale/programs/localedef.c (oldstyle_tables): New variable.
3227         (OPT_OLDSTYLE): New macro.
3228         (options): Add --old-style option.
3229         (parse_opt): Handle --old-style option.
3230         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3231         map_offset, class_3level, map_3level, width_3level members.
3232         (ctype_output): Support for alternate locale format: Computation of
3233         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3234         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3235         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3236         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3237         now contain both class and map tables.
3238         (struct wctype_table): New type.
3239         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3240         functions.
3241         (struct wcwidth_table): New type.
3242         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3243         functions.
3244         (struct wctrans_table): New type.
3245         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3246         functions.
3247         (allocate_arrays): Support for alternate locale format: Set
3248         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3249         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3250         to the first 256 characters. Compute ctype->map_3level. Set
3251         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3252         instead of ctype->width.
3253
3254 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3255
3256         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3257         string functions.
3258
3259 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3260
3261         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3262         in wide characters, not bytes.
3263         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3264         into file.
3265
3266 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3267
3268         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3269         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3270         LC_MEASUREMENT, LC_IDENTIFICATION.
3271
3272         * locale/xlocale.h (struct __locale_struct): Increase size of
3273         __locales array.
3274         * locale/duplocale.c (__duplocale): Copy newly added categories as
3275         well.
3276         * locale/freelocale.c (__freelocale): Free newly added categories.
3277         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3278         If a base is given, use it, don't simply return it.
3279
3280 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3281
3282         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3283         variables, copied_key and copied_salt, instead of boolean variables.
3284
3285 2000-07-24  Andreas Jaeger  <aj@suse.de>
3286
3287         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3288         check for offset.
3289
3290         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3291         initgroups_function, adopted prototype for change from 2000-07-23.
3292         (initgroups): Follow type change.
3293
3294         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3295         & PAGE_MASK case, reformat.
3296
3297         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3298         from stdin and setup environment.
3299
3300 2000-07-24  Andreas Schwab  <schwab@suse.de>
3301
3302         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3303
3304 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3305
3306         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3307         more.  Patch by scarlet@mit.edu [PR libc/1799].
3308
3309         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3310         [PR libc/1792].
3311
3312         * argp/argp-parse.c (parser_finalize): Reverse order in which
3313         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3314
3315         * grp/initgroups.c (initgroups): Don't limit the possible number
3316         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3317         the setgroups call while the call fails and descrease the number
3318         of groups each round.
3319         The name of the initgroups function in the NSS modules changed.
3320         (compat_call): Adapt for dynamic resizing.
3321         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3322         Implement dynamic resizing.
3323         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3324         Likewise.
3325         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3326         * hesiod/Versions: Change exported interface name.
3327         * nis/Versions: Change exported interface name.
3328
3329 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3330
3331         * locale/iso-639.def: Some errors corrected.
3332         Patch by Keld Simonsen.
3333
3334         * include/limits.h: Update non-gcc portion.
3335         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3336
3337 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3338
3339         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3340         program's data space, reallocate only the space that was just
3341         deallocated to release its backing space.
3342
3343 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3344
3345         * stdio-common/vfprintf.c (process_string_arg): For wide character
3346         version, handle precision also correctly.
3347
3348         * nss/nss_files/files-hosts.c: Correct problem with three or more
3349         entries with the same name.
3350
3351         * nss/nss_files/files-hosts.c: Implement multi handling.
3352         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3353
3354 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3355
3356         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3357         strcasecmp.
3358
3359         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3360         * malloc/Makefile: Likewise.
3361         * malloc/tst-mtrace.sh: Likewise.
3362         * posix/Makefile: Likewise.
3363         * posix/globtest.sh: Likewise.
3364         * posix/wordexp-tst.sh: Likewise.
3365         * string/Makefile: Likewise.
3366
3367 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3368
3369         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3370         size instead of LC_ALL to take into account the new locale
3371         categories.
3372
3373 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3374
3375         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3376         remainders of hash table.
3377         * locale/categories.def: Remove remainders of transliteration
3378         hash table.
3379         * locale/langinfo.h: Likewise.
3380         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3381         transliteration tables.
3382
3383         * locale/gen-translit.pl: New file.
3384         * locale/C-translit.h.in: New file.
3385         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3386         data pointers with data from this file.
3387         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3388         and gen-translit.pl.
3389         Add rule to generate C-translit.h.
3390         * intl/tst-translit.c (main): Update for now performed
3391         transliteration.
3392
3393         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3394         (it's no input error).
3395         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3396         * stdio-common/scanf12.c: Correct expected result for first scanf.
3397
3398         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3399         of multibyte character strings in %s format with precision.
3400
3401 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3402
3403         * locale/programs/ld-collate.c (collate_read): Allow collating
3404         symbols and elements be named in reorder-after instructions.
3405         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3406
3407         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3408         duplication with generated name, not the name of the first
3409         character.
3410         Patch by Yong Li <yong.li@asu.edu>.
3411
3412         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3413         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3414
3415 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3416
3417         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3418         allocations only if a non-main arena cannot be extended.
3419
3420 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3421
3422         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3423         in DF_1_NODEFLIB handling.
3424
3425 2000-07-21  Andreas Jaeger  <aj@suse.de>
3426
3427         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3428         own rule.
3429
3430         * libio/fwide.c: Include <wchar.h> for prototype.
3431
3432 2000-07-21  Greg McGary  <greg@mcgary.org>
3433
3434         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3435         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3436         Define in terms of chunk_at_offset.
3437         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3438         (next_bin, prev_bin): offset by size of real array elements.
3439         (chunk_align): Make `m' a scalar, since that's how it's used.
3440
3441 2000-07-21  Greg McGary  <greg@mcgary.org>
3442
3443         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3444         UNCHECK_BOUNDS.
3445         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3446         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3447         Wrap bounds around argv & envp and each of their string members.
3448         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3449         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3450         symbol in BP_SYM ().  Discard bounds of address arg.
3451         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3452         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3453         Discard bounds on address arg, add bounds to return value.
3454
3455 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3456
3457         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3458         * elf/filter.c: New file.
3459         * elf/filtmod1.c: New file.
3460         * elf/filtmod2.c: New file.
3461
3462         * elf/rtld.c: Define _dl_bind_not variable.
3463         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3464         * elf/dl-support.c: Likewise.
3465         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3466         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3467         _dl_bind_not.
3468         (profile_fixup): Likewise.
3469
3470         * libio/Makefile (routines): Add fwide.
3471         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3472         fwide now.  Internal calls to _IO_fwide must do locking themselves
3473         or don't need locking.
3474         * libio/fwide.c: New file.
3475
3476         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3477
3478         * elf/Makefile: Add no modules for nodelete test.
3479         * elf/nodelmod3.c: New file.
3480         * elf/nodelmod4.c: New file.
3481         * elf/nodelete.c: Also test case where dependency of dlopen() object
3482         is marked nodelete.
3483
3484         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3485         * elf/nodlopen.c: New file.
3486         * elf/nodlopenmod.c: New file.
3487         * include/dlfcn.h: Define __RTLD_DLOPEN.
3488         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3489         and this is a dlopen() call, do not load the binary.
3490         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3491         * dlfcn/dlopenold.c: Likewise.
3492         * configure.in: Add test for -z nodelete option.
3493         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3494
3495 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3496
3497         Make Hesiod NSS module thread-safe.
3498
3499         * hesiod/README.hesiod: Update.
3500
3501         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3502         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3503         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3504         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3505         hesiod-proto.
3506         * hesiod/nss_hesiod/hesiod-init.c: New file.
3507         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3508         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3509         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3510         * hesiod/nss_hesiod/hesiod-service.c
3511         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3512         looking up services by port number.
3513         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3514
3515         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3516         * hesiod/hesiod.h: Likewise.
3517         * hesiod/hesiod_p.h: Likewise.
3518
3519 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3520
3521         Fix problems with `struct __res_state' getting too big.
3522         * resolv/resolv.h (struct __sockaddr_in): New definition.
3523         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3524         the private parts of the structure to save some space.
3525         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3526         (struct sockaddr_in *) in call to sock_eq.
3527         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3528
3529 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3530
3531         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3532         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3533         with nodelete.
3534         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3535         to _dl_map_object.  Return immediately if no object loaded.
3536         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3537         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3538         if it exists into l_flags_1 word.
3539         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3540         it to determine whether loading is wanted or not.
3541         (_dl_map_object): Likewise.
3542         Call _dl_map_object_from_fd with new parameter.
3543         * sysdeps/generic/ldsodefs.h: Update prototype.
3544         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3545         * elf/rtld.c: Likewise.
3546         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3547         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3548         * elf/noload.c: New file.
3549         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3550         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3551         * sysdeps/mips/bits/dlfcn.h: Likewise.
3552         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3553         (tests-nodelete-yes): Define.
3554         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3555         Add rules to build nodelete and modules.
3556         * elf/nodelete.c: New file.
3557         * elf/nodelmod1.c: New file.
3558         * elf/nodelmod2.c: New file.
3559         * configure.in: Add test for -z nodelete option.
3560         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3561
3562         * libio/Makefile (tests): Add tst_wprintf2.
3563         (tst_wprintf2-ARGS): Define.
3564         * libio/tst_wprintf2.c: New file.
3565         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3566
3567         * libio/wfiledoalloc.c: Only allocate external buffer if this
3568         hasn't happened yet.
3569
3570         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3571         something in the buffer.  gconv call can write up to end of the
3572         buffer, not only _IO_write_end.
3573         (_IO_wfile_overflow): Allocate also external buffer.
3574
3575 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3576
3577         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3578         strings with precision in vfwprintf correctly.
3579         * stdio-common/vfprintf.c: Fix completely broken handling of
3580         unbuffered wide character streams.
3581         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3582
3583         * resolv/Makefile (distribute): Add README.
3584
3585         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3586
3587 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3588
3589         Update resolver code to BIND 8.2.3-T5B.
3590
3591         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3592         __res_nclose.
3593         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3594         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3595         __res_search.
3596         * resolv/Banner: BIND-8.2.3-T5B.
3597
3598         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3599         * resolv/herror.c: Likewise.
3600         * resolv/inet_addr.c: Likewise.
3601         * resolv/inet_net_ntop.c: Likewise.
3602         * resolv/inet_net_pton.c: Likewise.
3603         * resolv/inet_neta.c: Likewise.
3604         * resolv/inet_ntop.c: Likewise.
3605         * resolv/nsap_addr.c: Likewise.
3606         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3607         IPv6 addresses (ISC bug #520).
3608
3609         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3610         * resolv/ns_parse.c: Likewise.
3611         * resolv/ns_netint.c: Likewise.
3612         * resolv/ns_samedomain.c: Likewise.
3613         * resolv/ns_ttl.c: Likewise.
3614         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3615         RCS ID in object file.
3616
3617         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3618         * resolv/res_mkquery.c: Likewise.
3619         * resolv/res_query.c: Likewise.
3620         * resolv/res_init.c: Likewise.
3621         (res_setoptions): Mark internal.
3622         * resolv/res_send.c: Likewise.
3623         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3624         by using poll instead.
3625         * resolv/res_comp.c: Likewise.
3626         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3627         weak alias for __dn_expand.
3628         * resolv/res_data.c: Likewise.
3629         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3630         in _res.options.  Avoids a potential security risk by avoiding a
3631         close (0).
3632         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3633         res_mkquery, res_query, res_querydomain adn res_search weak
3634         aliases for __res_mkquery, __res_query, __res_querydomain and
3635         __res_search.
3636         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3637         instead to avoid close(0).
3638         (res_init): Always use the static resolver context.
3639         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3640         alias for __res_init.
3641
3642         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
3643         RES_SET_H_ERRNO and accompanying comment to...
3644         * include/resolv.h: ... here.
3645
3646         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
3647         * resolv/arpa/nameser_compat.h: Likewise.
3648
3649 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3650
3651         * nss/makedb.c (main): Compare result of load_db with
3652         NSS_STATUS_SUCCESS and not 0.
3653         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
3654
3655         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
3656
3657 2000-07-18  Greg McGary  <greg@mcgary.org>
3658
3659         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
3660         (EXTEND_BUFFER): Use it.
3661
3662 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3663
3664         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
3665         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
3666         __builtin_return_address.
3667         * dlfcn/dlopenold.c: Likewise.
3668         * dlfcn/dlsym.c: Likewise.
3669         * dlfcn/dlvsym.c: Likewise.
3670         * elf/dl-profstub.c: Likewise.
3671         * malloc/malloc.c: Likewise.
3672         * sysdeps/generic/machine-gmon.h: Likewise.
3673         Based on a patch by schwidefsky@de.ibm.com.
3674
3675 2000-07-18  Andreas Jaeger  <aj@suse.de>
3676
3677         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
3678         NULL to elf_machine_fixup_plt t argument to silence GCC.
3679
3680         * include/string.h: Add prototype for __memchr.
3681
3682         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
3683
3684         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
3685         instead of memrchr.
3686
3687 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3688
3689         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
3690
3691         * locale/C-ctype.c: Add initializers for gap elements.
3692         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
3693         for gap elements.
3694
3695 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3696
3697         * nscd/nscd.c (print_version): Update copyright year.
3698
3699 2000-07-17  Greg McGary  <greg@mcgary.org>
3700
3701         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
3702         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
3703         signature argnames with angle-brackets for use as word delimiters,
3704         and to induce syntax errors for any args not handled.  Split
3705         multi-echo echoes and comment each stage.
3706         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
3707         * sysdeps/unix/inet/syscalls.list: Likewise.
3708         * sysdeps/unix/mman/syscalls.list: Likewise.
3709         * sysdeps/unix/syscalls.list: Likewise.
3710         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3711         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3712         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3713         * sysdeps/unix/sysv/syscalls.list: Likewise.
3714         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
3715
3716         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
3717         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
3718         qualifiers.  Don't check NULL-terminator of argv & envp.
3719         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
3720         unbounded pointer type in word-size assertion.
3721         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
3722         cases to stifle warnings.
3723
3724         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
3725         _IO_file_attach.
3726         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3727
3728         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
3729         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
3730         ptr as __unbouned.
3731
3732         * Makerules (o-objects): Supplement with $(o-objects$o).
3733         * string/Makefile (o-objects.ob): Add variable to pull
3734         unbounded versions of memcpy, memset and memchr into libc_b.
3735
3736         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
3737         rather than non-existent __ubp_memchr.
3738         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
3739         (_CHECK_STRING, _CHECK_N): New macros.
3740         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
3741         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
3742         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
3743         Add weak alias "memchr".
3744         * sysdeps/generic/memchr.c: Likewise.
3745         * sysdeps/i386/memchr.S: Likewise.
3746         * sysdeps/ia64/memchr.S: Likewise.
3747         * sysdeps/m68k/memchr.S: Likewise.
3748         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3749         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3750         * sysdeps/vax/memchr.s: Likewise.
3751
3752         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
3753
3754         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
3755         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
3756         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
3757         __BOUNDED_POINTERS__.
3758         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
3759         for __BOUNDED_POINTERS__.
3760
3761 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
3762
3763         * iconv/gconv_open.c (__gconv_open): Initialize the __data
3764         field of struct __gconv_trans_data differently.  Don't pass NULL to
3765         trans_init_fct.  Simplify list append operation.
3766
3767 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
3768
3769         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
3770         not only those having tsearch.
3771
3772 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
3773
3774         * locale/langinfo.h: Add placeholder values in enum for removed
3775         LC_CTYPE entries.
3776
3777 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
3778
3779         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
3780         chain if the PHDR check fails.
3781
3782 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
3783
3784         * nss/getent.c (print_hosts): Make sure we always print a space
3785         between numeric addresses and hostnames.
3786
3787 2000-07-17  Wolfram Gloger  <wg@malloc.de>
3788
3789         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
3790         i.e. if n_mmaps_max>0.
3791
3792 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
3793
3794         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
3795         values to remove possible clash with other AI_* constants.
3796         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
3797         hexadecimal constants to stress the fact they're in fact
3798         bit flags.
3799
3800 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
3801
3802         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
3803         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
3804         instead of res_init.
3805
3806 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3807
3808         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
3809         parameters of memset calls to avoid warnings.
3810
3811 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
3812
3813         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
3814         necessary.
3815
3816         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
3817         Patch by Greg McGary <greg@mcgary.org>.
3818
3819         * io/Makefile (tests): Add tst-getcwd.
3820         * io/tst-getcwd.c: New file.
3821
3822         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
3823
3824 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
3825
3826         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
3827         structure.
3828
3829 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
3830
3831         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
3832         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
3833
3834 2000-07-12  H.J. Lu  <hjl@gnu.org>
3835
3836         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
3837         GLIBC_2.2.
3838         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
3839         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
3840         (sysdep-routines): Add clone2.
3841         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
3842
3843 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
3844
3845         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
3846         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
3847
3848 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
3849
3850         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
3851         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
3852         Change type of si_band from "int" to "long".
3853         (si_imm) [USE_GNU]: Define
3854         (si_isr) [USE_GNU]: Ditto.
3855         (ILL_BREAK) [USE_GNU]: Ditto.
3856         (FPE_DECOVF) [USE_GNU]: Ditto.
3857         (FPE_DECDIV) [USE_GNU]: Ditto.
3858         (FPE_DECERR) [USE_GNU]: Ditto.
3859         (FPE_INVASC) [USE_GNU]: Ditto.
3860         (FPE_INVDEC) [USE_GNU]: Ditto.
3861         (TRAP_BRANCH) [USE_GNU]: Ditto.
3862         (TRAP_HWBKPT) [USE_GNU]: Ditto.
3863
3864 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
3865
3866         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
3867         bits/sigcontext as struct mcontext does not depend on it.
3868
3869         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
3870
3871 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
3872
3873         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
3874
3875 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
3876
3877         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
3878
3879 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
3880
3881         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
3882
3883 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
3884
3885         * intl/Makefile (test-srcs): Add tst-translit.
3886         (tests): Likewise.
3887         Add rules to build and run tst-translit.
3888         * intl/tst-translit.c: New file.
3889         * intl/tst-translit.sh: New file.
3890         * intl/translit.po: New file.
3891
3892 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
3893
3894         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
3895         transliteration function did its job, continue, don't stop.
3896
3897         * iconvdata/iso646.c: Little optimizations in body for conversion
3898         from UCS4.
3899
3900 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
3901
3902         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
3903
3904 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
3905
3906         * configure.in: Check for pwd binary.
3907         * config.make.in: Add PWD_P to be subsituted.
3908         * Makerules: Use $(PWD_P) instead of /bin/pwd.
3909
3910 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
3911
3912         * iconvdata/Makefile (modules): Add GB18030.
3913         (distribute): Add gb18030.c.
3914         * iconvdata/gconv-modules: Add entries for GB18030 module.
3915         * iconvdata/gb18030.c: New file.
3916         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
3917         and Wu Jian.
3918
3919 2000-07-13  Andreas Jaeger  <aj@suse.de>
3920
3921         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
3922         patch.
3923
3924         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
3925         * inet/getnetgrent.c (free_mem): Likewise.
3926         * misc/mntent.c (free_mem): Likewise.
3927         * nss/getXXbyYY.c (free_mem): Likewise.
3928         * nss/getXXent.c (free_mem): Likewise.
3929         * pwd/fgetpwent.c (free_mem): Likewise.
3930         * shadow/fgetspent.c (free_mem): Likewise.
3931
3932 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
3933
3934         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
3935         64-bit architecture correctly [PR libc/1794].
3936
3937 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
3938
3939         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
3940         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
3941         report that we are out of memory.
3942         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
3943         * elf/dl-libc.c (dlerror_run): Likewise.
3944         * elf/dl-open.c (_dl_open): Likewise.
3945         * elf/rtld.c (dl_main): Likewise.
3946         * elf/dl-error.c: Define _dl_out_of_memory.
3947         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
3948         the error string.
3949         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
3950         [PR libc/1813].
3951
3952         * dlfcn/dlerror.c (free_key_mem): Also free error string.
3953
3954         * iconv/loop.c: Fix comment.
3955
3956         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
3957
3958 2000-07-13  Andreas Jaeger  <aj@suse.de>
3959
3960         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
3961         getcwd (NULL, size) with size > 0.
3962         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
3963
3964 2000-07-13  Andreas Jaeger  <aj@suse.de>
3965
3966         * posix/Makefile: Remove build rules for libposix.
3967
3968 2000-07-13  Andreas Schwab  <schwab@suse.de>
3969
3970         * sysdeps/generic/glob.c (glob): Fix memory leak.
3971         [SHELL]: Remove reference to undefined variable `files'.
3972         Fixes PR libc/1782.
3973
3974 2000-07-13  Andreas Jaeger  <aj@suse.de>
3975
3976         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
3977         functions.
3978
3979         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
3980         memory if it was allocated.
3981
3982 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
3983
3984         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
3985         step.
3986
3987         * iconv/gconv_open.c (__gconv_open): Reapply
3988         2000-07-12 Bruno Haible <haible@clisp.cons.org>
3989
3990                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
3991
3992         * iconv/gconv_open.c: Undo last two changes for now.  They break
3993         everything.
3994
3995 2000-07-12  Andreas Jaeger  <aj@suse.de>
3996
3997         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
3998         compiler.
3999         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4000         (CFLAGS-dl-cache.c): Likewise.
4001         (CFLAGS-ldconfig.c): Added, passes directory locations.
4002
4003         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4004         locate cache.
4005         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4006         (main): Use configured LIBDIR and SLIBDIR.
4007
4008 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4009
4010         * math/bits/cmathcalls.h (cimag): Add __THROW.
4011         (creal, conj): Likewise.
4012         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4013         by negative value.
4014
4015 2000-07-12  H.J. Lu  <hjl@gnu.org>
4016
4017         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4018         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4019
4020 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4021
4022         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4023         it is wrong.
4024
4025 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4026
4027         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4028
4029 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4030
4031         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4032         __modname.
4033
4034 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4035
4036         * iconv/gconv_open.c (__gconv_open): Initialize
4037         result->__steps[cnt].__data.
4038
4039 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4040
4041         * nss/getent.c (services_keys): Pass port number in network byte
4042         order in call to getservbyport.
4043
4044 2000-07-11  Andreas Jaeger  <aj@suse.de>
4045
4046         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4047         source dir.
4048         * intl/Makefile (do-gettext-test): Likewise.
4049         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4050
4051 2000-07-11  Andreas Schwab  <schwab@suse.de>
4052
4053         * Makeconfig (run-program-prefix): New rule.
4054         (built-program-cmd): Use run-program-prefix.
4055
4056 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4057
4058         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4059         and NOEXPR unconditionally available.
4060
4061 2000-07-12  Greg McGary  <greg@mcgary.org>
4062
4063         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4064         * sysdeps/posix/open64.c: Likewise.
4065         * sysdeps/generic/fegetenv.c: Likewise.
4066         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4067         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4068         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4069         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4070         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4071         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4072
4073 2000-07-11  Greg McGary  <greg@mcgary.org>
4074
4075         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4076         Add extra level of macro expansion.
4077         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4078         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4079         is available at the time `select' prototype is declared.
4080         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4081         Collect non-versioned weak aliases.  Consider only non-versioned
4082         aliases for the user-visible systemcall name.  Do checks inline with
4083         call to primitive system call.
4084         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4085         stand-alone bounds checks to suppress unused value warnings.
4086         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4087
4088 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4089
4090         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4091         file descriptor checking in SUID programs for the Hurd.
4092
4093         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4094         res_hostalias instead of __hostalias for thread-safety.
4095
4096 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4097
4098         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4099         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4100
4101 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4102
4103         * include/features.h: Include ISO C99 features if the compiler used
4104         is an ISO C99 compiler.
4105         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4106
4107 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4108
4109         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4110
4111 2000-07-10  Andreas Jaeger  <aj@suse.de>
4112
4113         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4114         it's overridden by libpthreads.
4115         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4116         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4117         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4118         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4119         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4120
4121         * malloc/Makefile: Run tst-mtrace only with shared libs.
4122
4123         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4124         with shared libs.
4125
4126 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4127
4128         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4129         that gpreg really points to the GOT section of the calling object.
4130         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4131         checking a start address of first one.
4132         Fix typos.
4133         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4134         Likewise.
4135
4136         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4137
4138 2000-07-10  Andreas Jaeger  <aj@suse.de>
4139
4140         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4141         (string_alias->strong_alias).
4142
4143 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4144
4145         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4146
4147 2000-07-07  Greg McGary  <greg@mcgary.org>
4148
4149         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4150         have no names without leading underscores.
4151
4152 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4153
4154         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4155         U007E.
4156
4157         * stdio-common/Makefile (tests): Remove tst-printf here...
4158         (tests-srcs): ...and add it here.
4159         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4160         Add rules to run tst-printf.sh.
4161         * stdio-common/tst-printf.c: Move code around so that there is really
4162         no further output where it's stated.
4163         * stdio-common/tst-printf.sh: New file.
4164
4165 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4166
4167         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4168         (do_write): Renamed from pwrite.
4169         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4170         `struct _IO_cookie_file'.
4171
4172 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4173
4174         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4175         detected.
4176         * malloc/tst-mtrace.sh: Run mtrace script.
4177
4178 2000-07-07  Greg McGary  <greg@mcgary.org>
4179
4180         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4181         Move all three components of a bounded pointer.
4182
4183 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4184
4185         * locale/programs/locale.c (write_locales): Don't simply add all
4186         directories found in the subdir, test whether at least the
4187         LC_CTYPE file is in there.
4188
4189 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4190
4191         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4192         * iconvdata/euc-kr.c: Likewise.
4193
4194         * stdio-common/vfprintf.c (process_string_arg): Check result of
4195         wcrtomb call and bail out if it failed.
4196
4197         * malloc/Makefile (test-srcs): Add tst-mtrace.
4198         (distribute): Add tst-mtrace.sh.
4199         Add rule to run tst-mtrace.sh.
4200         * malloc/tst-mtrace.c: New file.
4201         * malloc/tst-mtrace.sh: New file.
4202
4203         * include/signal.h: Declare __libc_sigaction.
4204         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4205         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4206         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4207         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4208         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4209         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4210         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4211
4212         * configure.in: Fix CFLAGS-memprofstat.c definition after
4213         2000-06-19 change.
4214         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4215
4216 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4217
4218         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4219         instead of NULL to elf_machine_fixup_plt t argument.
4220         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4221         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4222         cast.
4223
4224 2000-07-06  Andreas Jaeger  <aj@suse.de>
4225
4226         * crypt/Makefile (LDLIBS-cert): Removed.
4227         (LDLIBS-md5c-test): Removed.
4228         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4229         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4230
4231 2000-07-06  Andreas Jaeger  <aj@suse.de>
4232
4233         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4234         of the proc system is "proc".
4235
4236         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4237         thread library for static programs.
4238
4239 2000-07-06  Greg McGary  <greg@mcgary.org>
4240
4241         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4242         New macros.
4243         * sysdeps/generic/strcpy.c: Add bounds checks.
4244         * sysdeps/unix/fxstat.c: Likewise.
4245         * sysdeps/unix/xstat.c: Likewise.
4246         * sysdeps/unix/common/lxstat.c: Likewise.
4247         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4248         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4249         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4250         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4251         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4252         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4253         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4254         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4255         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4256         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4257         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4258         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4259         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4260         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4261         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4262         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4263         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4264         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4265         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4266         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4267         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4268         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4269         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4270         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4271         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4272         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4273         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4274         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4275         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4276         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4277         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4278         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4279         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4280         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4281         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4282         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4283         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4284         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4285         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4286         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4287         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4288         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4289         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4290         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4291         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4292         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4293         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4294         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4295         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4296         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4297         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4298         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4299         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4300         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4301         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4302         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4303         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4304         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4305         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4306         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4307         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4308         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4309         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4310         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4311
4312         * string/endian.h (__LONG_LONG_PAIR): New macro.
4313         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4314         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4315         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4316         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4317         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4318         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4319         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4320         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4321         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4322         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4323         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4324         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4325
4326         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4327
4328 2000-07-06  Andreas Jaeger  <aj@suse.de>
4329
4330         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4331         Initialize result.
4332
4333         * math/test-fpucw.c: Include <stdio.h> for printf.
4334
4335 2000-07-05  Greg McGary  <greg@mcgary.org>
4336
4337         * sysdeps/generic/bp-checks.h: New file.
4338         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4339         with list of #include files.
4340         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4341         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4342         Don't generate BP thunk if `V' appears in signature.
4343         Generate thunks with complete bounds checks.
4344         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4345         * sysdeps/unix/inet/syscalls.list: Likewise.
4346         * sysdeps/unix/mman/syscalls.list: Likewise.
4347         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4348         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4349         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4350         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4351
4352 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4353
4354         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4355         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4356         If mount not in the file fall back on /proc.
4357
4358         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4359         string got copied in.
4360         Patch by Solar Designer <solar@false.com>.
4361
4362 2000-07-05  Andreas Jaeger  <aj@suse.de>
4363
4364         * manual/install.texi (Installation): Update information about
4365         add-ons.
4366         (Configuring and compiling): Update for glibc 2.2.
4367
4368 2000-07-04  Andreas Jaeger  <aj@suse.de>
4369
4370         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4371         (_FPU_IEEE): Likewise.
4372
4373         * math/Makefile (tests): Add test-fpucw.
4374
4375         * math/test-fpucw.c (main): New file.
4376
4377 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4378
4379         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4380
4381         * locale/programs/ld-collate.c (collate_output): Also write out the
4382         collation sequence values and the wide character string for the
4383         collation symbol table.
4384
4385         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4386         * posix/fnmatch_loop.c: Implement collating symbol handling.
4387         * posix/tst-fnmatch.input: Add more tests, especially for collating
4388         symbol handling.
4389
4390         * posix/regex.c: Fix comment.
4391
4392 2000-07-05  Andreas Jaeger  <aj@suse.de>
4393
4394         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4395         (_FPU_GETCW): Remove extra colon.
4396         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4397
4398         * posix/fnmatch_loop.c (FCT): Only declare len if
4399         !WIDE_CHAR_VERSION to silence GCC.
4400
4401         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4402         prototype.
4403         * sysdeps/generic/strchrnul.c: Likewise.
4404         * sysdeps/generic/strlen.c: Likewise.
4405         * sysdeps/generic/strchr.c: Likewise.
4406         * sysdeps/generic/memchr.c: Likewise.
4407
4408 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4409
4410         * posix/fnmatch_loop.c: Implement equivalence class handling.
4411         * posix/tst-fnmatch.input: Add tests for equivalence class
4412         handling.
4413
4414         * posix/fnmatch_loop.c: Improve performance for single-byte
4415         character sets by not using btowc.
4416
4417         * posix/tst-fnmatch.input: Add tests for locale dependent
4418         behaviour.
4419         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4420
4421         * posix/tst-fnmatch.input: Add more test cases.
4422
4423         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4424         are not aligned to alignof(md5_uint32) do it before calling
4425         __md5_process_bytes.
4426         * crypt/md5.c: Make sure buffers are aligned.
4427         * crypt/md5.h: Likewise.
4428         Reported by Solar Designer <solar@false.com>.
4429
4430         * crypt/Makefile: Add dependencies for test programs.
4431
4432         * Rules: Define LC_ALL=C in environments of all programs we run.
4433
4434         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4435
4436 2000-07-03  H.J. Lu  <hjl@gnu.org>
4437
4438         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4439         is 2 + elem + offset, not 2 + elem + offset + 2.
4440
4441 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4442
4443         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4444         suite.
4445         * posix/Makefile (tests): Add tst-fnmatch.
4446         (tst-fnmatch-ENV): Define.
4447         * posix/tst-fnmatch.c: New file.
4448         * posix/tst-fnmatch.sh: New file.
4449
4450 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4451
4452         * locale/programs/charmap.c (charmap_read): Prepend
4453         the condition filename == NULL.
4454
4455 2000-07-03  Greg McGary  <greg@mcgary.org>
4456
4457         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4458
4459         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4460         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4461
4462         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4463         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4464         (FILEBUF_LITERAL): Add cast for CHAIN init.
4465         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4466         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4467         Revert type of `fp' to _IO_FILE*.
4468         (_IO_iter_file): Remove cast.
4469         (_IO_iter_next): Elide intermediate member reference.
4470
4471         * sysdeps/powerpc/strchr.S:  Check bounds.
4472         Wrap extern symbols in BP_SYM ().
4473
4474 2000-07-03  Andreas Jaeger  <aj@suse.de>
4475
4476         * dlfcn/Makefile (generated): New.
4477
4478 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4479
4480         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4481         (__uflow): Likewise.
4482         (__underflow): Likewise.
4483         * libio/wgenops.c (__wunderflow): Likewise.
4484         * stdio-common/tst-unbputc.c: New file.
4485         * stdio-common/tst-unbputc.sh: New file.
4486         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4487
4488         * po/en_GB.po: New file.
4489         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4490
4491 2000-07-01  Andreas Jaeger  <aj@suse.de>
4492
4493         * intl/Makefile (generated-dirs): New.
4494
4495         * elf/Makefile (generated): trusted-dirs.h is always generated,
4496         move out of build-shared condition.
4497         (generated): Merge the two entries for build-shared.
4498
4499 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4500
4501         * debug/Makefile (distribute): Add xtrace.sh.
4502
4503 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4504
4505         * version.h (VERSION): Bump to 2.1.91.
4506
4507         * configure.in: Update warning comment.  glibc should not be
4508         broken anymore.
4509
4510         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4511         ioperm.c, sys/procfs.h, and sys/io.h.
4512
4513         * sysdeps/powerpc/Dist: Add bp-asm.h.
4514
4515         * assert/Depend: Add localedata.
4516         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4517         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4518
4519         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4520         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4521         relocation address to prevent unaligned trap.
4522         Suggested by Richard Henderson <rth@cygnus.com>.
4523
4524 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4525
4526         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4527         if redirecting and either redirection is done using defines or
4528         not optimizing.
4529
4530 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4531
4532         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4533         generated expressions.
4534         Patch by Darren McClelland <dmcclell@zetec.com>.
4535
4536         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4537         since zic uses setlocale and gettext but we cannot make it use the
4538         new locale data since zic calls a shell which might not use the
4539         new libc.
4540
4541         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4542         handling the internation currency symbol.  POSIX says that the
4543         fourth character is used to separate the currency symbol from the
4544         value.  Therefore it does not have to be printed.  But we cannot
4545         remove the space if the currency symbol is printed before the
4546         number since this is what many locales expect.
4547
4548         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4549         whether this information is available.
4550
4551         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4552         buffers in case the translation is too large.  Remember allocated
4553         memory blocks in a list.
4554         (free_mem): Free memory for translations.
4555
4556         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4557
4558         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4559         information is available set the string length to zero.
4560
4561         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4562
4563 2000-06-30  Greg McGary  <greg@mcgary.org>
4564
4565         * sysdeps/powerpc/bp-asm.h: New file.
4566         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4567         Wrap extern symbols in BP_SYM ().
4568         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4569         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4570         * sysdeps/powerpc/setjmp.S: Likewise.
4571         * sysdeps/powerpc/add_n.S: Likewise.
4572         * sysdeps/powerpc/addmul_1.S: Likewise.
4573         * sysdeps/powerpc/lshift.S: Likewise.
4574         * sysdeps/powerpc/rshift.S: Likewise.
4575         * sysdeps/powerpc/mul_1.S: Likewise.
4576         * sysdeps/powerpc/sub_n.S: Likewise.
4577         * sysdeps/powerpc/submul_1.S: Likewise.
4578         * sysdeps/powerpc/strlen.S: Likewise.
4579         * sysdeps/powerpc/memset.S: Likewise.
4580         * sysdeps/powerpc/stpcpy.S: Likewise.
4581         * sysdeps/powerpc/strcmp.S: Likewise.
4582         * sysdeps/powerpc/strcpy.S: Likewise.
4583         * sysdeps/powerpc/elf/bzero.S: Likewise.
4584
4585         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4586         Line up operands column with tabs.
4587
4588 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4589
4590         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4591
4592         * sysdeps/ia64/htonl.S: New file.
4593         * sysdeps/ia64/htons.S: New file.
4594         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4595         floating point registers.
4596         Patches by Dan Pop <Dan.Pop@cern.ch>.
4597
4598 2000-06-30  Andreas Jaeger  <aj@suse.de>
4599
4600         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4601         shared libraries.
4602
4603         * io/Makefile (CFLAGS-test-lfs.c): New.
4604         (tests): Add test-lfs.
4605
4606         * io/test-lfs.c: New file.
4607
4608 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4609
4610         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4611         instruction.
4612
4613 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4614
4615         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4616
4617 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4618
4619         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4620         alias to the fstatfs call.
4621
4622         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4623         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4624
4625         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4626         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4627
4628         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4629         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4630         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4631         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4632
4633         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4634         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4635
4636         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4637         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4638
4639         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4640         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4641
4642         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
4643
4644 2000-06-29  Andreas Jaeger  <aj@suse.de>
4645
4646         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
4647         with syslog.
4648         (print_err_message): Likewise.
4649         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
4650
4651 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4652
4653         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
4654         used as words is properly aligned.
4655
4656         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
4657         data files.
4658
4659 2000-06-29  Greg McGary  <greg@mcgary.org>
4660
4661         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
4662         * sysdeps/unix/make-syscalls.sh: Handle signatures of
4663         length 7..9, just in case...
4664         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
4665
4666         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
4667         (POP_ERRNO_LOCATION_RETURN): Fold insns.
4668         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
4669         (PUSH_SIGNAL_MASK): New macro.
4670         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
4671         LEAVE is unnecessary.  Check bounds of jmp_buf.
4672         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
4673         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
4674         immediately before tail-call.
4675         * sysdeps/i386/setjmp.S: Likewise.
4676         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4677         * sysdeps/i386/bsd-setjmp.S: Likewise.
4678
4679 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
4680
4681         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
4682         versioned_symbol.
4683         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
4684         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
4685         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
4686         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
4687         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
4688         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
4689         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
4690         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
4691
4692 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4693
4694         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
4695         we later need to calling free().
4696         Patch by Matt Wilson <msw@redhat.com>.
4697
4698         * stdio-common/tst-printf.c: Add test for above problem.
4699
4700 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
4701
4702         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
4703         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
4704
4705 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4706
4707         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
4708         prototype for abs().
4709         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
4710
4711 2000-06-23  Andreas Jaeger  <aj@suse.de>
4712
4713         * config.h.in: Don't use regparm with bounded pointers.
4714
4715 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4716
4717         * stdlib/grouping.h: Correctly handle multibyte thousands
4718         separator and decimal point.
4719         * stdlib/stdtod.c: Likewise.
4720         * sysdeps/generic/strtol.c: Likewise.
4721
4722         * locale/categories.def: Add entries for wide character decimal point
4723         and thousands separator in numeric and monetary category.
4724
4725 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4726
4727         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
4728         second definition and initialization of decimal.
4729
4730 2000-06-28  Greg McGary  <greg@mcgary.org>
4731
4732         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
4733         out.
4734         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
4735         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
4736         in.
4737         (_IO_JUMPS): Don't cast THIS--expect arg to be a
4738         (struct _IO_FILE_plus *).
4739         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
4740         THIS, since _IO_JUMPS no longer does it implicitly.
4741         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
4742         arg type as (struct _IO_FILE_plus *).
4743         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
4744         arg as (_IO_strfile *).
4745         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
4746         Declare 1st arg as (_IO_strfile *).
4747         * libio/fileops.c (_IO_new_file_init): Declare
4748         arg type as (struct _IO_FILE_plus *).
4749         * libio/oldfileops.c (_IO_old_file_init): Likewise.
4750         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
4751         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4752         Declare iteration pointer as (struct _IO_FILE_plus *).
4753         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
4754                 (struct _IO_FILE_plus *).
4755         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
4756         * libio/oldstdfiles.c (_IO_list_all): Likewise.
4757         (_IO_check_libio): Set user-visible handles to
4758         (struct _IO_FILE_plus *).
4759         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
4760         to (struct _IO_FILE_plus *).
4761
4762         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
4763         whose high bound includes vtable to all functions that will use
4764         vtable.  For streambufs, pass pointer whose bounds include struct
4765         _IO_strfile.
4766         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
4767         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4768         * libio/iofopen.c (_IO_new_fopen): Likewise.
4769         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
4770         * libio/iofopen64.c (_IO_fopen64): Likewise.
4771         * libio/iopopen.c (_IO_new_popen): Likewise.
4772         * libio/oldiopopen.c (_IO_old_popen): Likewise.
4773         * libio/memstream.c (open_memstream): Likewise.
4774         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
4775         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
4776         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4777         * libio/iofopncook.c (_IO_cookie_init): Likewise.
4778         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
4779         * libio/vasprintf.c (_IO_vasprintf): Likewise.
4780         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
4781         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4782         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
4783         * stdlib/strfmon.c (__strfmon_l): Likewise.
4784         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4785         (vfprintf): Qualify computed-goto targets as unbounded.
4786
4787 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4788
4789         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
4790         thousands separator correctly.
4791
4792         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
4793         * stdio-common/vfwscanf.c: Likewise.
4794
4795 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
4796
4797         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
4798         count into signatures for most calls.
4799
4800 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4801
4802         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
4803         the generic parser now.
4804
4805 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4806
4807         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
4808         table entries are 32 bit on the ia64 (as specified by the ABI),
4809         not 64 bit as on the Alpha.
4810
4811         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
4812         change of objects to use 32 bit hash table indices (see above).
4813
4814 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4815
4816         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
4817         prototype for abs().
4818
4819 2000-06-28  Wolfram Gloger  <wg@malloc.de>
4820
4821         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
4822         fails, try mmap_chunk() as a last resort even though n_mmaps_max
4823         may have been reached.
4824
4825 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4826
4827         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
4828         symbols in multi-character weights correctly.
4829
4830         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
4831         depending on whether the input string is empty or not.
4832
4833         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
4834         given state and not avoiding this by modifying a local object.
4835         * wcsmbs/wcrtomb.c: Likewise.
4836
4837         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
4838         object since some incomplete characters might be in there.
4839
4840         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
4841         sequences with first byte 0x8e correctly.
4842
4843         * iconvdata/jis0208.h: Remove redundant test.
4844
4845 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
4846
4847         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
4848         Add it where it is needed now.
4849
4850         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
4851         the input charset into account when generating the hash table.
4852         (allocate_arrays): Correct setting default width.  Not all empty slots
4853         in the table are filled, only those not covert explicitly by the
4854         locale description and in the charset.
4855
4856         * wctype/towctrans.c (__towctrans): Be graceful and accept error
4857         return values from the wctrans function.
4858
4859         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
4860         wide character version.
4861         For %C handling, test correct pointer variable for NULL.
4862
4863         * wcsmbs/wctob.c: Handle WEOF special.
4864
4865         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
4866
4867         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
4868         always-true test to avoid warning.
4869
4870 2000-06-27  Greg McGary  <greg@mcgary.org>
4871
4872         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
4873         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
4874         (symbol_version, default_symbol_version): Factor redundant
4875         definitions out of conditional.
4876
4877 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
4878
4879         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
4880         not obstack_blank.
4881
4882 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
4883
4884         * include/libc-symbols.h (symbol_version): Add extra level of
4885         macro expansion.
4886         (default_symbol_version): Likewise.
4887
4888 2000-06-26  Greg McGary  <greg@mcgary.org>
4889
4890         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
4891         for BP return value & push implicit struct-return pointer to
4892         __errno_location.
4893         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4894         (SYSCALL_ERROR_HANDLER): Likewise.
4895         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
4896         (SYSCALL_ERROR_HANDLER): Likewise.
4897
4898         * Makeconfig: Add missing comment.
4899         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
4900         BP-flavored startup object.
4901         ($(objpfx)b$(start-installed-name)): New rule.
4902         * include/libc-symbols.h (symbol_set_declare): Change type
4903         of `__start_##set' and `__stop_##set' to pointer-to-function.
4904         (symbol_set_declare): Change type of `set' to array of
4905         pointer-to-function.
4906         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
4907         pointer-to-function.
4908
4909         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
4910
4911         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
4912         Remove clock_* and timer_* entries.
4913         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
4914         arg-count with signatures.
4915
4916         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
4917         Check bounds of arguments.
4918         * sysdeps/i386/addmul_1.S: Likewise.
4919         * sysdeps/i386/lshift.S: Likewise.
4920         * sysdeps/i386/mul_1.S: Likewise.
4921         * sysdeps/i386/rshift.S: Likewise.
4922         * sysdeps/i386/sub_n.S: Likewise.
4923         * sysdeps/i386/submul_1.S: Likewise.
4924         * sysdeps/i386/i586/add_n.S: Likewise.
4925         * sysdeps/i386/i586/addmul_1.S: Likewise.
4926         * sysdeps/i386/i586/lshift.S: Likewise.
4927         * sysdeps/i386/i586/rshift.S: Likewise.
4928         * sysdeps/i386/i586/sub_n.S: Likewise.
4929         * sysdeps/i386/i686/add_n.S: Likewise.
4930
4931         * sysdeps/i386/memchr.S: Likewise.
4932         * sysdeps/i386/memcmp.S: Likewise.
4933         * sysdeps/i386/rawmemchr.S: Likewise.
4934         * sysdeps/i386/i586/bzero.S: Likewise.
4935         * sysdeps/i386/i586/memcpy.S: Likewise.
4936         * sysdeps/i386/i586/mempcpy.S: Likewise.
4937         * sysdeps/i386/i586/memset.S: Likewise.
4938         * sysdeps/i386/i686/bzero.S: Likewise.
4939         * sysdeps/i386/i686/memcpy.S: Likewise.
4940         * sysdeps/i386/i686/mempcpy.S: Likewise.
4941         * sysdeps/i386/i686/memset.S: Likewise.
4942
4943         * sysdeps/i386/stpcpy.S: Likewise.
4944         * sysdeps/i386/stpncpy.S: Likewise.
4945         * sysdeps/i386/strchr.S: Likewise.
4946         * sysdeps/i386/strchrnul.S: Likewise.
4947         * sysdeps/i386/strcspn.S: Likewise.
4948         * sysdeps/i386/strpbrk.S: Likewise.
4949         * sysdeps/i386/strrchr.S: Likewise.
4950         * sysdeps/i386/strspn.S: Likewise.
4951         * sysdeps/i386/strtok.S: Likewise.
4952         * sysdeps/i386/strtok_r.S: Likewise.
4953         * sysdeps/i386/i486/strcat.S: Likewise.
4954         * sysdeps/i386/i486/strlen.S: Likewise.
4955         * sysdeps/i386/i586/strchr.S: Likewise.
4956         * sysdeps/i386/i586/strcpy.S: Likewise.
4957         * sysdeps/i386/i586/strlen.S: Likewise.
4958         * sysdeps/i386/i686/strcmp.S: Likewise.
4959         * sysdeps/i386/i686/strtok.S: Likewise.
4960         * sysdeps/i386/i686/strtok_r.S: Likewise.
4961
4962         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
4963         * sysdeps/i386/fpu/fesetenv.c: Likewise.
4964         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
4965         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
4966         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
4967
4968         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
4969         * sysdeps/i386/mul_1.S: Likewise.
4970         * sysdeps/i386/submul_1.S: Likewise.
4971         * sysdeps/i386/i586/add_n.S: Likewise.
4972         * sysdeps/i386/i586/addmul_1.S: Likewise.
4973         * sysdeps/i386/i586/lshift.S: Likewise.
4974         * sysdeps/i386/i586/mul_1.S: Likewise.
4975         * sysdeps/i386/i586/rshift.S: Likewise.
4976         * sysdeps/i386/i586/sub_n.S: Likewise.
4977         * sysdeps/i386/i586/submul_1.S: Likewise.
4978
4979 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
4980
4981         * rt/Makefile (librt-routines): Add clock_nanosleep.
4982         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
4983         * sysdeps/generic/clock_nanosleep.c: New file.
4984         * sysdeps/unix/clock_nanosleep.c: New file.
4985         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
4986         * time/time.h: Declare clock_nanosleep.
4987
4988 2000-06-26  Greg McGary  <greg@mcgary.org>
4989
4990         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
4991         INSN1, INSN2, TEXT, GLOBL): Remove macros.
4992         (ALIGN): Cleanup surrounding conditionals.
4993
4994         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
4995         Call ENTER/LEAVE macros.
4996         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
4997         * sysdeps/i386/submul_1.S: Likewise.
4998
4999         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5000         syntax.  Define & use symbolic argument stack offsets.  Call
5001         ENTER/LEAVE macros.
5002         * sysdeps/i386/i586/mul_1.S: Likewise.
5003         * sysdeps/i386/i586/submul_1.S: Likewise.
5004
5005 2000-06-25  Greg McGary  <greg@mcgary.org>
5006
5007         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5008         not as bcopy.
5009
5010 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5011
5012         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5013         * iconvdata/gen-8bit-gap.sh: Likewise.
5014         * iconvdata/gen-8bit.sh: Likewise.
5015
5016         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5017
5018         * locale/programs/ld-collate.c (collate_read): Don't actually read
5019         the copy locale if we are ignoring the content.
5020
5021         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5022         unknown character.
5023
5024         * locale/programs/ld-collate.c: Correct handling of different
5025         collation sections.
5026         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5027         as extra parameter from which to copy category information.
5028         Change all callers.
5029         (load_locale): Likewise.
5030         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5031         and load_locale.
5032         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5033         * locale/programs/locfile.h: Likewise.
5034         * locale/programs/locfile-kw.gperf: Add entry for script.
5035         * locale/programs/locfile-token.h: Add tok_script.
5036
5037         * locale/programs/locale.c: Update copyright year.
5038         * locale/programs/localedef.c: Likewise.
5039
5040 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5041
5042         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5043         Jens Moeller <jens.moeller@waii.com>.
5044
5045 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5046
5047         * locale/programs/ld-name.c (name_finish): Add missing format
5048         specifier to test for name_fmt.
5049
5050         * locale/programs/ld-address.c (iso639): Correct length of string
5051         elements.
5052         (iso3166): Likewise.
5053
5054         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5055
5056         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5057         Define.
5058
5059         * elf/elf.h (NT_PRFPXREG): Define.
5060
5061 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5062
5063         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5064         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5065
5066 2000-06-23  Andreas Schwab  <schwab@suse.de>
5067
5068         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5069         with signatures.
5070
5071 2000-06-23  Andreas Jaeger  <aj@suse.de>
5072
5073         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5074
5075         * io/test-stat.c: Add copyright header, mention Maciej.
5076
5077         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5078         SYS_mincore, SYS_madvise): Added.
5079
5080         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5081         execve.
5082
5083 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5084
5085         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5086         (CFLAGS-tst_putwc.c): New definition.
5087         * libio/tst_getwc.c: New file.
5088         * libio/tst_getwc.input: New file.
5089         * libio/tst_putwc.c: New file.
5090
5091         * include/string.h: Add prototype for __strdup.
5092
5093 2000-06-22  Greg McGary  <greg@mcgary.org>
5094
5095         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5096         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5097         Fix signatures.
5098
5099 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5100
5101         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5102
5103 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5104
5105         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5106
5107 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5108
5109         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5110         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5111
5112 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5113
5114         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5115         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5116         and __S_TYPEISSHM.
5117         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5118         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5119         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5120         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5121         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5122         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5123         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5124         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5125         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5126         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5127         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5128         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5129         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5130         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5131         S_TYPEISSHM.
5132
5133 2000-06-22  Andreas Jaeger  <aj@suse.de>
5134
5135         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5136         with signatures.
5137
5138         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5139
5140         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5141
5142 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5143
5144         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5145         ahead.
5146
5147 2000-06-21  Greg McGary  <greg@mcgary.org>
5148
5149         * Makerules (elide-routines.*, elide-bp-thunks):
5150         Define unconditionally.
5151
5152 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5153
5154         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5155
5156 2000-06-21  Andreas Jaeger  <aj@suse.de>
5157
5158         * io/Makefile (tests): Add test-stat.
5159         (CFLAGS-test-stat.c): New.
5160
5161         * io/test-stat.c: New file from Maciej W. Rozycki
5162         <macro@ds2.pg.gda.pl>.
5163
5164 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5165
5166         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5167         in __rlimit_resource to make them match the kernel order.
5168         rlim_t is always 64 bit, use __rlim64_t to declare it
5169         unconditionally.
5170
5171 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5172
5173         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5174         RLIM_INFINITY before defining it to avoid clash with kernel header
5175
5176 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5177
5178         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5179
5180 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5181
5182         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5183
5184 2000-06-21  Andreas Jaeger  <aj@suse.de>
5185
5186         * stdio-common/temptest.c: Include <stdlib.h>.
5187         * stdio-common/tst-fileno.c: Likewise.
5188         * stdio-common/scanf4.c: Likewise.
5189         * stdio-common/scanf5.c: Likewise.
5190         * time/clocktest.c: Likewise.
5191         * posix/test-vfork.c: Likewise.
5192         * posix/globtest.c: Likewise.
5193         * io/test-utime.c: Likewise.
5194         * wctype/test_wcfuncs.c: Likewise.
5195         * crypt/cert.c: Likewise.
5196
5197         * stdio-common/tst-printfsz.c: Include <string.h>.
5198         * libio/tst_swscanf.c: Likewise.
5199         * libio/tst_wscanf.c: Likewise.
5200         * posix/runtests.c: Likewise.
5201         * posix/tst-getaddrinfo.c: Likewise.
5202         * posix/wordexp-test.c: Likewise.
5203         * misc/tst-efgcvt.c: Likewise.
5204
5205         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5206         * nss/test-netdb.c: Likewise.
5207
5208         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5209         supported kernel for MIPS.
5210
5211         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5212         * rt/aio_suspend.c: Likewise.
5213
5214 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5215
5216         * math/libm-test.inc: Include <string.h>.
5217
5218 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5219
5220         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5221
5222 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5223
5224         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5225         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5226
5227 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5228
5229         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5230
5231 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5232
5233         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5234
5235 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5236
5237         * locale/programs/ld-collate.c (insert_value): Now take string and
5238         length instead of struct token* parameter.  Adjust use of token.
5239         (handle_ellipsis): Likewise.
5240         (collate_read): Allow <Uxxxx> names and transform them into names
5241         to be passed to insert_value and handle_ellipsis.
5242
5243         * locale/programs/ld-ctype.c (uninames): New array with names of
5244         digits in <Uxxxxxxxx> format.
5245         (ctype_finish): Correct search for space character value.  Likewise
5246         for default outdigits values.
5247
5248 2000-06-20  Greg McGary  <greg@mcgary.org>
5249
5250         * Makerules (objects): Add BP thunks.
5251
5252 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5253
5254         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5255         in width definitions.
5256
5257 2000-06-20  Andreas Jaeger  <aj@suse.de>
5258
5259         * sysdeps/mips/fpu/libm-test-ulps: New file.
5260
5261         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5262         first.
5263
5264         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5265
5266         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5267
5268 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5269
5270         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5271         change in gconv_builtin.h.
5272
5273         * malloc/Makefile: Change all references to memprof into memusage.
5274         * malloc/memprof.c: Rename to...
5275         * malloc/memusage.c: ...this.  New file.
5276         * malloc/memprof.sh: Rename to...
5277         * malloc/memusage.sh: ...this.  New file.
5278         * malloc/memprofstat.c: Rename to...
5279         * malloc/memusagestat.c: ...this.  New file.
5280         * sysdeps/alpha/memprof.h: Rename to..
5281         * sysdeps/alpha/memusage.h: ...this.  New file.
5282         * sysdeps/arm/memprof.h: Rename to..
5283         * sysdeps/arm/memusage.h: ...this.  New file.
5284         * sysdeps/generic/memprof.h: Rename to..
5285         * sysdeps/generic/memusage.h: ...this.  New file.
5286         * sysdeps/i386/memprof.h: Rename to..
5287         * sysdeps/i386/memusage.h: ...this.  New file.
5288         * sysdeps/ia64/memprof.h: Rename to..
5289         * sysdeps/ia64/memusage.h: ...this.  New file.
5290         * sysdeps/m68k/memprof.h: Rename to..
5291         * sysdeps/m68k/memusage.h: ...this.  New file.
5292         * sysdeps/mips/memprof.h: Rename to..
5293         * sysdeps/mips/memusage.h: ...this.  New file.
5294         * sysdeps/powerpc/memprof.h: Rename to..
5295         * sysdeps/powerpc/memusage.h: ...this.  New file.
5296         * sysdeps/sparc/memprof.h: Rename to..
5297         * sysdeps/sparc/memusage.h: ...this.  New file.
5298         * sysdeps/sh/memprof.h: Rename to..
5299         * sysdeps/sh/memusage.h: ...this.  New file.
5300
5301         * elf/sprof.c (print_version): Update year.
5302
5303         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5304         table entry values.  Use D_PTR.
5305         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5306         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5307
5308 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5309
5310         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5311         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5312         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5313         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5314
5315 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5316
5317         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5318
5319 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5320
5321         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5322         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5323         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5324
5325         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5326
5327         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5328         kernel change.
5329
5330         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5331         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5332         structure.
5333         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5334         implementation.
5335
5336 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5337
5338         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5339
5340 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5341
5342         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5343
5344 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5345
5346         * iconv/gconv_int.h (strict gconv_module): Remove all members
5347         associated with regular expressions.  Use a simple string as the
5348         from name.
5349         * iconv/gconv_db.c: Remove code handling regular expressions.
5350         * iconv/gconv_conf.c: Likewise.
5351         * iconv/iconv_prog.c: Likewise.
5352         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5353
5354         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5355         General namespace cleanup.
5356         (struct __gconv_trans_data): Add next field.
5357         (struct __gconv_step_data): Make __trans a pointer.
5358         * iconv/gconv_conf.c: Split out code to find gconv directories from
5359         __gconv_read_conf in new functions.
5360         * iconv/gconv_int.h: Define new data structure and declare new
5361         functions for handling of gconv directory list.
5362         * iconv/gconv_open.c: Allow more than one error handling step being
5363         used.  Call function to load error handling module if it is none
5364         of the builtin transformations.
5365         * iconv/gconv_close.c: Add code to free transliteration data.
5366         * iconv/gconv_trans.c: Add functions to load and unload modules
5367         implementing transliteration etc.
5368         * iconv/skeleton.c: Call all context functions now that more than
5369         one module is allowed.
5370         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5371         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5372         where the full error handling using transliteration is needed.
5373         * iconvdata/8bit-gap.c: Likewise.
5374         * iconvdata/8bit-generic.c: Likewise.
5375         * iconvdata/ansi_x3.110.c: Likewise.
5376         * iconvdata/big5.c: Likewise.
5377         * iconvdata/big5hkscs.c: Likewise.
5378         * iconvdata/euc-cn.c: Likewise.
5379         * iconvdata/euc-jp.c: Likewise.
5380         * iconvdata/euc-kr.c: Likewise.
5381         * iconvdata/euc-tw.c: Likewise.
5382         * iconvdata/gbgbk.c: Likewise.
5383         * iconvdata/gbk.c: Likewise.
5384         * iconvdata/iso-2022-cn.c: Likewise.
5385         * iconvdata/iso-2022-jp.c: Likewise.
5386         * iconvdata/iso-2022-kr.c: Likewise.
5387         * iconvdata/iso646.c: Likewise.
5388         * iconvdata/iso8859-1.c: Likewise.
5389         * iconvdata/iso_6937-2.c: Likewise.
5390         * iconvdata/iso_6937.c: Likewise.
5391         * iconvdata/johab.c: Likewise.
5392         * iconvdata/sjis.c: Likewise.
5393         * iconvdata/t.61.c: Likewise.
5394         * iconvdata/uhc.c: Likewise.
5395         * iconvdata/unicode.c: Likewise.
5396         * iconvdata/utf-16.c: Likewise.
5397         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5398         structure correctly after last change.
5399         * wcsmbs/btowc.c: Likewise.
5400         * wcsmbs/mbrtowc.c: Likewise.
5401         * wcsmbs/mbsnrtowcs.c: Likewise.
5402         * wcsmbs/mbsrtowcs.c: Likewise.
5403         * wcsmbs/wcrtomb.c: Likewise.
5404         * wcsmbs/wcsnrtombs.c: Likewise.
5405         * wcsmbs/wcsrtombs.c: Likewise.
5406         * wcsmbs/wctob.c: Likewise.
5407
5408         * localedata/Makefile: Set -Wno-format for some files since gcc does
5409         not know all the format specifiers.
5410
5411 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5412
5413         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5414         unneeded code.
5415         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5416
5417 2000-06-18  Andreas Jaeger  <aj@suse.de>
5418
5419         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5420         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5421
5422 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5423
5424         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5425         LINUX_LINK_MAX.
5426         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5427
5428         * locale/programs/ld-ctype.c (ctype_output): Really write out
5429         mboutdigits information.
5430         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5431         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5432         * localedata/tests/trans.def: Add outdigit information.
5433
5434         * localedata/tst-mbswcs3.c: Remove comment.
5435
5436         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5437         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5438         * libio/tst_wprintf.c (main): Add test for I flag.
5439
5440         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5441         * locale/langinfo.h: Add entries for translit_ignore information.
5442         * locale/categories.def: Add entries for new LC_CTYPE elements.
5443         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5444         pointer instead of "" where possible.
5445         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5446         * intl/Depend: Add localedata.
5447         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5448         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5449
5450 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5451
5452         * locale/langinfo.h: Add entries for default_missing information.
5453         * locale/C-ctype.c: Add initializers for new fields.
5454         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5455         information.
5456         * locale/categories.h: Add entries for all LC_CTYPE values.
5457         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5458         information.
5459
5460         * localedata/tst-trans.c: Write out an error message if class is
5461         not found.
5462
5463         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5464         * iconv/gconv_open.c: Remove error handling specification from `from'
5465         character set name.
5466         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5467         new parameter to always enable transliteration.
5468         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5469         change.
5470         (struct locale_data): Add new members use_translit and options.
5471         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5472         character set name contained modifier TRANSLIT.
5473         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5474         and options fields.
5475         (_nl_unload_locale): Free options string if necessary.
5476         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5477         the locale names suggested this.
5478         * locale/C-address.c: Add two new initialilzers to adjust data
5479         structure for new format.
5480         * locale/C-collate.c: Likewise.
5481         * locale/C-ctype.c: Likewise.
5482         * locale/C-identification.c: Likewise.
5483         * locale/C-measurement.c: Likewise.
5484         * locale/C-messages.c: Likewise.
5485         * locale/C-monetary.c: Likewise.
5486         * locale/C-name.c: Likewise.
5487         * locale/C-numeric.c: Likewise.
5488         * locale/C-paper.c: Likewise.
5489         * locale/C-telephone.c: Likewise.
5490         * locale/C-time.c: Likewise.
5491
5492         * locale/setlocale.c: Add some more __builtin_expect.
5493
5494 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5495
5496         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5497         unsigned char **.
5498         (__gconv_init_fct): Remove two parameters.
5499         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5500         gconv_transliterate.  Remove two parameters.
5501         Change prototypes of builtin functions according to __gconv_fct change.
5502         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5503         != NULL only during error handling.  Stop in this case after the
5504         conversion.
5505         * iconv/gconv_trans.c: Replace with real implementation for
5506         __gconv_transliterate.
5507         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5508         * iconv/gconv.c: Change calls to downstream functions once again.
5509         Use NULL for the fifth parameter instead of pointer to output buffer.
5510         * libio/iofwide.c: Likewise.
5511         * wcsmbs/btowc.c: Likewise.
5512         * wcsmbs/mbrtowc.c: Likewise.
5513         * wcsmbs/mbsnrtowcs.c: Likewise.
5514         * wcsmbs/mbsrtowcs.c: Likewise.
5515         * wcsmbs/wcrtomb.c: Likewise.
5516         * wcsmbs/wcsnrtombs.c: Likewise.
5517         * wcsmbs/wcsrtombs.c: Likewise.
5518         * wcsmbs/wctob.c: Likewise.
5519         * iconv/gconv_simple.c: Remove two parameters from error handling
5520         function call.
5521         * iconvdata/8bit-gap.c: Likewise.
5522         * iconvdata/8bit-generic.c: Likewise.
5523         * iconvdata/ansi_x3.110.c: Likewise.
5524         * iconvdata/big5.c: Likewise.
5525         * iconvdata/big5hkscs.c: Likewise.
5526         * iconvdata/euc-cn.c: Likewise.
5527         * iconvdata/euc-jp.c: Likewise.
5528         * iconvdata/euc-kr.c: Likewise.
5529         * iconvdata/euc-tw.c: Likewise.
5530         * iconvdata/gbgbk.c: Likewise.
5531         * iconvdata/gbk.c: Likewise.
5532         * iconvdata/iso-2022-cn.c: Likewise.
5533         * iconvdata/iso-2022-jp.c: Likewise.
5534         * iconvdata/iso-2022-kr.c: Likewise.
5535         * iconvdata/iso646.c: Likewise.
5536         * iconvdata/iso8859-1.c: Likewise.
5537         * iconvdata/iso_6937-2.c: Likewise.
5538         * iconvdata/iso_6937.c: Likewise.
5539         * iconvdata/johab.c: Likewise.
5540         * iconvdata/sjis.c: Likewise.
5541         * iconvdata/t.61.c: Likewise.
5542         * iconvdata/uhc.c: Likewise.
5543         * iconvdata/unicode.c: Likewise.
5544         * iconvdata/utf-16.c: Likewise.
5545
5546 2000-06-15  Greg McGary  <greg@mcgary.org>
5547
5548         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5549         of callnum assignment.  Tolerate callnum expressions containing
5550         parens.
5551
5552 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5553
5554         * login/Makefile (utmpd): Remove rule to build utmpd.
5555
5556         * csu/Versions: Move libgcc frame handling functions from here...
5557         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5558         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5559         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5560         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5561         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5562         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5563         New file.
5564         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5565
5566         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5567
5568         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5569
5570 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5571
5572         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5573         compatibility.
5574         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5575         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5576         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5577         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5578
5579 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5580
5581         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5582         defined, terminate quotes and read them after the comment char.
5583         * configure.in (HAVE_SECTION_QUOTES): Test whether
5584         __attribute__((section ("x"))) puts quotes around x or not.
5585         * config.h.in (HAVE_SECTION_QUOTES): Add.
5586         * configure: Rebuilt.
5587
5588 2000-06-14  Andreas Jaeger  <aj@suse.de>
5589
5590         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5591         depending on the configure option --sysconfdir.
5592         Closes PR libc/1762.
5593         Patch by Andreas Schwab <schwab@suse.de>.
5594
5595         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5596         entry point.
5597         Reported by Jim Pick <jim@jimpick.com>.
5598
5599 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5600
5601         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5602         crashing the application.  Emit some simple error message.
5603         Reported by mju@panasas.com [PR libc/1769].
5604
5605 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5606
5607         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5608
5609         * crypt/Makefile (distribute): Add md5.h.
5610
5611         * Makefile (distribute): Add include/shlib-compat.h.
5612
5613         * Make-dist: Search for tests also in sysdeps hierachy.
5614
5615         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5616         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5617
5618         * sysdeps/sparc/Subdirs: New file.
5619
5620         * locale/Makefile (distribute): Add weightwc.h and
5621         programs/localedef.h.
5622
5623         * time/Makefile (distribute): Add datemsk.
5624
5625         * sysdeps/ia64/Dist: Add softpipe.h.
5626
5627         * sysdeps/unix/sysv/aix/Dist: New file.
5628
5629         * posix/setpgrp.c: Moved to...
5630         * sysdeps/generic/setpgrp.c: ...here.  New file.
5631         * io/mknod.c: Moved to...
5632         * sysdeps/generic/mknod.c: ...here.  New file.
5633
5634         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5635
5636         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5637
5638         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5639
5640         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5641         gprsave0.S, gprrest1.S, and gprrest0.S.
5642
5643         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
5644
5645         * posix/Makefile (routines): Add spawnattr_getsigmask,
5646         spawnattr_getschedpolicy, spawnattr_getschedparam,
5647         spawnattr_setsigmask, spawnattr_setschedpolicy, and
5648         spawnattr_setschedparam.
5649         * posix/Versions: Add posix_spawnattr_getschedpolicy,
5650         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
5651         posix_spawnattr_setschedparam.
5652
5653         * posix/spawnattr_setschedparam.c: Fix typo.
5654
5655         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
5656         Correct typo.
5657
5658         * login/programs/utmpd.c: Removed.
5659         * login/programs/utmpd.h: Removed.
5660         * login/programs/utmpd-private.h: Removed.
5661
5662         * Makefile (distribute): Add include/db_185.h and include/db.h.
5663
5664         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
5665         iso-ir-165.h.
5666
5667         * elf/Makefile (distribute): Add missing files.
5668
5669         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
5670         * elf/eval.c: Moved to...
5671         * dlfcn/eval.c: ...here.  New file.
5672
5673         * Makefile (distribute): Also distribute ChangeLog.1?.
5674
5675         * Make-dist (+tsrcs): Remove .args handling here as well.
5676
5677         * rt/Makefile (tests): Add tst-timer.
5678         * sysdeps/generic/tst-timer.c: New file.
5679
5680         * Makerules (sources): Don't add BP sources here.
5681
5682         * login/Makefile (distribute): Remove xtmp.h.
5683
5684         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
5685         is true.  Reported by Bruno Haible <haible@ilog.fr>.
5686
5687 2000-06-13  Andreas Jaeger  <aj@suse.de>
5688
5689         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
5690         Patch by Ralf Baechle <ralf@gnu.org>.
5691
5692 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5693
5694         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
5695         for mincore syscall.
5696
5697         * misc/sys/cdefs.h: Define __bounded and __unbounded if
5698         __BOUNDED_POINTERS__ is not defined.
5699
5700 2000-06-07  Greg McGary  <greg@mcgary.org>
5701
5702         * sysdeps/generic/bp-sym.h: New file.
5703         * sysdeps/generic/bp-start.h: New file.
5704         * sysdeps/i386/elf/start.S: Designate BP symbols.
5705         * sysdeps/generic/libc-start.c: Wrap bounds around
5706         argv & envp and each of their string members.
5707
5708 2000-06-07  Greg McGary  <greg@mcgary.org>
5709
5710         * sysdeps/unix/make-syscalls.sh: Add comments to
5711         output that aid debugging & comprehension.
5712         Map simple syscall signatures to number of args.
5713         Generate BP syscall thunk definitions.
5714         * sysdeps/generic/bp-thunks.h: New file.
5715         * sysdeps/unix/syscalls.list: Replace arg-count with
5716         simple return+arg signature.
5717         * sysdeps/unix/common/syscalls.list: Likewise.
5718         * sysdeps/unix/inet/syscalls.list: Likewise.
5719         * sysdeps/unix/mman/syscalls.list: Likewise.
5720         * sysdeps/unix/sysv/syscalls.list: Likewise.
5721         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5722         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
5723
5724 2000-06-07  Greg McGary  <greg@mcgary.org>
5725
5726         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
5727         for all files *.[cS].
5728         (CFLAGS-.ob): Don't optimize sibling calls.
5729         (bppfx): New variable.
5730         * Makerules (elide-bp-thunks): New variable.
5731         (elide-routines.*): Elide BP-* files for all but *.ob.
5732         (sources): Include bp-thunks.
5733
5734 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5735
5736         * iconv/gconv_simple.c: Remove unnecessary prototype.
5737
5738         * iconv/gconv_trans.c: Pretty print.
5739
5740         * elf/elf.h (R_SH_NUM): Got accidently dropped.
5741
5742         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
5743         minimal kernel versions.  Add information about IA-64 kernel.
5744
5745         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
5746         specific minimal supported kernel versions to be specified.
5747
5748         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
5749         step data structure.
5750         * wcsmbs/btowc.c: Likewise.
5751         * wcsmbs/mbrtowc.c: Likewise.
5752         * wcsmbs/mbsnrtowcs.c: Likewise.
5753         * wcsmbs/mbsrtowcs.c: Likewise.
5754         * wcsmbs/wcrtomb.c: Likewise.
5755         * wcsmbs/wcsnrtombs.c: Likewise.
5756         * wcsmbs/wcsrtombs.c: Likewise.
5757         * wcsmbs/wctob.c: Likewise.
5758
5759         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
5760         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
5761
5762         * shlib-versions: Earliest backward compatible version for SH is 2.2.
5763
5764         * misc/sys/cdefs.h: Remove one more __P.
5765
5766         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
5767         Reported by HJ Lu.
5768
5769         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
5770         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
5771         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
5772
5773 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5774             Yutaka Niibe  <gniibe@chroot.org>
5775
5776         * configure.in: Add machine sh3, sh4.
5777         * elf/elf.h: Add SH specific declarations of relocations.
5778         * shlib-versions: Add sh*-*-linux* cases.
5779
5780 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5781
5782         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
5783         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
5784         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
5785         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
5786         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
5787         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
5788
5789         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
5790         instead of KERNEL_MATH_EMULATION.
5791         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
5792         KERNEL_MATH_EMULATION.
5793
5794         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
5795         * sysdeps/sh/sh3/dl-machine.h: Moved to...
5796         * sysdeps/sh/dl-machine.h: ...here.  New file.
5797         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
5798         and include generic SH version.
5799         * sysdeps/sh/sh3/bits/endian.h: Move to...
5800         * sysdeps/sh/bits/endian.h: ...here.  New file.
5801         * sysdeps/sh/sh4/bits/endian.h: Removed.
5802         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
5803         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
5804         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
5805
5806         * include/libc-symbols.h (link_warning): Work around a change in
5807         GAS which warns about changing section attributes.
5808         Proposed by Nick Clifton <nickc@redhat.com>.
5809
5810 2000-06-12  H.J. Lu  <hjl@gnu.org>
5811
5812         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
5813
5814 2000-06-11  H.J. Lu  <hjl@gnu.org>
5815
5816         * sysdeps/i386/fpu/Versions: New file.
5817
5818 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5819
5820         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
5821         parameters.
5822         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
5823         exists.
5824
5825 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
5826
5827         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
5828         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
5829         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
5830
5831         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
5832         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
5833         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
5834
5835 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5836             Yutaka Niibe  <gniibe@chroot.org>
5837
5838         * sysdeps/sh/Dist: New file.
5839         * sysdeps/sh/Implies: New file.
5840         * sysdeps/sh/elf/initfini.c: New file.
5841         * sysdeps/sh/gmp-mparam.h: New file.
5842         * sysdeps/sh/init-first.c: New file.
5843         * sysdeps/sh/machine-gmon.h: New file.
5844         * sysdeps/sh/memcpy.S: New file.
5845         * sysdeps/sh/memprof.h: New file.
5846         * sysdeps/sh/memset.S: New file.
5847         * sysdeps/sh/sh3/__longjmp.S: New file.
5848         * sysdeps/sh/sh3/bits/endian.h: New file.
5849         * sysdeps/sh/sh3/bits/huge_val.h: New file.
5850         * sysdeps/sh/sh3/bits/setjmp.h: New file.
5851         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
5852         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
5853         * sysdeps/sh/sh3/dl-machine.h: New file.
5854         * sysdeps/sh/sh3/setjmp.S: New file.
5855         * sysdeps/sh/sh4/__longjmp.S: New file.
5856         * sysdeps/sh/sh4/bits/endian.h: New file.
5857         * sysdeps/sh/sh4/bits/huge_val.h: New file.
5858         * sysdeps/sh/sh4/bits/setjmp.h: New file.
5859         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
5860         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
5861         * sysdeps/sh/sh4/dl-machine.h: New file.
5862         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
5863         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
5864         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
5865         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
5866         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
5867         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
5868         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
5869         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
5870         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
5871         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
5872         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
5873         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
5874         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
5875         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
5876         * sysdeps/sh/sh4/setjmp.S: New file.
5877         * sysdeps/sh/elf/start.S: New file.
5878         * sysdeps/sh/sys/ucontext.h: New file.
5879         * sysdeps/sh/strlen.S: New file.
5880         * sysdeps/sh/sysdep.h: New file.
5881         * sysdeps/unix/sh/sysdep.S: New file.
5882         * sysdeps/unix/sh/sysdep.h: New file.
5883         * sysdeps/unix/sysv/linux/sh/Dist: New file.
5884         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
5885         * sysdeps/unix/sysv/linux/sh/Versions: New file.
5886         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
5887         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
5888         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
5889         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
5890         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
5891         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
5892         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
5893         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
5894         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
5895         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
5896         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
5897         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
5898         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
5899         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
5900         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
5901         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
5902         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
5903         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
5904         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
5905         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
5906         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
5907         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
5908         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
5909         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
5910         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
5911         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
5912         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
5913         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
5914         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
5915         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
5916         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
5917         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
5918         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
5919         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
5920         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
5921         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
5922         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
5923         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
5924         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
5925         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
5926         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
5927         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
5928         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
5929         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
5930         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
5931         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
5932         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
5933
5934 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5935
5936         * Rules (%.out): Define GCONV_PATH in the environment.
5937         * assert/Depend: New file.
5938         * iconvdata/Depend: New file.
5939         * intl/Depend: New file.
5940         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
5941         * intl/tst-gettext.sh: Likewise.
5942         * iconv/Makefile (routines): Add gconv_trans.
5943         * iconv/gconv_trans.c: New file.
5944         * iconv/gconv.h (struct __gconv_trans_data): New type.
5945         (__gconv_fct): New parameter with starting position in output buffer.
5946         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
5947         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
5948         (struct __gconv_step): Add new member __trans.
5949         * iconv/gconv_int.h: Pretty print prototypes.
5950         (gconv_transliterate): New prototype.
5951         (__BUILTIN_TRANS): Update for new conversion function interface.
5952         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
5953         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
5954         in names, find appropriate function, and install in the conversion
5955         steps it can be used.
5956         * iconv/skeleton.c: Add additional parameter for beginning of output
5957         buffer.  Change calls of downstream functions.
5958         * iconv/loop.c: Change loop function interface completely.  Pass in
5959         step and step_data structure.  Remove optimization for BODY with
5960         NEED_LENGTH_TEST == 0.
5961         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
5962         appropriate error handling code to use transliteration steps.  Remove
5963         optimization for BODY with NEED_LENGTH_TEST == 0.
5964         * iconvdata/8bit-gap.c: Likewise.
5965         * iconvdata/8bit-generic.c: Likewise.
5966         * iconvdata/ansi_x3.110.c: Likewise.
5967         * iconvdata/big5.c: Likewise.
5968         * iconvdata/big5hkscs.c: Likewise.
5969         * iconvdata/euc-cn.c: Likewise.
5970         * iconvdata/euc-jp.c: Likewise.
5971         * iconvdata/euc-kr.c: Likewise.
5972         * iconvdata/euc-tw.c: Likewise.
5973         * iconvdata/gbgbk.c: Likewise.
5974         * iconvdata/gbk.c: Likewise.
5975         * iconvdata/iso-2022-cn.c: Likewise.
5976         * iconvdata/iso-2022-jp.c: Likewise.
5977         * iconvdata/iso-2022-kr.c: Likewise.
5978         * iconvdata/iso646.c: Likewise.
5979         * iconvdata/iso8859-1.c: Likewise.
5980         * iconvdata/iso_6937-2.c: Likewise.
5981         * iconvdata/iso_6937.c: Likewise.
5982         * iconvdata/johab.c: Likewise.
5983         * iconvdata/sjis.c: Likewise.
5984         * iconvdata/t.61.c: Likewise.
5985         * iconvdata/uhc.c: Likewise.
5986         * iconvdata/unicode.c: Likewise.
5987         * iconvdata/utf-16.c: Likewise.
5988         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
5989         DL_CALL_FCT.
5990         * wcsmbs/btowc.c: Likewise.
5991         * wcsmbs/mbrtowc.c: Likewise.
5992         * wcsmbs/mbsnrtowcs.c: Likewise.
5993         * wcsmbs/mbsrtowcs.c: Likewise.
5994         * wcsmbs/wcrtomb.c: Likewise.
5995         * wcsmbs/wcsnrtombs.c: Likewise.
5996         * wcsmbs/wcsrtombs.c: Likewise.
5997         * wcsmbs/wctob.c: Likewise.
5998
5999 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6000
6001         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6002         other header files.  Mention about 128-byte cache line sizes.
6003         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6004         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6005         for current calling sequence.
6006         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6007
6008         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6009         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6010
6011         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6012         and setrlimit syscalls for backwards compatibility.
6013
6014 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6015
6016         * iconv/skeleton.c:  Rename converted written to correcter name
6017         irreversible.
6018         * iconv/gconv.c: Rename converted variable to correcter name
6019         irreversible.
6020         * iconv/gconv_int.h: Likewise.
6021         * iconv/gconv_simple.c: Likewise.
6022         * iconv/iconv.c: Likewise.
6023         * iconv/loop.c: Likewise.
6024         * iconvdata/8bit-gap.c: Likewise.
6025         * iconvdata/8bit-generic.c: Likewise.
6026         * iconvdata/ansi_x3.110.c: Likewise.
6027         * iconvdata/big5.c: Likewise.
6028         * iconvdata/big5hkscs.c: Likewise.
6029         * iconvdata/euc-cn.c: Likewise.
6030         * iconvdata/euc-jp.c: Likewise.
6031         * iconvdata/euc-kr.c: Likewise.
6032         * iconvdata/gbgbk.c: Likewise.
6033         * iconvdata/gbk.c: Likewise.
6034         * iconvdata/iso-2022-cn.c: Likewise.
6035         * iconvdata/iso-2022-jp.c: Likewise.
6036         * iconvdata/iso-2022-kr.c: Likewise.
6037         * iconvdata/iso646.c: Likewise.
6038         * iconvdata/iso8859-1.c: Likewise.
6039         * iconvdata/iso_6937-2.c: Likewise.
6040         * iconvdata/iso_6937.c: Likewise.
6041         * iconvdata/johab.c: Likewise.
6042         * iconvdata/sjis.c: Likewise.
6043         * iconvdata/t.61.c: Likewise.
6044         * iconvdata/uhc.c: Likewise.
6045         * iconvdata/unicode.c: Likewise.
6046         * iconvdata/utf-16.c: Likewise.
6047
6048         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6049         __cmsg_data field with __extension__.
6050
6051 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6052
6053         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6054
6055 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6056
6057         * iconv/gconv_simple.c: Fix various small bugs in several
6058         functions.
6059
6060         * iconv/loop.c: Fix comment.
6061
6062 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6063
6064         * elf/link.h: Remove libc internal declarations.
6065         * include/link.h: Move them here.
6066
6067 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6068
6069         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6070         Patch by Dan Pop <Dan.Pop@cern.ch>.
6071
6072         Rewrite error message handling.
6073         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6074         _dl_catch_error.
6075         * elf/dl-error (struct catch): Add objname member.
6076         (_dl_signal_error): Take new parameter with object name.  When
6077         passing message on simply store object name and duplicate error
6078         message.
6079         (_dl_catch_error): Take new parameter.  Store object name in the
6080         place pointed to.
6081         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6082         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6083         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6084         (dlerror): Add objname to asprintf() parameters.
6085         (_dl_error_run): Pass new parameter to _dl_catch_error.
6086         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6087         * elf/dl-open.c (_dl_open): Likewise.
6088         * elf/rtld.c (dl_main): Likewise.
6089         * elf/dl-close.c: Mark error messages with N_().
6090         * elf/dl-deps.c: Likewise.
6091         * elf/dl-error.c: Likewise.
6092         * elf/dl-load.c: Likewise.
6093         * elf/dl-open.c: Likewise.
6094         * elf/dl-reloc.c: Likewise.
6095         * elf/dl-support.c: Likewise.
6096         * elf/dl-sym.c: Likewise.
6097         * elf/dl-version.c: Likewise.
6098         * elf/dl-lookup.c: Add comments about problems with error message
6099         translations.
6100         * elf/dl-reloc.c: Likewise.
6101         * elf/dl-version.c: Likewise.
6102
6103 2000-06-09  H.J. Lu  <hjl@gnu.org>
6104
6105         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6106         after freeing it.
6107
6108         * dlfcn/Makefile (distribute): Add failtestmod.c.
6109         (tests): Add failtest.
6110         Add rules to build and run failtest.
6111         * dlfcn/failtest.c: New file.
6112         * dlfcn/failtestmod.c: New file.
6113
6114 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6115
6116         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6117         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6118         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6119         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6120         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6121
6122 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6123
6124         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6125         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6126
6127 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6128             Ulrich Drepper  <drepper@redhat.com>
6129
6130         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6131         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6132         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6133         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6134         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6135         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6136
6137 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6138
6139         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6140         to find correct mount point despite wrong information from the
6141         kernel.
6142
6143 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6144
6145         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6146         the address of a symbol so function pointers are handled properly.
6147
6148 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6149
6150         * sysdeps/i386/Dist: Add bp-asm.h.
6151
6152         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6153         defaultdir variable instead of "/var/shm" everywhere.
6154         (defaultdir): Change to /dev/shm/.
6155
6156 2000-06-08  Greg McGary  <greg@mcgary.org>
6157
6158         * sysdeps/i386/bp-asm.h: New file.
6159         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6160         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6161         frame-pointer chain when debugging.
6162         * sysdeps/i386/add_n.S: Likewise.
6163         * sysdeps/i386/addmul_1.S: Likewise.
6164         * sysdeps/i386/lshift.S: Likewise.
6165         * sysdeps/i386/memchr.S: Likewise.
6166         * sysdeps/i386/memcmp.S: Likewise.
6167         * sysdeps/i386/mul_1.S: Likewise.
6168         * sysdeps/i386/rawmemchr.S: Likewise.
6169         * sysdeps/i386/rshift.S: Likewise.
6170         * sysdeps/i386/stpcpy.S: Likewise.
6171         * sysdeps/i386/stpncpy.S: Likewise.
6172         * sysdeps/i386/strchr.S: Likewise.
6173         * sysdeps/i386/strchrnul.S: Likewise.
6174         * sysdeps/i386/strcspn.S: Likewise.
6175         * sysdeps/i386/strpbrk.S: Likewise.
6176         * sysdeps/i386/strrchr.S: Likewise.
6177         * sysdeps/i386/strspn.S: Likewise.
6178         * sysdeps/i386/strtok.S: Likewise.
6179         * sysdeps/i386/sub_n.S: Likewise.
6180         * sysdeps/i386/submul_1.S: Likewise.
6181         * sysdeps/i386/elf/setjmp.S: Likewise.
6182         * sysdeps/i386/i486/strcat.S: Likewise.
6183         * sysdeps/i386/i486/strlen.S: Likewise.
6184         * sysdeps/i386/i586/add_n.S: Likewise.
6185         * sysdeps/i386/i586/lshift.S: Likewise.
6186         * sysdeps/i386/i586/memcpy.S: Likewise.
6187         * sysdeps/i386/i586/memset.S: Likewise.
6188         * sysdeps/i386/i586/rshift.S: Likewise.
6189         * sysdeps/i386/i586/strchr.S: Likewise.
6190         * sysdeps/i386/i586/strcpy.S: Likewise.
6191         * sysdeps/i386/i586/strlen.S: Likewise.
6192         * sysdeps/i386/i586/sub_n.S: Likewise.
6193         * sysdeps/i386/i686/add_n.S: Likewise.
6194         * sysdeps/i386/i686/memcpy.S: Likewise.
6195         * sysdeps/i386/i686/mempcpy.S: Likewise.
6196         * sysdeps/i386/i686/memset.S: Likewise.
6197         * sysdeps/i386/i686/strcmp.S: Likewise.
6198
6199 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6200
6201         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6202
6203         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6204         256 and don't use OPEN_MAX.
6205
6206         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6207         use it instead of LINK_MAX.
6208         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6209
6210 2000-06-08  Andreas Jaeger  <aj@suse.de>
6211
6212         * libio/genops.c (_IO_list_lock): Only compile body if we're
6213         thread safe.
6214         (_IO_list_unlock): Likewise.
6215         (_IO_list_resetlock): Likewise.
6216
6217 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6218
6219         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6220         unless user defined it.
6221
6222         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6223         if not defined by the user.
6224
6225         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6226         * libio/iofwrite.c (_IO_fwrite): Likewise.
6227
6228         * time/time.h: Add missing __THROW for clock_getcpuclockid
6229         prototype.
6230
6231         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6232         * include/elf.h: Include also <dl-dtprocnum.h>.
6233         * elf/dl-deps.c: Likewise.
6234         * elf/dl-lookup.c: Likewise.
6235         * elf/dl-runtime.c: Likewise.
6236         * elf/dl-version.c: Likewise.
6237         * elf/do-rel.h: Likewise.
6238         * elf/dynamic-link.h: Likewise.
6239         * elf/link.h: Likewise.
6240         * elf/rtld.c: Likewise.
6241         * sysdeps/generic/dl-dtprocnum.h: New file.
6242         * sysdeps/ia64/dl-dtprocnum.h: New file.
6243         * sysdeps/mips/dl-dtprocnum.h: New file.
6244         * sysdeps/sparc/dl-dtprocnum.h: New file.
6245
6246         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6247
6248         * elf/do-lookup.h: Add some __builtin_expect.
6249
6250         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6251
6252         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6253         (_dl_dynamic_weak): New variable.
6254         * elf/dl-support.c: Likewise.
6255         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6256         * elf/do-lookup.h: If we find a weak definition treat it like a
6257         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6258         case treat it like before.
6259
6260         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6261         is in main program.
6262         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6263
6264         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6265         using l_map_start and l_map_end.
6266
6267         * elf/dl-version.c: Add __builtin_expect in many places.
6268
6269         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6270         Update.
6271
6272 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6273
6274         Lock for stdio stream list becomes global, for use in LinuxThreads.
6275
6276         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6277         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6278         _IO_list_resetlock): New interface for iterating global list of
6279         streams without accessing the _IO_list_all global variable,
6280         and for manipulating the lock which protects this list.
6281         * libio/libioP.h: Likewise.
6282         * libio/Version: Add entries for the new functions.
6283
6284         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6285         pointer to _IO_FILE.
6286
6287 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6288
6289         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6290         BIT() must actually be BITw().
6291
6292         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6293
6294         * locale/programs/charmap.c: Allow string arguments for
6295         code_set_name and repertoiremap.
6296
6297 2000-06-07  Andreas Jaeger  <aj@suse.de>
6298
6299         * elf/Makefile: Build ldconfig only when building shared libraries.
6300
6301 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6302
6303         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6304         __USE_ISOC99.
6305         (fdimf, __fdim, fdim): Likewise.
6306
6307 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6308
6309         * locale/findlocale.c: Add __builtin_expect in many places.
6310         * locale/loadlocale.c: Likewise.
6311
6312 2000-06-06  Greg McGary  <greg@mcgary.org>
6313
6314         * sysdeps/mips/elf/start.S: Trim redundant code.
6315
6316         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6317         Use C comments throughout.  Line up operands column with tabs.
6318         * sysdeps/powerpc/strchr.S: Likewise.
6319         * sysdeps/powerpc/strcmp.S: Likewise.
6320         * sysdeps/powerpc/strcpy.S: Likewise.
6321         * sysdeps/powerpc/strlen.S: Likewise.
6322
6323         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6324         Get low part of &__curbrk with @l.
6325
6326 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6327
6328         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6329         * iconvdata/unicode.c: Likewise.
6330         * iconvdata/uhc.c: Likewise.
6331         * iconvdata/t.61.c: Likewise.
6332         * iconvdata/sjis.c: Likewise.
6333         * iconvdata/johab.c: Likewise.
6334         * iconvdata/iso_6937.c: Likewise.
6335         * iconvdata/iso_6937-2.c: Likewise.
6336         * iconvdata/iso8859-1.c: Likewise.
6337         * iconvdata/iso646.c: Likewise.
6338         * iconvdata/iso-2022-kr.c: Likewise.
6339         * iconvdata/iso-2022-jp.c: Likewise.
6340         * iconvdata/iso-2022-cn.c: Likewise.
6341         * iconvdata/gbgbk.c: Likewise.
6342         * iconvdata/gbk.c: Likewise.
6343         * iconvdata/euc-kr.c: Likewise.
6344         * iconvdata/euc-jp.c: Likewise.
6345         * iconvdata/euc-cn.c: Likewise.
6346
6347 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6348
6349         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6350         * iconvdata/big5.c: Likewise.
6351         * iconvdata/ansi_x3.110.c: Likewise.
6352         * iconvdata/8bit-generic.c: Likewise.
6353         * iconvdata/8bit-gap.c: Likewise.
6354         * iconv/loop.c: Likewise.
6355         * iconv/gconv_db.c: Likewise.
6356         * iconv/gconv_dl.c: Likewise.
6357         * iconv/gconv_simple.c: Likewise.
6358         * iconv/skeleton.c: Likewise.
6359
6360         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6361         (struct __gconv_step_data): Rename __is_last to __flags.
6362         * iconv/gconv_close.c: Change all uses of __is_last.
6363         * iconv/skeleton.c: Likewise.
6364         * iconvdata/iso-2022-cn.c: Likewise.
6365         * iconvdata/iso-2022-jp.c: Likewise.
6366         * iconvdata/iso-2022-kr.c: Likewise.
6367         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6368         Recognize IGNORE error handling, set flag, and remove from name.
6369         * iconv/loop.c (ignore_errors_p): Define.
6370         Add flags parameter to both functions.
6371         * iconv/skeleton.c: Pass flags to all conversion functions.
6372         * iconv/gconv_simple.c: Add flags parameter to all functions.
6373         Don't return error for invald error if ignore flag is set.
6374         (ucs4_internal_loop_single): Add missing pointer increment.
6375         (internal_ucs4le_loop_single): Likewise.
6376         * iconv/iconv_prog.c: Implement handling of -c parameter.
6377         * iconvdata/8bit-gap.c: Don't return error for invald error if
6378         ignore flag is set.
6379         * iconvdata/8bit-generic.c: Likewise.
6380         * iconvdata/ansi_x3.110.c: Likewise.
6381         * iconvdata/big5.c: Likewise.
6382         * iconvdata/big5hkscs.c: Likewise.
6383         * iconvdata/euc-cn.c: Likewise.
6384         * iconvdata/euc-jp.c: Likewise.
6385         * iconvdata/euc-kr.c: Likewise.
6386         * iconvdata/gbgbk.c: Likewise.
6387         * iconvdata/gbk.c: Likewise.
6388         * iconvdata/iso-2022-cn.c: Likewise.
6389         * iconvdata/iso-2022-jp.c: Likewise.
6390         * iconvdata/iso-2022-kr.c: Likewise.
6391         * iconvdata/iso646.c: Likewise.
6392         * iconvdata/iso8859-1.c: Likewise.
6393         * iconvdata/iso_6937-2.c: Likewise.
6394         * iconvdata/iso_6937.c: Likewise.
6395         * iconvdata/johab.c: Likewise.
6396         * iconvdata/sjis.c: Likewise.
6397         * iconvdata/t.61.c: Likewise.
6398         * iconvdata/uhc.c: Likewise.
6399         * iconvdata/unicode.c: Likewise.
6400         * iconvdata/utf-16.c: Likewise.
6401         * libio/fileops.c: Likewise.
6402         * libio/iofwide.c: Likewise.
6403         * wcsmbs/btowc.c: Likewise.
6404         * wcsmbs/mbrtowc.c: Likewise.
6405         * wcsmbs/mbsnrtowcs.c: Likewise.
6406         * wcsmbs/mbsrtowcs.c: Likewise.
6407         * wcsmbs/wcrtomb.c: Likewise.
6408         * wcsmbs/wcsnrtombs.c: Likewise.
6409         * wcsmbs/wcsrtombs.c: Likewise.
6410         * wcsmbs/wctob.c: Likewise.
6411
6412         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6413         an error.
6414
6415 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6416
6417         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6418         counter for the object we are releasing, just decrement it.
6419         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6420
6421 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6422
6423         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6424         if -ffast-math.
6425
6426 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6427
6428         * iconvdata/big5hkscs.c: New file.
6429         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6430
6431         * iconvdata/gconv-modules: Add entry for new module.
6432         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6433         (distribute): Add big5hkscs.c.
6434
6435 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6436
6437         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6438         inlines to match prototypes in mathcalls.h.
6439         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6440         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6441         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6442         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6443
6444 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6445
6446         * elf/elf.h (SHT_SUNW_move): Define.
6447
6448         * elf/elf.h: Add more Solaris compatiblity definitions.
6449
6450 2000-06-03  Andreas Jaeger  <aj@suse.de>
6451
6452         * sysdeps/powerpc/dl-start.S: Close open comment.
6453
6454 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6455
6456         * inet/Versions: Fix typo in rresvport_af export.
6457
6458 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6459
6460         * math/tgmath.h: Pretty print.
6461
6462 2000-06-02  Andreas Jaeger  <aj@suse.de>
6463
6464         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6465         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6466
6467 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6468
6469         * elf/rtld.c (process_envvars): Test for = after variable name.
6470
6471 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6472
6473         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6474         have extra call to __gmon_start__, use the pointer we already have.
6475
6476         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6477         shifting.
6478
6479         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6480         binutils.  gas now emits a jump through the PLT instead of a
6481         relative jump if the jump target is an exported symbol.
6482
6483 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6484
6485         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6486
6487 2000-05-31  Andreas Jaeger  <aj@suse.de>
6488
6489         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6490         gregset_t.
6491
6492         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6493         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6494
6495         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6496         syscall.
6497         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6498
6499 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6500
6501         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6502
6503         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6504         * locale/localeconv.c: Make function versioned (with same definition).
6505
6506         * elf/Makefile (modules-names): Strip before using it.
6507
6508 2000-05-30  Andreas Jaeger  <aj@suse.de>
6509
6510         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6511         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6512         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6513         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6514         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6515         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6516
6517 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6518
6519         * Makefile: Add GNU make magic.
6520
6521         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6522         Removed.
6523         * inet/rcmd.c: Remove __P.  Remove unused variables.
6524         (iruserfopen): Make first parameter const.
6525         (ruserok_sa): Return result of ruserok2_sa.
6526         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6527         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6528         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6529         (ruserpass): Check results of memory allocation.
6530         * include/netdb.h: Add prototype for ruserpass.
6531
6532 2000-05-29  Andreas Jaeger  <aj@suse.de>
6533
6534         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6535         for all platforms.
6536
6537 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6538
6539         * inet/rcmd.c (rresvport_af): Use correct port number.
6540
6541 2000-05-26  Andreas Schwab  <schwab@suse.de>
6542
6543         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6544         entries in all-sonames.
6545         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6546         preserving the old name if different for compatibility.
6547
6548 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6549
6550         * posix/Makefile (tests): Add tst-spawn.
6551         (tst-spawn-ARGS): New variable.
6552         * posix/tst-spawn.c: New file.
6553
6554         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6555         * posix/spawn_faction_adddup2.c: Likewise.
6556         * posix/spawn_faction_addopen.c: Likewise.
6557         * posix/spawni.c: Correctly test for success of dup2 calls.
6558
6559         * posix/tst-preadwrite.c: Check success of malloc call.
6560
6561 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6562
6563         * posix/Makefile (tests): Add tst-exec.
6564         (tst-exec-ARGS): New variable.
6565         * posix/tst-exec.c: New file.
6566
6567         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6568
6569 2000-05-04  Andreas Jaeger  <aj@suse.de>
6570
6571         * string/string.h: Remove __strdup prototype, it's not needed in
6572         this file anymore.
6573
6574 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6575
6576         * posix/Makefile (tests): Add tst-fork.
6577         * posix/tst-fork.c: New file.
6578
6579         * resolv/inet_pton.c: Loose __P.
6580
6581 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6582
6583         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6584         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6585         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6586         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6587         _IO_CHECK_WIDE fails.
6588
6589 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6590
6591         * po/da.po: New file.
6592
6593         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6594         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6595
6596         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6597         (Other iconv Implementations): Fix typo.
6598         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6599
6600 2000-05-27  Andreas Jaeger  <aj@suse.de>
6601
6602         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6603         normal version now.
6604         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6605         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6606         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6607         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6608         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6609         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6610
6611         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6612         endianness to decide how to pass arguments.
6613         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6614
6615         * elf/vismain.c: Use test-skeleton interface.
6616         (TEST_FUNCTION): New macro.
6617         (do_test): Renamed from main.
6618
6619 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6620
6621         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6622         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6623
6624         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6625         handling of AI_V4MAPPED flag.
6626
6627         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6628         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6629         perform lookup for T_A type and tell getanswer_r to convert the
6630         result with new argument.
6631         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6632         Don't convert addresses from IPv4 to IPv6 here.
6633         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6634         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6635         IPv4 mapping has to be done.  Perform mappings if required by the
6636         caller and not if RES_USE_INET6 bit in _res.options is set.
6637         Add several __builtin_expect.
6638
6639 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6640
6641         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6642
6643         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
6644         NULL.
6645
6646         * posix/tst-preadwrite.c: Allow parallel execution of
6647         tst-preadwrite and tst-preadwrite64.
6648
6649         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
6650         * posix/tst-truncate.c: New file.
6651         * posix/tst-truncate64.c: New file.
6652
6653         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
6654         was switched.
6655
6656         * posix/Makefile (tests): Add tst-preadwrite64.
6657         * posix/tst-preadwrite.c: Alloc file being used also for testing
6658         pread64 and pwrite64.
6659         * posix/tst-preadwrite64.c: New file.
6660
6661 2000-05-26  Andreas Jaeger  <aj@suse.de>
6662
6663         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
6664         of arguments dependend on endianness.
6665         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6666
6667         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
6668         normal version now.
6669         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6670         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6671         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6672         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6673
6674         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
6675         endianness to check how to pass argument.
6676         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
6677
6678         * elf/ldconfig.h: Update parameter list for process_elf_file.
6679
6680         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
6681         Add parameter file_length and pass it ot process_elf*file.
6682
6683         * sysdeps/generic/readelflib.c (check_ptr): New.
6684         (process_elf_file): Use check_ptr to check all accesses to the
6685         mmapped file. Add parameter file_length.
6686
6687         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
6688         library names.
6689
6690         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
6691         Closes PR libc/1573, reported by Bradley White
6692         <bww@laurelnetworks.com>.
6693
6694 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
6695
6696         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
6697         __FAST_MATH__ is defined.
6698
6699 2000-05-22  Andreas Jaeger  <aj@suse.de>
6700
6701         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
6702         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
6703
6704         * manual/math.texi (FP Function Optimizations): Document gcc
6705         -ffast-math behaviour with mathinlines.
6706
6707         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
6708         functions unless -ffast-math is given to gcc.
6709
6710 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
6711
6712         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
6713         __sincosl): Guard with __USE_GNU.
6714
6715 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
6716
6717         * csu/Makefile (routines): Add check_fds.
6718         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
6719         binaries.  Add various __builtin_expect.
6720         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
6721         * sysdeps/generic/check_fds.c: ...here.  New file.
6722
6723         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
6724         binaries if file /etc/suid-debug is available.
6725
6726         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
6727         and wcseqorder members.
6728         (struct locale_collate_t): Likewise.
6729         (collate_finish): Assign collation sequence value to each character.
6730         Create tables for output.
6731         (collate_output): Write out tables with collation sequence information.
6732         * locale/C-collate.c: Provide C locale data for collation sequence
6733         table.
6734         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
6735         _NL_COLLATE_COLLSEQWC.
6736         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
6737         _NL_COLLATE_COLLSEQWC.
6738         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
6739         include fnmatch_loop.c.
6740         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
6741         character is matched by range expression.  Use collation sequence
6742         table.  Outside glibc fall back on simple character value comparison.
6743
6744 2000-05-24  Andreas Jaeger  <aj@suse.de>
6745
6746         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
6747         words.
6748
6749         * intl/Makefile: Run gettext-test only if msgfmt is available.
6750
6751         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
6752         Define it for newer kernels.
6753
6754 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
6755
6756         * elf/dl-sym.c: Minor cleanups.
6757
6758         * configure.in: Add test for .protected.
6759         * config.make.in: Add have-protected variable.
6760         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
6761         (tests-vis-yes): Add vismain.
6762         (modules-names): Add $(modules-vis-$(have-protected)).
6763         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
6764         Add rules to generate and run vismain.
6765         * elf/vismain.c: New file.
6766         * elf/vismod1.c: New file.
6767         * elf/vismod2.c: New file.
6768         * elf/vismod3.c: New file.
6769
6770 2000-05-23  Andreas Jaeger  <aj@suse.de>
6771
6772         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
6773
6774         * manual/search.texi (Array Sort Function): Document that qsort is
6775         not necessarily in-place.
6776
6777         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
6778         Closes PR libc/1731.
6779
6780         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
6781         * dirent/scandir64.c: Likewise.
6782         * pwd/getpw.c: Likewise.
6783         * stdlib/bsearch.c (bsearch): Likewise.
6784         * stdlib/tst-strtoll.c: Likewise.
6785         * localedata/collate-test.c: Likewise.
6786         * localedata/xfrm-test.c: Likewise.
6787         * posix/bsd-getpgrp.c: Likewise.
6788         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
6789         * sysdeps/generic/bits/siginfo.h: Likewise.
6790         * sysdeps/generic/bits/sockaddr.h: Likewise.
6791         * sysdeps/generic/sys/swap.h: Likewise.
6792         * sysdeps/generic/sys/sysinfo.h: Likewise.
6793         * sysdeps/generic/vfork.c: Likewise.
6794         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
6795         * sysdeps/mach/hurd/fdopen.c: Likewise.
6796         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
6797         * sysdeps/unix/sysv/linux/poll.c: Likewise.
6798         * sysdeps/unix/sysv/linux/readv.c: Likewise.
6799         * sysdeps/unix/sysv/linux/writev.c: Likewise.
6800         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
6801         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
6802         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
6803
6804         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
6805         * shadow/lckpwdf.c: Likewise.
6806         * stdlib/tst-strtol.c: Likewise.
6807         * sysdeps/generic/tcsetattr.c: Likewise.
6808         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6809         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6810
6811 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
6812
6813         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
6814         free it and set to (void *) -1.
6815
6816 2000-05-22  Jakub Jelinek <jakub@redhat.com>
6817
6818         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
6819         not the second character in the range.
6820         * stdio-common/tstscanf.c (main): Add testcase for the above.
6821         Reported by jik@kamens.brookline.ma.us.
6822
6823 2000-05-21  H.J. Lu  <hjl@gnu.org>
6824
6825         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
6826         with noexec and noplt parameter.
6827         (do_lookup): Likewise.
6828
6829         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
6830         do_lookup.  Support STV_PROTECTED.
6831         (_dl_lookup_symbol_skip): Likewise.
6832         (_dl_lookup_versioned_symbol): Likewise.
6833         (_dl_lookup_versioned_symbol_skip): Likewise.
6834
6835         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
6836
6837         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
6838
6839 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6840
6841         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
6842         * sysdeps/i386/bits/huge_val.h: Likewise.
6843         * sysdeps/ieee754/bits/huge_val.h: Likewise.
6844         * sysdeps/m68k/bits/huge_val.h: Likewise.
6845         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
6846         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
6847
6848 2000-05-22  Andreas Jaeger  <aj@suse.de>
6849
6850         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
6851         change in iconv.h.
6852
6853 2000-05-19  Andreas Jaeger  <aj@suse.de>
6854
6855         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
6856         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
6857         breaks compilation without linuxthreads.
6858
6859 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
6860
6861         * sysdeps/ia64/memccpy.S: New file.
6862         * sysdeps/ia64/memchr.S: New file.
6863         * sysdeps/ia64/memcmp.S: New file.
6864         * sysdeps/ia64/memcpy.S: New file.
6865         * sysdeps/ia64/memmove.S: New file.
6866         * sysdeps/ia64/memset.S: New file.
6867         * sysdeps/ia64/strcat.S: New file.
6868         * sysdeps/ia64/strchr.S: New file.
6869         * sysdeps/ia64/strcmp.S: New file.
6870         * sysdeps/ia64/strcpy.S: New file.
6871         * sysdeps/ia64/strlen.S: New file.
6872         * sysdeps/ia64/strncmp.S: New file.
6873         * sysdeps/ia64/strncpy.S: New file.
6874         * sysdeps/ia64/softpipe.h: New file.
6875         Patches by Dan Pop <Dan.Pop@cern.ch>.
6876
6877         * manual/memory.texi: Document memory handling functions (mlock,
6878         munlock, mlockall, munlockall, brk, and sbrk)
6879         * manual/time.texi: Document timespec and friends.
6880         * manual/conf.texi: Fix references.
6881         * manual/ctype.texi: Likewise.
6882         * manual/errno.texi: Likewise.
6883         * manual/intro.texi: Likewise.
6884         * manual/locale.texi: Likewise.
6885         * manual/sysinfo.texi: Likewise.
6886         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
6887
6888 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
6889
6890         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
6891         * sysdeps/ia64/dl-lookupcfg.h: ...here.
6892
6893 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6894
6895         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
6896         dxfer_direction.
6897
6898 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
6899
6900         * locale/locale.h (struct lconv): Add new elements from ISO C99.
6901         * locale/localeconv.c: Initialize new elements from ISO C99.
6902         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
6903         new standard elements.
6904         * locale/categories.def: Adjust accordingly.
6905
6906         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
6907         * iconv/iconv.c: Likewise.
6908         * conform/data/iconv.h-data: Likewise.
6909         * iconv/iconv_prog.c (process_block): Remove const from second
6910         parameter.
6911         (main): Remove const from addr definition.
6912         * manual/charset.texi (Generic Conversion Interface): Remove from
6913         inbuf parameter of iconv.
6914
6915         * intl/dcigettext.c: Fix typo in comment.
6916
6917 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
6918
6919         * resolv/res_libc.c (_res): Initialize _sock to -1.
6920
6921 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
6922
6923         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
6924         (fopencookie@@GLIBC_2.2): New.
6925         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
6926         (fopencookie@GLIBC_2.0): New.
6927         * libio/Versions: Add fopencookie to GLIBC_2.2.
6928
6929 2000-05-18  Andreas Jaeger  <aj@suse.de>
6930
6931         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
6932         Closes PR libc/1731.
6933
6934         * manual/arith.texi (Parsing of Integers): Fix typo.
6935         Closes PR libc/1744, reported by blp@gnu.org.
6936
6937 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
6938
6939         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
6940         __extension__ to hexadecimal floating constant notation.
6941         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
6942         Likewise.
6943         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
6944         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
6945         Likewise.
6946         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
6947         HUGE_VALL): Likewise.
6948         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
6949         HUGE_VALL): Likewise.
6950         (HUGE_VALL): Set to HUGE_VAL on sparc32.
6951
6952 2000-05-17  Andreas Jaeger  <aj@suse.de>
6953
6954         * string/envz.h: Add pure attributes if possible.
6955
6956         * string/argz.h: argz_count is a pure function.
6957
6958         * string/strings.h: Add pure and const attributes if possible.
6959
6960         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
6961         possibly searching through the whole memory.
6962         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
6963
6964 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
6965
6966         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
6967         not yet defined.
6968         (_dl_cache_check_flags): Likewise.
6969         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
6970         dl-cache.h.
6971
6972 2000-05-17  Andreas Jaeger  <aj@suse.de>
6973
6974         * manual/creature.texi (Feature Test Macros): Remove paragraph
6975         since the description is wrong.
6976         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
6977
6978         * scripts/config.sub: New version.
6979         * scripts/config.guess: Likewise.
6980         * manual/texinfo.tex: Likewise.
6981
6982         * time/test_time.args: Removed.
6983         * time/Makefile (test_time-ARGS): Added contents here instead.
6984
6985         * posix/tstgetopt.args: Removed.
6986         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
6987
6988         * Rules: Allow arguments for test files to be specified in
6989         Makefile with testname-ARGS; remove rules with .args in it.
6990
6991         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
6992         remove old bogus rule for opendir-tst1.args.
6993
6994         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
6995
6996         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
6997         into objdir.  This allows a readonly sourcetree.
6998         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
6999
7000 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7001             David Huggins-Daines <dhd@linuxcare.com>
7002
7003         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7004         cache_data in case of only new cache format correctly.
7005
7006         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7007         cache_file_new.
7008
7009         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7010         struct cache_file_new.
7011
7012         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7013         present.
7014
7015         * elf/cache.c (save_cache): Align struct new_file_cache.
7016         (print_cache): Likewise.
7017
7018 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7019
7020         * elf/soinit.c (__libc_global_ctors): Move
7021         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7022         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7023         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7024         variable, don't define it to __res_state call.
7025
7026 2000-05-13  Andreas Jaeger  <aj@suse.de>
7027
7028         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7029         Linux 2.3.99pre7.
7030         (AF_PPPOX): Likewise.
7031         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7032         (AF_PPPOX): Likewise.
7033
7034 2000-05-12  Andreas Jaeger  <aj@suse.de>
7035
7036         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7037         Reported by tmoestl@gmx.net, closes PR libc/1732.
7038
7039 2000-05-11  Jan Hubicka  <jh@suse.cz>
7040
7041         * misc/sys/cdefs.h: Add support for pure attribute.
7042
7043         * include/string.h: Add __attribute_pure__ to various functions.
7044         * string/string.h: Likewise.
7045
7046 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7047
7048         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7049         argument.
7050         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7051         R_SPARC_UA64.
7052         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7053
7054 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7055
7056         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7057         at proper place.  Compute the high nibble correctly.
7058
7059 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7060
7061         * elf/ldconfig.c: Include elf.h.
7062
7063         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7064         (_dl_vsym): Likewise.
7065         Reported by Owen Taylor <otaylor@redhat.com>.
7066
7067         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7068         always.
7069
7070 2000-05-08  Andreas Jaeger  <aj@suse.de>
7071
7072         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7073
7074         * intl/bindtextdom.c (set_binding_values): Add prototype.
7075
7076 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7077
7078         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7079         call to elf_machine_fixup_plt.
7080         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7081         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7082
7083 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7084
7085         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7086         they are not dlclose'd from underneath us.
7087
7088 2000-05-08  Andreas Schwab  <schwab@suse.de>
7089
7090         * posix/execle.c: Fix size parameter of memcpy.
7091
7092 2000-05-08  Andreas Schwab  <schwab@suse.de>
7093
7094         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7095         getpagesize syscall if available.
7096
7097 2000-05-08  Andreas Jaeger  <aj@suse.de>
7098
7099         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7100         set errno.
7101
7102 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7103
7104         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7105         sizeof(struct link_map *) chunks, not in bytes.
7106
7107 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7108
7109         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7110         only needed for locale.
7111         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7112         It's only needed for catgets.
7113         Patches by Greg McGary <gkm@eng.ascend.com>.
7114
7115 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7116
7117         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7118         Remove duplicate <errno.h> include.  Remove inclusion of
7119         <libintl.h> and "nsswitch.h".
7120         (set_cloexec_flag): New function, broken out of dbopen.
7121         (dbopen): Changed return type to `enum
7122         nss_status'.  Mostly rewritten to make sure that we do not report
7123         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7124         (internal_setent): Change return type to nss_status.
7125         Document, and make sure that the function
7126         behaves accordingly.  Make dynamically loading the database
7127         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7128         failed.
7129         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7130         unecessary casts.
7131         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7132         documentation.
7133         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7134         c_get function member.
7135         * nss/nss_db/nss_db.h: Add and tweak some comments.
7136         (DBT): Move typedef before NSS_DBC typedef.
7137         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7138
7139 2000-05-07  H.J. Lu  <hjl@gnu.org>
7140
7141         * csu/initfini.c: Moved to ....
7142         * sysdeps/generic/initfini.c: ...here.
7143
7144         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7145
7146 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7147
7148         * manual/resource.texi: Document POSIX scheduling functions.
7149         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7150
7151         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7152         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7153
7154         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7155         for x since promotion in comparison might leads to unexpected
7156         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7157
7158         * iconv/Makefile (tests): Add tst-iconv1.
7159         * iconv/tst-iconv1.c: New file.
7160         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7161         empty input buffer over full output buffer.
7162         (ucs4_internal_loop): Likewise.
7163         (ucs4_internal_loop_unaligned): Likewise.
7164         (internal_ucs4le_loop): Likewise.
7165         (internal_ucs4le_loop_unaligned): Likewise.
7166         (ucs4le_internal_loop): Likewise.
7167         (ucs4le_internal_loop_unaligned): Likewise.
7168         Reported by yaoz@nih.gov.
7169
7170 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7171
7172         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7173         returned != __GCONV_OK, there is nothing to clean up.
7174
7175 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7176
7177         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7178         OUTPUT_CHARSET environment variables.
7179
7180 2000-05-06  Andreas Jaeger  <aj@suse.de>
7181
7182         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7183         (struct cache_file_new): New.
7184         (struct file_entry): New (moved from cache.c).
7185         (struct cache_file): New (moved from cache.c).
7186
7187         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7188         from _dl_load_cache_lookup.
7189         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7190         the different cache formats.
7191         New variable cache_new for new format.
7192
7193         * elf/ldconfig.h: Change according to changes in cache.c and
7194         ldconfig.c; remove cache_libcmp; add opt_format.
7195
7196         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7197         stuff that's defined in those headers.
7198         Add hwcap to struct lib_entry.
7199         (opt_format): New variable to select cache format.
7200         (options): Add format parameter.
7201         (is_hwcap): New function.
7202         (path_hwcap): New function.
7203         (parse_opt): Handle new format parameter.
7204         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7205
7206         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7207         ldconfig is part of glibc.
7208         Include dl-cache.h and remove stuff that's defined there.
7209         (struct cache_entry): Add new member hwcap.
7210         (print_entry): Print hwcap, cleanup a bit.
7211         (print_cache): Print new and old formats.
7212         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7213         (save_cache): Save new and old formats.
7214         (add_to_cache): Handle hwcap.
7215
7216         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7217         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7218         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7219         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7220         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7221         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7222
7223 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7224
7225         * intl/dcigettext.c (alignof): New macro.
7226         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7227         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7228         freemem_size to 0.
7229
7230 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7231
7232         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7233         return value.
7234
7235 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7236
7237         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7238         (mempcpy): Correct typo is parameter list.
7239
7240 2000-05-06  Andreas Jaeger  <aj@suse.de>
7241
7242         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7243         functions unless -ffast-math is given to gcc.
7244
7245 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7246
7247         * po/ko.po: Update from translation team.
7248
7249 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7250
7251         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7252         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7253         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7254         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7255         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7256         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7257
7258         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7259         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7260         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7261
7262         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7263         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7264         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7265         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7266
7267         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7268         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7269
7270 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7271
7272         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7273         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7274
7275         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7276         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7277
7278         * sysdeps/ia64/Implies: New file.
7279         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7280         * sysdeps/ia64/Makefile: New file.
7281         * sysdeps/ia64/gmp-mparam.h: New file,
7282
7283         * sysdeps/ia64/elf/start.S: New file.
7284
7285         * sysdeps/ia64/bits/fenv.h: New file.
7286
7287 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7288
7289         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7290
7291 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7292
7293         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7294         ia64 has 64 bit .hash entries just as the Alpha.
7295
7296 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7297
7298         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7299
7300 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7301
7302         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7303         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7304         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7305         * sysdeps/ia64/fpu/fegetenv.c: New file.
7306         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7307         * sysdeps/ia64/fpu/fegetround.c: New file.
7308         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7309         * sysdeps/ia64/fpu/fesetenv.c: New file.
7310         * sysdeps/ia64/fpu/fesetround.c: New file.
7311         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7312         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7313         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7314         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7315         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7316
7317 2000-05-05  Andreas Jaeger  <aj@suse.de>
7318
7319         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7320
7321         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7322         (_dl_string_hwcap): New, does nothing.
7323
7324         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7325         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7326         (_dl_string_hwcap): New function, converts from string to hwcap
7327         encoding.
7328         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7329         (_DL_HWCAP_COUNT): New.
7330         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7331         (_dl_string_hwcap): New function, converts from string to hwcap
7332         encoding.
7333         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7334         (_DL_HWCAP_COUNT): New.
7335         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7336         (_dl_string_hwcap): New function, converts from string to hwcap
7337         encoding.
7338
7339 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7340
7341         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7342         * sysdeps/ia64/Dist: New file.
7343
7344         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7345         parameter to mprotect and for variable assignments.
7346
7347 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7348
7349         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7350         validity of map before dereferencing it.
7351
7352         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7353
7354 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7355
7356         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7357         lookup to the arguments to elf_machine_fixup_plt().
7358
7359         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7360         of the symbol being resolved to input argument list and make the
7361         function return the pointer to the reloc.
7362
7363         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7364         return valuie to lookup_t and return the value.
7365         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7366         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7367         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7368         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7369         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7370         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7371
7372         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7373         Make it an inline function returning value after calling
7374         __elf_machine_fixup_plt().
7375
7376         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7377         symbol address.
7378
7379         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7380         obtain the symbol address.
7381
7382         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7383         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7384
7385         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7386         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7387         inline on non ia64.
7388
7389 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7390
7391         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7392         symbol address of an object.
7393
7394         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7395         the symbol address of an object.
7396
7397         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7398         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7399         (_dl_lookup_symbol_skip): Likewise.
7400         (_dl_lookup_versioned_symbol): Likewise.
7401         (_dl_lookup_versioned_symbol_skip): Likewise.
7402
7403 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7404
7405         * elf/rtld.c (_dl_start): Get the function pointer return address
7406         via _dl_start_address for architectures that need a function
7407         pointer descriptor rather than just a pointer (ia64).
7408
7409         * sysdeps/generic/dl-lookupcfg.h: New file.
7410         * sysdeps/ia64/dl-lookupcfg.h: New file.
7411         * sysdeps/ia64/dl-machine.h: New file.
7412         * sysdeps/ia64/dl-symaddr.c: New file.
7413         * sysdeps/ia64/dl-fptr.c: New file.
7414
7415         * elf/elf.h: Add IA-64 specific definitions.
7416
7417 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7418
7419         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7420         end of enum.
7421
7422 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7423
7424         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7425         happy.
7426
7427 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7428
7429         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7430         symbol.  Call _dl_init rather than the old way.
7431
7432 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7433
7434         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7435         test for pointer in range of DSO address space.
7436
7437 2000-05-04  Andreas Jaeger  <aj@suse.de>
7438
7439         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7440
7441 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7442
7443         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7444         calls of _nl_make_l10nflist.
7445
7446         * libio/stdio.h: Make fseeko and ftello prototypes available is
7447         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7448
7449         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7450         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7451
7452 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7453
7454         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7455         before calling tfind.
7456
7457 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7458
7459         * resolv/resolv.h (res_querydomain): Remove redefinition to
7460         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7461
7462 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7463
7464         * po/gl.po: Update from translation team.
7465
7466         * manual/intro.texi (Program Basics): Change section title.
7467         * manual/process.texi: Fix reference.
7468         (Executing a File): Add reference exec in other section.
7469         * manual/signal.texi: Fix reference.
7470         * manual/startup.texi: Document syscall function.
7471         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7472
7473 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7474
7475         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7476         * intl/bindtextdom.c (set_binding_values): New function.
7477         (bindtextdomain): Call it.
7478         (bind_textdomain_codeset): New function.
7479         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7480         (free_mem): Free each binding's codeset.
7481         * intl/gettextP.h (struct binding): Add codeset field.
7482         (_nl_find_domain): Add domainbinding argument.
7483         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7484         Pass it to _nl_make_l10nflist.
7485         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7486         (_nl_make_l10nflist): Add domainbinding argument.
7487         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7488         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7489         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7490         locale_charset().
7491         * manual/message.texi: New node "Charset conversion in gettext".
7492
7493 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7494
7495         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7496         appropriate.  Handle possible __read error.
7497
7498 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7499
7500         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7501         compiler builtin.
7502         * intl/loadinfo.h (__builtin_expect): Likewise.
7503         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7504         __builtin_expect where appropriate.
7505         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7506         * intl/localealias.c (extend_alias_table): Return an error indicator.
7507         (read_alias_file): Bail out if extend_alias_table fails.
7508
7509 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7510
7511         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7512         * intl/localealias.c: Likewise.
7513
7514 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7515
7516         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7517         Initialize domain->plural and domain->nplurals even if there is no
7518         nullentry.
7519
7520 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7521
7522         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7523         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7524         In case of failure, goto converted.
7525
7526 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7527
7528         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7529         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7530         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7531         __gconv_open.
7532
7533 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7534
7535         * intl/dcigettext.c (transcmp): Compare the domains as well.
7536         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7537         not before.
7538         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7539         <errno.h>.
7540
7541 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7542
7543         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7544         Reported by Bruno Haible.
7545
7546 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7547
7548         * manual/arith.texi: Remove @w from @itemize.
7549
7550 2000-05-02  Andreas Jaeger  <aj@suse.de>
7551
7552         * conform/data/tar.h-data: Add some checks for specific values.
7553
7554         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7555         and RAND_MAX.
7556
7557         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7558         FOPEN_MAX.
7559
7560         * conform/data/netinet/in.h-data: Add exact checks for the values
7561         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7562
7563         * conform/data/float.h-data: Add some minimal values.
7564
7565         * conform/conformtest.pl: Test for macros with string constants,
7566         check for minimum and maximum values.
7567         Add limits.h to headers.
7568
7569         * conform/data/cpio.h-data: Test for value of MAGIC.
7570
7571         * conform/data/limits.h-data: New file.
7572
7573 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7574
7575         * math/Makefile (headers): Add bits/fenvinline.h.
7576
7577 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7578
7579         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7580         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7581
7582         * posix/Versions: Change posix_spawnattr_getdefault and
7583         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7584         and posix_spawnattr_setsigdefault respectively.
7585         * posix/spawn.h: Likewise.
7586         * posix/spawnattr_getdefault.h: Likewise.
7587         * posix/spawnattr_setdefault.h: Likewise.
7588         * conform/data/spawn.h-data: Likewise.
7589
7590 2000-05-01  Andreas Jaeger  <aj@suse.de>
7591
7592         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7593
7594 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7595
7596         * manual/sysinfo.texi: Document getdomainname, setdomainname
7597         and sysctl.
7598         * manual/string.texi: Fix typo.
7599         * manual/terminal.texi: Document gtty and stty.
7600         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7601
7602 2000-04-30  Andreas Jaeger  <aj@suse.de>
7603
7604         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7605         accordance with Austin Draft.
7606
7607 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7608
7609         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7610         to recognize second character in comment line.
7611
7612         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7613         ENOBUFS if we are out of memory.
7614
7615         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7616         available if __USE_XOPEN2K.
7617         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7618         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7619         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7620         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7621         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7622         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7623         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7624         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7625
7626 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7627
7628         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7629         Recognize option -s, -c, and -l.
7630
7631 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7632
7633         * nscd/nscd.c: Start new session for nscd, drop privilegs
7634         to configured user if requested and no -S parameter are used.
7635         * nscd/nscd.conf: Add new option "server-user".
7636         * nscd/nscd_conf.c: Add support for new "server-user" option.
7637         * nscd/nscd.h: Add declaration for server_user variable.
7638         Based on patch by Chris Wing <wingc@engin.umich.edu>
7639
7640 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7641
7642         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
7643         that changing the __restore and __restore_rt signal return code
7644         will break GDB.
7645
7646 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7647
7648         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
7649         <sys/user.h>.
7650
7651 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7652
7653         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
7654
7655 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7656
7657         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
7658         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
7659         arpa/inet.h.
7660         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
7661         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
7662         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
7663         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
7664         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
7665         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
7666         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
7667         posix_fallocate, and posix_madvise.
7668         * conform/data/netdb.h-data: New file.
7669         * conform/data/pthread.h-data: Add pthread_barrier_t,
7670         pthread_barrierattr_t, pthread_barrier_destroy,
7671         pthread_barrier_init, pthread_barrier_wait,
7672         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
7673         pthread_barrierattr_init, pthread_barrierattr_setpshared,
7674         pthread_condattr_getclock, pthread_condattr_setclock,
7675         pthread_getcpuclockid, pthread_mutex_timedlock,
7676         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7677         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
7678         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
7679         * conform/data/sched.h-data: Add sched_ss_low_priority,
7680         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
7681         SCHED_SPORADIC.
7682         * conform/data/semaphore.h-data: Add sem_timedwait.
7683         * conform/data/signal.h-data: Add SIGIO.
7684         * conform/data/spawn.h-data: New file.
7685         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
7686         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
7687         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
7688         Fix typo in gmtime_r definition.
7689         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
7690         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
7691         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
7692         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
7693         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
7694         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
7695         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
7696         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
7697         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
7698         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
7699         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
7700         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
7701         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
7702         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
7703         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
7704         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
7705         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
7706         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
7707         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
7708         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
7709         typo in off_t definition.
7710         * conform/data/net/if.h-data: New file.
7711         * conform/data/netinet/in.h-data: New file.
7712         * conform/data/netinet/tcp.h-data: New file.
7713         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
7714         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
7715         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
7716         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
7717         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
7718         and posix_typed_mem_open.
7719         * conform/data/sys/socket.h-data: New file.
7720         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
7721         * conform/data/sys/types.h-data: Add pthread_barrier_t,
7722         pthread_barrierattr_t, and pthread_spinlock_t.
7723         * conform/data/sys/un.h-data: New file.
7724         * conform/data/sys/utsname.h-data: New file.
7725
7726         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
7727         parameter.
7728         * inet/gethstbyad.c (gethostbyname): Likewise.
7729         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
7730         * inet/getipnodebyad.c (getipnodebyad): Likewise.
7731         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
7732         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
7733         Likewise.
7734         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
7735         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
7736         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
7737         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
7738         * resolv/gethnamaddr.c (gethostbyname): Likewise.
7739         * resolv/netdb.h (struct hostent): Fix type of h_length member.
7740         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
7741         and second parameter.
7742
7743         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
7744         == NULL.
7745
7746 2000-04-29  Andreas Jaeger  <aj@suse.de>
7747
7748         * conform/data/arpa/inet.h-data: New file.
7749
7750 2000-04-28  Geoff Clare <gwc@unisoft.com>
7751
7752         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
7753         path passed to ftw() or nftw() is an empty string.
7754         Closes PR libc/1710.
7755
7756 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7757
7758         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
7759         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
7760         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
7761         * localedata/tst-mbswcs4.c: New file.
7762         * localedata/tst-mbswcs5.c: New file.
7763
7764         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
7765         == NULL.  Little optimization.
7766
7767         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
7768         DT_PREINIT_ARRAYSZ).
7769         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
7770
7771         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
7772         overflows in conversion from ASCII.
7773
7774 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
7777         * Makerules (full_config_sysdirs): Likewise.
7778         * MakeTAGS (full_config_sysdirs): Likewise.
7779
7780 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7781
7782         * .cvsignore: Remove linuxthreads.
7783         * po/.cvsignore: Remove *.pot.
7784         * posix/glob/.cvsignore: Removed.
7785         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
7786
7787 2000-04-25  Andreas Jaeger  <aj@suse.de>
7788
7789         * conform/Makefile (distribute): Also distribute contents of
7790         subdirectories.
7791
7792         * Makerules (no_deps): Remove abi-versions.h.
7793
7794         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
7795
7796 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7797
7798         * sysdeps/sparc/sparc64/elf/Dist: Remove.
7799         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
7800         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
7801         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
7802         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
7803         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
7804         objects.
7805
7806 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
7807
7808         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
7809
7810 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7811
7812         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
7813         * intl/l10nflist.c: Likewise.
7814
7815 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7816
7817         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
7818         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
7819         * intl/textdomain.c [!_LIBC]: Likewise.
7820         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
7821         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
7822         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
7823         syntax error.
7824
7825 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
7826
7827         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
7828         character set conversion also in the case the translation was found
7829         after a hash collision or through binary search.  Store the maximum
7830         index together with the converted message.  Use iconv() when available.
7831         In case of out of memory during conversion, return the unconverted
7832         translated string, not NULL.
7833
7834 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7835
7836         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
7837         to avoid name clashes with the ia32 linker.
7838
7839 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
7840
7841         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
7842         handling.
7843
7844 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7845
7846         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
7847         strtoumax, strfry, and memfrob.
7848         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
7849         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7850
7851         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
7852         if this function is available.
7853
7854         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
7855         all values.
7856
7857 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
7858
7859         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
7860
7861 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7862
7863         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
7864         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
7865         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
7866         * localedata/tst-mbswcs3.c: New file.
7867
7868 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
7869
7870         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
7871         characters.  Don't handle incomplete characters as errors.
7872         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
7873         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
7874         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
7875         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
7876         * localedata/tst-mbswcs2.c: New file.
7877
7878         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
7879         stored character in state in UNPACK_BYTES macro.
7880         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
7881         test for available characters, handle result of BODY code correctly.
7882         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
7883         (distribute): Add tst-mbswcs.sh.
7884         Add rule to run tst-mbswcs.sh.
7885         * localedata/tst-mbswcs.sh: New file.
7886         * localedata/tst-mbswcs1.c: New file.
7887
7888 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
7889
7890         * nis/nis_callback.c (__nis_create_callback): Do failed memory
7891         allocation fixups centrally, fix __builtin_expect call, return NULL
7892         on failure, not NIS_NOMEMORY.
7893
7894 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
7895
7896         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
7897
7898         * intl/loadinfo.h (internal_function): Define if not already defined.
7899
7900 2000-04-27  Andreas Jaeger  <aj@suse.de>
7901
7902         * intl/libintl.h: Fix typo, reported by Bruno Haible
7903         <haible@clisp.cons.org>.
7904
7905 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
7906
7907         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
7908         setting the state to GMON_PROF_BUSY.
7909
7910 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
7911
7912         * elf/dl-profile.c (_dl_start_profile): define all variables which
7913         do not have to be global as local variables.
7914
7915         * nis/nis_callback.c (__nis_create_callback): Partially undo last
7916         patch.  Keep needed tests for failed memory allocation.
7917
7918         * elf/dl-reloc.c (_dl_relocate_object): Add one more
7919         __builtin_expect saying that we don't normally expect to profile.
7920
7921         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
7922         __builtin_expect where desirable.
7923
7924 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
7925
7926         * manual/Makefile (chapters): Add syslog.
7927         * manual/syslog.texi: New file.
7928         * manual/math.texi: Fix references.
7929         * manual/terminal.texi: Likewise.
7930         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7931
7932 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
7933
7934         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
7935         stdlib.h was not included or __USE_XOPEN not defined.
7936
7937 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
7938
7939         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
7940         Patch by Zack Weinberg <zack@wolery.cumb.org>.
7941
7942 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
7943
7944         * manual/examples/subopt.c (mount_opts): Add missing terminating
7945         entry.
7946         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
7947
7948         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
7949         * libio/ftello.c: Likewise.
7950         * libio/ftello64.c: Likewise.
7951         * libio/ioftell.c: Likewise.
7952         * sysdeps/generic/memrchr.c: Likewise.
7953         * sysdeps/posix/libc_fatal.c: Likewise.
7954         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
7955         * misc/fstab.c: Include <string.h> for strcmp prototype.
7956         * sysdeps/generic/ldsodefs.h: Likewise.
7957         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7958         Patch by Kurt Roeckx <Q@ping.be>.
7959
7960         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
7961         Remove db-open.  Change all uses.
7962         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
7963
7964 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
7965
7966         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
7967         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
7968         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
7969         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
7970         with .set noat/at to shut up warnings.
7971         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
7972         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
7973         compilation if __NR_pciconfig_iobase is not defined.
7974         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
7975         Add alias.
7976
7977 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
7978
7979         * manual/sysinfo.texi: Fix typo.
7980         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
7981         Replace "high precision time" with "high accuracy clock".
7982         Fix language.
7983         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7984
7985         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
7986         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
7987         instead of malloc.
7988         * nis/nis_subr.c: Use __builtin_expect.
7989         * nis/ypclnt.c: Likewise.
7990         * nis/nis_getservlist.c: Likewise.
7991         * nis/nis_creategroup.c: Likewise.
7992
7993         * nis/nis_callback.c (__nis_create_callback): Check result of
7994         memory allocation.  Fix memory leaks.  Use __builtin_expect.
7995         (__nis_destroy_callback): Fix memory leaks.
7996
7997 2000-04-21  Andreas Jaeger  <aj@suse.de>
7998
7999         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8000         * sysdeps/mips/mips64/add_n.S: Likewise.
8001         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8002         * sysdeps/mips/mips64/lshift.S: Likewise.
8003         * sysdeps/mips/mips64/mul_1.S: Likewise.
8004         * sysdeps/mips/mips64/rshift.S: Likewise.
8005         * sysdeps/mips/mips64/setjmp.S: Likewise.
8006         * sysdeps/mips/mips64/sub_n.S: Likewise.
8007         * sysdeps/mips/mips64/submul_1.S: Likewise
8008         * sysdeps/unix/mips/sysdep.S: Likewise.
8009
8010         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8011         and update comment.  The strtab from _dl_relocate_object can be
8012         used.
8013
8014 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8015
8016         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8017         * iconv/iconv_close.c (iconv_close): Likewise.
8018         * iconv/iconv_open.c (iconv_open): Likewise.
8019
8020         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8021         __builtin_expect where useful.
8022
8023         * grp/initgroups.c (initgroups): Test for result of memory
8024         allocation and punt if it fails.
8025
8026         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8027         * grp/fgetgrent.c (fgetfrent): Likewise.
8028         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8029
8030 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8031
8032         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8033
8034 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8035
8036         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8037         don't search for NUL byte to decrement counter.
8038         Reported by Ulrich.Brink@sap.com.
8039
8040         * iconv/gconv_simple.c: Define separate functions to convert from
8041         UCS4/UCS4-LE to the internal encoding.
8042         * iconv/gconv_builtin.h: Use separate functions to convert from
8043         UCS4/UCS4-LE to the internal encoding.
8044         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8045         __gconv_transform_ucs4le_internal.
8046
8047         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8048         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8049
8050         * iconv/skeleton.c: Add some more __builtin_expect.
8051         * iconv/loop.c: Likewise.
8052
8053 2000-03-08  H.J. Lu  <hjl@gnu.org>
8054
8055         * posix/regex.c (regex_compile): Correctly handle "\{" when
8056         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8057
8058 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8059
8060         * manual/stdio.texi: Give advise about handling error when using
8061         stream functions.
8062         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8063
8064 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8065
8066         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8067         field to nelems * sizeof (uint32_t).
8068         * locale/programs/ld-address.c (address_output): Align word fields
8069         properly.
8070         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8071         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8072         field.
8073         Avoid giving arbitrary garbage in the crncystr field.
8074         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8075         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8076         fields.
8077         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8078         Don't restart idx pointers to idx end at the decimal_point_wc field.
8079         * locale/programs/ld-time.c (time_output): week_1stday should be
8080         word, not byte.  Align it properly.
8081
8082 2000-04-19  H.J. Lu  <hjl@gnu.org>
8083
8084         * csu/gmon-start.c (_start): Declared as "extern void".
8085         (etext): Likewise.
8086
8087 2000-04-18  Andreas Jaeger  <aj@suse.de>
8088
8089         * manual/install.texi (Running make install): Don't mention utmpd
8090         anymore.
8091
8092 2000-04-18  Andreas Jaeger  <aj@suse.de>
8093
8094         * linuxthreads/Versions: Use ld instead of ld.so.
8095
8096         * elf/Makefile (ld-map): Use ld.map.
8097
8098         * Versions.def: Use ld instead of ld.so.
8099         * elf/Versions: Likewise.
8100         * sysdeps/mach/hurd/Versions: Likewise.
8101
8102 2000-04-20  Andreas Jaeger  <aj@suse.de>
8103
8104         * elf/rtld.c (print_statistics): Move ifndef further up.
8105         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8106         (dl_main): Likewise.
8107
8108 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8109
8110         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8111         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8112
8113         * po/cs.po: Update from translation team.
8114
8115         * sysdeps/generic/updwtmp.c: Remove daemon support.
8116
8117         * login/Makefile (routines): Remove utmp_daemon.
8118
8119         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8120         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8121         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8122         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8123
8124         * elf/rtld.c: Display statitics option also if hp timing is not
8125         available.
8126
8127         * login/programs/connection.c: Removed.
8128         * login/programs/database.c Removed.
8129         * login/programs/error.c: Removed.
8130         * login/programs/request.c: Removed.
8131         * login/programs/xtmp.c: Removed.
8132         * login/programs/xtmp.h: Removed.
8133         * login/Makefile: Remove rules for utmpd.
8134         * login/README.utmpd: Removed.
8135         * login/utmp_daemon.c: Removed.
8136         * login/getutent_r.c: Remove references to daemon functions.
8137         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8138         declaration.
8139
8140 2000-04-18  Andreas Jaeger  <aj@suse.de>
8141
8142         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8143         2.2 for libnsl, libresolv, librt, libnss_*.
8144
8145         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8146
8147         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8148
8149 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8150
8151         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8152         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8153         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8154         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8155         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8156         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8157         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8158         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8159         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8160         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8161         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8162         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8163         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8164         it here.
8165         * sysdeps/unix/sysv/aix/msync.c: New file.
8166         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8167         * sysdeps/unix/sysv/aix/net/if.h: New file.
8168         * sysdeps/unix/sysv/aix/pipe.c: New file.
8169         * sysdeps/unix/sysv/aix/poll.c: New file.
8170         * sysdeps/unix/sysv/aix/rename.c: New file.
8171         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8172         * sysdeps/unix/sysv/aix/select.c: New file.
8173         * sysdeps/unix/sysv/aix/semctl.c: New file.
8174         * sysdeps/unix/sysv/aix/semget.c: New file.
8175         * sysdeps/unix/sysv/aix/semop.c: New file.
8176         * sysdeps/unix/sysv/aix/sendto.c: New file.
8177         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8178         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8179         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8180         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8181         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8182         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8183         * sysdeps/unix/sysv/aix/setsid.c: New file.
8184         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8185         * sysdeps/unix/sysv/aix/shmat.c: New file.
8186         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8187         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8188         * sysdeps/unix/sysv/aix/shmget.c: New file.
8189         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8190         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8191         * sysdeps/unix/sysv/aix/socket.c: New file.
8192         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8193         * sysdeps/unix/sysv/aix/speed.c: New file.
8194         * sysdeps/unix/sysv/aix/symlink.c: New file.
8195         * sysdeps/unix/sysv/aix/sync.c: New file.
8196         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8197         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8198         * sysdeps/unix/sysv/aix/times.c: New file.
8199         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8200         * sysdeps/unix/sysv/aix/umask.c: New file.
8201         * sysdeps/unix/sysv/aix/unlink.c: New file.
8202         * sysdeps/unix/sysv/aix/ustat.c: New file.
8203         * sysdeps/unix/sysv/aix/utimes.c: New file.
8204
8205 2000-04-18  Andreas Jaeger  <aj@suse.de>
8206
8207         * manual/startup.texi (Environment Access): Fix putenv prototype
8208         according to recent changes.
8209         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8210         PR libc/1692.
8211
8212         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8213         needed.
8214
8215 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8216
8217         * posix/Makefile (tests): Add tst-getaddrinfo.
8218         * posix/tst-getaddrinfo.c: New file.
8219
8220 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8221
8222         * manual/sysinfo.texi: Document that umount2 is not widely available.
8223
8224         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8225         signal timing is not really implemented.
8226
8227 2000-04-17  Andreas Jaeger  <aj@suse.de>
8228
8229         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8230
8231 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8232
8233         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8234         and inst_libdir.
8235
8236 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8237
8238         * manual/intro.texi: Change reference from System Information to
8239         System Management.
8240         * manual/users.texi: Likewise.
8241         * manual/conf.texi: Likewise.
8242         * manual/sysinfo.texi: Document mount, umount, and umount2.
8243         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8244
8245 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8246
8247         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8248         Create wnumstr as well as numstr to support wide character output
8249         correctly.
8250
8251 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8252
8253         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8254         modification and move it...
8255         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8256         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8257         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8258         switch to $(LD) on sparc-linux.
8259
8260 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8261
8262         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8263         and setresuid from sysdep_routines.
8264
8265 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8266
8267         * manual/Makefile (chapters): Add resource.
8268
8269         * manual/time.texi: Move section on resources to...
8270         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8271         and vtimes.
8272         * manual/setjmp.texi: Adjust back reference.
8273         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8274
8275         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8276         definition.
8277         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8278         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8279         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8280         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8281         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8282         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8283         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8284         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8285         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8286         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8287         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8288         * sysdeps/unix/sysv/aix/Implies: New file.
8289         * sysdeps/unix/sysv/aix/Versions: New file.
8290         * sysdeps/unix/sysv/aix/bind.c: New file.
8291         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8292         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8293         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8294         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8295         * sysdeps/unix/sysv/aix/chdir.c: New file.
8296         * sysdeps/unix/sysv/aix/chmod.c: New file.
8297         * sysdeps/unix/sysv/aix/chroot.c: New file.
8298         * sysdeps/unix/sysv/aix/creat.c: New file.
8299         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8300         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8301         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8302         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8303         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8304         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8305         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8306         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8307         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8308         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8309         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8310         * sysdeps/unix/sysv/aix/link.c: New file.
8311         * sysdeps/unix/sysv/aix/madvise.c: New file.
8312         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8313         * sysdeps/unix/sysv/aix/mknod.c: New file.
8314         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8315         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8316         * sysdeps/unix/sysv/aix/msgget.c: New file.
8317         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8318
8319 2000-04-17  Andreas Jaeger  <aj@suse.de>
8320
8321         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8322         as suggested by Ulrich Drepper.
8323         (__dl_runtime_resolve): Remove unused variable, initialize sym
8324         directly.
8325         (RTLD_START): Document OFFSET_GP_GOT.
8326         (OFFSET_GP_GOT): New magic value.
8327         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8328         (elf_machine_got_rel): Only declare strtab if needed.
8329         (elf_machine_relplt): Removed, it's not needed.
8330         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8331
8332         * sysdeps/mips/add_n.S: Add newline at EOF.
8333         * sysdeps/mips/rshift.S: Likewise.
8334         * sysdeps/mips/mul_1.S: Likewise.
8335         * sysdeps/mips/lshift.S: Likewise.
8336         * sysdeps/mips/addmul_1.S: Likewise.
8337
8338 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8339
8340         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8341
8342         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8343         * elf/dl-lookup.c: Likewise.
8344         * elf/dl-init.c (_dl_init): Likewise.
8345         * elf/dl-fini.c (_dl_fini): Likewise.
8346         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8347         * elf/dl-close.c (_dl_close): Likewise.
8348         * elf/rtld.c (_dl_start_final): Likewise.
8349
8350         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8351
8352 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8353
8354         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8355         only fall back on using Linux.
8356
8357         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8358         Before testing versions check that we actually loaded the object
8359         and whether we are in trace mode.  If not loaded during tracing don't
8360         test versions in this object.
8361         (_dl_check_all_versions): Take new parameter and pass to
8362         _dl_check_map_versions.
8363         * sysdeps/generic/ldsodefs.h: Update prototypes for
8364         _dl_check_all_versions and _dl_check_map_versions.
8365         * elf/rtld.c (struct version_check_args): Add dotrace.
8366         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8367         (dl_main): Pass info about trace mode to version_check_doit.
8368         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8369         _dl_check_all_versions.
8370
8371         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8372         and getutmpx.
8373         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8374
8375         * manual/argp.texi: Document index parameter of argp_parse.
8376         Fix typo.
8377         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8378
8379 2000-04-14  Andreas Jaeger  <aj@suse.de>
8380
8381         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8382         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8383
8384         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8385
8386 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8387
8388         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8389         compat_symbol call for old adjtime.
8390
8391         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8392         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8393
8394         * posix/Makefile (headers): Add spawn.h.
8395         (distribute): Add spawn_int.h.
8396         (routines): Add spawn_faction_init, spawn_faction_destroy,
8397         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8398         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8399         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8400         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8401         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8402         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8403         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8404         posix_spawnattr_init, posix_spawnattr_destroy,
8405         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8406         posix_spawnattr_getflags, posix_spawnattr_setflags,
8407         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8408         and posix_spawnp.
8409         * posix/spawn.c: New file.
8410         * posix/spawn.h: New file.
8411         * posix/spawn_faction_addclose.c: New file.
8412         * posix/spawn_faction_adddup2.c: New file.
8413         * posix/spawn_faction_addopen.c: New file.
8414         * posix/spawn_faction_destroy.c: New file.
8415         * posix/spawn_faction_init.c: New file.
8416         * posix/spawn_int.h: New file.
8417         * posix/spawnattr_destroy.c: New file.
8418         * posix/spawnattr_getdefault.c: New file.
8419         * posix/spawnattr_getflags.c: New file.
8420         * posix/spawnattr_getpgroup.c: New file.
8421         * posix/spawnattr_getschedparam.c: New file.
8422         * posix/spawnattr_getschedpolicy.c: New file.
8423         * posix/spawnattr_getsigmask.c: New file.
8424         * posix/spawnattr_init.c: New file.
8425         * posix/spawnattr_setdefault.c: New file.
8426         * posix/spawnattr_setflags.c: New file.
8427         * posix/spawnattr_setpgroup.c: New file.
8428         * posix/spawnattr_setschedparam.c: New file.
8429         * posix/spawnattr_setschedpolicy.c: New file.
8430         * posix/spawnattr_setsigmask.c: New file.
8431         * posix/spawni.c: New file.
8432         * posix/spawnp.c: New file.
8433
8434         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8435         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8436
8437 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8438
8439         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8440         * malloc/malloc.c: Implement posix_memalign for glibc.
8441         * include/stdlib.h: Add prototype for __posix_memalign.
8442         * stdlib/stdlib.h: Add prototype for posix_memalign.
8443
8444 2000-04-14  Andreas Jaeger  <aj@suse.de>
8445
8446         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8447         symidx correctly.
8448         (elf_machine_got_rel): Cast sym correctly.
8449
8450         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8451         * sysdeps/mips/addmul_1.S: Likewise.
8452         * sysdeps/mips/lshift.S: Likewise.
8453         * sysdeps/mips/mul_1.S: Likewise.
8454         * sysdeps/mips/rshift.S: Likewise.
8455         * sysdeps/mips/sub_n.S: Likewise.
8456         * sysdeps/mips/submul_1.S: Likewise.
8457
8458         * stdlib/stdlib.h: Fix typo in comment.
8459
8460         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8461         2.2 for libdl, ld and libm.
8462
8463         * sysdeps/generic/madvise.c: Fix typos.
8464
8465         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8466
8467         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8468
8469         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8470         warnings.
8471
8472 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8473
8474         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8475         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8476         Make old name weak alias.
8477         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8478         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8479         Make old name weak alias.
8480         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8481
8482         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8483         posix_fallocate, and posix_fallocate64.
8484         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8485         posix_fallocate, and posix_fallocate64.
8486         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8487         posix_fallocate, and posix_fallocate64.
8488         * sysdeps/generic/fadvise.c: New file.
8489         * sysdeps/generic/fadvise64.c: New file.
8490         * sysdeps/generic/fallocate.c: New file.
8491         * sysdeps/generic/fallocate64.c: New file.
8492         * sysdeps/posix/fallocate.c: New file.
8493         * sysdeps/posix/fallocate64.c: New file.
8494         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8495         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8496         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8497         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8498         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8499         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8500         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8501         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8502         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8503
8504         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8505         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8506
8507 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8508
8509         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8510         * misc/sys/mman.h (posix_madvise): Add prototype.
8511         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8512         old name and posix_madvise weak aliases.
8513         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8514         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8515         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8516         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8517         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8518         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8519         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8520
8521 2000-04-13  Andreas Jaeger  <aj@suse.de>
8522
8523         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8524         versioning.
8525         (elf_machine_got_rel): Only add runtime display if needed.
8526         (elf_machine_got_rel): Handle symbol versioning.
8527
8528 2000-04-13  Andreas Jaeger  <aj@suse.de>
8529
8530         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8531
8532         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8533         default.
8534
8535         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8536         with some applications.
8537         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8538
8539         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8540         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8541         * sysdeps/mips/setjmp.S: Likewise.
8542
8543         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8544
8545 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8546
8547         * posix/globtest.sh: Work around inconsistency with expanding ~/
8548         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8549
8550 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8551
8552         * posix/getconf.c: Add support for many more POSIX options.
8553         * sysdeps/posix/sysconf.c: Likewise.
8554         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8555         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8556         _POSIX_SHELL.
8557         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8558         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8559         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8560         CLOCK_THREAD_CPUTIME_ID.
8561         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8562         CLOCK_PROCESS_CPUTIME_ID.
8563         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8564         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8565         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8566         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8567
8568         * malloc/Makefile (tests): Add tst-calloc.
8569         * malloc/tst-calloc.c: New file.
8570
8571         * sysdeps/arm/libm-test-ulps: New file.
8572
8573         * malloc/malloc.c: Undo all of today's changes.
8574
8575         * locale/programs/locale.c (show_info): Don't try to look into
8576         data for LC_ALL (there is none).
8577
8578         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8579         avoid writing over boundary.
8580         Patch by Greg McGary <gkm@eng.ascend.com>.
8581
8582         * sysdeps/arm/memprof.h: New file.
8583
8584 2000-04-12  Andreas Jaeger  <aj@suse.de>
8585
8586         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8587
8588         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8589         for memmem declaration.
8590
8591 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8592
8593         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8594         to -1.
8595         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8596
8597         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8598         mode is invalid.
8599         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8600         Patch by Bart Veer <bartv@redhat.com>.
8601
8602         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8603         function interface.
8604
8605 2000-04-11  Andreas Jaeger  <aj@suse.de>
8606
8607         * sysdeps/mips/dl-machine.h: Update some comments.
8608         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8609
8610 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8611
8612         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8613         _POSIX_SHARED_MEMORY_OBJECTS.
8614
8615         * rt/Makefile (tests): Add tst-shm.
8616         Add rules to generate tst-shm.
8617         * rt/tst-shm.c: New file.
8618
8619         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8620         for descriptor.
8621
8622         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8623         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8624         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8625         * sysdeps/generic/shm_open.c: New file.
8626         * sysdeps/generic/shm_unlink.c: New file.
8627         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8628         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8629         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8630          __endmntent, __getmntent_r, __setmntent, and __statfs.
8631
8632         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8633         fragmentation by allocating new memory at the end instead of
8634         reallocating.
8635
8636         * posix/globtest.sh: Fix last change.
8637
8638 2000-04-10  Philip Blundell  <philb@gnu.org>
8639
8640         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8641         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8642         IPV6_DROP_MEMBERSHIP.
8643         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
8644         Likewise.
8645
8646 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8647
8648         * elf/readlib (process_file): Close streams in case of an error.
8649
8650 2000-04-09  Andreas Jaeger  <aj@suse.de>
8651
8652         * elf/readlib.c (process_file): Check if file is big enough to
8653         contain aout and ELF headers.
8654         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
8655
8656 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
8657
8658         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
8659
8660 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8661
8662         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
8663         stream unbuffered.
8664         * rt/Makefile (tests): Add tst-clock.
8665         Add rules to build tst-clock.
8666         * rt/tst-clock.c: New file.
8667         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
8668         about initialization of nsec.
8669         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
8670         about initialization of freq.  Set retval to zero if successful.
8671         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
8672
8673 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8674
8675         * Versions.def (librt): Add GLIBC_2.2.
8676         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
8677         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
8678         timer_getoverr, timer_gettime, and timer_settime.
8679         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
8680         clock_settime, timer_create, timer_delete, timer_getoverrun,
8681         timer_gettime, and timer_settime.
8682         * sysdeps/generic/clock_getcpuclockid.c: New file.
8683         * sysdeps/generic/get_clockfreq.c: New file.
8684         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
8685         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
8686         * sysdeps/mach/hurd/i386/bits/time.h: New file.
8687         * sysdeps/unix/i386/i586/clock_getres.c: New file.
8688         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
8689         * sysdeps/unix/i386/i686/Implies: New file.
8690         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
8691         * time/Makefile (routines): Move clock_getres, clock_gettime,
8692         clock_settime, timer_create, timer_delete, timer_getoverr,
8693         timer_gettime, and timer_settime to rt/Makefile.
8694         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
8695         clock_settime, timer_create, timer_delete, timer_getoverrun,
8696         timer_gettime, and timer_settime.
8697         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
8698
8699         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
8700         and not const as attribute name.
8701
8702 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
8703
8704         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
8705
8706 2000-04-10  Andreas Schwab  <schwab@suse.de>
8707
8708         * posix/globtest.sh: Skip tests that depend on unreadable
8709         directories if run as root.
8710
8711 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8712
8713         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
8714         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
8715
8716 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8717
8718         * sysdeps/unix/clock_gettime.c: New file.
8719         * sysdeps/unix/clock_settime.c: New file.
8720         * sysdeps/posix/clock_getres.c: New file.
8721
8722         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
8723
8724         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
8725         lseek call be passing in a buffer which never allow a successful
8726         first getdents syscall if not at leas the initial entry can be
8727         stored in the user buffer.
8728
8729         * localedata/Makefile: Add rules to clean up directories created by
8730         new strfmon tests.
8731
8732 2000-04-09  Geoff Clare  <gwc@unisoft.com>
8733
8734         * localedata/tst-fmon.data: Added new tests for strfmon()
8735         using test locales with all combinations of cs_precedes,
8736         sign_posn and sep_by_space.
8737         * localedata/tst-fmon.sh: Updated to support the new tests.
8738         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
8739         the localedef source for the new strfmon() test locale.
8740         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
8741         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
8742         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
8743         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
8744         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
8745         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
8746         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
8747         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
8748         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
8749         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
8750         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
8751         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
8752         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
8753         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
8754
8755         * stdlib/strfmon.c: Correct problems with missing or extra
8756         spaces for unusual combinations of sign_posn and sep_by_space.
8757         Improved left-precision alignment code.
8758
8759 2000-04-07  Andreas Jaeger  <aj@suse.de>
8760
8761         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
8762
8763 2000-04-10  Andreas Jaeger  <aj@suse.de>
8764
8765         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
8766
8767 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8768
8769         Implement handling of restartable conversion functions according to
8770         ISO C.
8771         * iconv/gconv.h (__gconv_fct): Add additional parameter.
8772         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
8773         * iconv/gconv.c: Pass additional parameter to conversion function.
8774         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
8775         (internal_ucs4le_loop_single): New function.
8776         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
8777         (__gconv_transform_internal_ascii): Likewise.
8778         (__gconv_transform_internal_utf8): Likewise.
8779         (__gconv_transform_utf8_internal): Likewise.
8780         (__gconv_transform_ucs2_internal): Likewise.
8781         (__gconv_transform_internal_ucs2): Likewise.
8782         (__gconv_transform_ucs2reverse_internal): Likewise.
8783         (__gconv_transform_internal_ucs2reverse): Likewise.
8784         (internal_ucs4le_loop_unaligned): Before return
8785         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
8786         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
8787         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
8788         * iconv/loop.c: Fit in definition of function to convert one character
8789         for processing of left-over bytes from the state object.
8790         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
8791         inend to match names in loop functions.
8792         (RESET_INPUT_BUFFER): Change apprpriately.
8793         (gconv): If needed, call function to process bytes from the state
8794         object.  Similar at the end: store left over bytes if input is
8795         incomplete.
8796         Take extra argument and add new argument to all calls of the
8797         conversion function.
8798         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
8799         information in the state object to not conflict with length count.
8800         * iconvdata/iso-2022-jp.c: Likewise.
8801         * iconvdata/iso-2022-kr.c: Likewise.
8802         * iconvdata/unicode.c: Adjust for change change in parameters of
8803         skeleton function.
8804         * iconvdata/utf-16.c: Likewise.
8805         * libio/iofwide.c: Add new parameter to all calls of conversion
8806         function.
8807         * wcsmbs/btowc.c: Likewise.
8808         * wcsmbs/mbrtowc.c: Likewise.
8809         * wcsmbs/mbsnrtowcs.c: Likewise.
8810         * wcsmbs/mbsrtowcs.c: Likewise.
8811         * wcsmbs/wcrtomb.c: Likewise.
8812         * wcsmbs/wcsnrtombs.c: Likewise.
8813         * wcsmbs/wcsrtombs.c: Likewise.
8814         * wcsmbs/wctob.c: Likewise.
8815
8816         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
8817         MAX_NEEDED_INPUT.
8818
8819 2000-04-07  Andreas Jaeger  <aj@suse.de>
8820
8821         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
8822         newer kernels.
8823
8824 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
8825
8826         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
8827         element a union to allow byte access.
8828         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
8829         mbstate_t.
8830         * iconvdata/iso-2022-jp.c: Likewise.
8831         * iconvdata/iso-2022-kr.c: Likewise.
8832         * wcsmbs/mbsinit.c: Likewise.
8833         * stdlib/mblen.c: Likewise.
8834         * stdio-common/printf-parse.h: Likewise.
8835
8836 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
8837
8838         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
8839         kernel does not allow relative seeks on descriptors associated
8840         with directories.  Go back to get the position in the directory
8841         every time we enter the function.  Return -1 and set errno if one
8842         entry could be read from the kernel but does not fit into the
8843         buffer passed in by the user.
8844
8845         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
8846         Support ..(2).. ellipsis.
8847         (parse_charmap): Recognize ..(2).. etc and pass step down.
8848         Correctly generate names for UCS4 characters.
8849
8850         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
8851         (ctype_finish): We know the wide character value for <SP>,
8852         don't search.
8853         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
8854         (charclass_ucs4_ellipsis): Likewise.
8855         (read_translit_ignore_entry): Store ellipsis step.
8856         (ctype_read): Recognize ..(2).. etc and pass step down.
8857
8858         * locale/programs/linereader.c (lr_token): When seeing comment
8859         character ignore only rest of line in sources but stop at escaped
8860         newline.
8861         Recognize ..(2).. and ....(2).....
8862
8863         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
8864         and tok_ellipsis4_2.
8865
8866 2000-04-06  Andreas Jaeger  <aj@suse.de>
8867
8868         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
8869         removed, remove it here also.
8870         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
8871         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
8872         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
8873         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
8874
8875 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
8876
8877         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
8878         include bits/sigcontext.h.
8879         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8880
8881 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
8882
8883         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
8884         collation symbol definition.  Value in quivalence definition must
8885         be defined, don't check that it is not.
8886
8887         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
8888         values as character names.
8889
8890         * locale/programs/ld-ctype.c (get_character): Handle missing
8891         repertoire map correctly.
8892
8893 2000-04-05  Cristian Gafton  <gafton@redhat.com>
8894
8895         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
8896         because it is used in generic code.
8897         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
8898         * wcsmbs/wcwidth.h: Declare __ctype32_b.
8899         * intl/gettext.c: Include <locale.h>.
8900         * intl/ngettext.c: Likewise.
8901
8902 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
8903
8904         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
8905         socklen_t type for size.
8906         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
8907         init function interface.
8908         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8909         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
8910         sys/ucontext.h.
8911         (__jmp_buf): Declare the whole type structure here, don't use
8912         ucontext.
8913
8914 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
8915
8916         * iconv/skeleton.c (put16u): Fix typo.
8917         Reported by Bruno Haible <haible@ilog.fr>.
8918
8919         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
8920         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
8921         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
8922         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
8923         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
8924         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
8925
8926         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
8927         * Makefile (distribute): Add abi-versions.awk and
8928         firstversions.awk.
8929         Patches by Torsten Duwe <duwe@caldera.de>.
8930
8931 2000-04-05  Andreas Schwab  <schwab@suse.de>
8932
8933         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
8934
8935 2000-04-05  Andreas Schwab  <schwab@suse.de>
8936
8937         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
8938         entry point, used on Hurd.
8939
8940 2000-04-04  Andreas Jaeger  <aj@suse.de>
8941
8942         * intl/Makefile: Only run the gettext test with shared libraries.
8943
8944 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
8945
8946         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
8947         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
8948
8949 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
8950
8951         * Makeconfig: Undo last change.
8952         * configure.in: If --disable-shared was given, don't set VERSIONING,
8953         don't define DO_VERSIONING, and don't give scare warning for no
8954         versioning.
8955         * configure: Regenerated.
8956
8957 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
8958
8959         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
8960
8961 2000-04-04  Andreas Jaeger  <aj@suse.de>
8962
8963         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
8964
8965 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
8966
8967         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
8968         STV_HIDDEN and STV_INTERNAL during lookup.
8969         (profile_fixup): Likewise.
8970         * elf/dl-reloc.c (RESOLVE): Likewise.
8971
8972         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
8973         unaligned so that it compiles for system which need unaligned
8974         access handling.
8975
8976 2000-04-04  Andreas Schwab  <schwab@suse.de>
8977
8978         * elf/cache.c (print_entry): Only look at the type field when
8979         printing the type.
8980
8981 2000-04-04  Andreas Schwab  <schwab@suse.de>
8982
8983         * iconvdata/big5.c (BODY): Fix typo.
8984
8985 2000-04-04  Andreas Schwab  <schwab@suse.de>
8986
8987         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
8988         function interface.  Remove unused _dl_start_user entry point.
8989
8990 2000-04-03  Andreas Jaeger  <aj@suse.de>
8991
8992         * include/arpa/inet.h (__inet_aton): Add protoype.
8993
8994 2000-04-01  Andreas Jaeger  <aj@suse.de>
8995
8996         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
8997
8998         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
8999         * sysdeps/mach/mips/thread_state.h: Likewise.
9000
9001         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9002         * sysdeps/generic/fegetenv.c: Likewise.
9003         * sysdeps/generic/fesetenv.c: Likewise.
9004         * sysdeps/generic/feupdateenv.c: Likewise.
9005         * sysdeps/generic/fraiseexcpt.c: Likewise.
9006         * sysdeps/generic/fsetexcptflg.c: Likewise.
9007         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9008         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9009         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9010         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9011
9012 2000-04-02  H.J. Lu  <hjl@gnu.org>
9013
9014         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9015
9016 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9017
9018         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9019         (add_name_to_object): Add cast in malloc call.
9020         (fillin_rpath): Optimize loop to initialize ->status a bit.
9021
9022         * sysdeps/i386/dl-machine.h: Undo last change.
9023         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9024         Restore %edx register after call here.
9025
9026         * sysdeps/arm/atomicity.h: New file.
9027         Contributed by Jesper Skov <jskov@redhat.com>.
9028
9029 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9030
9031         * Makeconfig (preprocess-versions): Undo last change.
9032         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9033
9034         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9035         here, before we might move the stack.
9036         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9037         (init1): And not here.
9038
9039         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9040         change, to restore argc value in call-clobbered register after
9041         RTLD_START_SPECIAL_INIT, which will contain a call.
9042
9043         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9044         allocating and initializing L->l_initfini.
9045
9046         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9047
9048 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9049
9050         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9051         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9052         (open_path): Change type of fourth parameter.  Make pointer to array
9053         of pointers.  Create variable dirs with original type.
9054         Track whether any directory for the object exists and if not,
9055         change *DIRSP to (void*) -1 to signal there is no such search path.
9056         (_dl_map_object): Change all calls of open_path.
9057         Rewrite decompose_rpath calls.
9058
9059 2000-03-31  Andreas Schwab  <schwab@suse.de>
9060
9061         * string/strfry.c: Declare STATE as array of char instead of int
9062         and do not initialize it (done by initstate_r).  Pass correct
9063         size.
9064
9065 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9066
9067         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9068
9069         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9070         instruction out of the code.
9071
9072 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9073
9074         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9075         element at this position.
9076
9077         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9078         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9079         l_reldeps elements.
9080         * elf/dl-lookup.c (add_dependency): New function.
9081         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9082         dynamically loaded object.
9083         (_dl_lookup_symbol_skip): Likewise.
9084         (_dl_lookup_versioned_symbol): Likewise.
9085         (_dl_lookup_versioned_symbol_skip): Likewise.
9086         * elf/dl-open.c: Don't define _dl_load_lock here...
9087         * elf/rtld.c: ...but here...
9088         * elf/dl-support.c: ...and here.
9089         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9090         through relocation.
9091         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9092         relocations.
9093         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9094         anymore.
9095         * dlfcn/glrefmain.c: Add one more debug message.
9096
9097         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9098         command line.
9099         * Makerules (sysd-versions): Use ( ) instead of { }.
9100
9101         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9102         optimize for the non-debugging case.
9103         * elf/dl-lookup.c: Likewise.
9104         * sysdeps/generic/libc-start.c: Likewise.
9105
9106 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9107
9108         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9109         (init1): Don't initialize __environ here, since init already does it.
9110         (first_init): New function, broken out of _init.
9111         (_hurd_stack_setup): Use it.
9112         [SHARED] (_dl_init_first): New function, renamed from old _init.
9113         (init1) [SHARED]: Don't call posixland_init here.
9114         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9115         [SHARED] (_init): Define as alias for posixland_init.
9116         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9117         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9118         RTLD_START_SPECIAL_INIT before calling initializers.
9119         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9120         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9121         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9122         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9123
9124         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9125         since we define the function with the name `tmpfile'.
9126
9127         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9128         * hurd/Versions: Likewise.
9129
9130 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9131
9132         * elf/dl-runtime.c (fixup): Fix typo in comment.
9133
9134         * resolv/netdb.h (getnameinfo): All length parameters are of type
9135         socklen_t.
9136         * inet/getnameinfo.c: Likewise.
9137
9138 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9139
9140         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9141         (gethostname): Change type of second parameter to socklen_t.
9142         * include/unistd.h (__gethostname): Change type of second
9143         parameter to socklen_t.
9144         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9145         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9146         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9147         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9148         Likewise.
9149         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9150         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9151         Allow definition elsewhere.
9152         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9153         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9154         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9155         * sysdeps/generic/bits/types.h: Define __socklen_t.
9156         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9157         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9158         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9159         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9160         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9161         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9162         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9163
9164         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9165         (inet_lnaof): Likewise.
9166         (inet_netof): Likewise.
9167         (inet_network): Likewise.
9168         (inet_aton): Likewise.
9169         (inet_makeaddr): Change parameter types to in_addr_t.
9170         (inet_neta): Likewise.
9171         (inet_ntop): Change type of last parameter to socklen_t.
9172         (inet_aton): Only make available if __USE_MISC.
9173         (inet_neta): Likewise.
9174         (inet_net_ntop): Likewise.
9175         (inet_net_pton): Likewise.
9176         (inet_nsap_ntoa): Likewise.
9177
9178         * inet/in.h: Define in_port_t type.
9179         Define in_addr_t type.
9180         (struct in_addr): Use in_addr_t in definition.
9181         (IN_CLASSA): Use cast to in_addr_t.
9182         (IN_CLASSB): Likewise.
9183         (IN_CLASSC): Likewise.
9184         (IN_CLASSD): Likewise.
9185         (IN_EXPERIMENTAL): Likewise.
9186         (IN_BADCLASS): Likewise.
9187         (INADDR_ANY): Likewise.
9188         (INADDR_BROADCAST): Likewise.
9189         (INADDR_NONE): Likewise.
9190         (INADDR_LOOPBACK): Likewise.
9191         (INADDR_UNSPEC_GROUP): Likewise.
9192         (INADDR_ALLHOSTS_GROUP): Likewise.
9193         (INADDR_ALLRTRS_GROUP): Likewise.
9194         (INADDR_MAX_LOCAL_GROUP): Likewise.
9195         (struct sockaddr_in): Use in_port_t for sin_port element.
9196         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9197         Use uint8_t instead of u_int8_t.
9198
9199         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9200         Call __inet_aton instead of inet_aton.
9201         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9202
9203         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9204         (innetgr): Likewise.
9205         (struct addrinfo): Use socklen_t for ai_addrlen element.
9206
9207         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9208         IPV6_RECVERR): New defines.
9209
9210         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9211         * inet/getnetbyad.c: Likewise.
9212         * inet/getnetbyad_r.c: Likewise.
9213         * nis/nss_nis/nis-network.c: Likewise.
9214         * nis/nssplus_nis/nisplus-network.c: Likewise.
9215         * nss/nss_files/files-network.c: Likewise.
9216         * resolv/netdb.h: Define uint32_t if not already happened.
9217         Include bits/netdb.h.  Remove definition of struct netent.
9218         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9219         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9220         * sysdeps/generic/bits/netdb.h: New file.
9221         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9222
9223         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9224         (tests): Add glrefmain.
9225         Add rules to build modules and run tests.  Ignore result of glrefmain
9226         for now since it fails.
9227         * dlfcn/glrefmain.c: New file.
9228         * dlfcn/glreflib1.c: New file.
9229         * dlfcn/glreflib2.c: New file.
9230
9231         * test-skeleton.c: Include <string.h> for strsignal prototype.
9232
9233         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9234         to be missing.
9235
9236         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9237         former init-first.h.  Initialize __libc_multiple_libcs.
9238
9239 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9240
9241         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9242         #if expression for use of unaligned function to the one used in
9243         the definition of these functions.
9244         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9245         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9246         (internal_ucs4le_loop_unaligned): New function.
9247
9248         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9249         (tests): Add order.
9250         (module-names): Add dep1, dep2, dep3, and dep4.
9251         Add dependencies for dep* modules and order.
9252         Define rule for order.out which checks the result.
9253         * elf/dep1.c: New file.
9254         * elf/dep2.c: New file.
9255         * elf/dep3.c: New file.
9256         * elf/dep4.c: New file.
9257         * elf/order.c: New file.
9258
9259         * elf/dl-init.c: Fix typo in comment.
9260
9261 2000-03-31  Andreas Jaeger  <aj@suse.de>
9262
9263         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9264         init function interface.
9265         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9266
9267 2000-03-31  Andreas Jaeger  <aj@suse.de>
9268
9269         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9270         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9271         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9272         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9273         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9274
9275         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9276         anymore, update comment.
9277
9278         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9279
9280         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9281         SHLIB_COMPAT - the struct is always needed.
9282
9283 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9284
9285         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9286         * elf/dl-support.c: Define _dl_starting_up.
9287
9288 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9289
9290         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9291         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9292
9293         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9294
9295         * elf/Makefile (dl-routines): Remove preinit.
9296         * elf/Versions: Remove _dl_preinit.
9297         * elf/dl-preinit.c: Removed.  Move content into...
9298         * elf/dl-init.c: ...here.
9299         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9300
9301         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9302         elements.
9303
9304 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9305
9306         * stdlib/strfmon.c: Corrected problems with the code that
9307         sets default values for [np]_sep_by_space and
9308         [np]_sign_posn; also the new positive/negative alignment
9309         code from the previous patch was not quite right for
9310         [np]_sign_posn = 0.
9311
9312         * localedata/tst-fmon.data: Changes corresponding to the
9313         two sets of fixes made to stdlib/strfmon.c.
9314
9315 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9316
9317         * malloc/malloc.c: Declare bit flags UL so that they will not
9318         default to int size when being inverted.
9319
9320 2000-03-29  Andreas Jaeger  <aj@suse.de>
9321
9322         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9323         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9324
9325 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9326             Ralf Baechle <ralf@uni-koblenz.de>
9327
9328         * Makeconfig: Introduce new variable SHARED to mark code used in
9329         the shared library.
9330         * elf/dl-close.c: Use it instead of PIC.
9331         * elf/dl-load.c: Likewise.
9332         * elf/dl-open.c: Likewise.
9333         * hurd/geteuids.c: Likewise.
9334         * include/libc-symbols.h: Likewise.
9335         * include/shlib-compat.h: Likewise.
9336         * libio/freopen.c: Likewise.
9337         * linuxthreads/cancel.c: Likewise.
9338         * linuxthreads/pthread.c: Likewise.
9339         * linuxthreads/wrapsyscall.c: Likewise.
9340         * nss/nsswitch.c: Likewise.
9341         * stdio-common/vfprintf.c: Likewise.
9342         * sysdeps/arm/init-first.c: Likewise.
9343         * sysdeps/i386/init-first.c: Likewise
9344         * sysdeps/generic/init-first.c: Likewise.
9345         * sysdeps/generic/libc-start.c: Likewise.
9346         * sysdeps/mips/init-first.c: Likewise.
9347         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9348         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9349         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9350         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9351         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9352
9353         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9354
9355 2000-03-29  Andreas Jaeger  <aj@suse.de>
9356
9357         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9358         Use D_PTR to access relocated entries in l_info.
9359         (elf_machine_rela): Likewise.
9360
9361         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9362         Likewise.
9363         (elf_machine_rela): Likewise.
9364
9365         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9366         Likewise.
9367         (__elf_machine_fixup_plt): Likewise.
9368         (__process_machine_rela): Likewise.
9369
9370         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9371         (elf_machine_rela): Likewise.
9372
9373         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9374         (elf_machine_rel): Likewise.
9375
9376         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9377         (elf_machine_fixup_plt): Likewise.
9378         (elf_machine_rela): Likewise.
9379
9380 2000-03-29  Andreas Jaeger  <aj@suse.de>
9381
9382         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9383         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9384         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9385         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9386         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9387         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9388         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9389         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9390         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9391         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9392         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9393         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9394         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9395         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9396         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9397
9398         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9399         macros, remove K&R prototypes.
9400
9401 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9402
9403         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9404         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9405         (PR libc/1677).
9406
9407 2000-03-30  Andreas Jaeger  <aj@suse.de>
9408
9409         * misc/sys/cdefs.h: Remove K&R support.
9410
9411 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9412
9413         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9414         more cases.
9415         * iconv/loop.c: Likewise.
9416
9417 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9418
9419         * iconv/loop.c (put16): Remove __const. Fix access index.
9420         (put32): Remove __const. Use uint32_t instead of uint16_t.
9421         * iconv/skeleton.c: Likewise.
9422
9423 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9424
9425         * mach/Versions (libc: GLIBC_2.0)
9426         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9427         __vm_allocate on this.
9428         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9429         mutex- and spinlock-related symbols on this.
9430         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9431         New version set.  Lock-related symbols go here instead in this case.
9432         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9433         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9434         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9435         * hurd/Versions
9436         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9437         Put them here instead.
9438         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9439         New version set.  Those cthreads symbols go here instead in this case.
9440         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9441
9442 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9443
9444         * elf/dl-init.c (_dl_init): We don't need to call constructors
9445         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9446
9447         Implement dynamic determination of constructor/destructor order in
9448         the dynamic linker.
9449         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9450         (GLIBC_2.2): Add _dl_init.
9451         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9452         r_duplist is not anymore allocated separately.  l_initfini is and
9453         therefore free it if necessary.
9454         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9455         malloc block.  Otherwise allocate l_initfini list only.
9456         Put dependencies for the object in l_initfini list.
9457         Sort dependencies for the object to be loaded topologically.
9458         * elf/dl-fini.c: Before running the destructors sort the topologically.
9459         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9460         call constructors instead of iterating over the pointers.  Get list of
9461         objects for which to run constructors from l_initfini element. Accept
9462         argc, argv, and env as parameters and pass them to the constructors.
9463         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9464         with size of dynamic section.
9465         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9466         _dl_init_next and calling constructors ourself.
9467         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9468         Take argc, argv, and env as parameters and pass them to the
9469         constructors.  Rewrite to call all constructors and not iterate over
9470         the pointers.
9471         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9472         precompute l_initcount and l_preinitcount.
9473         * elf/link.h (struct link_map): Add l_ldnum member.
9474         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9475         l_initcount, and l_preinitcount.  Add l_initfini.
9476         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9477         one for _dl_init.
9478         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9479         function interface.
9480         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9481         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9482         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9483         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9484         conventions now match.
9485
9486         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9487         effect for shared objects.  Don't emit message and call only for
9488         static library.
9489
9490 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9491
9492         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9493         CSA_Z243.4-1985-1..UCS2.
9494         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9495         ISO-8859-10..UCS2.
9496
9497 2000-03-29  Andreas Jaeger  <aj@suse.de>
9498
9499         * include/unistd.h: Remove duplicate entry for __rmdir.
9500         Remove declaration of __mkdir since __mkdir is declared in
9501         sys/stat.h.
9502
9503         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9504         by Michael Deutschmann <michael@talamasca.ocis.net>.
9505
9506         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9507         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9508         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9509         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9510         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9511
9512 2000-03-28  Andreas Jaeger  <aj@suse.de>
9513
9514         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9515         declaration, the prototype is defined via bits/mathcalls.h.
9516         (__sincosf): Likewise.
9517         (__sincosl): Likewise.
9518         (ldexp): Likewise.
9519         (ldexpf): Likewise.
9520         (ldexpl): Likewise.
9521         (__finite): Likewise.
9522         (__inline_mathcodeNP): New macro without prototype
9523         declarations.
9524         (__inline_mathcodeNP2): Likewise.
9525         (__inline_mathcodeNP3): Likewise.
9526         (__inline_mathcodeNP_): Likewise.
9527         (__inline_mathcodeNP2_): Likewise.
9528         (__inline_mathcodeNP3_): Likewise.
9529         (__inline_mathopNP): Likewise.
9530         (__inline_mathop_declNP): Likewise.
9531         (__inline_mathop_declNP_): Likewise.
9532         (__inline_mathcode_): Use __inline_mathcodeNP_.
9533         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9534         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9535         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9536         (__expm1l): Don't define prototype, the prototype is defined via
9537         bits/mathcalls.h.
9538         (exp): Likewise.
9539         (__expl): Likewise.
9540         (tan): Likewise.
9541         (atan2): Likewise.
9542         (__atan2l): Likewise.
9543         (fmod): Likewise.
9544         (pow): Likewise.
9545         (fabsf): Likewise.
9546         (fabsl): Likewise.
9547         (__fabsl): Likewise.
9548         (asin): Likewise.
9549         (acos): Likewise.
9550         (sinh): Likewise.
9551         (cosh): Likewise.
9552         (tanh): Likewise.
9553         (floor): Likewise.
9554         (ceil): Likewise.
9555         (expm1): Likewise.
9556         (log1p): Likewise.
9557         (asinh): Likewise.
9558         (acosh): Likewise.
9559         (atanh): Likewise.
9560         (hypot): Likewise.
9561         (logb): Likewise.
9562         (fma): Likewise.
9563         (drem): Likewise.
9564         (sqrt): Likewise.
9565         (__sqrtl): Likewise.
9566         (sin): Likewise.
9567         (cos): Likewise.
9568         (atan): Likewise.
9569         (log): Likewise.
9570         (log10): Likewise.
9571         (asinh): Likewise.
9572         (log2): Likewise.
9573         (rint): Likewise.
9574
9575 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9576
9577         * Makerules: If make variable md5 is defined to yes after
9578         generating dependencies generate MD5 sum for the object.
9579
9580         * iconv/gconv_builtin.h: Fix length in transformation definition
9581         for UNICODEBIG.
9582
9583         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9584
9585         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9586         allow as well reading from/writing to unaligned addresses on machines
9587         which don't support this in hardware.  Use FCTNAME macro to define
9588         function name.  Include the file a second time for platforms which
9589         need special unaligned handling.
9590         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9591         to access potentially unaligned addresses.  These macros are intended
9592         to be used only outside the loops.
9593         (unaligned): New definition.  In case the machine can handle unaligned
9594         access define as zero.  Otherwise as a variable which is initialized
9595         as nonzero in case the buffer passed in at runtime is unaligned with
9596         respect to the character set encoding involved.
9597         Call aligned or unaligned looop functions according to unaligned
9598         variable.
9599         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9600         of direct casting pointer to potentially handle unaligned memory
9601         accesses.
9602         * iconvdata/8bit-generic.c: Likewise.
9603         * iconvdata/ansi_x3.110.c: Likewise.
9604         * iconvdata/big5.c: Likewise.
9605         * iconvdata/euc-cn.c: Likewise.
9606         * iconvdata/euc-jp.c: Likewise.
9607         * iconvdata/euc-kr.c: Likewise.
9608         * iconvdata/euc-tw.c: Likewise.
9609         * iconvdata/gbk.c: Likewise.
9610         * iconvdata/iso-2022-cn.c: Likewise.
9611         * iconvdata/iso-2022-jp.c: Likewise.
9612         * iconvdata/iso-2022-kr.c: Likewise.
9613         * iconvdata/iso646.c: Likewise.
9614         * iconvdata/iso_6937-2.c: Likewise.
9615         * iconvdata/iso_6937.c: Likewise.
9616         * iconvdata/johab.c: Likewise.
9617         * iconvdata/sjis.c: Likewise.
9618         * iconvdata/t.61.c: Likewise.
9619         * iconvdata/uhc.c: Likewise.
9620         * iconvdata/unicode.c: Likewise.
9621         * iconvdata/utf-16.c: Likewise.
9622
9623         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9624         prototypes.
9625
9626         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9627         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9628         public.
9629         * malloc/mcheck.h (mcheck_check_all): Declare.
9630
9631         * stdio-common/Makefile (tests): Add tst-obprintf.
9632
9633 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9634
9635         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9636         Declare pthread_sigmask.
9637
9638         * csu/version.c: Add 2000 to copyright years.
9639         Remove Emacs local variables section.
9640
9641 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9642
9643         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
9644         __gconv_transform_internal_ucs2little): Remove declarations.
9645         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
9646         __gconv_transform_internal_ucs2): Never need to bswap_16.
9647         (__gconv_transform_ucs2reverse_internal,
9648         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
9649
9650 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9651
9652         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
9653         obsoleting version not being defined at all, in which case the
9654         result is always true.
9655
9656         * Makeconfig (preprocess-versions): New canned sequence for running
9657         cpp on shlib-versions and the like.
9658         (soversions.i): Use it.
9659         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
9660         Versions.def and Versions files.
9661
9662 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9663
9664         * stdio-common/tst-obprintf.c (main): Add another check to see
9665         obstack_printf handling all possible beginnings of the block
9666         inside an obstack chunk.
9667
9668         * locale/programs/localedef.c: Use __malloc_initialize_hook to
9669         install mcheck handler.
9670
9671         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
9672         handling problem.
9673
9674 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9675
9676         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
9677
9678         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
9679         on [HAVE_ELF && DO_VERSIONING].
9680
9681 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9682
9683         * stdio-common/tst-obprintf.c: New file.
9684
9685 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9686
9687         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
9688         _IO_OVERFLOW directly instead through __overflow.
9689
9690         * locale/programs/localedef.c (construct_output_path): If path
9691         contains a / compute the end of the directory name correctly.
9692
9693         * include/features.h: Undef and document __USE_XOPEN2K.
9694
9695         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
9696         whenever a function is called.  Initiated by calling mcheck_pedantic
9697         instead of mcheck.
9698         * malloc/mcheck.h: Declare mcheck_pedantic.
9699         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
9700         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
9701         for now.
9702
9703 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9704
9705         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
9706         * dlfcn/dlopenold.c: Likewise.
9707         * nss/getXXbyYY_r.c: Likewise.
9708         * nss/getXXent_r.c: Likewise.
9709         * hurd/hurdinit.c: Likewise.
9710         * hurd/compat-20.c: Likewise.
9711         * libio/oldiofopen.c: Likewise.
9712         * libio/oldiofclose.c: Likewise.
9713         * libio/oldiofdopen.c: Likewise.
9714         * libio/oldfileops.c: Likewise.
9715         * libio/oldstdfiles.c: Likewise.
9716         * libio/oldiofsetpos.c: Likewise.
9717         * libio/oldiofgetpos.c: Likewise.
9718         * libio/oldiofgetpos64.c: Likewise.
9719         * libio/oldiofsetpos64.c: Likewise.
9720         * libio/oldiopopen.c: Likewise.
9721         * libio/oldpclose.c: Likewise.
9722         * libio/oldtmpfile.c: Likewise.
9723         * libio/freopen.c (freopen): Likewise.
9724         * libio/iofclose.c (_IO_new_fclose): Likewise.
9725
9726         * sysdeps/mach/sys/reboot.h: Include <features.h>.
9727         (reboot): Declare it.
9728
9729         * libio/Makefile (headers): Add bits/stdio-lock.h here.
9730
9731         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
9732
9733         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
9734
9735         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
9736         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
9737         We need this for the sbrk decl, which can be included without Unix98.
9738
9739 2000-03-20  Richard Henderson  <rth@cygnus.com>
9740
9741         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
9742         argument to yperr2nss is an int, not size_t.
9743         * posix/regex.c (print_partial_compiled_pattern): Cast all
9744         ptrdiff_t to long for printing.
9745         (print_compiled_pattern): Use Z for printing size_t.
9746         * posix/testfnm.c (tests): Avoid trigraphs.
9747         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
9748         Use a C comment, not an assembly comment.
9749
9750         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
9751         of __ASSUME_32BITUIDS.
9752
9753 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9754
9755         * libio/iofopncook.c: Remove K&R prototypes.
9756
9757 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9758
9759         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
9760         an initial value of 1024 instead of RLIM_INFINITY.
9761
9762         * Versions.def (libmachuser, libhurduser): Remove these sections,
9763         since these libraries do not presently use symbol versions.
9764
9765         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
9766         is RLIM_INFINITY, return -1 instead.
9767
9768 2000-03-24  Andreas Jaeger  <aj@suse.de>
9769
9770         * Makefile (postclean): Added soversions.i.
9771
9772 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9773
9774         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
9775         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
9776         and _FPU_IEEE.  Change _FPU_RESERVED.
9777
9778 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
9779
9780         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
9781
9782 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9783
9784         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
9785         (gaih_inet): Remove unused duplicate variable.
9786
9787         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
9788         Don't use __libc_sa_len, which only exists for Linux.  Just handle
9789         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
9790         only flavors supported by this function anyway.
9791
9792 2000-03-24  Geoff Clare  <gwc@unisoft.com>
9793
9794         * stdlib/strfmon.c: Corrected problems with missing signs and
9795         missing or extra spaces; allow for sign strings longer than
9796         one character; add padding to ensure positive and negative
9797         formats are aligned when a left precision is used.
9798
9799 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9800
9801         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
9802         Patch by John Mizel <John.Mizel@msdw.com>.
9803
9804 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
9805
9806         * manual/install.texi: Remove references to crypt add-on.
9807
9808 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
9809
9810         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
9811         section while taking the _hurd_rlimit_lock.
9812         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
9813
9814 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
9815
9816         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
9817         using $(LN_S).
9818
9819         * sysdeps/mach/hurd/if_index.c: New file.
9820
9821         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
9822         * sysdeps/gnu/net/if.h: here.
9823         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
9824         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
9825         * sysdeps/generic/net/if.h: New file.  Declares just the standard
9826         functions and `struct if_nameindex' type.
9827         * socket/Makefile (headers): Add net/if.h here.
9828         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
9829         * sysdeps/mach/hurd/Dist: Remove it here.
9830         * sysdeps/unix/sysv/linux/Dist: And here.
9831         * sysdeps/generic/if_index.c: Include <net/if.h>.
9832
9833 2000-03-24  Andreas Jaeger  <aj@suse.de>
9834
9835         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
9836         access relocated entries in l_info.
9837         (elf_machine_got_rel): Likewise.
9838         (elf_machine_runtime_setup): Likewise.
9839         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
9840         (elf_machine_runtime_setup): Likewise.
9841         (__dl_runtime_resolve): Likewise.
9842
9843 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
9844
9845         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
9846         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
9847         according to RFC 2553.
9848         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
9849         * inet/getnameinfo.c: Likewise.
9850         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
9851
9852 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9853
9854         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
9855         Remove no-op pointer increment.
9856
9857 2000-03-23  Andreas Jaeger  <aj@suse.de>
9858
9859         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
9860         follow change for libio.h from 2000-03-10.
9861
9862 2000-03-23  Andreas Jaeger  <aj@suse.de>
9863
9864         * elf/dl-addr.c: Adjust include paths for ldsodefs location
9865         change.
9866         * elf/dl-debug.c: Likewise.
9867         * elf/dl-deps.c: Likewise.
9868         * elf/dl-error.c: Likewise.
9869         * elf/dl-fini.c: Likewise.
9870         * elf/dl-init.c: Likewise.
9871         * elf/dl-load.c: Likewise.
9872         * elf/dl-lookup.c: Likewise.
9873         * elf/dl-minimal.c: Likewise.
9874         * elf/dl-object.c: Likewise.
9875         * elf/dl-open.c: Likewise.
9876         * elf/dl-preinit.c: Likewise.
9877         * elf/dl-profile.c: Likewise.
9878         * elf/dl-profstub.c: Likewise.
9879         * elf/dl-reloc.c: Likewise.
9880         * elf/dl-runtime.c: Likewise.
9881         * elf/dl-support.c: Likewise.
9882         * elf/dl-symbol.c: Likewise.
9883         * elf/dl-version.c: Likewise.
9884         * elf/rtld.c: Likewise.
9885         * elf/sprof.c: Likewise.
9886         * sysdeps/generic/dl-cache.c: Likewise.
9887         * sysdeps/generic/dl-origin.c: Likewise.
9888         * sysdeps/generic/dl-sysdep.c: Likewise.
9889         * sysdeps/generic/elf/backtracesyms.c: Likewise.
9890         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9891         * sysdeps/generic/libc-start.c: Likewise.
9892         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9893         * sysdeps/powerpc/dl-machine.c: Likewise.
9894         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9895         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
9896         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
9897         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
9898
9899         * elf/ldsodefs.h: Move file to ...
9900         * sysdeps/generic/ldsodefs.h: ... here.
9901
9902         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
9903
9904         * sysdeps/mips/elf/ldsodefs.h: New file.
9905
9906         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
9907         entries in l_info.
9908         (_dl_check_map_versions): Likewise.
9909         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9910         * elf/dl-load.c (_dl_init_paths): Likewise.
9911         (_dl_map_object): Likewise.
9912         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
9913         (elf_get_dynamic_info): Likewise.
9914         * elf/do-lookup.h (FCT): Likewise.
9915         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
9916         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
9917         * elf/dl-addr.c (_dl_addr): Likewise.
9918         * elf/dl-runtime.c (profile_fixup): Likewise.
9919         (fixup): Likewise.
9920         * elf/dl-init.c (_dl_init_next): Likewise.
9921         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
9922         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
9923         (DISTINGUISH_LIB_VERSIONS): Likewise.
9924         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
9925         (elf_machine_rel): Likewise.
9926
9927         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
9928         for writable dynamic section.
9929
9930 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
9931
9932         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
9933         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
9934
9935 2000-03-22  Andreas Jaeger  <aj@suse.de>
9936
9937         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
9938         from latest Linux kernel.
9939
9940 2000-03-21  Andreas Jaeger  <aj@suse.de>
9941
9942         * Versions.def: Add version 2.1.4.
9943
9944 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
9945
9946         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
9947         * libio/oldiofopen.c: Likewise.
9948         * libio/oldiofclose.c: Likewise.
9949         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9950
9951 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
9952
9953         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
9954         indicating the first version set to obsolete the conditionalized code.
9955         (compat_symbol): New macro.
9956         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
9957         rhs be the ABI_* macro for the subsuming version.  Assign increasing
9958         integer values to the ABI_* macros for supported versions.
9959         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
9960         compat_symbol macro.
9961
9962 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
9963
9964         * nscd/connections.c (nscd_run): Pretty print.
9965         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
9966
9967         * manual/charset.texi: Fix typos.  Rephrase.
9968         * manual/process.texi: Likewise.
9969         * manual/signal.texi: Likewise.
9970         Patches by Mike Coleman <mkc@kc.net>.
9971
9972         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
9973         versions.
9974         * libio/iofdopen.c: Likewise.
9975         * libio/iofgetpos.c: Likewise.
9976         * libio/iofgetpos64.c: Likewise.
9977         * libio/iofopen.c: Likewise.
9978         * libio/iofsetpos.c: Likewise.
9979         * libio/iofsetpos64.c: Likewise.
9980         * libio/iopopen.c: Likewise.
9981         * libio/oldiofopen.c: Likewise.
9982         * libio/pclose.c: Likewise.
9983         * sysdeps/gnu/siglist.c: Likewise.
9984         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9985
9986         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
9987         chance to expand VERSION_##lib##_##version.
9988
9989         * libio/fileops.c: Use new macros from shlib-compat.h to define
9990         versions.
9991         * libio/iofclose.c: Likewise.
9992         * libio/oldiofclose.c: Likewise.
9993         Patch by Roland McGrath <roland@frob.com>.
9994
9995 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
9996
9997         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
9998         Lay out struct sigcontext according to what really gets passed on
9999         the stack.
10000         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10001         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10002         (prgregset_t, prfpregset_t): Define to elf_* types.
10003         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10004         Define to correct value.
10005         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10006         sigcontext.
10007         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10008
10009 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10010
10011         * scripts/firstversions.awk: Allow multiple version sets in the
10012         "earliest version" specification, meaning that version sets in the
10013         gaps between listed versions should be folded into the earliest later
10014         version that is explicitly listed.
10015         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10016         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10017
10018 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10019
10020         * iconv/gconv_builtin.c: Include <endian.h>.
10021         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10022         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10023         according to current platform.
10024         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10025         __gconv_transform_internal_ucs2reverse, and
10026         __gconv_transform_internal_ucs4le.
10027         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10028         __gconv_transform_ucs2reverse_internal and
10029         __gconv_transform_internal_ucs2reverse.
10030         * iconvdata/Makefile (modules): Add UNICODE.
10031         (distribute): Add unicode.c.
10032         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10033         * iconvdata/unicode.c: New file.
10034
10035         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10036         determine byte order of input and convert accordingly.
10037
10038         * iconvdata/utf-16.c (gconv_init): Fix typo.
10039
10040 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10041
10042         * iconvdata/gconv-modules: Fix typo.
10043
10044         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10045         more messages.
10046
10047         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10048
10049 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10050
10051         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10052
10053 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10054
10055         * misc/Makefile (routines): Add mincore.
10056
10057 2000-03-20  Andreas Jaeger  <aj@suse.de>
10058
10059         * sysdeps/generic/mincore.c: New stub file.
10060
10061         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10062         from latest Linux kernel.
10063
10064 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10065
10066         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10067         _SC_GETPW_R_SIZE_MAX.
10068
10069 2000-03-20  Richard Henderson  <rth@cygnus.com>
10070
10071         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10072         in GLIBC_2.1.4.
10073
10074 2000-03-20  Richard Henderson  <rth@cygnus.com>
10075
10076         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10077         of arithmetic instructions.
10078
10079         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10080         with the fpcr.  Protect from INV exception.
10081         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10082         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10083         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10084
10085         * sysdeps/alpha/fpu/s_copysign.c: New.
10086         * sysdeps/alpha/fpu/s_copysignf.c: New.
10087         * sysdeps/alpha/fpu/s_fabs.c: New.
10088         * sysdeps/alpha/fpu/s_fabsf.c: New.
10089         * sysdeps/alpha/fpu/s_rint.c: New.
10090         * sysdeps/alpha/fpu/s_rintf.c: New.
10091
10092         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10093
10094         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10095         Kill sethae.
10096         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10097         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10098         Use physical addresses not KSEG addresses.
10099         (io_system): Add PYXIS.
10100         (io): Remove hae.reg, sys, hae_shift.
10101         (stb_mb, stw_mb, stl_mb, __sethae): New.
10102         (inline_outb, inline_outw, inline_outl): Don't set hae.
10103         (inline_inb, inline_inw, inline_inl): Likewise.
10104         (dense_sethae): New null function.
10105         (struct cpuinfo_data): New.
10106         (process_cpuinfo): Use local and stack variables, not static.
10107         Move readlink check here from init_iosys.
10108         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10109         (_iopl): Simplify.
10110         (_hae_shift): Calculate it here.
10111         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10112         add pciconfig_iobase.
10113
10114 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10115
10116         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10117         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10118
10119         * scripts/versions.awk: Fixed version renaming code to distinguish
10120         libraries properly.
10121
10122 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10123
10124         * include/stdlib.h: Add prototype for __cxa_atexit.
10125
10126         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10127         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10128
10129 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10130
10131         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10132         existing rtld-installed-name.
10133         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10134         replace existing rtld-installed-name using $(symbolic-link-prog).
10135
10136 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10137
10138         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10139         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10140         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10141         but not the former.
10142
10143 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10144
10145         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10146         glob64.  Since there is no glob64 in the LFS proposal applications
10147         can assume that glob handles LFS situations.  glob64 is only needed
10148         if alternative filesystem functions are used.
10149
10150 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10151
10152         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10153         when GLOB_DOOFFS is set; correct handling of patterns
10154         containing escaped wildcards (and no unescaped ones);
10155         GLOB_ERR flag was being ignored in some situations.
10156
10157         * posix/globtest.c, posix/globtest.sh: Updated to include
10158         tests for the problems fixed by the above changes to glob.c.
10159
10160         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10161
10162 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10163
10164         * Makeconfig (soversion.i): Use only first match for each lib.
10165
10166         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10167
10168         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10169         rather than $(sysd-dirs-done) to protect these rules.
10170
10171         * Makerules (version-renames.def): Target removed.
10172         (Versions.all): Depend on soversions.i directly and parse it.
10173
10174         * Makeconfig (soversions.i): New target, input-reading parts of
10175         soversions.mk generation moved here; result is a canonicalized
10176         list "LIB VERSION [SET]" for this configuration.
10177         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10178         * Makerules (version-renames.def): New target, generated from
10179         soversions.i with contents that was in $(map-firstversions).
10180         (Versions.all): Don't depend on soversions.mk, depend on
10181         version-renames.def instead; just cat it into the input.
10182
10183         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10184         for $(map-firstversions), which better handles it being empty.
10185
10186         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10187         supported version for libc 0.2.90.libio to GLIBC_2.2.
10188
10189         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10190         and use it to emit new variable `map-firstversions'.
10191         * scripts/firstversions.awk: New file.
10192         * Makerules (Versions.all): Use scripts/firstversions.awk and
10193         the $(map-firstversions) value to generate a modified versions list
10194         that includes renames in "A = B" syntax for each version set earlier
10195         than the "earliest symbol version" named in shlib-versions.
10196         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10197         rename version set A to B in the output to the intermediate file.
10198         * scripts/abi-versions.awk: New file.
10199         * Makerules (abi-versions.h): New target, generated by that script.
10200         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10201         * include/shlib-compat.h: New file, uses that generated header.
10202
10203 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10204
10205         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10206         after stripping # comments, and then run it through cpp.
10207         This allows things like "%ifdef FOO" based on config.h settings.
10208         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10209
10210         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10211         and other errors that indicate a pseudo-receive happened, grok through
10212         the message buffer for port rights that need references fixed up.
10213
10214 2000-03-16  Andreas Jaeger  <aj@suse.de>
10215
10216         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10217
10218         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10219
10220         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10221         from latest Linux kernel.
10222         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10223
10224         * misc/sys/mman.h: Add prototype for mincore.
10225
10226 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10227
10228         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10229         entry for GLIBC_2.0 version of setrlimit.
10230         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10231
10232 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10233
10234         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10235         * nis/nss_compat/compat-initgroups.c: Likewise.
10236         * nis/nss_nis/nis-initgroups.c: Likewise.
10237         * nis/nss_nis/nis-netgrp.c: Likewise.
10238         * nis/nss_nis/nis-proto.c: Likewise.
10239         * nis/nss_nis/nis-rpc.c: Likewise.
10240         * nis/nss_nis/nis-service.c: Likewise.
10241         * nis/ypclnt.c: Likewise.
10242
10243 2000-03-16  Andreas Jaeger  <aj@suse.de>
10244
10245         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10246         doesn't exist, correct checks.  Fixes PR libc/1649.
10247
10248 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10249
10250         * nscd/hstcache.c: Restore correct UID.
10251         * nscd/pwdcache.c: Likewise.
10252         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10253
10254 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10255
10256         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10257         macros for register names, in line with 2000-03-14 linux change.
10258
10259         * sysdeps/mach/sched_yield.c: New file.
10260
10261 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10262
10263         * sysdeps/generic/lockfile.c: Include <stdio.h>
10264         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10265         case <libio.h> defined them.
10266         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10267         from __internal_*.
10268         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10269         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10270
10271         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10272         for more pleasing parse error.
10273
10274 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10275
10276         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10277         memory for eras.
10278         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10279
10280         * elf/Makefile: Add rules to compile and run constload1 test.
10281         * elf/constload1.c: New file.
10282         * elf/constload2.c: New file.
10283         * elf/constload3.c: New file.
10284
10285 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10286
10287         * sysdeps/posix/open64.c: Make __open64 weak alias.
10288         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10289         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10290         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10291         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10292         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10293         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10294         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10295         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10296         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10297         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10298
10299 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10300
10301         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10302         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10303
10304 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10305
10306         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10307         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10308
10309 2000-03-08  Andreas Jaeger  <aj@suse.de>
10310
10311         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10312
10313 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10314
10315         * timezone/africa: Update from tzdata2000d.
10316         * timezone/asia: Likewise.
10317         * timezone/australasia: Likewise.
10318         * timezone/europe: Likewise.
10319         * timezone/northamerica: Likewise.
10320         * timezone/southamerica: Likewise.
10321
10322         * po/fr.po: Update from translation team.
10323         * po/de.po: Likewise.
10324
10325         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10326         last parameter.  Move code to add map to global scope from here...
10327         * elf/dl-open.c (dl_open_worker): ...here.
10328         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10329         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10330
10331         * locale/programs/ld-collate.c (collate_read): Fix warning.
10332
10333         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10334         values and macros for register names.
10335
10336         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10337         returned by seek cookie function is -1.
10338
10339 2000-03-14  Andreas Jaeger  <aj@suse.de>
10340
10341         * locale/localeconv.c (localeconv): Fix typo.
10342         Reported by Andre Charbonneau <andrec@corel.com>.
10343
10344 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10345
10346         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10347         since modules depend on it counting the number of times the conversion
10348         function got called.
10349
10350         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10351
10352         * iconv/gconv.h: Pretty print.
10353
10354 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10355
10356         * posix/wordexp-test.c: Correct one of the tests added in the last
10357         change.  Really get the root passwd entry to check again ~root.
10358
10359 2000-03-10  Andreas Jaeger  <aj@suse.de>
10360
10361         * manual/filesys.texi (Working Directory): Fix last patch.
10362         Patch by Martin Buchholz  <martin@xemacs.org>.
10363
10364 2000-03-10  Andreas Jaeger  <aj@suse.de>
10365
10366         * manual/creature.texi (Feature Test Macros): Fix language.
10367
10368 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10369
10370         * mach/devstream.c (devstream_write, devstream_read): New functions.
10371         (input, output): Functions removed.
10372         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10373         using only the vanilla fopencookie interface.
10374
10375         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10376         as macro for __io_functions.
10377         (funcsio): Use cookie_io_functions_t type name.
10378         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10379
10380         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10381         fopencookie.
10382         (fopencookie): Use it.
10383         * libio/libio.h: Declare _IO_cookie_init.
10384         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10385         _IO_cookie_init.
10386
10387         * libio/libio.h (__io_seek_fn): Fix second argument type
10388         to be a pointer, in line with the manual and the old stdio.
10389         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10390
10391         * sysdeps/generic/bits/stdio-lock.h: New file.
10392         This is a stub with #error, but that's better than no file at all.
10393
10394 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10395
10396         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10397         * manual/message.texi (Using gettextized software): Doc Fixes.
10398         * manual/message.texi (Message Translation): Doc Fixes.
10399         * manual/filesys.texi (File Size): Doc Fixes.
10400         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10401         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10402         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10403         * manual/install.texi: Doc Fixes.
10404         * manual/search.texi (Hash Search Function): Doc Fixes.
10405         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10406         * FAQ.in: Doc Fixes.
10407         * config.h.in: Doc Fixes.
10408         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10409         Doc Fixes.  `allows to' is not correct English.
10410
10411         * elf/rtld.c: Doc fixes.
10412         * manual/creature.texi (Feature Test Macros): Doc fixes.
10413         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10414
10415         * manual/filesys.texi (Working Directory): Check for ERANGE to
10416         avoid infloop.
10417
10418 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10419
10420         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10421         conditions so as not to clobber the final '\0' when there is only one
10422         element in the vector.
10423
10424 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10425
10426         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10427         broken by 2000-02-27 change.
10428
10429         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10430
10431 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10432
10433         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10434         argument type, for 2000-02-22 change in signal/signal.h declaration.
10435
10436 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10437
10438         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10439         to getdirentries64 (no __), since the Linux implementation
10440         has no __ name, and there is no declaration for the __ name.
10441
10442         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10443
10444         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10445         sed regexp so as not to break directory names including /../ within.
10446
10447         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10448         The sysdeps/generic file is right for BSD.  This file was in fact the
10449         Hurd file, but the only difference was the WNOREAP flag that was never
10450         actually implemented or used anywhere.
10451
10452         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10453         since AC_PATH_PROG already does it for us.
10454         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10455         correctness and sh portability.  I replaced the broken check
10456         with a more sensible implementation of the apparently intended
10457         semantics, which might still be questionable.  Using expr causes
10458         a non-numeric value for `perl -V:apiversion` to be accepted,
10459         refusing to use only a perl that reports a number less than 5;
10460         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10461         * configure: Regenerated.
10462
10463 2000-03-08  Andreas Jaeger  <aj@suse.de>
10464
10465         * manual/crypt.texi: Fix paths.
10466
10467 2000-03-07  Andreas Jaeger  <aj@suse.de>
10468
10469         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10470         were swapped.
10471         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10472         libc/1636.
10473
10474 2000-03-06  Andreas Jaeger  <aj@suse.de>
10475
10476         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10477         in __sgn1l, otherwise g++ fails to parse this.
10478         Reported by Sean Chen <sean.chen@turbolinux.com>.
10479
10480 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10481
10482         * configure.in: Compute sizeof-long-double.
10483         * configure: Regenerated.
10484         * config.make.in: Make sizeof-long-double available to sub-makes.
10485
10486 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10487
10488         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10489         call.
10490
10491 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10492
10493         * Makeconfig (rpath-dirs): Add crypt.
10494         (all-subdirs): Remove md5crypt.
10495         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10496         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10497         * sysdeps/generic/crypt-entry.c: Delete.
10498         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10499         * sysdeps/generic/crypt.h: Delete.
10500         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10501         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10502         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10503         * sysdeps/generic/des_impl.c: Delete.
10504         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10505         * crypt/sysdeps: Delete.
10506         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10507         * md5-crypt/Versions: Move to crypt/.
10508         * md5-crypt/md5-crypt.c: Move to crypt/.
10509         * md5-crypt/md5.c: Move to crypt/.
10510         * md5-crypt/md5c-test.c: Move to crypt/.
10511         * md5-crypt/md5test.c: Move to crypt/.
10512         * md5-crypt: Delete.
10513         * crypt/Makefile: Adjust for new structure.
10514
10515 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10516
10517         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10518         define to 1 if not defined.
10519
10520 2000-03-03  Andreas Jaeger  <aj@suse.de>
10521
10522         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10523
10524 2000-03-03  Andreas Jaeger  <aj@suse.de>
10525
10526         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10527         cases.
10528         (xdr_int64_t): Correctly handle lower half.
10529         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10530
10531 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10532
10533         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10534         call.
10535
10536 2000-03-02  Andreas Jaeger  <aj@suse.de>
10537
10538         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10539         2.3.43.
10540
10541 2000-03-02  Andreas Jaeger  <aj@suse.de>
10542
10543         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10544
10545 2000-03-01  Andreas Jaeger  <aj@suse.de>
10546
10547         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10548         (tests): Added tst-getdate.
10549
10550         * time/tst-getdate.c: New file.
10551
10552         * time/datemsk: New file, needed for tst-getdate.
10553
10554 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10555
10556         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10557
10558 2000-02-17  H.J. Lu  <hjl@gnu.org>
10559
10560         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10561
10562         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10563         available.
10564         (svcudp_recv): Set up message with the new "xp_pad" field for
10565         IP_PKTINFO.
10566         (svcudp_reply): Support IP_PKTINFO if available.
10567
10568 2000-03-01  Andreas Jaeger  <aj@suse.de>
10569
10570         * time/getdate.c (check_mday): Fix check for february.
10571         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10572         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10573
10574 2000-03-02  Andreas Jaeger  <aj@suse.de>
10575
10576         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10577         g++ fails to parse this.
10578         Reported by Sean Chen <sean.chen@turbolinux.com>.
10579
10580 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10581
10582         * io/creat.c: Moved to...
10583         * sysdeps/generic/creat.c: ...here.
10584         * io/creat64.c: Moved to...
10585         * sysdeps/generic/creat64.c: ...here.
10586         * io/lockf.c: Moved to...
10587         * sysdeps/generic/lockf.c: ...here.
10588
10589         * crypt/crypt.texi: Moved to...
10590         * manual/crypt.texi: ...here.
10591         * crypt/examples/genpass.c: Moved to...
10592         * manual/examples/genpass.c: ...here.
10593         * crypt/examples/mygenpass.c: Moved to...
10594         * manual/examples/mygenpass.c: ...here.
10595         * crypt/examples/testpass.c: Moved to...
10596         * manual/examples/testpass.c: ...here.
10597
10598         * manual/Makefile (chapters): Add crypt.
10599         * manual/conf.texi: Add usual header for not-last chapter.
10600         * manual/crypt.texi: Add special header for last chapter.
10601
10602 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10603
10604         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10605         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10606         complain if there is no crypt add-on.
10607         * crypt/configure: Removed.
10608
10609         * crypt/crypt.texi: Update documentation of US export restrictions
10610         to match the 14 Jan 2000 regulations.
10611
10612 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10613
10614         * crypt: New subdirectory, merged in from the crypt add-on.
10615
10616 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10617
10618         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10619
10620
10621 See ChangeLog.10 for earlier changes.