Update.
[platform/upstream/glibc.git] / ChangeLog
1 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/powerpc/dl-machine.c: Add volatile to PPC_DCBST, PPC_SYNC,
4         and PPC_ICBI asm for broken compilers.
5         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
6
7 2000-09-09  Andreas Jaeger  <aj@suse.de>
8
9         * manual/message.texi (Advanced gettext functions): Fix typo.
10
11         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include <string.h> for
12         strncpy prototype.
13
14 2000-09-09  Ulrich Drepper  <drepper@redhat.com>
15
16         * sysdeps/ia64/memchr.S: Add .pred.rel to avoid wrong assembler
17         warnings.
18         * sysdeps/ia64/memccpy.S: Likewise.
19         Patches by Jim Wilson <wilson@redhat.com>.
20
21         * sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Use uname
22         before trying to read /proc.
23         Patch by Matt Wilson <msw@redhat.com>.
24         * include/sys/utsname.h: Declare __uname.
25         * sysdeps/generic/uname.c: Make uname a weak alias of __uname.
26         * sysdeps/mach/hurd/uname.c: Likewise.
27         * sysdeps/unix/syscalls.list: Likewise.
28
29         * iconv/gconv_dl.c (do_release_shlib): Rewrite condition for
30         unloading a bit.
31
32 2000-09-08  Ulrich Drepper  <drepper@redhat.com>
33
34         * posix/getopt.c (_getopt_internal): When long_only is set always
35         recognize conflicts just like before.
36
37 2000-09-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
38
39         * sysdeps/ia64/Makefile (sysdep-rtld-routines): New variable.
40
41 2000-09-08  Greg McGary  <greg@mcgary.org>
42
43         * sysdeps/unix/sysv/linux/syscalls.list (mincore): Fix arg signature.
44         * sysdeps/unix/make-syscalls.sh: New signature keyletter `V'.
45         * sysdeps/generic/bp-checks.h (CHECK_N_PAGES): New macro.
46
47 2000-09-08  Andreas Jaeger  <aj@suse.de>
48
49         * sysdeps/unix/sysv/linux/arm/lockf64.c: New file.
50
51         * sysdeps/unix/sysv/linux/arm/fcntl.c: New file.
52
53         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h
54         (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
55         (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly.
56
57 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
58
59         * iconvdata/tst-tables.sh: Enable EUC-KR test.
60
61         * elf/dl-load.c (lose): Decrement _nl_loaded.
62         (_dl_map_object_from_fd): Don't try to dlopen executables.
63
64         * iconvdata/tst-tables.sh: Actually return with an error if
65         something goes wrong.
66         * iconvdata/tst-table.sh: Return with an error if any of the cmp fails.
67         * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
68
69         * iconvdata/tst-tables.sh: Add BIG5HKSCS.
70
71         * iconvdata/tst-table-to.c (main): Correct cast in iconv call.
72         * iconvdata/tst-table-from.c: Include <string.h>.
73         (try): Correct cast in iconv call.
74
75         * elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
76         too.
77         * sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.
78         (sysdep_routines): Remove dl-start.
79         Patches by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
80
81         * assert/__assert.c: Undefine NDEBUG before include <assert.h>.
82
83         * sysdeps/unix/sysv/linux/msgsnd.c (msgsnd): Add cast to avoid warning.
84         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
85
86 2000-09-06  Andreas Schwab  <schwab@suse.de>
87
88         * sysdeps/unix/sysv/linux/ia64/bits/time.h: New file.
89
90 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
91
92         * sysdeps/unix/sysv/linux/gethostid.c: Find hostid file in /etc.
93
94         * scripts/config.sub: Strip out -unknown for Linux targets.
95         Patch by Scott Bambrough <scottb@netwinder.org>.
96
97         * posix/tst-dir.c (main): Correct one bug (missing NULL test) and
98         add one more test.
99
100 2000-09-07  Andreas Jaeger  <aj@suse.de>
101
102         * sysdeps/unix/sysv/linux/mips/lockf64.c: New file.
103
104         * sysdeps/unix/sysv/linux/i386/fcntl.c: Add prototypes for the
105         syscalls.
106
107         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add __syscall_fcntl.
108
109         * sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Fix calls to dl_lookup.
110         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Likewise.
111
112         * sysdeps/unix/sysv/linux/mips/fcntl.c: New file.
113
114         * stdlib/tst-bsearch.c (main): Add more test cases.
115
116         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo.
117         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
118         Reported by GOTO Masanori <gotom@debian.or.jp>.
119
120 2000-09-07  Ulrich Drepper  <drepper@redhat.com>
121
122         * posix/Makefile (tests): Add tst-dir.
123         (tst-dir-ARGS): New variable.
124         * posix/tst-dir.c: New file.
125
126 2000-09-07  Andreas Jaeger  <aj@suse.de>
127
128         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_getdents64): New.
129         (SYS_fcntl64): New.
130
131         * sysdeps/unix/sysv/linux/mips/syscalls.list: Add getdents64.
132
133 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
134
135         * sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't
136         use the hack with tryopen_o_directory to determine at runtime
137         whether it works.
138         * sysdeps/unix/sysv/linux/opendir.c: New file.
139         * sysdeps/unix/sysv/linux/kernel-features.h: Define
140         __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
141
142         * catgets/Depend: New file.  Add intl.
143         * catgets/Makefile (tests): Add tst-catgets.
144         (generated): Remove de.msg.
145         (generated-dirs): Add de.
146         Add dependency if tst-catgets output on de/libc.cat.
147         * catgets/tst-catgets.c: New file.
148
149         * po/ja.po: New file.
150         * po/el.po: Update from translation team.
151
152         * wcsmbs/Depend: New file.
153         * wcsmbs/Makefile (tests): Add tst-btowc.
154         (tst-btowc-ENV): Define.
155         * wcsmbs/tst-btowc.c: New file.
156
157         * sysdeps/unix/sysv/linux/_G_config.h: Moved to...
158         * sysdeps/gnu/_G_config.h: ...here to be shared with Hurd.
159
160         * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
161
162         * stdlib/Makefile (tests): Add tst-bsearch.
163         * stdlib/tst-bsearch.c: New file.
164
165         * posix/getopt.c (_getopt_internal): Don't recognize an option
166         name as ambiguous if it's a prefix for more than one name but the
167         other struct option values are identical.
168
169         * posix/tstgetopt.c: Add test for improved ambiguity recognition.
170         Don't depend on visual inspection of the output file to recognize
171         errors.
172         * posix/Makefile (tstgetopt-ARGS): Add a few more parameters.
173
174 2000-09-06  Andreas Jaeger  <aj@suse.de>
175
176         * sysdeps/alpha/soft-fp/Dist: New file.
177         * sysdeps/i386/soft-fp/Dist: New file.
178         * sysdeps/mips/mips64/soft-fp/Dist: New file.
179         * sysdeps/mips/soft-fp/Dist: New file.
180         * sysdeps/powerpc/soft-fp/Dist: New file.
181         * sysdeps/sparc/sparc32/soft-fp/Dist: New file.
182         * sysdeps/sparc/sparc64/soft-fp/Dist: New file.
183
184         * sysdeps/sparc/sparc64/soft-fp/Makefile [$(subdir) = soft-fp]:
185         Use sysdep_routines instead of routines to fix make dist failure.
186         * sysdeps/sparc/sparc32/soft-fp/Makefile: Likewise (in commented
187         out code).
188         * sysdeps/powerpc/soft-fp/Makefile [$(subdir) = soft-fp]: Likewise.
189
190         * sysdeps/mips/Makefile [$(subdir) = misc]:  Use
191         sysdep_headers instead of headers for make dist.
192
193         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = misc]:
194         Likewise.
195
196 2000-09-06  Andreas Schwab  <schwab@suse.de>
197
198         * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: New file.
199
200 2000-09-06  Andreas Jaeger  <aj@suse.de>
201
202         * soft-fp/Makefile (distribute): Remove ChangeLog.
203
204         * sysdeps/sparc/sparc32/Makefile [$(subdir) = gnulib]:  Use
205         sysdep_routines instead of routines for make dist.
206
207 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
208
209         * libio/libio.h (_IO_fwide_maybe_incompatible): For glibc 2.0
210         compatibility check for old stream and call _IO_wide in doubt.
211         (_IO_fwide): Use _IO_fwide_maybe_incompatible macro.
212         * libio/iofwide.c (_IO_fwide): If compatibility with glibc 2.0 is
213         needed tst for such an old structure and don't do anything.
214         * libio/freopen.c: Remove declaration of _IO_stdin_used.
215
216 2000-09-06  Andreas Jaeger  <aj@suse.de>
217
218         * sysdeps/powerpc/Makefile [$(subdir) = elf]: Modify
219         sysdep-dl-routines and sysdep_routines instead of rtld-routines
220         and dl-routines.
221
222         * soft-fp/ChangeLog: Merged with this file.
223
224 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
225
226         * soft-fp/Makefile (distribute): Add op-8.h and testit.c.
227
228         * soft-fp/Makefile (distribute): Add the math functions, too.
229
230         * soft-fp/Makefile (distribute): Add ChangeLog, Banner, and configure.
231
232 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
233
234         * soft-fp/soft-fp.h (_FP_ROUND_ZERO): Cast 0 to void before using it
235         as a statement.
236
237         * soft-fp/sysdeps/powerpc/Makefile (routines): New file.
238         * soft-fp/sysdeps/powerpc/q_*: New files.
239
240 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
241
242         * stdio-common/vfprintf.c (process_string_arg): Handle precision
243         in wide char case correctly.  Don't allocate too long temporary
244         strings with alloca.
245
246         * stdio-common/Makefile (tests): Add tst-swprintf.
247         (tst-swprintf-ENV): New variable.
248         * stdio-common/tst-swprintf.c: New file.
249
250 2000-09-05  Andreas Jaeger  <aj@suse.de>
251
252         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Use st_pad5.
253         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Fix assignments.
254         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
255
256 2000-09-05  Ulrich Drepper  <drepper@redhat.com>
257
258         * configure.in: Strip out "unknown" from configuration names.
259
260 2000-09-05  Andreas Jaeger  <aj@suse.de>
261
262         * sysdeps/powerpc/Subdirs: New file, adds soft-fp.
263
264         * sysdeps/sparc/sparc64/Implies: Add soft-fp.
265         * sysdeps/sparc/sparc32/Implies: Likewise.
266         * sysdeps/powerpc/Implies: Likewise.
267
268         * libio/oldiofsetpos64.c: Check for compatibility with glibc 2.1.
269         * libio/oldiofgetpos64.c: Likewise.
270
271         * soft-fp/Makefile (distribute): Remove configure.
272
273         * sysdeps/sparc/sparc64/soft-fp/Versions: Use version glibc 2.2.
274
275         * soft-fp/configure: Remove.
276
277         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
278         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
279
280         * soft-fp/sysdeps/sparc/sparc32/Makefile: Move from here...
281         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... to here.
282
283         * soft-fp/sysdeps/powerpc/Makefile: Move from here...
284         * sysdeps/powerpc/soft-fp/Makefile: ... to here.
285
286         * soft-fp/sysdeps/sparc/sparc64/Makefile: Move from here...
287         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... to here.
288
289         * soft-fp/sysdeps/sparc/sparc64/qp_neg.S: Move from here...
290         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: ... to here.
291
292         * soft-fp/sysdeps/powerpc/q_add.c: Move from here...
293         * sysdeps/powerpc/soft-fp/q_add.c: ... to here.
294
295         * soft-fp/sysdeps/powerpc/q_cmp.c: Move from here...
296         * sysdeps/powerpc/soft-fp/q_cmp.c: ... to here.
297
298         * soft-fp/sysdeps/powerpc/q_cmpe.c: Move from here...
299         * sysdeps/powerpc/soft-fp/q_cmpe.c: ... to here.
300
301         * soft-fp/sysdeps/powerpc/q_div.c: Move from here...
302         * sysdeps/powerpc/soft-fp/q_div.c: ... to here.
303
304         * soft-fp/sysdeps/powerpc/q_dtoq.c: Move from here...
305         * sysdeps/powerpc/soft-fp/q_dtoq.c: ... to here.
306
307         * soft-fp/sysdeps/powerpc/q_feq.c: Move from here...
308         * sysdeps/powerpc/soft-fp/q_feq.c: ... to here.
309
310         * soft-fp/sysdeps/powerpc/q_fge.c: Move from here...
311         * sysdeps/powerpc/soft-fp/q_fge.c: ... to here.
312
313         * soft-fp/sysdeps/powerpc/q_fgt.c: Move from here...
314         * sysdeps/powerpc/soft-fp/q_fgt.c: ... to here.
315
316         * soft-fp/sysdeps/powerpc/q_fle.c: Move from here...
317         * sysdeps/powerpc/soft-fp/q_fle.c: ... to here.
318
319         * soft-fp/sysdeps/powerpc/q_flt.c: Move from here...
320         * sysdeps/powerpc/soft-fp/q_flt.c: ... to here.
321
322         * soft-fp/sysdeps/powerpc/q_fne.c: Move from here...
323         * sysdeps/powerpc/soft-fp/q_fne.c: ... to here.
324
325         * soft-fp/sysdeps/powerpc/q_itoq.c: Move from here...
326         * sysdeps/powerpc/soft-fp/q_itoq.c: ... to here.
327
328         * soft-fp/sysdeps/powerpc/q_lltoq.c: Move from here...
329         * sysdeps/powerpc/soft-fp/q_lltoq.c: ... to here.
330
331         * soft-fp/sysdeps/powerpc/q_mul.c: Move from here...
332         * sysdeps/powerpc/soft-fp/q_mul.c: ... to here.
333
334         * soft-fp/sysdeps/powerpc/q_neg.c: Move from here...
335         * sysdeps/powerpc/soft-fp/q_neg.c: ... to here.
336
337         * soft-fp/sysdeps/powerpc/q_qtod.c: Move from here...
338         * sysdeps/powerpc/soft-fp/q_qtod.c: ... to here.
339
340         * soft-fp/sysdeps/powerpc/q_qtoi.c: Move from here...
341         * sysdeps/powerpc/soft-fp/q_qtoi.c: ... to here.
342
343         * soft-fp/sysdeps/powerpc/q_qtoll.c: Move from here...
344         * sysdeps/powerpc/soft-fp/q_qtoll.c: ... to here.
345
346         * soft-fp/sysdeps/powerpc/q_qtos.c: Move from here...
347         * sysdeps/powerpc/soft-fp/q_qtos.c: ... to here.
348
349         * soft-fp/sysdeps/powerpc/q_qtou.c: Move from here...
350         * sysdeps/powerpc/soft-fp/q_qtou.c: ... to here.
351
352         * soft-fp/sysdeps/powerpc/q_qtoull.c: Move from here...
353         * sysdeps/powerpc/soft-fp/q_qtoull.c: ... to here.
354
355         * soft-fp/sysdeps/powerpc/q_sqrt.c: Move from here...
356         * sysdeps/powerpc/soft-fp/q_sqrt.c: ... to here.
357
358         * soft-fp/sysdeps/powerpc/q_stoq.c: Move from here...
359         * sysdeps/powerpc/soft-fp/q_stoq.c: ... to here.
360
361         * soft-fp/sysdeps/powerpc/q_sub.c: Move from here...
362         * sysdeps/powerpc/soft-fp/q_sub.c: ... to here.
363
364         * soft-fp/sysdeps/powerpc/q_ulltoq.c: Move from here...
365         * sysdeps/powerpc/soft-fp/q_ulltoq.c: ... to here.
366
367         * soft-fp/sysdeps/powerpc/q_util.c: Move from here...
368         * sysdeps/powerpc/soft-fp/q_util.c: ... to here.
369
370         * soft-fp/sysdeps/powerpc/q_utoq.c: Move from here...
371         * sysdeps/powerpc/soft-fp/q_utoq.c: ... to here.
372
373         * soft-fp/sysdeps/sparc/sparc32/q_add.c: Move from here...
374         * sysdeps/sparc/sparc32/soft-fp/q_add.c: ... to here.
375
376         * soft-fp/sysdeps/sparc/sparc32/q_cmp.c: Move from here...
377         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: ... to here.
378
379         * soft-fp/sysdeps/sparc/sparc32/q_cmpe.c: Move from here...
380         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: ... to here.
381
382         * soft-fp/sysdeps/sparc/sparc32/q_div.c: Move from here...
383         * sysdeps/sparc/sparc32/soft-fp/q_div.c: ... to here.
384
385         * soft-fp/sysdeps/sparc/sparc32/q_dtoq.c: Move from here...
386         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: ... to here.
387
388         * soft-fp/sysdeps/sparc/sparc32/q_feq.c: Move from here...
389         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: ... to here.
390
391         * soft-fp/sysdeps/sparc/sparc32/q_fge.c: Move from here...
392         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: ... to here.
393
394         * soft-fp/sysdeps/sparc/sparc32/q_fgt.c: Move from here...
395         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: ... to here.
396
397         * soft-fp/sysdeps/sparc/sparc32/q_fle.c: Move from here...
398         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: ... to here.
399
400         * soft-fp/sysdeps/sparc/sparc32/q_flt.c: Move from here...
401         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: ... to here.
402
403         * soft-fp/sysdeps/sparc/sparc32/q_fne.c: Move from here...
404         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: ... to here.
405
406         * soft-fp/sysdeps/sparc/sparc32/q_itoq.c: Move from here...
407         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: ... to here.
408
409         * soft-fp/sysdeps/sparc/sparc32/q_mul.c: Move from here...
410         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: ... to here.
411
412         * soft-fp/sysdeps/sparc/sparc32/q_neg.c: Move from here...
413         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: ... to here.
414
415         * soft-fp/sysdeps/sparc/sparc32/q_qtod.c: Move from here...
416         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: ... to here.
417
418         * soft-fp/sysdeps/sparc/sparc32/q_qtoi.c: Move from here...
419         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: ... to here.
420
421         * soft-fp/sysdeps/sparc/sparc32/q_qtos.c: Move from here...
422         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: ... to here.
423
424         * soft-fp/sysdeps/sparc/sparc32/q_qtoui.c: Move from here...
425         * sysdeps/sparc/sparc32/soft-fp/q_qtoui.c: ... to here.
426
427         * soft-fp/sysdeps/sparc/sparc32/q_qtoux.c: Move from here...
428         * sysdeps/sparc/sparc32/soft-fp/q_qtoux.c: ... to here.
429
430         * soft-fp/sysdeps/sparc/sparc32/q_qtox.c: Move from here...
431         * sysdeps/sparc/sparc32/soft-fp/q_qtox.c: ... to here.
432
433         * soft-fp/sysdeps/sparc/sparc32/q_sqrt.c: Move from here...
434         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: ... to here.
435
436         * soft-fp/sysdeps/sparc/sparc32/q_stoq.c: Move from here...
437         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: ... to here.
438
439         * soft-fp/sysdeps/sparc/sparc32/q_sub.c: Move from here...
440         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: ... to here.
441
442         * soft-fp/sysdeps/sparc/sparc32/q_uitoq.c: Move from here...
443         * sysdeps/sparc/sparc32/soft-fp/q_uitoq.c: ... to here.
444
445         * soft-fp/sysdeps/sparc/sparc32/q_util.c: Move from here...
446         * sysdeps/sparc/sparc32/soft-fp/q_util.c: ... to here.
447
448         * soft-fp/sysdeps/sparc/sparc32/q_uxtoq.c: Move from here...
449         * sysdeps/sparc/sparc32/soft-fp/q_uxtoq.c: ... to here.
450
451         * soft-fp/sysdeps/sparc/sparc32/q_xtoq.c: Move from here...
452         * sysdeps/sparc/sparc32/soft-fp/q_xtoq.c: ... to here.
453
454         * soft-fp/sysdeps/sparc/sparc64/qp_add.c: Move from here...
455         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: ... to here.
456
457         * soft-fp/sysdeps/sparc/sparc64/qp_cmp.c: Move from here...
458         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: ... to here.
459
460         * soft-fp/sysdeps/sparc/sparc64/qp_cmpe.c: Move from here...
461         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: ... to here.
462
463         * soft-fp/sysdeps/sparc/sparc64/qp_div.c: Move from here...
464         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: ... to here.
465
466         * soft-fp/sysdeps/sparc/sparc64/qp_dtoq.c: Move from here...
467         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: ... to here.
468
469         * soft-fp/sysdeps/sparc/sparc64/qp_feq.c: Move from here...
470         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: ... to here.
471
472         * soft-fp/sysdeps/sparc/sparc64/qp_fge.c: Move from here...
473         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: ... to here.
474
475         * soft-fp/sysdeps/sparc/sparc64/qp_fgt.c: Move from here...
476         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: ... to here.
477
478         * soft-fp/sysdeps/sparc/sparc64/qp_fle.c: Move from here...
479         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: ... to here.
480
481         * soft-fp/sysdeps/sparc/sparc64/qp_flt.c: Move from here...
482         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: ... to here.
483
484         * soft-fp/sysdeps/sparc/sparc64/qp_fne.c: Move from here...
485         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: ... to here.
486
487         * soft-fp/sysdeps/sparc/sparc64/qp_itoq.c: Move from here...
488         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: ... to here.
489
490         * soft-fp/sysdeps/sparc/sparc64/qp_mul.c: Move from here...
491         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: ... to here.
492
493         * soft-fp/sysdeps/sparc/sparc64/qp_qtod.c: Move from here...
494         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: ... to here.
495
496         * soft-fp/sysdeps/sparc/sparc64/qp_qtoi.c: Move from here...
497         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: ... to here.
498
499         * soft-fp/sysdeps/sparc/sparc64/qp_qtos.c: Move from here...
500         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: ... to here.
501
502         * soft-fp/sysdeps/sparc/sparc64/qp_qtoui.c: Move from here...
503         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: ... to here.
504
505         * soft-fp/sysdeps/sparc/sparc64/qp_qtoux.c: Move from here...
506         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: ... to here.
507
508         * soft-fp/sysdeps/sparc/sparc64/qp_qtox.c: Move from here...
509         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: ... to here.
510
511         * soft-fp/sysdeps/sparc/sparc64/qp_sqrt.c: Move from here...
512         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: ... to here.
513
514         * soft-fp/sysdeps/sparc/sparc64/qp_stoq.c: Move from here...
515         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: ... to here.
516
517         * soft-fp/sysdeps/sparc/sparc64/qp_sub.c: Move from here...
518         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: ... to here.
519
520         * soft-fp/sysdeps/sparc/sparc64/qp_uitoq.c: Move from here...
521         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: ... to here.
522
523         * soft-fp/sysdeps/sparc/sparc64/qp_util.c: Move from here...
524         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: ... to here.
525
526         * soft-fp/sysdeps/sparc/sparc64/qp_uxtoq.c: Move from here...
527         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: ... to here.
528
529         * soft-fp/sysdeps/sparc/sparc64/qp_xtoq.c: Move from here...
530         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: ... to here.
531
532         * soft-fp/sysdeps/sparc/sparc64/s_frexpl.c: Move from here...
533         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: ... to here.
534
535         * soft-fp/sysdeps/sparc/sparc64/s_ilogbl.c: Move from here...
536         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: ... to here.
537
538         * soft-fp/sysdeps/sparc/sparc64/s_scalblnl.c: Move from here...
539         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: ... to here.
540
541         * soft-fp/sysdeps/sparc/sparc64/s_scalbnl.c: Move from here...
542         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: ... to here.
543
544         * soft-fp/sysdeps/alpha/sfp-machine.h: Move from here...
545         * sysdeps/alpha/soft-fp/sfp-machine.h: ... to here.
546
547         * soft-fp/sysdeps/i386/sfp-machine.h: Move from here...
548         * sysdeps/i386/soft-fp/sfp-machine.h: ... to here.
549
550         * soft-fp/sysdeps/mips/mips64/sfp-machine.h: Move from here...
551         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: ... to here.
552
553         * soft-fp/sysdeps/mips/sfp-machine.h: Move from here...
554         * sysdeps/mips/soft-fp/sfp-machine.h: ... to here.
555
556         * soft-fp/sysdeps/powerpc/sfp-machine.h: Move from here...
557         * sysdeps/powerpc/soft-fp/sfp-machine.h: ... to here.
558
559         * soft-fp/sysdeps/sparc/sparc32/sfp-machine.h: Move from here...
560         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: ... to here.
561
562         * soft-fp/sysdeps/sparc/sparc64/sfp-machine.h: Move from here...
563         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: ... to here.
564
565         * soft-fp/sysdeps/powerpc/Versions: Move from here...
566         * sysdeps/powerpc/soft-fp/Versions: ... to here.
567
568         * soft-fp/sysdeps/sparc/sparc64/Versions: Move from here...
569         * sysdeps/sparc/sparc64/soft-fp/Versions: ... to here.
570
571         * libio/oldiofsetpos64.c: iofsetpos was introduced in glibc 2.1,
572         change symbol version.
573         * libio/oldiofgetpos64.c: Likewise.
574         Reported by Martin v. Loewis <martin@loewis.home.cs.tu-berlin.de>.
575
576         * locale/programs/ld-ctype.c (charclass_charcode_ellipsis): Fix
577         typo.
578         Reported by dyky@kondara.org, closes PR libc/1886.
579
580         * stdlib/tst-strtod.c: Add testcases for denormal numbers from PR
581         libc/1880.
582
583 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
584
585         * iconvdata/run-iconv-test.sh: Add code to immediately stop the
586         script when ^C is hit.
587
588         * locale/programs/localedef.c (construct_output_path): Correct
589         computation of endp after asprintf.
590         * locale/programs/locfile.c (write_locale_data): Don't add extra
591         slash in filename.
592
593 2000-09-05  Andreas Jaeger  <aj@suse.de>
594
595         * scripts/config.guess: New upstream version.
596         * scripts/config.sub: Likewise.
597         * manual/texinfo.tex: Likewise.
598
599 2000-09-04  Andreas Schwab  <schwab@suse.de>
600
601         * elf/Makefile (all-dl-routines): New variable.
602         (elide-routines.os): Use it instead of $(dl-routines).
603         (all-rtld-routines): New variable.
604         (extra-objs): Use it instead of $(rtld-routines).
605         ($(objpfx)dl-allobjs.os): Likewise.
606         * sysdeps/ia64/Makefile [$(subdir) = elf]: Modify
607         sysdep-dl-routines and sysdep_routines instead of rtld-routines
608         and dl-routines.
609
610 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
611
612         * iconv/gconv_trans.c (__gconv_translit_find): Update open_count.
613         Set fname to NULL if the module wasn't found.
614
615 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
616
617         * iconv/gconv_trans.c (__gconv_translit_find): Don't set need_so to
618         true if trans->name already ends in ".so".
619
620 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
621
622         * iconv/gconv_int.h (__gconv_release_shlib): Change return type to
623         void.
624         * iconv/gconv_dl.c (do_release_shlib): Don't decrement the counter
625         below -TRIES_BEFORE_UNLOAD-1, to avoid wraparound.
626         (__gconv_release_shlib): Change return type to void.
627         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Don't set
628         step->__counter here.
629         * iconv/gconv_db.c (free_derivation): Don't call a step's destructor
630         if the reference is zero.
631         (release_step): New function.
632         (gen_steps): Always initialize the __counter to 1. Use release_step.
633         Don't call the destructor on the step whose initializer failed.
634         (increment_counter): Use release_step. Don't normally run destructors
635         here.
636         (__gconv_close_transform): Use release_step.
637
638 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
639
640         * iconv/gconv_simple.c (encoding_mask, encoding_byte): Remove.
641         (__gconv_transform_internal_utf8) [BODY]: Use simple shifts instead.
642
643 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
644
645         * iconvdata/euc-tw.c (BODY for FROM_LOOP): Initialize ch2 correctly.
646         If the first byte is 0x8E, don't ask for 4 bytes until it has been
647         verified that the second byte is valid. Leave it to cns11643_to_ucs4
648         to check for incomplete input.
649         * iconvdata/cns11643.h (cns11643_to_ucs4): The plane number is
650         ch - 0x20 - offset, not ch - 0x21 - offset. Upper bound for
651         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
652         (ucs4_to_cns11643): Fix mapping for ranges 0x3105..0x3129 and
653         0x9f9d..0x9fa5.
654         * iconvdata/cns11643l1.h (cns11643l1_to_ucs4): Upper bound for
655         __cns11643l1_to_ucs4_tab is 0x21f2, not 0x2196.
656         (ucs4_to_cns11643l1): Fix mapping for range 0x3105..0x3129.
657         * iconvdata/cns11643l1.c (__cns11643l1_from_ucs4_tab6): Extend
658         upto index 0x0052.
659
660 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
661
662         * iconv/gconv_db.c (find_derivation): Always use the least-cost
663         solution.
664
665 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
666
667         * iconvdata/big5.c (BODY for FROM_LOOP): Bytes 0x81..0xA0, 0xFA..0xFF
668         are invalid.
669
670 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
671
672         * iconvdata/jis0208.c (__jis0208_to_ucs): Map EUC-JP 0xA1C0 to U+005C.
673         * iconvdata/jis0212.c (__jisx0212_to_ucs): Map EUC-JP 0x8FA2B7 to
674         U+007E.
675
676 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
677
678         * iconvdata/sjis.c (cjk_block1): Map 0x815F to U+005C.
679
680 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
681
682         * iconvdata/iso_6937-2.c (to_ucs4): Map 0xB4 to U+00D7.
683
684 2000-09-03  Bruno Haible  <haible@clisp.cons.org>
685
686         * iconvdata/tst-tables.sh: New file.
687         * iconvdata/tst-table.sh: New file.
688         * iconvdata/tst-table-from.c: New file.
689         * iconvdata/tst-table-to.c: New file.
690         * iconvdata/tst-table-charmap.sh: New file.
691         * iconvdata/Makefile (test-srcs): Set to tst-table-from tst-table-to.
692         (distribute): Add tst-tables.sh, tst-table.sh, tst-table-charmap.sh,
693         tst-table-from.c, tst-table-to.c, EUC-JP.irreversible,
694         ISIRI-3342.irreversible, SJIS.irreversible.
695         (tests): Add dependency on tst-tables.out.
696         (tst-tables.out, tst-tables-clean): New rules.
697         (do-tests-clean, common-mostlyclean): Require tst-tables-clean.
698         * iconvdata/ISIRI-3342.irreversible: New file.
699         * iconvdata/EUC-JP.irreversible: New file.
700         * iconvdata/SJIS.irreversible: New file.
701
702 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
703
704         * manual/locale.texi (General Numeric): Update description of
705         representation of the grouping information in the locale data.
706         Patch by Gaute B. Strokkenes <gs234@cam.ac.uk>.
707
708 2000-09-04  Andreas Jaeger  <aj@suse.de>
709
710         * locale/programs/ld-monetary.c (monetary_read): Fix typo.
711         * iconv/iconv_prog.c (options): Fix typo.
712         Reported by dyky@kondara.org, closes PR libc/1885.
713
714 2000-09-04  Andreas Jaeger  <aj@suse.de>
715
716         * sysdeps/generic/fegetenv.c: It's __fegetenv.
717         Reported by Rob Levin <lilo@transvirtual.com>.
718
719 2000-09-03  Ulrich Drepper  <drepper@redhat.com>
720
721         * time/sys/time.h (gettimeofday): Move restrict for tz parameter
722         to the typedefs of __timezone_ptr_t.
723         Reported by MATSUMURA Hiromitsu <coji2@mb.infoweb.ne.jp>.
724
725 2000-09-02  Jakub Jelinek  <jakub@redhat.com>
726
727         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Increment counter in
728         the loop.
729
730 2000-09-01  H.J. Lu  <hjl@gnu.org>
731
732         * Makeconfig (built-program-cmd): Don't use the dynamic linker
733         to run a binary if it is in $(tests-static).
734
735         * Rules (binaries-static): Add $(tests-static).
736
737 2000-09-02  Andreas Jaeger  <aj@suse.de>
738
739         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Fixes for fcntl64.
740
741         * libio/fmemopen.c (fmemopen_close): Revert one part of last
742         patch.
743
744 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
745
746         * iconvdata/big5hkscs.c: Regenerated from charmap.
747         * iconvdata/testdata/BIG5HKSCS: Regenerated.
748         * iconvdata/testdata/BIG5HKSCS..UTF8: Regenerated.
749
750         * libio/fmemopen.c (fmemopen_seek): Add default case in switch
751         statement.  General cleanup.
752
753 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
754
755         * wctype/wcfuncs.c (iswblank): New function.
756         * wctype/wcfuncs_l.c (__iswblank_l): New function.
757         * wctype/wcextra.c: Remove file.
758         * wctype/wcextra_l.c: Remove file.
759         * wctype/Makefile (distribute): Remove wcextra and wcextra_l.
760
761 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
762
763         * locale/programs/ld-collate.c (collate_output): Remove redundant
764         assert call.
765         * string/strcoll.c: Likewise.
766         * string/strxfrm.c: Include assert.h.  Add assert calls like in
767         string/strcoll.c.
768
769 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
770
771         * locale/categories.def (_NL_COLLATE_HASH_SIZE,
772         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_NAMES, _NL_CTYPE_NAMES,
773         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Remove definitions.
774         * locale/langinfo.h (_NL_COLLATE_HASH_SIZE, _NL_COLLATE_HASH_LAYERS,
775         _NL_COLLATE_NAMES): Rename to _NL_COLLATE_GAP1/2/3 respectively.
776         (_NL_CTYPE_NAMES): Rename to _NL_CTYPE_GAP3.
777         (_NL_CTYPE_GAP3): Rename to _NL_CTYPE_GAP4.
778         (_NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS): Rename to
779         _NL_CTYPE_GAP5/6 respectively.
780
781         * locale/C-ctype.c (_nl_C_LC_CTYPE): Update.
782         * ctype/ctype-info.c (__ctype_names, __ctype_width): Remove variables.
783         * locale/lc-ctype.c (_nl_postload_ctype): Assume new locale format.
784         Don't initialize __ctype_names and __ctype_width.
785         * wctype/cname-lookup.h: Remove file.
786         * wctype/Makefile (distribute): Remove cname-lookup.h.
787         * wctype/wchar-lookup.h: Include stdint.h.
788         * wctype/wctype.c (__wctype): Assume new locale format.
789         * wctype/wctype_l.c (__wctype_l): Likewise.
790         * wctype/iswctype.c: Don't include cname-lookup.h.
791         (__iswctype): Assume new locale format.
792         * wctype/iswctype_l.c: Don't include cname-lookup.h.
793         (__iswctype_l): Assume new locale format.
794         * wctype/wctrans.c: Don't include ctype.h.
795         (wctrans): Assume new locale format.
796         * wctype/wctrans_l.c (__wctrans_l): Likewise.
797         * wctype/towctrans.c: Don't include cname-lookup.h.
798         (__towctrans): Assume new locale format.
799         * wctype/towctrans_l.c: Don't include cname-lookup.h.
800         (__towctrans_l): Assume new locale format.
801         * wctype/wcfuncs.c: Don't include ctype.h and cname-lookup.h. Include
802         localeinfo.h instead.
803         (__NO_WCTYPE): Remove unused macro.
804         (__ctype32_b, __ctype32_toupper, __ctype32_tolower): Remove
805         declarations.
806         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph, iswprint,
807         iswpunct, iswspace, iswupper, iswxdigit): Assume new locale format.
808         (towlower, towupper): Likewise.
809         * wctype/wcfuncs_l.c: Don't include cname-lookup.h. Include
810         localeinfo.h instead.
811         (__NO_WCTYPE): Remove unused macro.
812         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
813         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
814         __iswxdigit_l): Assume new locale format.
815         (__towlower_l, __towupper_l): Likewise.
816         * wcsmbs/wcwidth.h: Don't include cname-lookup.h.
817         (__ctype32_b): Remove declaration.
818         (internal_wcwidth): Assume new locale format.
819         * locale/programs/ld-ctype.c (struct locale_ctype_t): Remove fields
820         plane_size, plane_cnt, names, width. Rename map to map_b, rename map32
821         to map32_b, rename width_3level to width.
822         (ctype_output): Always create new locale format. Don't emit
823         _NL_CTYPE_NAMES, _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS any more.
824         (allocate_arrays): Always create new locale format.
825
826         * locale/C-collate.c (_nl_C_LC_COLLATE): Update.
827         * locale/weightwc.h (findidx): Assume new locale format.
828         * string/strcoll.c (wcscoll): Remove local variables size, layers,
829         names.
830         * string/strxfrm.c (wcsxfrm): Likewise.
831         * posix/fnmatch_loop.c (internal_fnwmatch): Likewise. Change type of
832         local variable collseq to 'const char *'.
833         (SUFFIX): Don't use, don't undefine.
834         * posix/fnmatch.c: Remove SUFFIX definition.
835         * locale/programs/ld-collate.c (struct locale_collate_t): Remove
836         fields plane_size, plane_cnt, wcheads, wcseqorder. Rename
837         wcheads_3level to wcheads, rename wcseqorder_3level to wcseqorder.
838         (collate_finish): Always create new locale format. Remove local
839         variables min_total, act_size.
840         (collate_output): Always create new locale format. Remove local
841         variables table_size, names, tablewc. Rename tablewc_3level to
842         tablewc.
843
844 2000-08-31  Bruno Haible  <haible@clisp.cons.org>
845
846         * locale/programs/ld-collate.c (obstack_int32_grow,
847         obstack_int32_grow_fast): New inline functions.
848         (output_weightwc, collate_output): Use them where possible.
849
850 2000-09-01  Ulrich Drepper  <drepper@redhat.com>
851
852         * libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
853         patch (_mode -> _flags).
854
855         * libio/Makefile (headers): Add stdio_ext.h.
856         (routines): Add __fbufsize, __freading, __fwriting, __freadable,
857         __fwritable, __flbf, __fpurge, __fpending, and __fsetlocking.
858         * libio/Versions [libc] (GLIBC_2.2): Add __fbufsize, __freading,
859         __fwriting, __freadable, __fwritable, __flbf, __fpurge, __fpending,
860         __fsetlocking, and _flushlbf.
861         * libio/__fbufsize.c: New file.
862         * libio/__flbf.c: New file.
863         * libio/__fpending.c: New file.
864         * libio/__fpurge.c: New file.
865         * libio/__freadable.c: New file.
866         * libio/__freading.c: New file.
867         * libio/__fsetlocking.c: New file.
868         * libio/__fwritable.c: New file.
869         * libio/__fwriting.c: New file.
870         * libio/stdio_ext.h: New file.
871         * libio/genops.c (_IO_flush_all_linebuffered): Add alias _flushlbf.
872         * libio/libio.h (_IO_USER_LOCK): Define.
873         [_IO_MTSAFE_IO] (_IO_flockfile, _IO_funlockfile): Add macros which
874         test _IO_USER_LOCK flag first.
875
876         * iconv/gconv_open.c (__gconv_open): Set res to __GCONV_NOMEM is
877         malloc fails.
878
879 2000-09-01  Andreas Jaeger  <aj@suse.de>
880
881         * sysdeps/unix/sysv/linux/bits/fcntl.h: Always fail.
882
883         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: New file.
884
885 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
886
887         * math/Makefile (tests): Add tst-defintions.
888         * math/tst-definitions.c: New file.
889
890         * stdlib/Makefile (headers): Add bits/wchar.h.
891         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: New file.
892         * sysdeps/generic/bits/wchar.h: New file.
893         * sysdeps/generic/stdint.h: Include <bits/wchar.h>.  Use values in this
894         file to define WCHAR_MIN and WCHAR_MAX.
895         Change UINT*8_MAX and UIN*16_MAX value to type int.
896         * wcsmbs/wchar.h: Include <bits/wchar.h>.  Use values in this
897         file to define WCHAR_MIN and WCHAR_MAX.
898         * sysdeps/alpha/fpu/bits/mathdef.h: Make FP_ILOGB0 and FP_ILOGBNAN
899         int values.
900         * sysdeps/arm/fpu/bits/mathdef.h: Likewise.
901         * sysdeps/generic/bits/mathdef.h: Likewise.
902         * sysdeps/i386/fpu/bits/mathdef.h: Likewise.
903         * sysdeps/m68k/fpu/bits/mathdef.h: Likewise.
904         * sysdeps/powerpc/fpu/bits/mathdef.h: Likewise.
905         * sysdeps/sparc/fpu/bits/mathdef.h: Likewise.
906         * locale/locale.h (struct lconv): Add __ prefix to the new members
907         if not C99.
908         * sysdeps/generic/inttypes.h: Remove unnecessary imaxabs and
909         imaxdiv optimizations.
910         * sysdeps/wordsize-32/lldiv.c: Add hack to make alias work.
911         * sysdeps/wordsize-64/ldiv.c: Likewise.
912         * sysdeps/alpha/fpu/bits/fenv.h: Change type of FE_*_ENV macros to
913         const fenv_t*.
914         * sysdeps/generic/bits/fenv.h: Likewise.
915         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
916         * sysdeps/ia64/bits/fenv.h: Likewise.
917         * sysdeps/m68k/fpu/bits/fenv.h: Likewise.
918         * sysdeps/mips/bits/fenv.h: Likewise.
919         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
920         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
921         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
922
923         * inet/rcmd.c: Use *stat64 instead of *stat internally.
924         * inet/ruserpass.c: Likewise.
925         * catgets/open_catalog.c: Likewise.
926         * intl/loadmsgcat.c: Likewise.
927         * io/getdirname.c: Likewise.
928         * locale/loadlocale.c: Likewise.
929         * misc/getusershell.c: Likewise.
930         * stdlib/canonicalize.c: Likewise.
931         * sysdeps/posix/euidaccess.c: Likewise.
932         * sysdeps/posix/isfdtype.c: Likewise.
933         * sysdeps/posix/posix_fallocate.c: Likewise.
934         * sysdeps/posix/tempname.c: Likewise.
935         * sysdeps/unix/grantpt.c: Likewise.
936         * sysdeps/unix/opendir.c: Likewise.
937         * sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
938         * sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
939         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
940         * sysdeps/unix/sysv/linux/statvfs.c: Likewise.
941         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
942         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
943         * sysvipc/ftok.c: Likewise.
944         * time/getdate.c: Likewise.
945
946         * time/getdate.c: Add extra access test.
947
948 2000-08-31  Ulrich Drepper  <drepper@redhat.com>
949
950         * version.h (VERSION): Bump to 2.1.93.
951
952         * sysdeps/unix/sysv/linux/powerpc/Dist: Add fe_nomask.c.
953         * sysdeps/unix/sysv/linux/i386/Dist: Add olddirent.h.
954
955         * intl/Makefile (tests): Depend in mtrace-tst-gettext.
956         Make this a new rule depending on tst-gettext.out and run mtrace.
957         * intl/tst-gettext.c: Call mtrace.
958         * intl/tst-gettext.sh: Put MALLOC_TRACE in environment of tst-gettext.
959
960         * elf/dl-reloc.c: Add a few more __builtin_expect.
961
962         * configure.in: Remove --with-gettext option.
963
964         * intl/dcigettext.c (free_mem): Correct freeing of
965         _nl_domain_bindings list.
966
967         * sysdeps/generic/setenv.c (free_mem): New function.  Free all
968         allocated memory.
969
970         * intl/locale.alias: Add aliases for bokmal and nynorsk.
971
972         * locale/iso-639.def: Fix 639-1 code for Bokmal.
973
974         * stdio-common/itoa-digits.c: Move upper digits to...
975         * stdio-common/itoa-udigits.c: ...here.  New file.
976         * stdio-common/Makefile (routines): Add itoa-udigits.
977
978         * sysdeps/i386/dl-machine.h (elf_machine_rel): For the version to
979         relocate ld.so don't add supprt for relocations which should not
980         appear in ld.so.
981
982         * malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
983         __secure_getenv.  Instead test __libc_enable_secure once.
984
985         * io/pwd.c (main): Provide a good example, use *_unlocked function.
986
987 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
988
989         * iconv/gconv_conf.c (insert_module): Take extra parameter to decide
990         whether the new record should be freed if it's a duplicate.
991         (add_module): Adjust insert_module call.
992         (__gconv_read_conf): Likewise.
993         * iconvdata/Makefile (generated): Add tst-loading.mtrace and
994         mtrace-tst-loading.
995         (tests): Make $(objpfx)mtrace-tst-loading a dependency.  Add rule.
996
997         * sysdeps/generic/ldsodefs.h: Add declaration for _dl_all_dirs and
998         _dl_all_init_dirs.
999         * include/link.h (struct r_search_path_struct): New.
1000         (struct link_map): Use it for l_rpath_dirs and l_runpath_dirs.
1001         * elf/Versions [ld] (GLIBC_2.2): Add _dl_all_dirs and
1002         _dl_all_init_dirs.
1003         * elf/dl-close.c (_dl_close): Free l_rpath_dirs and l_runpath_dirs.
1004         * elf/dl-libc.c (free_mem): Free _dl_all_dirs list except elements
1005         added at startup time.
1006         * elf/dl-load.c: Fix memory handling.  r_search_path_struct
1007         contains element to remember fact that we can free memory.
1008         (all_dirs): Renamed to _dl_all_dirs.  Made global.
1009         (_dl_init_all_dirs): New variable.
1010         (fillin_rpath): Save one malloc call.
1011         (decompose_rpath): Change interface.  New first parameter points to
1012         r_search_path_struct.
1013         (_dl_init_paths): Adjust for changes.  Mark all memory as not
1014         deletable.  Set _dl_init_all_paths value.
1015         (open_path): Remove may_free_dirs parameter.  r_search_path_elem ***
1016         parameter replaced with r_search_path_struct *.  Information about
1017         freeing now contained in r_search_path_struct.
1018         (_dl_map_object): Adjust for above changes.
1019
1020         * elf/dl-open.c (dl_open_worker): Change format of debug info a bit.
1021
1022         * elf/dl-load.c (fillin_rpath): Only check for trusted directories
1023         when adding new entries.
1024
1025         * elf/dl-load.c (fillin_rpath): Make local copy of where string
1026         since the object being loaded can be unloaded.
1027
1028         * iconvdata/Makefile (tests): Add tst-loading.
1029         * iconvdata/tst-loading.c: New file.
1030
1031 2000-08-29  Bruno Haible  <haible@clisp.cons.org>
1032
1033         * stdio-common/vfscanf.c (_IO_vfscanf): Back out last ungetc change.
1034         When comparing a char with an int, always cast the char to
1035         'unsigned char'. New macro ungetc_not_eof, to avoid warnings when
1036         compiling with -funsigned-char. Use UCHAR_MAX+1 instead of UCHAR_MAX.
1037
1038 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
1039
1040         * time/strftime.c (my_strftime): Add compatibility code for use
1041         outside glibc.  Patch by Jim Meyering <meyering@ascend.com>.
1042
1043         * sysdeps/posix/getaddrinfo.c (gaih_local): uname does not everywhere
1044         return 0 for success but always < 0 on failure.
1045
1046         * nss/getXXbyYY_r.c: Define result to *result before including
1047         digits_dots.c.
1048
1049 2000-08-30  Andreas Jaeger  <aj@suse.de>
1050
1051         * math/gen-libm-test.pl (parse_ulps): Remove extra \.
1052
1053 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1054
1055         * iconvdata/big5hkscs.c: Rewritten.  Regenerate data from the
1056         official file.
1057         * iconvdata/TESTS: Add BIG5HKSCS entry.
1058         * iconvdata/testdata/BIG5HKSCS: New file.
1059         * iconvdata/testdata/BIG5HKSCS..UTF8: New file.
1060
1061         * iconvdata/big5.c (BODY for FROM_LOOP): Remove condition which is
1062         always true.
1063
1064         * libio/iogetline.c: Set mode before the loop in case n==0.
1065         * libio/iogetwline.c: Likewise.
1066
1067 2000-08-29  H.J. Lu  <hjl@gnu.org>
1068
1069         * libio/fileops.c (new_do_write): Check fp->_mode <= 0 instead
1070         of fp->_mode < 0.
1071         (_IO_new_file_overflow): Likewise.
1072         * libio/genops.c (_IO_flush_all): Likewise.
1073         * libio/ioftell.c (_IO_ftell): Likewise.
1074
1075 2000-08-29  Akira Higuchi  <a@kondara.org>
1076
1077         * iconv/gconv_db.c (increment_counter): Reset __init_fct, __fct,
1078         and __end_fct fields of struct __gconv_step.
1079         * iconv/Makefile (tests): Add iconv-bug2.
1080         * iconv/iconv-bug2.c: New file.
1081
1082         * iconvdata/euc-kr.c (BODY for FROM_LOOP): Pass 'inend - inptr'
1083         instead of 'inptr - inend' to ksc5601_to_ucs4.
1084
1085         * iconvdata/sjis.c (BODY for FROM_LOOP): Allow 0x7f character.
1086
1087         * iconvdata/iso-2022-cn.c (BODY for FROM_LOOP): If an incomplete
1088         character or shift sequence is found at the end of the input
1089         string, return__GCONV_INCOMPLETE_INPUT instead of
1090         __GCONV_EMPTY_INPUT.
1091         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Likewise.
1092         * iconvdata/iso-2022-kr.c (BODY for FROM_LOOP): Likewise.
1093
1094         * iconvdata/iso-2022-jp.c (BODY for FROM_LOOP): Return
1095         __GCONV_ILLEGAL_INPUT for 8bit characters.
1096
1097 2000-08-29  Ulrich Drepper  <drepper@redhat.com>
1098
1099         * signal/signal.h (sigpause): Move __THROW before __asm__.
1100
1101         * inet/rcmd.c (__checkhost_sa): If getnameinfo succeeds but the
1102         names don't match don't return.
1103         Patch by Olaf Kirch <okir@flash.lst.de>.
1104
1105 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1106
1107         * time/strftime.c (my_strftime): Handle # flag for %b as well.
1108
1109 2000-08-27  H.J. Lu  <hjl@gnu.org>
1110
1111         * posix/Makefile (otherlibs): Add for building with static-nss
1112         for "make check".
1113
1114 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1115
1116         * libio/stdio.h: Add fmemopen prototype.
1117
1118 2000-08-25  Andreas Jaeger  <aj@suse.de>
1119
1120         * libio/Makefile (routines): Add fmemopen.
1121         (tests): Add test-fmemopen.
1122         * libio/Versions: Add fmemopen with version GLIBC_2.2.
1123         * libio/test-fmemopen.c: New file.
1124         * libio/fmemopen.c: New file.
1125         Patches by Hanno Mueller <kontakt@hanno.de>.
1126
1127 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1128
1129         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: Prevent double
1130         inclusion.  Patch by Jes Sorensen <jes@linuxcare.com>.
1131
1132         * locale/localeinfo.h (LIMAGIC): Change base number to 0x20000828
1133         to avoid crashing statically linked applications.
1134
1135 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1136
1137         * string/strxfrm.c (strxfrm, wcsxfrm): Include <sys/param.h>.
1138         If nrules == 0 and srclen < n, copy only srclen + 1 characters.
1139
1140         * sysdeps/generic/getdomain.c (getdomainname): Include <sys/param.h>.
1141         If the result is fits in the buffer, copy only as many bytes as needed.
1142
1143         * sysdeps/generic/_strerror.c (__strerror_r): Don't zero-fill the
1144         buffer after copying numbuf into it.
1145         * sysdeps/mach/_strerror.c (__strerror_r): Likewise.
1146
1147 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1148
1149         * posix/confstr.c (confstr): When string_len > len, NUL-terminate
1150         the result.  When string_len < len, don't clear the rest of the buffer.
1151
1152 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1153
1154         Support for new LC_COLLATE format.
1155         * locale/coll-lookup.h: New file.
1156         * locale/weightwc.h (findidx): When size == 0, call
1157         collidx_table_lookup.
1158         * wcsmbs/wcscoll.c: Include coll-lookup.h.
1159         * wcsmbs/wcsxfrm.c: Likewise.
1160         * posix/fnmatch.c: Likewise.
1161         * posix/fnmatch_loop.c (internal_fnwmatch): When size == 0, call
1162         collseq_table_lookup.
1163         * locale/programs/3level.h: New file.
1164         * locale/programs/ld-ctype.c: (wcwidth_table, wctrans_table): Define
1165         by including "3level.h".
1166         * locale/programs/ld-collate.c (wchead_table, collidx_table,
1167         collseq_table): New types, defined by including "3level.h".
1168         (locale_collate_t): New wcheads_3level, wcseqorder_3level fields.
1169         (encoding_mask, encoding_byte): Remove.
1170         (utf8_encode): Use simple shifts instead.
1171         (collate_finish): When !oldstyle_tables, set plane_size and plane_cnt
1172         to 0, and initialize and fill wcheads_3level and wcseqorder_3level.
1173         (collate_output): New local variable tablewc_3level. When
1174         !oldstyle_tables, set table_size to 0 and names to NULL and fill
1175         tablewc_3level instead of tablewc. Change format of TABLEWC and
1176         COLLSEQWC entries written to the file.
1177         * locale/C-collate.c (collseqwc): Change format.
1178         (_nl_C_LC_COLLATE): Set HASH_SIZE and HASH_LAYERS to 0, change format
1179         of COLLSEQWC.
1180         * locale/Makefile (distribute): Add coll-lookup.h, programs/3level.h.
1181
1182 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1183
1184         * locale/programs/ld-ctype.c (MAX_CHARNAMES_IDX): New macro.
1185         (locale_ctype_t): New charnames_idx field.
1186         (ctype_startup): Initialize charnames_idx field.
1187         (find_idx): Speed up dramatically by using charnames_idx inverse table.
1188
1189 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1190
1191         * locale/C-ctype.c: Switch to new locale format.
1192         (_nl_C_LC_CTYPE_names): Remove array.
1193         (STRUCT_CTYPE_CLASS): New macro.
1194         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1195         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1196         New three-level tables.
1197         (_nl_C_LC_CTYPE_width): Change from array to three-level table.
1198         (_nl_C_LC_CTYPE): Fix nstrings value. Set HASH_SIZE and HASH_LAYERS
1199         to 0. Change WIDTH format. Set CLASS_OFFSET and MAP_OFFSET. Add
1200         12 class tables and 2 map tables at the end.
1201         * ctype/ctype-info.c (_nl_C_LC_CTYPE_names): Remove declaration.
1202         (_nl_C_LC_CTYPE_class_{upper,lower,alpha,digit,xdigit,space,print,
1203         graph,blank,cntrl,punct,alnum}, _nl_C_LC_CTYPE_map_{toupper,tolower}):
1204         New declarations.
1205         (b): Remove trailing semicolon.
1206         (__ctype_names, __ctype_width): Don't initialize.
1207         (__ctype32_wctype, __ctype32_wctrans, __ctype32_width): Initialize.
1208
1209 2000-08-27  Bruno Haible  <haible@clisp.cons.org>
1210
1211         * elf/dl-load.c (open_path): Add a argument telling whether *dirsp
1212         is guaranteed to be allocated with the same malloc() and may be
1213         passed to free().
1214         (_dl_map_object): Update open_path calls. If rtld_search_dirs has
1215         been set to empty by an earlier open_path call, don't pass it again.
1216
1217 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1218
1219         * include/libintl.h: Include <locale.h> since libintl.h doesn't if
1220         we are not optimizing.
1221
1222         * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Protect against double
1223         inclusion.
1224
1225         * stdio-common/vfscanf.c (ungetc): Cast c to signed char first to
1226         really match EOF.
1227         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1228
1229 2000-08-28  Andreas Jaeger  <aj@suse.de>
1230
1231         * sysdeps/i386/fpu/libm-test-ulps: Tweaks for AMD Athlon.
1232
1233 2000-08-28  Mark Kettenis  <kettenis@gnu.org>
1234
1235         * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from
1236         getpeername.  Use ISO C style function definition.
1237         (getpeername): Provide weak alias.
1238         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from
1239         setrlimit.  Use ISO C style function definition.
1240         (setrlimit): Provide weak alias.
1241
1242 2000-08-28  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1243
1244         * shlib-versions: Add a rule for S/390 to the libm version list.
1245         * sysdeps/s390/Versions: New file.
1246         * sysdeps/unix/sysv/linux/s390/Dist: Add oldgetrlimit64.c.
1247         * sysdeps/unix/sysv/linux/s390/Makefile: Add oldgetrlimit64.
1248         * sysdeps/unix/sysv/linux/s390/Versions: New file.
1249         * sysdeps/unix/sysv/linux/s390/alphasort64.c: New file.
1250         * sysdeps/unix/sysv/linux/s390/chown.c: New file.
1251         * sysdeps/unix/sysv/linux/s390/fxstat.c: New file.
1252         * sysdeps/unix/sysv/linux/s390/getdents64.c: New file.
1253         * sysdeps/unix/sysv/linux/s390/getrlimit.c: New file.
1254         * sysdeps/unix/sysv/linux/s390/getrlimit64.c: New file.
1255         * sysdeps/unix/sysv/linux/s390/lxstat.c: New file.
1256         * sysdeps/unix/sysv/linux/s390/oldgetrlimit64.c: New file.
1257         * sysdeps/unix/sysv/linux/s390/readdir64.c: New file.
1258         * sysdeps/unix/sysv/linux/s390/readdir64_r.c: New file.
1259         * sysdeps/unix/sysv/linux/s390/scandir64.c: New file.
1260         * sysdeps/unix/sysv/linux/s390/setrlimit.c: New file.
1261         * sysdeps/unix/sysv/linux/s390/syscalls.list: New file.
1262         * sysdeps/unix/sysv/linux/s390/versionsort64.c: New file.
1263         * sysdeps/unix/sysv/linux/s390/xstat.c: New file.
1264
1265 2000-08-28  Ulrich Drepper  <drepper@redhat.com>
1266
1267         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)==csu]
1268         (CFLAGS-initfini.s): Add -DWEAK_GMON_START.
1269
1270         * elf/Versions [ld] (GLIBC_2.2): Export _dl_debug_files.
1271         * elf/dl-close.c (_dl_close): Print debug message if object is not
1272         unloaded.
1273         * elf/dl-open.c (dl_open_worked): Print message about opencount before
1274         returning to caller.
1275
1276         * po/zh.po: Renamed to...
1277         * po/zh_TW.po: ...this.
1278
1279 2000-08-27  Geoff Keating  <geoffk@cygnus.com>
1280
1281         * sysdeps/powerpc/fpu/feenablxcpt.c: Correct bogus checkin.
1282
1283         * sysdeps/powerpc/fpu/fedisblxcpt.c: New file.
1284         * sysdeps/powerpc/fpu/feenablxcpt.c: New file.
1285         * sysdeps/powerpc/fpu/fegetexcept.c: New file.
1286         * sysdeps/unix/sysv/linux/powerpc/fe_nomask.c: New file.
1287
1288 2000-08-27  Ulrich Drepper  <drepper@redhat.com>
1289
1290         * locale/programs/ld-collate.c (insert_weights): Also update
1291         backpointer of next element.
1292         (collate_read): Allow definition of new collation symbols in stage 2.
1293         Symbol after reorder-after can be UCS4 value.
1294         Allow reordering of collation symbols and elements.
1295         Do not only move reorder entry in new position.  Instead call
1296         insert_weight to do this and read the weights.
1297
1298         * locale/findlocale.c (free_mem): Add cast to avoid warning.
1299
1300         * intl/dcigettext.c (DCIGETTEXT): Remove _nl_find_language in code
1301         to determine invalid locale name.
1302         * locale/findlocale.c (_nl_find_locale): Likewise.
1303
1304         * posix/annexc.c: Correct test for unavailable feature.
1305
1306         * sysdeps/unix/sysv/linux/i386/sys/io.h (outw): Fix __INLINE ->
1307         __inline.
1308
1309 2000-08-26  Ulrich Drepper  <drepper@redhat.com>
1310
1311         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getdents64
1312         syscall.
1313
1314         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir)==resource]
1315         (sysdep_routines): Add oldgetrlimit64.
1316
1317         * elf/Makefile (distribute): Add unloadmod.c, reldepmod1.c,
1318         reldepmod2.c, reldepmod3.c, and reldepmod4.c.
1319         (tests): Add unload, reldep, reldep2, and reldep3.
1320         (modules-names): Add unloadmod, reldepmod1, reldepmod2, reldepmod3,
1321         and reldepmod4.
1322         Add rules to build and run unload, reldep, reldep2, and reldep3.
1323         * elf/dl-lookup.c (_dl_lookup_symbol): Add new parameter explicit.
1324         Don't create relocation dependency if it is nonzero.
1325         (_dl_lookup_symbol_skip): Remove relocation dependency stuff.  This
1326         can never happen here.
1327         (_dl_lookup_versioned_symbol): Add new parameter explicit.
1328         Don't create relocation dependency if it is nonzero.
1329         (_dl_lookup_versioned_symbol_skip): Remove relocation dependency
1330         stuff.  This can never happen here.
1331         * sysdeps/generic/ldsodefs.h: Change prototypes.
1332         * elf/dl-reloc.c (RESOLVE_MAP): Pass 0 in explicit parameter to
1333         _dl_lookup_up and _dl_lookup_versioned_symbol.
1334         (RESOLV): Likewise.
1335         * elf/dl-runtime.c (fixup): Likewise.
1336         (profile_fixup): Likewise.
1337         * elf/dl-libc.c (do_dlsym): Pass 1 in explicit parameter to
1338         _dl_lookup_symbol.
1339         * elf/dl-symbol.c (_dl_symbol_value): Likewise.
1340         * elf/rtld.c (dl_main): Likewise.
1341         * elf/dl-sym.c (_dl_sym): Pass 1 in explicit parameter to
1342         _dl_lookup_symbol if handle is not RTLD_DEFAULT.  Always compute
1343         and pass down the caller map.
1344         (_dl_vsym): Likewise.
1345         * elf/reldep.c: New file.
1346         * elf/reldep2.c: New file.
1347         * elf/reldep3.c: New file.
1348         * elf/reldepmod1.c: New file.
1349         * elf/reldepmod2.c: New file.
1350         * elf/reldepmod3.c: New file.
1351         * elf/reldepmod4.c: New file.
1352         * elf/unload.c: New file.
1353         * elf/unloadmod.c: New file.
1354
1355         * elf/do-lookup.h: Remove unused undef_name parameter.
1356         * elf/dl-lookup.c: Adjust callers.
1357
1358 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1359
1360         * iconv/gconv_trans.c (__gconv_transliterate): Pass NULL instead of
1361         irreversible in recursive call of conversion function to signal that
1362         no error handling is wanted.
1363         * iconv/loop.c (ignore_errors_p): irreversible must be != NULL, too.
1364         (STANDARD_ERR_HANDLER): Don't do anything if irreversible == NULL.
1365         * iconv/skeleton.c (lirreversiblep): New variable.  Set to NULL is
1366         recursive error handling call, otherwise to &lirreversible.  Use it
1367         for calls to conversion functions.
1368         * iconv/gconv_simple.c (ucs4_internal_loop): Don't handle errors when
1369         transliterating.
1370         (ucs4_internal_loop_unaligned): Likewise.
1371         (ucs4le_internal_loop): Likewise.
1372         (ucs4le_internal_loop_unaligned): Likewise.
1373
1374 2000-08-25  Greg McGary  <greg@mcgary.org>
1375
1376         * sysdeps/i386/memchr.S: Check high bound against chars
1377         actually scanned.
1378         * sysdeps/i386/memcmp.S: Likewise.
1379         * sysdeps/i386/stpncpy.S: Adjust high-bound check to
1380         account for pointers that lie one beyond end-of-buffer.
1381
1382 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1383
1384         * elf/Makefile (LDFLAGS-nodelete): Add -rdynamic.
1385         * elf/nodelete.c (fini_ran): New global variable.
1386         (do_test): Before every dlclose call clear fini_ran and test
1387         afterwards that it is not set by the destructors.
1388         * elf/nodelmod1.c: Add destructor which sets fini_ran.
1389         * elf/nodelmod2.c: Likewise.
1390         * elf/nodelmod4.c: Likewise.
1391
1392 2000-08-21  Jes Sorensen  <jes@linuxcare.com>
1393
1394         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add getrlimit and
1395         getrlimit to the list.
1396
1397 2000-08-18  Jes Sorensen  <jes@linuxcare.com>
1398
1399         * sysdeps/ia64/Implies: gcc now has support for the Intel 80 bit
1400         long double format so use ldbl-96 instead of ldbl-128.
1401
1402 2000-08-25  Ulrich Drepper  <drepper@redhat.com>
1403
1404         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap): Return -EINVAL
1405         even if bits 10 a 11 are non-zero.
1406         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64): Likewise.
1407
1408         * Makeconfig: Ensures the soversions.mk part of Makefile gets
1409         included before building gnu/lib-names.h
1410         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1411
1412         * elf/dl-close.c (_dl_close): Don't run destructors of objects
1413         marked DF_1_NODELETE.
1414
1415         * sysdeps/posix/system.c (__libc_system): We cannot use vfork here
1416         since we call sigaction in the child.
1417
1418 2000-08-25  Andreas Jaeger  <aj@suse.de>
1419
1420         * iconvdata/Makefile ($(objpfx)bug-iconv1.out): Depend on
1421         gconv-modules.
1422
1423 2000-08-25  Andreas Jaeger  <aj@suse.de>
1424
1425         * manual/arith.texi (Control Functions): Clarify possible
1426         arguments.  Closes PR libc/1856.
1427
1428 2000-08-24  H.J. Lu  <hjl@gnu.org>
1429
1430         * stdio-common/Makefile (tests): Don't do it for cross compiling.
1431         * malloc/Makefile (tests): Likewise.
1432
1433 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1434
1435         * iconvdata/unicode.c (gconv_init): Correct test for direction.
1436
1437 2000-08-24  Andreas Jaeger  <aj@suse.de>
1438
1439         * malloc/Makefile (extra-objs): Fix last patch, build memusagestat
1440         only if LIBGD is available.
1441
1442 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1443
1444         * resolv/res_send.c (res_ourserver_p): Cleanup the type mess to avoid
1445         problems with now restrict parameter types.
1446         (convaddr4to6): Likewise.
1447
1448 2000-08-24  Denis Joseph Barrow  <djbarrow@de.ibm.com>
1449
1450         * sysdeps/s390/fpu/fedisblxcpt.c: New file.
1451         * sysdeps/s390/fpu/feenablxcpt.c: New file.
1452         * sysdeps/s390/fpu/fegetexcept.c: New file.
1453         * sysdeps/s390/fpu/fenv_libc.h: Some reordering, new definition
1454         FPC_VALID_MASK.
1455
1456 2000-08-24  Andreas Jaeger  <aj@suse.de>
1457
1458         * malloc/Makefile (extra-objs): Add memusagestat.o.
1459         (generated): Added memusage and memusagestat for make clean.
1460
1461         * libio/tst_putwc.c (do_test): Delete temporary file.
1462         Move inclusion of test-skeleton to front to have prototype for
1463         add_temp_file.
1464
1465         * posix/Makefile (generated): Add wordexp-tst.out.
1466
1467 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1468
1469         * resolv/res_hconf.c (free_mem): Remove not needed if.
1470
1471         * time/tzset.c (free_mem): New function.
1472         * string/strsignal.c (free_mem): New function.
1473         * inet/inet_ntoa.c (free_mem): New function.
1474         * sunrpc/clnt_perr.c (free_mem): New function.
1475
1476 2000-08-24  Andreas Jaeger  <aj@suse.de>
1477
1478         * sysdeps/unix/syscalls.list: Use __setrlimit as strong name.
1479         * sysdeps/unix/sysv/syscalls.list: Likewise.
1480
1481         * posix/unistd.h: Move internal prototypes from here ...
1482         * include/unistd.h: ... to here.
1483
1484         * sysvipc/sys/shm.h: Add const attribute to __getpagesize.
1485
1486 2000-08-24  Ulrich Drepper  <drepper@redhat.com>
1487
1488         * grp/initgroups.c (initgroups): Deallocate groups array.
1489         Reported by jani.raiha@sonera.com [PR libc/1868].
1490
1491         * sysdeps/s390/Dist: Add fpu/fenv_libc.h.
1492         * sysdeps/alpha/Dist: Likewise.
1493
1494 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1495
1496         * crypt/md5-crypt.c (free_mem): Fix typo (constructor ->
1497         destructor).  Reported by Solar Designer <solar@false.com>.
1498
1499         * iconv/gconv_conf.c (add_module): Remove some unneeded code to
1500         avoid adding double slashes.
1501
1502 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1503
1504         * dirent/dirent.h (alphasort, versionsort): Move __attribute_pure__
1505         out of the __REDIRECT macro.
1506
1507 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1508
1509         * stdio-common/vfscanf.c: Add %F format support.
1510
1511         * locale/programs/ld-ctype.c (ctype_output): Make sure
1512         _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN and
1513         _NL_CTYPE_TRANSLIT_IGNORE_LEN are aligned.
1514         (ctype_read): Enable returning of wide character strings for reading
1515         transliteration information.
1516
1517 2000-08-23  Andreas Jaeger  <aj@suse.de>
1518
1519         * sysdeps/unix/sysv/linux/i386/sys/io.h (_EXTERN_INLINE): Remove.
1520         Use static __inline instead of _EXTERN_INLINE.
1521
1522         * misc/sys/select.h: Move prototypes of __select from here ...
1523         * include/sys/select.h: ... to here.
1524
1525         * socket/sys/socket.h: Move prototypes of __send and __connect
1526         from here....
1527         * include/sys/socket.h: ... to here.
1528
1529         * locale/programs/ld-ctype.c (ctype_read): Fix parameter for
1530         lr_error.
1531
1532 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1533
1534         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Use
1535         __setrlimit as strong name. Takes only 2 arguments.
1536
1537         * sysdeps/unix/sysv/linux/sh/syscalls.list: __syscall_setrlimit
1538         takes only 2 arguments.
1539
1540 2000-08-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1541
1542         * sysdeps/s390/__longjmp.c: Add __ to JB_GPR*.
1543
1544         * sysdeps/s390/bits/setjmp.h: Add __ to JB_GPR* defines.
1545
1546 2000-08-23  Ulrich Drepper  <drepper@redhat.com>
1547
1548         * locale/programs/ld-ctype.c (ctype_read): Allow more than one
1549         default_missing character being specified, pick the first
1550         representable.
1551
1552 2000-08-23  Andreas Jaeger  <aj@suse.de>
1553
1554         * include/wchar.h: Add some pure attributes.
1555
1556         * time/time.h: Add const attribute for dysize.
1557
1558         * include/stdlib.h: Add malloc attribute to __posix memalign.
1559
1560         * stdlib/stdlib.h: Add some pure and malloc attributes.
1561         * wcsmbs/wchar.h: Likewise.
1562
1563         * dirent/dirent.h: Add some pure attributes.
1564         * include/dirent.h: Likewise.
1565
1566 2000-08-23  Jakub Jelinek  <jakub@redhat.com>
1567
1568         * inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
1569         on 64bit arches.
1570
1571 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1572
1573         * iconvdata/iso-2022-jp.c: In conversion to ISO-2022-JP, add two
1574         missing buffer size checks.
1575
1576 2000-08-23  Andreas Jaeger  <aj@suse.de>
1577
1578         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Use __setrlimit as
1579         strong name.
1580         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
1581
1582         * sysdeps/unix/sysv/linux/dl-osinfo.h: Include "kernel-features.h",
1583         otherwise __LINUX_KERNEL_VERSION might not be defined.
1584         (MIN): Define if not already defined.
1585
1586 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1587
1588         * stdio-common/vfprintf.c: Handle %F format.
1589         * stdio-common/printf-parse.h (parse_one_spec): Likewise.
1590         Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
1591
1592         * stdio-common/tstdiomisc.c: Add test for %F printf format.
1593
1594         * po/zh.po: New file.
1595
1596         * iconvdata/sjis.c: In conversion from UCS4, correct test for
1597         enough room in target buffer.
1598         Patch by KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp> [PR libc/1865].
1599         * iconvdata/bug-iconv1.c: New file.
1600         * iconvdata/Makefile (tests): Add bug-iconv1.
1601
1602         * locale/iso-4217.def: Update entry for Nicaragua.
1603
1604 2000-08-22  Mark Kettenis  <kettenis@gnu.org>
1605
1606         * hurd/hurdsig.c: Rearrange headers a bit.
1607         (_hurdsig_init): Block until _hurd_msgport_thread is initialized
1608         when cthreads is being used.
1609
1610 2000-08-22  Ulrich Drepper  <drepper@redhat.com>
1611
1612         * elf/Makefile (distribute): Add dl-osinfo.h.
1613         * sysdeps/generic/dl-osinfo.h: New file.
1614         * sysdeps/unix/sysv/linux/dl-osinfo.h: New file.
1615         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Use DL_SYSDEP_OSCHECK
1616         if defined.
1617         * sysdeps/unix/sysv/linux/init-first.c: Perform kernel version test
1618         only for !SHARED case.  Get the code from dl-osinfo.h.
1619
1620         * stdlib/random_r.c: Cleanups.
1621         * stdlib/tst-random.c: New file.
1622         * stdlib/Makefile (tests): Add tst-random.
1623         Patches by Michael Fischer <fischer-michael@cs.yale.edu>.
1624
1625 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1626
1627         * sysdeps/unix/sysv/linux/s390/getmsg.c: Remove.
1628         * sysdeps/unix/sysv/linux/s390/getpmsg.c: Remove.
1629         * sysdeps/unix/sysv/linux/s390/putmsg.c: Remove.
1630         * sysdeps/unix/sysv/linux/s390/putpmsg.c: Remove.
1631
1632 2000-08-22  Jakub Jelinek  <jakub@redhat.com>
1633
1634         * sysdeps/unix/sysv/linux/alpha/syscalls.list (sysctl): Remove.
1635         * sysdeps/unix/sysv/linux/ia64/syscalls.list (sysctl): Remove.
1636         (__syscall__sysctl): Add.
1637
1638 2000-08-21  Andreas Jaeger  <aj@suse.de>
1639
1640         * stdlib/tst-strtol.c: Add test for 0xFFFFFFFFFFFF00FF (from PR
1641         libc/1864).
1642         * stdlib/tst-strtoll.c: Likewise.
1643
1644 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1645
1646         * stdlib/random_r.c (__setstate_r): Also compute end_ptr
1647         correctly.
1648         (__initstate_r): Set errno on error.
1649         (__random_r): Likewise.
1650         (__setstate_r): Correct offset when computing
1651         new rptr and fptr.  Test for arg_state being NULL.
1652         Reported by Michael Fischer <fischer@cs.yale.edu>.
1653
1654         * posix/regex.h: Add macro definitions to allow compiling outside
1655         glibc.
1656
1657         * sysdeps/i370/Implies: Removed.
1658         * sysdeps/mvs/Implies: Removed.
1659
1660         * catgets/catgets.c (catopen): Filter out env_var values with / if
1661         necessary.
1662
1663         * locale/findlocale.c (_nl_find_locale): Move test for unusable
1664         locale name after all getenvs.
1665
1666         * configure.in: Allow sed versions like 3.02.8.
1667         Patch by Rodrigo Barbosa <rodrigob@conectiva.com.br>.
1668
1669 2000-08-21  Marko Myllynen  <myllynen@lut.fi>
1670
1671         * inet/netinet/icmp6.h: Add Mobile IPv6 extensions structures.
1672
1673 2000-08-21  Ulrich Drepper  <drepper@redhat.com>
1674
1675         * sysdeps/posix/getaddrinfo.c (gethosts): Handle TRY_AGAIN error
1676         of gethostbyname2_r call.
1677
1678         * intl/locale.alias: Add aliases for Korean.
1679
1680 2000-08-21  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1681
1682         * sysdeps/s390/__longjmp.c: Remove unused variable result.
1683         * sysdeps/s390/fpu/bits/fenv.h: Move FPC_* definitions to fenv_libc.h.
1684         * sysdeps/s390/fpu/fclrexcpt.c: Include fenv_libc.h instead of fenv.h.
1685         * sysdeps/s390/fpu/fegetenv.c: New file.
1686         * sysdeps/s390/fpu/fegetround.c: Include fenv_libc.h instead of fenv.h.
1687         * sysdeps/s390/fpu/feholdexcpt.c: New file.
1688         * sysdeps/s390/fpu/fenv_libc.h: New file.
1689         * sysdeps/s390/fpu/fesetenv.c: New file.
1690         * sysdeps/s390/fpu/fesetround.c: Include fenv_libc.h instead of fenv.h.
1691         * sysdeps/s390/fpu/feupdateenv.c: New file.
1692         * sysdeps/s390/fpu/fgetexcptflg.c: Reformatted.
1693         * sysdeps/s390/fpu/fpu_control.h: Corrected header.
1694         * sysdeps/s390/fpu/fraiseexcpt.c: New file.
1695         * sysdeps/s390/fpu/fsetexcptflg.c: New file.
1696         * sysdeps/s390/fpu/ftestexcept.c: New file.
1697         * sysdeps/s390/fpu/libm-test-ulps: New file.
1698         * sysdeps/s390/gmp-mparam.h: Add end of comment.
1699         * sysdeps/s390/initfini.c: New file.
1700         * sysdeps/unix/sysv/linux/s390/Dist: Add sys/procfs.h.
1701         * sysdeps/unix/sysv/linux/s390/Makefile: Remove sys/reg.h.
1702         * sysdeps/unix/sysv/linux/s390/bits/stat.h: New file.
1703         * sysdeps/unix/sysv/linux/s390/lchown.c: New file.
1704         * sysdeps/unix/sysv/linux/s390/sys/elf.h: Move elf definitions to
1705         sys/procfs.h as proposed by Mark Kettenis.
1706         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: New file.
1707
1708 2000-08-21  Andreas Jaeger  <aj@suse.de>
1709
1710         * include/poll.h: Include include/sys/poll.h to get __poll
1711         declaration.
1712
1713         * io/sys/poll.h: Move __poll declaration from here...
1714         * include/sys/poll.h: ...to here.
1715
1716         * include/sys/socket.h (__getpeername): Add declaration.
1717
1718         * include/wchar.h (__vswprintf): Add declaration.
1719
1720         * include/stdio.h (__flockfile): Add declaration.
1721         (__funlockfile): Likewise.
1722
1723 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1724
1725         * misc/sys/cdefs.h: Define __restrict_arr.
1726         * include/sys/time.h: Add restrict where required by AGd4.
1727         * inet/arpa/inet.h: Likewise.
1728         * io/sys/stat.h: Likewise.
1729         * io/sys/statvfs.h: Likewise.
1730         * misc/search.h: Likewise.
1731         * misc/sys/select.h: Likewise.
1732         * posix/glob.h: Likewise.
1733         * posix/regex.h: Likewise.
1734         * posix/spawn.h: Likewise.
1735         * posix/unistd.h: Likewise.
1736         * rt/aio.h: Likewise.
1737         * signal/signal.h: Likewise.
1738         * socket/sys/socket.h: Likewise.
1739         * stdlib/ucontext.h: Likewise.
1740         * streams/stropts.h: Likewise.
1741         * string/string.h: Likewise.
1742         * time/time.h: Likewise.
1743         * time/sys/time.h: Likewise.
1744
1745         * posix/spawn.h: Add declarations for posix_spawnattr_getscheparam
1746         and posix_spawnattr_setscheparam.
1747
1748         * libio/stdio.h: Make cuserid prototype again available for all
1749         XPG versions.
1750
1751         * argp/argp-help.c: Unify use of function aliases to make more compact
1752         PLT.
1753         * include/libintl.h: Likewise.
1754         * inet/rcmd.c: Likewise.
1755         * intl/dcigettext.c: Likewise.
1756         * libio/iofputws.c: Likewise.
1757         * libio/iofputws_u.c: Likewise.
1758         * libio/iogetwline.c: Likewise.
1759         * libio/swprintf.c: Likewise.
1760         * malloc/malloc.c: Likewise.
1761         * nss/digits_dots.c: Likewise.
1762         * posix/fnmatch.c: Likewise.
1763         * posix/spawn_faction_addclose.c: Likewise.
1764         * posix/spawn_faction_adddup2.c: Likewise.
1765         * posix/spawn_faction_addopen.c: Likewise.
1766         * posix/spawni.c: Likewise.
1767         * posix/wordexp.c: Likewise.
1768         * posix/spawni.c: Likewise.
1769         * resolv/res_hconf.c: Likewise.
1770         * resolv/res_init.c: Likewise.
1771         * shadow/lckpwdf.c: Likewise.
1772         * signal/sighold.c: Likewise.
1773         * signal/sigrelse.c: Likewise.
1774         * stdio-common/printf-parse.h: Likewise.
1775         * stdio-common/printf-prs.c: Likewise.
1776         * stdio-common/printf_fp.c: Likewise.
1777         * stdio-common/vfprintf.c: Likewise.
1778         * stdio-common/vfscanf.c: Likewise.
1779         * stdlib/rpmatch.c: Likewise.
1780         * sunrpc/create_xid.c: Likewise.
1781         * sunrpc/key_call.c: Likewise.
1782         * sysdeps/generic/setrlimit64.c: Likewise.
1783         * sysdeps/generic/utmp_file.c: Likewise.
1784         * sysdeps/generic/vlimit.c: Likewise.
1785         * sysdeps/posix/posix_fallocate.c: Likewise.
1786         * sysdeps/posix/posix_fallocate64.c: Likewise.
1787         * sysdeps/posix/sigpause.c: Likewise.
1788         * sysdeps/posix/sigset.c: Likewise.
1789         * sysdeps/unix/grantpt.c: Likewise.
1790         * sysdeps/unix/bsd/ualarm.c: Likewise.
1791         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
1792         * sysdeps/unix/sysv/linux/getloadavg.c: Likewise.
1793         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1794         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1795         * time/strftime.c: Likewise.
1796         * wcsmbs/wcscoll.c: Likewise.
1797         * wcsmbs/wcsxfrm.c: Likewise.
1798
1799         * time/tst-getdate.c (main): Make error messages more human readable.
1800
1801         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Allow gcc to generate
1802         postinc/predec instruction.
1803         (_FPU_SETCW): Likewise.
1804         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1805
1806 2000-08-20  Andreas Jaeger  <aj@suse.de>
1807
1808         * time/tst-getdate.c (main): Increase error in case of wrong
1809         conversion.
1810         Fix typo in test case.
1811
1812 2000-08-20  Ulrich Drepper  <drepper@redhat.com>
1813
1814         * ctype/ctype.h (isblank): Make available if ISO C99.
1815         * wctype/wctype.h (iswblank): Make available if ISO C99.
1816         * math/math.h (signgam): Don't make available if ISO C99.
1817         * math/tgmath.h (tgamma): Renamed from gamma.
1818         Patches by Joseph S. Myers <jsm28@cam.ac.uk>.
1819
1820         * intl/loadmsgcat.c (_nl_unload_domain): Also free conv_tab element.
1821         Pretty printing.
1822         * intl/plural.y (new_exp): Take number of optional parameters in
1823         second parameter.  Test for correct number of parameters and free
1824         correctly in case of failure.  Adjust all callers.
1825         (yylex): Allow ';' as terminator character.
1826
1827 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1828
1829         * locale/lc-time.c (free_mem): New function.  Free alt_digits and
1830         walt_digits.
1831
1832         * locale/findlocale.c (free_mem): Also free here->filename.
1833
1834         * locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
1835
1836         * math/test-fenv.c (feenv_tests): Clear all exceptions before
1837         first test.
1838         (feexcp_nomask_test): Correct printf args.
1839         (feexcp_mask_test): Likewise.
1840
1841 2000-08-19  Andreas Jaeger  <aj@suse.de>
1842
1843         * inet/tst-gethnm.c: Include string.h to provide prototype for
1844         strcmp.
1845
1846         * malloc/mtrace.pl (usage): Inform about --help.
1847
1848 2000-08-19  Wolfram Gloger  <wg@malloc.de>
1849
1850         * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
1851         size HEAP_MAX_SIZE.
1852
1853 2000-08-19  Andreas Jaeger  <aj@suse.de>
1854
1855         * shlib-versions: Remove libnss_db, libdb and libdb1.
1856
1857 2000-08-19  Jakub Jelinek  <jakub@redhat.com>
1858
1859         * sysdeps/unix/sysv/linux/alpha/readdir.c: Move...
1860         * sysdeps/unix/sysv/linux/ia64/readdir.c: ...here and
1861         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: ...here.
1862         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Move...
1863         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: ...here and
1864         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: ...here.
1865         * sysdeps/unix/sysv/linux/alpha/readdir64.c: Remove.
1866         * sysdeps/unix/sysv/linux/alpha/readdir64_r.c: Remove.
1867         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Remove.
1868         * sysdeps/unix/sysv/linux/alpha/getdents.c: Only use for non-LFS
1869         getdents.
1870         * sysdeps/unix/sysv/linux/readdir64.c: Remove versioning.
1871         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
1872
1873 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1874
1875         * include/glob.h (__glob64): Add prototype.
1876         * sysdeps/generic/glob.c: If GLOB_ONLY_P is defined, only
1877         define glob and glob_in_dir.
1878         * sysdeps/unix/sysv/linux/i386/Versions: Add glob64@@GLIBC_2.2.
1879         * sysdeps/unix/sysv/linux/arm/Versions: Likewise.
1880         * sysdeps/unix/sysv/linux/powerpc/Versions: Likewise.
1881         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Likewise.
1882         * sysdeps/unix/sysv/linux/i386/glob64.c: New file.
1883         * sysdeps/unix/sysv/linux/arm/glob64.c: New file.
1884         * sysdeps/unix/sysv/linux/powerpc/glob64.c: New file.
1885         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: New file.
1886
1887 2000-08-18  Jakub Jelinek  <jakub@redhat.com>
1888
1889         * malloc/Makefile (memusage): libmemusage.so is installed in slibdir.
1890
1891 2000-08-17  Andreas Jaeger  <aj@suse.de>
1892
1893         * math/test-fenv.c (fe_single_test): New function.
1894         (fe_env_tests): Use fe_single_test.
1895         (feenable_test): New tests for feenable/fedisable and
1896         fegetexcpetions.
1897         (feexcp_mask_test): New function.
1898         (feexcp_nomask_test): New function.
1899
1900 2000-08-19  Richard Henderson  <rth@cygnus.com>
1901
1902         * sysdeps/alpha/fpu/fenv_libc.h: New file.
1903         * sysdeps/alpha/fpu/fclrexcpt.c: Use it.
1904         * sysdeps/alpha/fpu/fegetenv.c: Likewise.
1905         * sysdeps/alpha/fpu/fesetround.c: Likewise.
1906         * sysdeps/alpha/fpu/fegetround.c: Likewise.
1907         * sysdeps/alpha/fpu/fgetexcptflg.c: Likewise.
1908         * sysdeps/alpha/fpu/fraiseexcpt.c: Likewise.
1909         * sysdeps/alpha/fpu/ftestexcept.c: Likewise.
1910         * sysdeps/alpha/fpu/fedisblxcpt.c: Likewise.  Use the smaller mask.
1911         * sysdeps/alpha/fpu/feenablxcpt.c: Likewise.
1912         * sysdeps/alpha/fpu/fegetexcept.c: Likewise.
1913         * sysdeps/alpha/fpu/feholdexcpt.c: Retain the SWCR_MAP bits.
1914         * sysdeps/alpha/fpu/fesetenv.c: Likewise.
1915         * sysdeps/alpha/fpu/feupdateenv.c: Likewise.
1916         * sysdeps/alpha/fpu/fsetexcptflg.c: Likewise.
1917         * sysdeps/alpha/fpu/bits/fenv.h (FE_DENORMAL): New.
1918         (FE_MAP_DMZ, FE_MAP_UMZ, FE_NONIEEE_ENV): New.
1919
1920 2000-08-19  Andreas Jaeger  <aj@suse.de>
1921
1922         * elf/constload1.c: Include <stdio.h> for puts prototype.
1923
1924 2000-08-19  Ulrich Drepper  <drepper@redhat.com>
1925
1926         * elf/Versions [ld] (GLIBC_2.2): Export _dl_check_map_versions.
1927         * elf/dl-deps.c (_dl_map_object_deps): If object was dependency of
1928         a dynamically loaded object remove old l_initfini list.
1929         * elf/dl-libc.c (free_mem): Used as __libc_subfreeres callback to
1930         remove some dynamically allocated memory blocks in the dynamic
1931         loading data structures.
1932         * elf/dl-load.c (add_name_to_object): Initialize dont_free to 0.
1933         * elf/dl-open.c (dl_open_workder): Don't call _dl_check_all_versions.
1934         Instead call _dl_check_map_versions only for the dependencies.
1935         * elf/rtld.c: Avoid unneccessary initializations.  Mark l_libname
1936         information of initial objects as not free-able.
1937         * sysdeps/generic/ldsodefs.h (struct libname_list): Add dont_free
1938         element.
1939
1940         * elf/filter.c: Call mtrace.
1941         * elf/restest1.c: Likewise.  Close the objects.
1942         * elf/loadtest.c: Call mtrace.  Check result of dlclose.  Print more
1943         debug information.
1944
1945         * elf/constload1.c: Add comment explaining not freed memory.
1946
1947 2000-08-18  Andreas Jaeger  <aj@suse.de>
1948
1949         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Add pads to show
1950         alignment for structs stat and stat64.
1951         Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1952
1953 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1954
1955         * sysdeps/unix/sysv/linux/alpha/getdents.c: Remove special d_ino
1956         handling.  Patch by Richard Henderson <rth@twiddle.net>.
1957
1958         * nss/Versions: Remove libnss_db information.
1959
1960 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
1961
1962         * sysdeps/sparc/fpu/fedisblxcpt.c: New file.
1963         * sysdeps/sparc/fpu/feenablxcpt.c: New file.
1964         * sysdeps/sparc/fpu/fegetexcept.c: New file.
1965         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: New file.
1966
1967         * sysdeps/sparc/sparc64/dl-machine.h: Subtract 4 .rela.plt entries
1968         to match Solaris.
1969
1970 2000-08-17  Ulrich Drepper  <drepper@redhat.com>
1971
1972         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Use type-correct code.
1973         (_FPU_SETCW): Likewise.
1974         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
1975
1976         * stdio-common/printf_fp.c: Fix chars_needed computation.
1977         Patch by Greg McGary <greg@mcgary.org>.
1978
1979 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1980
1981         * elf/dl-load.c (_dl_map_object): Don't crash if both loader and
1982         _dl_loaded are NULL.
1983
1984 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1985
1986         * manual/arith.texi (feholdexcept): Returns 0 on success.
1987
1988 2000-08-17  Andreas Jaeger  <aj@suse.de>
1989
1990         * sysdeps/gnu/net/if.h (struct ifreq): Add ifru_newname.
1991         (ifr_newname): New.
1992         Reported by Andi Kleen <ak@suse.de>.
1993
1994 2000-08-17  Jakub Jelinek  <jakub@redhat.com>
1995
1996         * sysdeps/alpha/fpu/fedisblxcpt.c: New file.
1997         * sysdeps/alpha/fpu/feenablxcpt.c: New file.
1998         * sysdeps/alpha/fpu/fegetexcept.c: New file.
1999
2000 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2001
2002         * sysdeps/unix/sysv/linux/xstatconv.c (xstat32_conv): Test sizes
2003         of buf->st_ino and kbuf->st_ino, not __st_ino.
2004         If _HAVE_STAT64___ST_INO is not defined, don't use __st_ino at all.
2005         * sysdeps/unix/sysv/linux/getdents64.c: Change path in #include
2006         directive so that only linux/getdents.c is used, not some
2007         architecture specific one.
2008
2009 2000-08-16  Jakub Jelinek  <jakub@redhat.com>
2010
2011         * sysdeps/i386/fpu/fegetexcept.c (fegetexcept): Return currently
2012         enabled, not disabled exceptions.
2013         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
2014         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
2015
2016 2000-08-17  Greg McGary  <greg@mcgary.org>
2017
2018         * Makeconfig (link-extra-libs-bounded): Strip `-bp' suffix
2019         from test program name when constructing suffix for $(LDLIBS-*).
2020         (bounded-thread-library): New variable.
2021         * crypt/Makefile
2022         [build-shared, build-static] (libcrypt-dep): Remove variable.
2023         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2024         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2025         * linuxthreads/Makefile (libpthread, librt): Remove variables.
2026         (librt-tests): Add variable.  (tests): Use it.
2027         [build-shared, build-static]
2028         ($(addprefix $(objpfx),$(tests)),
2029         $(addprefix $(objpfx),$(librt-tests))):
2030         Consolidate individual dependencies.
2031         [build-bounded]
2032         ($(tests:%=$(objpfx)%-bp), $(librt-tests:%=$(objpfx)%-bp)):
2033         Add dependencies.
2034         * math/Makefile (LDLIBS-*): Remove variables (they are redundant).
2035         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2036         * misc/Makefile
2037         [build-bounded] ($(objpfx)tst-tsearch-bp): Add dependencies.
2038         * rt/Makefile
2039         [build-shared, build-static]
2040         ($(addprefix $(objpfx),$(tests))): Consolidate individual dependencies.
2041         [build-bounded] ($(tests:%=$(objpfx)%-bp)): Add dependencies.
2042
2043 2000-08-17  Greg McGary  <greg@mcgary.org>
2044
2045         * sysdeps/generic/bp-checks.h: s/\(CHECK\w+\)opt/\1_NULL_OK/
2046         * sysdeps/unix/make-syscalls.sh: Likewise.
2047         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
2048         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
2049         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
2050         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
2051         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
2052
2053 2000-08-17  Greg McGary  <greg@mcgary.org>
2054
2055         * sysdeps/i386/fpu/s_frexp.S: Check bounds.
2056         Wrap extern symbols in BP_SYM ().
2057         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2058         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2059         * sysdeps/i386/fpu/s_remquo.S: Likewise.
2060         * sysdeps/i386/fpu/s_remquof.S: Likewise.
2061         * sysdeps/i386/fpu/s_remquol.S: Likewise.
2062         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2063         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
2064         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
2065         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2066         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
2067
2068 2000-08-16  Andreas Schwab  <schwab@suse.de>
2069
2070         * sysdeps/m68k/fpu/fegetexcept.c: New file.
2071         * sysdeps/m68k/fpu/fedisblxcpt.c: New file.
2072         * sysdeps/m68k/fpu/feenablxcpt.c: New file.
2073
2074 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2075
2076         * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded.
2077         * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded.
2078         * elf/dl-support.c: Define _nl_nloaded.
2079         * elf/rtld.c: Likewise.  Increment _nl_nloaded for rtld itself.
2080         * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding
2081         object to global list.
2082         * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing
2083         from _dl_loaded list.
2084         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2085         * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the
2086         number here.
2087
2088         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not
2089         unmask, exceptions.
2090         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask,
2091         exceptions.
2092         Reported by Harvey J. Stein <hjstein@bfr.co.il>.
2093
2094 2000-08-16  Andreas Jaeger  <aj@suse.de>
2095
2096         * elf/elf.h (EM_X8664): Add official x86-64 specific value.
2097
2098 2000-08-15  Marko Myllynen  <myllynen@lut.fi>
2099
2100         * inet/netinet/icmp6.h: Added Mobile IPv6 definitions.
2101
2102 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2103
2104         * sysdeps/unix/sysv/linux/powerpc/Dist: Add oldgetrlimit64.c.
2105         * sysdeps/unix/sysv/linux/powerpc/Makefile [$(subdir)=resource]
2106         (sysdep_routines): Add oldgetrlimit64.
2107         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: New file.
2108         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
2109
2110         * include/link.h: Undo last patches.  Hurd now has stat64.
2111         * elf/Makefile: Likewise.
2112         * elf/dl-load.c: Likewise.
2113         * elf/dl-misc.c: Likewise.
2114         * elf/dl-profile.c: Likewise.
2115         * sysdeps/generic/sysd-link.h: Removed.
2116         * sysdeps/unix/sysv/linux/sysd-link.h: Removed.
2117
2118         * rt/aio_notify.c (notify_func_wrapper): Wrapper function to call
2119         thread event callback function.
2120         (__aio_notify_only): Use function above.
2121         Patch by Kaz Kylheku <kaz@ashi.footprints.net>.
2122
2123 2000-08-16  Mark Kettenis  <kettenis@gnu.org>
2124
2125         * sysdeps/mach/hurd/lseek64.c: New file.
2126
2127 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2128
2129         * sysdeps/mach/hurd/i386/bits/time.h (__clockid_t, __timer_t):
2130         Remove typedefs.
2131         * sysdeps/mach/hurd/bits/time.h (__clockid_t, __timer_t): Remove
2132         typedefs.
2133         * sysdeps/generic/bits/time.h (__clockid_t, __timer_t): Remove
2134         typedefs.
2135         * sysdeps/generic/bits/types.h (__clockid_t, __timer_t): New typedefs.
2136
2137 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2138
2139         * sysdeps/mach/hurd/xstatconv.c: New file.
2140         * sysdeps/mach/hurd/fxstat64.c: New file.
2141         * sysdeps/mach/hurd/lxstat64.c: New file.
2142         * sysdeps/mach/hurd/xstat64.c: New file.
2143         * sysdeps/mach/hurd/Dist: Add xstatconv.c.
2144
2145 2000-08-15  Mark Kettenis  <kettenis@gnu.org>
2146
2147         * sysdeps/mach/hurd/dl-sysdep.c (__libc_multiple_libcs):
2148         Initialize, needed for change in common symbol handling in newer
2149         binutils.  Mirrors 2000-01-03 change made by Andreas Schwab.
2150
2151 2000-08-15  Ulrich Drepper  <drepper@redhat.com>
2152
2153         * elf/constload1.c: Call mtrace.  Check return value of dlclose call.
2154         * elf/constload2.c: Add destructor to unload constload3.
2155
2156         * include/link.h: Include sysd-link.h.
2157         * sysdeps/generic/sysd-link.h: New file.
2158         * sysdeps/unix/sysv/linux/sysd-link.h: New file.
2159         * elf/Makefile (distribute): Add sysd-link.h.
2160         * elf/dl-load.c: Use definitions from sysd-link.h instead of stat
2161         types and functions directly.
2162         * elf/dl-misc.c: Likewise.
2163         * elf/dl-profile.c: Likewise.
2164
2165         * elf/loadfail.c (main): Close all successfully loaded objects.
2166
2167         * elf/multiload.c: Add mtrace call.  Call dlclose for all handles and
2168         free wd.
2169         * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if
2170         there is already one.
2171
2172         * elf/dl-close.c: Pretty print.
2173
2174 2000-08-14  Ulrich Drepper  <drepper@redhat.com>
2175
2176         * sysdeps/posix/ttyname.c: Make name variable from getttyname function
2177         global (with file scope).  Add __libc_subfreeres function to free the
2178         string.
2179         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.  Also for buf variable
2180         in ttyname function.
2181
2182         * sysdeps/generic/strtok.c: Remove initializer for olds variable.
2183
2184         * crypt/md5-crypt.c: Let destructor deallocate static buffer.
2185
2186         * iconvdata/sjis.c (from_ucs4_lat1): Handle U005C and U007E by
2187         mapping them to /x5c and /x7e respectively.
2188
2189         * locale/programs/ld-ctype.c: Add support for more definitions after
2190         copy statement.
2191
2192 2000-08-14  Jakub Jelinek  <jakub@redhat.com>
2193
2194         * dirent/Versions (getdirentries64): Export at GLIBC_2.2.
2195         * sysdeps/unix/sysv/linux/kernel-features.h
2196         (__ASSUME_GETDENTS64_SYSCALL): Define.
2197         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
2198         syscall if available to get d_type fields.
2199         * sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
2200         * sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
2201         __lxstat64): Export at GLIBC_2.2.
2202         (alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
2203         Likewise.
2204         * sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
2205         * sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
2206         * sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
2207         getdirentries64, versionsort64): Remove.
2208         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
2209         getdirentries64, versionsort64): Remove.
2210
2211 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2212
2213         * posix/Makefile: Remove rules to generate glob package.
2214
2215         * posix/Makefile (tests): Add tst-regexloc.
2216         (tst-regexloc-ENV): Add LOCPATH.
2217         * posix/tst-regexloc.c: New file.
2218
2219 2000-08-12  Andreas Jaeger  <aj@suse.de>
2220
2221         * include/features.h (__STDC_ISO_10646__): Define.
2222         Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.
2223
2224 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2225
2226         * include/features.h (__USE_ISOC99): Define for _XOPEN_SOURCE >= 600.
2227
2228         * locale/langinfo.h: Define YESSTR and NOSTR also for XPG4 (but not
2229         for revision 6 and up).
2230
2231         * posix/sys/types.h: Define __need_timer_t and __need_clockid_t before
2232         including <time.h>.
2233         * time/time.h: Allow __need_timer_t and __need_clockid_t to be defined
2234         to get definitions of just these types.
2235
2236         * signal/signal.h: Define thread signal handling functions also for
2237         POSIX95.
2238
2239         * sysdeps/unix/sysv/linux/bits/types.h: Define thread types also for
2240         POSIX95.
2241         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
2242         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Likewise.
2243         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
2244         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
2245
2246         * sysvipc/sys/shm.h: Define pid_t for XPG.
2247
2248         * posix/unistd.h: Remove setkey, rename, and cuserid prototypes as
2249         they are not anymore required here.
2250
2251         * wcsmbs/wchar.h: Make the various wide char string and stream
2252         functions available for the respective XPG versions.
2253
2254         * nss/Makefile: Remove rules to build and distribute nss_db.
2255
2256         * sysdeps/generic/alphasort64.c: Remove unnecessary versioning.
2257         * sysdeps/generic/scandir64.c: Likewise.
2258         * sysdeps/generic/versionsort64.c: Likewise.
2259
2260 2000-08-13  Ulrich Drepper  <drepper@redhat.com>
2261             Benjamin Koznik  <bkoz@redhat.com>
2262
2263         * libio/fileops.c: Merge with libstdc++-v3.
2264         * libio/genops.c: Likewise.
2265         * libio/iofclose.c: Likewise.
2266         * libio/iofopen.c: Likewise.
2267         * libio/iofwide.c: Likewise.
2268         * libio/libio.h: Likewise.
2269         * libio/libioP.h: Likewise.
2270         * libio/stdfiles.c: Likewise.
2271         * libio/stdio.c: Likewise.
2272         * libio/wfileops.c: Likewise.
2273         * libio/wgenops.c: Likewise.
2274
2275         * libio/Versions: Export functions needed by libstdc++-v3 in GLIBC_2.2.
2276
2277 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2278
2279         * locale/programs/localedef.c: Implement --prefix option to allow
2280         writing in standard places of alternative install directories.
2281
2282         * posix/regex.c (compile_range): Implement collation sequence
2283         handling for glibc.  Use simple character ordering otherwise and
2284         not strcoll.
2285
2286 2000-08-12  Mark Kettenis  <kettenis@gnu.org>
2287
2288         * sysdeps/generic/scandir64.c: Include <dirent.h>.
2289
2290 2000-08-12  Andreas Jaeger  <aj@suse.de>
2291
2292         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Handle
2293         __USE_FILE_OFFSET64 correctly for locking.
2294         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2295
2296 2000-08-12  Jakub Jelinek  <jakub@redhat.com>
2297
2298         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2299         Define for 2.4.1 on sparc as well.
2300         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values
2301         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2302         * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file.
2303         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file.
2304
2305 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also
2308         defined.
2309
2310 2000-08-12  Andreas Jaeger  <aj@suse.de>
2311
2312         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (F_GETLK64,
2313         F_SETLK64, F_SETLKW64): Define with F_GETLK etc.
2314
2315         * sysdeps/unix/sysv/linux/mips/sys/tas.h (_test_and_set): Add .set
2316         mips2 for assembler.
2317
2318         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Try fcntl
2319         if fnctl64 is not available for F_*LK*64.
2320
2321         * sysdeps/unix/sysv/linux/i386/lockf64.c: New file.
2322
2323 2000-08-12  Ulrich Drepper  <drepper@redhat.com>
2324
2325         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2326         Define for 2.4.1 on x86.
2327         * sysdeps/unix/sysv/linux/i386/fcntl.c: New file.
2328         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Fill in correct values
2329         for F_GETLK64, F_SETLK64, and F_SETLKW64.
2330
2331         * dirent/dirent.h: Define DT_WHT.
2332
2333         * sysdeps/unix/sysv/linux/arm/alphasort64.c: New file.
2334         * sysdeps/unix/sysv/linux/arm/getdents64.c: New file.
2335         * sysdeps/unix/sysv/linux/arm/readdir64.c: New file.
2336         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: New file.
2337         * sysdeps/unix/sysv/linux/arm/scandir64.c: New file.
2338         * sysdeps/unix/sysv/linux/arm/versionsort64.c: New file.
2339
2340 2000-08-11  Ulrich Drepper  <drepper@redhat.com>
2341
2342         * nss/digits_dots.c: Don't pass NULL in h_aliases for successful
2343         lookup, pass pointer to array with NULL pointer [PR libc/1858].
2344         * inet/Makefile (tests): Add tst-gethnm.
2345         * inet/tst-gethnm.c: New file.
2346
2347         * rt/aio_cancel.c: If canceling a specific request which is running
2348         *really* do nothing.
2349         * rt/aio_misc.h: Add `done' to states of a request.
2350         * rt/aio_misc.c: Add several tests for the correct state.
2351         Simplify request table memory handling.
2352
2353 2000-08-10  Jakub Jelinek  <jakub@redhat.com>
2354
2355         * dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
2356         * dirent/scandir64.c: Move...
2357         * sysdeps/generic/scandir64.c: ...here.
2358         * dirent/alphasort64.c: Move...
2359         * sysdeps/generic/alphasort64.c: ...here.
2360         * dirent/versionsort64.c: Move...
2361         * sysdeps/generic/versionsort64.c: ...here.
2362         * sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
2363         getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
2364         Export symbols at GLIBC_2.2.
2365         * sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
2366         * sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
2367         * include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
2368         __versionsort64): Add prototypes.
2369         * io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
2370         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
2371         unused prototype.
2372         * sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
2373         and GLIBC_2.2.
2374         * sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
2375         * sysdeps/unix/sysv/linux/alpha/getdents.c: New.
2376         * sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
2377         * sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
2378         __u_quad_t.
2379         * sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
2380         Adjust for kernel-2.4.0-test6 layout.
2381         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
2382         GLIBC_2.1 and GLIBC_2.2.
2383         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
2384         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
2385         * sysdeps/unix/sysv/linux/i386/getdents64.c: New.
2386         * sysdeps/unix/sysv/linux/i386/olddirent.h: New.
2387         * sysdeps/unix/sysv/linux/i386/readdir64.c: New.
2388         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
2389         * sysdeps/unix/sysv/linux/i386/scandir64.c: New.
2390         * sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
2391         * sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
2392         * sysdeps/unix/sysv/linux/ia64/getdents.c: New.
2393         * sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
2394         * sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
2395         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
2396         * sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
2397         __u_quad_t.
2398         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
2399         * sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
2400         * sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
2401         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
2402         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
2403         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
2404         * sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
2405         __u_quad_t.
2406         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
2407         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
2408         Define.
2409         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
2410         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
2411         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
2412         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
2413         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
2414         Define.
2415         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
2416         alpha/readdir.c.
2417         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
2418         alpha/readdir_r.c
2419         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
2420         * sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
2421         * sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
2422         _HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
2423         st_ino from __st_ino.
2424         * sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
2425         * sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
2426         * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
2427         xstat32_conv): Use _HAVE_STAT* macros.  If _HAVE_STAT64___ST_INO,
2428         set __st_ino in addition to st_ino.
2429         * sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
2430         * sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
2431         __old_getdents64 as well.
2432         * sysdeps/unix/sysv/linux/getdirentries.c: Use it for
2433         getdirentries64 and old_getdirentries64 as well.
2434         * sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
2435         __GETDENTS): Define.
2436         (GETDENTS64): Remove.
2437         * sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
2438         Define.
2439         (GETDENTS64): Remove.
2440         * sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
2441         * sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
2442         * sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
2443         as well.
2444         * sysdeps/unix/readdir_r.c: Use it for readdir64_r and
2445         __old_readdir64_r as well.
2446         * sysdeps/unix/sysv/linux/kernel-features.h: Define
2447         __ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
2448
2449 2000-08-08  Jes Sorensen  <jes@linuxcare.com>
2450
2451         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2452         Add missing ILL_BADIADDR to enum and make ILL_BREAK match the
2453         define of the kernel.
2454         Add missing __SEG_PSTKOVF definition.
2455         Adjust the padding of struct siginfo and struct sigevent to
2456         match the fact that sigval_t is 64 bit.
2457
2458 2000-08-10  Ulrich Drepper  <drepper@redhat.com>
2459
2460         * timezone/zic.c: Update from tzcode2000f.
2461         * timezone/australasia: Update from tzdata2000f.
2462         * timezone/europe: Likewise.
2463         * timezone/southamerica: Likewise.
2464         * timezone/yearistype: Likewise.
2465
2466 2000-08-10  Andreas Jaeger  <aj@suse.de>
2467
2468         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Synch struct stat64 and
2469         stat with current MIPS kernel.
2470
2471 2000-08-01  Mark Kettenis  <kettenis@gnu.org>
2472
2473         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_greg_t, ELF_NGREG,
2474         elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved to
2475         sysdeps/unix/sysv/linux/i386/sys/procfs.h.
2476         Remove the junk that's only relevant in the Linux kernel itself.
2477         Add a warning saying that this file is now obsolete, and include
2478         <sys/procfs.h>.
2479         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (elf_greg_t,
2480         ELF_NGREG, elf_gregset_t, elf_fpregset_t, elf_fpxregset_t): Moved
2481         here from sysdeps/unix/sysv/linux/i386/sys/elf.h.  Don't include
2482         <signal.h>, <sys/ucontext.h> and <sys/elf.h>.  Remove parts of
2483         `struct elf_prstatus' that are #ifdef'ed out.  Improve comments
2484         and add the notice that the file is primarily there for GDB.
2485         * sysdeps/unix/sysv/linux/i386/sys/user.h: Fix comment.
2486
2487 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2488
2489         * time/tzfile.c (__tzfile_compute): __tzstring zones
2490         from zone_names.
2491
2492 2000-08-09  Jakub Jelinek  <jakub@redhat.com>
2493
2494         * resolv/resolv.h (__res_state): Surround prototype with
2495         __BEGIN_DECLS/__END_DECLS.
2496         * sysdeps/unix/sysv/linux/m68k/chown.c: Include kernel-features.h.
2497
2498 2000-08-04  Jes Sorensen  <jes@linuxcare.com>
2499
2500         * sysdeps/unix/sysv/linux/ia64/bits/resource.h (__rlimit_resource):
2501         Make independant of asm/resource.h from the Linux kernel.
2502
2503 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2504
2505         * iconv/gconv_conf.c (__gconv_read_conf): Don't call realpath.
2506
2507 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
2508
2509         * intl/Makefile (CPPFLAGS): Remove $(i18ndir) from LOCALE_ALIAS_PATH.
2510         * locale/Makefile (locale-CPPFLAGS): Likewise.
2511
2512 2000-08-09  Ulrich Drepper  <drepper@redhat.com>
2513
2514         * sysdeps/i386/fpu/libm-test-ulps: Increase several error values
2515         for AMD processors.
2516
2517 2000-08-03  Jakub Jelinek  <jakub@redhat.com>
2518
2519         * misc/Versions (mincore): Export at GLIBC_2.2.
2520
2521 2000-08-03  Bruno Haible  <haible@clisp.cons.org>
2522
2523         * intl/libintl.h (gettext, dgettext, dcgettext): Add back __THROW.
2524
2525 2000-08-02  Mark Kettenis  <kettenis@gnu.org>
2526
2527         * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from
2528         socketpair.  Made socketpair a weak alias.
2529         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using
2530         __socketpair.  Use S_IFIFO protocol to make pipes POSIX
2531         conforming, but fall back on the old protocol if the socket server
2532         doesn't support it.
2533         * include/sys/socket.h: Add prototype for __socketpair.
2534
2535 2000-08-09  Andreas Schwab  <schwab@suse.de>
2536
2537         * stdio-common/vfprintf.c (vfprintf): Also set `is_long' if the
2538         long long modifier is seen.
2539
2540         * elf/nodelete.c (do_test): Remove reference to undefined member
2541         sa_restorer.
2542         * rt/tst-aio4.c (do_test): Likewise.
2543
2544         * configure.in: Add `-lm' when checking for libgd.
2545         * malloc/Makefile ($(objpfx)memusagestat): Add `-lm' during
2546         linking.
2547
2548 2000-08-09  Andreas Jaeger  <aj@suse.de>
2549
2550         * configure.in: Change required make versions.
2551
2552         * manual/install.texi (Tools for Compilation): Document required
2553         make version.
2554         (Supported Configurations): Update list of supported
2555         configurations.
2556
2557 2000-08-08  Ulrich Drepper  <drepper@redhat.com>
2558
2559         * locale/linereader.c (get_string): Don't print an error is a string
2560         contains an unknown character.
2561
2562 2000-08-06  Ulrich Drepper  <drepper@redhat.com>
2563
2564         * locale/programs/ld-collate.c (struct symbol_t): Add name element.
2565         (new_symbol): Take new parameters with name of the symbol.
2566         Adjust callers.
2567         (handle_ellipsis): Don't only allow character symbols.
2568         (collate_read): Allow string of collating elements contain invalid
2569         characters; ignore entry in this case.
2570         Handle ellipsis of collating symbols before first order_start.
2571         Allow ellipsis in state 0.
2572
2573 2000-08-04  Ulrich Drepper  <drepper@redhat.com>
2574
2575         * locale/programs/ld-collate.c (handle_ellipsis): Fix typo in
2576         error message.
2577         Reported by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2578
2579 2000-08-04  Greg McGary  <greg@mcgary.org>
2580
2581         * posix/regex.c (SET_HIGH_BOUND): New macro.
2582         (MOVE_BUFFER_POINTER): Use it.
2583         (ELSE_EXTEND_BUFFER_HIGH_BOUND): New macro.
2584         (EXTEND_BUFFER): Use it.
2585
2586 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2587
2588         * libio/iofwide.c (_IO_fwide): Initialize fp->_codecvt as well.
2589         * libio/fileops.c (_IO_new_file_fopen): Use _codecvt not from
2590         _wide_data but from _IO_FILE directly.
2591         * libio/iofclose.c: Likewise.
2592         * libio/wfileops.c: Likewise.
2593
2594         * libio/genops.c (_IO_default_showmanyc): Change return type to size_t.
2595         * libio/libioP.h: Change prototypes.
2596
2597 2000-08-03  Greg McGary  <greg@mcgary.org>
2598
2599         * sysdeps/i386/setjmp.S (__sigsetjmp): Pop our
2600         frame pointer early so that we save caller's frame pointer.
2601         * sysdeps/i386/elf/setjmp.S: Likewise.
2602
2603         * sysdeps/unix/sysv/syscalls.list (time, utime): Correct signatures.
2604         * io/test-utime.c: Test passing NULL as utimbuf* arg.
2605
2606         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): Remove macro.
2607         (MOVE_BUFFER_POINTER): Handle high_bound properly.
2608         (EXTEND_BUFFER): Don't call EXTEND_BUFFER_HIGH_BOUND.
2609
2610 2000-08-03  Ulrich Drepper  <drepper@redhat.com>
2611
2612         * iconvdata/big5.c: Updated.
2613         Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
2614
2615 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2616
2617         * Makeconfig (all-subdirs): Add conform.
2618         * conform/Makefile: Include ../Rules.
2619
2620         * Makefile (README): Add rules to generate here as well.
2621
2622 2000-08-02  Ulrich Drepper  <drepper@redhat.com>
2623
2624         * version.h (VERSION): Bump to 2.1.92.
2625
2626         * sysdeps/ia64/Dist: Add _mcount.S.
2627
2628         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone.S.
2629
2630         * sysdeps/unix/sysv/linux/mips/Dist: Add _test_and_set.c.
2631
2632         * elf/Makefile (distribute): Add missing modules.
2633
2634         * sysdeps/unix/sysv/linux/s390/Dist: Remove nonexisting files.
2635
2636         * posix/regex.c (compile_range): Translate range start and end
2637         characters to avoid empty range in case of REG_ICASE [PR libc/1842].
2638
2639         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Don't include
2640         asm/resource.h.
2641
2642         * sysdeps/unix/sysv/linux/arm/Makefile: Undo last change.
2643
2644 2000-08-02  Andreas Jaeger  <aj@suse.de>
2645
2646         * elf/elf.h (EM_S390): Added.
2647         (R_390_*): New relocs for S390.
2648
2649         * sysdeps/unix/sysv/linux/s390/Dist: New file.
2650         * sysdeps/unix/sysv/linux/s390/sysdep.h: New file.
2651         * sysdeps/unix/sysv/linux/s390/sysdep.S: New file.
2652         * sysdeps/unix/sysv/linux/s390/syscall.S: New file.
2653         * sysdeps/unix/sysv/linux/s390/sys/user.h: New file.
2654         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
2655         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: New file.
2656         * sysdeps/unix/sysv/linux/s390/sys/elf.h: New file.
2657         * sysdeps/unix/sysv/linux/s390/socket.S: New file.
2658         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: New file.
2659         * sysdeps/unix/sysv/linux/s390/shmctl.c: New file.
2660         * sysdeps/unix/sysv/linux/s390/setreuid.c: New file.
2661         * sysdeps/unix/sysv/linux/s390/setresuid.c: New file.
2662         * sysdeps/unix/sysv/linux/s390/setresgid.c: New file.
2663         * sysdeps/unix/sysv/linux/s390/setregid.c: New file.
2664         * sysdeps/unix/sysv/linux/s390/setgroups.c: New file.
2665         * sysdeps/unix/sysv/linux/s390/setgid.c: New file.
2666         * sysdeps/unix/sysv/linux/s390/setfsuid.c: New file.
2667         * sysdeps/unix/sysv/linux/s390/setfsgid.c: New file.
2668         * sysdeps/unix/sysv/linux/s390/seteuid.c: New file.
2669         * sysdeps/unix/sysv/linux/s390/setegid.c: New file.
2670         * sysdeps/unix/sysv/linux/s390/semctl.c: New file.
2671         * sysdeps/unix/sysv/linux/s390/register-dump.h: New file.
2672         * sysdeps/unix/sysv/linux/s390/putpmsg.c: New file.
2673         * sysdeps/unix/sysv/linux/s390/putmsg.c: New file.
2674         * sysdeps/unix/sysv/linux/s390/profil-counter.h: New file.
2675         * sysdeps/unix/sysv/linux/s390/msgctl.c: New file.
2676         * sysdeps/unix/sysv/linux/s390/mmap.S: New file.
2677         * sysdeps/unix/sysv/linux/s390/getuid.c: New file.
2678         * sysdeps/unix/sysv/linux/s390/getresuid.c: New file.
2679         * sysdeps/unix/sysv/linux/s390/getresgid.c: New file.
2680         * sysdeps/unix/sysv/linux/s390/getpmsg.c: New file.
2681         * sysdeps/unix/sysv/linux/s390/getmsg.c: New file.
2682         * sysdeps/unix/sysv/linux/s390/getgroups.c: New file.
2683         * sysdeps/unix/sysv/linux/s390/getegid.c: New file.
2684         * sysdeps/unix/sysv/linux/s390/geteuid.c: New file.
2685         * sysdeps/unix/sysv/linux/s390/fchown.c: New file.
2686         * sysdeps/unix/sysv/linux/s390/clone.S: New file.
2687         * sysdeps/unix/sysv/linux/s390/brk.c: New file.
2688         * sysdeps/unix/sysv/linux/s390/bits/time.h: New file.
2689         * sysdeps/unix/sysv/linux/s390/bits/resource.h: New file.
2690         * sysdeps/unix/sysv/linux/s390/bits/mman.h: New file.
2691         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: New file.
2692         * sysdeps/unix/sysv/linux/s390/Makefile: New file.
2693         * sysdeps/s390/sysdep.h: New file.
2694         * sysdeps/s390/sys/ucontext.h: New file.
2695         * sysdeps/s390/sub_n.S: New file.
2696         * sysdeps/s390/strncpy.S: New file.
2697         * sysdeps/s390/strcpy.S: New file.
2698         * sysdeps/s390/stackinfo.h: New file.
2699         * sysdeps/s390/setjmp.S: New file.
2700         * sysdeps/s390/s390-mcount.S: New file.
2701         * sysdeps/s390/mul_1.S: New file.
2702         * sysdeps/s390/memusage.h: New file.
2703         * sysdeps/s390/memset.S: New file.
2704         * sysdeps/s390/memcpy.S: New file.
2705         * sysdeps/s390/memchr.S: New file.
2706         * sysdeps/s390/machine-gmon.h: New file.
2707         * sysdeps/s390/ldbl2mpn.c: New file.
2708         * sysdeps/s390/gmp-mparam.h: New file.
2709         * sysdeps/s390/fpu/fpu_control.h: New file.
2710         * sysdeps/s390/fpu/fesetround.c: New file.
2711         * sysdeps/s390/fpu/fegetround.c: New file.
2712         * sysdeps/s390/fpu/fclrexcpt.c: New file.
2713         * sysdeps/s390/fpu/bits/fenv.h: New file.
2714         * sysdeps/s390/ffs.c: New file.
2715         * sysdeps/s390/elf/start.S: New file.
2716         * sysdeps/s390/elf/setjmp.S: New file.
2717         * sysdeps/s390/elf/bsd-setjmp.S: New file.
2718         * sysdeps/s390/elf/bsd-_setjmp.S: New file.
2719         * sysdeps/s390/dl-machine.h: New file.
2720         * sysdeps/s390/bzero.S: New file.
2721         * sysdeps/s390/bsd-setjmp.S: New file.
2722         * sysdeps/s390/bsd-_setjmp.S: New file.
2723         * sysdeps/s390/bits/string.h: New file.
2724         * sysdeps/s390/bits/setjmp.h: New file.
2725         * sysdeps/s390/bits/huge_val.h: New file.
2726         * sysdeps/s390/bits/endian.h: New file.
2727         * sysdeps/s390/bits/byteswap.h: New file.
2728         * sysdeps/s390/bcopy.S: New file.
2729         * sysdeps/s390/backtrace.c: New file.
2730         * sysdeps/s390/atomicity.h: New file.
2731         * sysdeps/s390/asm-syntax.h: New file.
2732         * sysdeps/s390/addmul_1.S: New file.
2733         * sysdeps/s390/add_n.S: New file.
2734         * sysdeps/s390/abort-instr.h: New file.
2735         * sysdeps/s390/__longjmp.c: New file.
2736         * sysdeps/s390/Makefile: New file.
2737         * sysdeps/s390/Implies: New file.
2738         * sysdeps/s390/Dist: New file.
2739         Patches by Martin Schwidefsky <schwidefsky@de.ibm.com>.
2740
2741 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2742
2743         Remove incompatible IPv6 extension of RPC.
2744         * sunrpc/Makefile: Undo changes.
2745         * sunrpc/rpc_main.c: Likewise.
2746         * sunrpc/rpc/clnt.h: Likewise.
2747         * sunrpc/rpc/svc.h: Likewise.
2748         * sunrpc/bindrsvprt6.c: Removed.
2749         * sunrpc/clnt_tcp6.c: Removed.
2750         * sunrpc/clnt_udp6.c: Removed.
2751         * sunrpc/svc_tcp6.c: Removed.
2752         * sunrpc/svc_udp6.c: Removed.
2753
2754         * intl/libintl.h: Don't use __attribute_format_arg__ for gettext,
2755         dgettext, and dcgettetxt.
2756
2757         * intl/locale.alias: Update japanese aliases.
2758
2759         * sysdeps/ia64/bits/byteswap.h: New file.
2760         Patch by Dan Pop <Dan.Pop@cern.ch>.
2761
2762         * misc/sys/cdefs.h: Define __attribute_format_arg__.
2763         * intl/libintl.h: Use it here instead of using __attribute__ directly.
2764
2765 2000-07-13  H.J. Lu  <hjl@gnu.org>
2766
2767         * posix/regex.c (re_max_failures): Set to 4000.
2768
2769 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2770
2771         * gnulib/Makefile (tests): Add tst-gcc.
2772         * gnulib/tst-gcc.c: New file.
2773
2774         * assert/Makefile (routines): Add __assert.
2775         * assert/Versions: Export __assert for glibc 2.2.
2776         * assert/__assert.c: New file.
2777         * assert/assert.h: Declare __assert.
2778
2779 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
2780
2781         * locale/localeinfo.h (_ISCTYPE): New macro.
2782         * posix/fnmatch_loop.c (internal_fnmatch): Use it, support new
2783         LC_CTYPE locale format.
2784         * locale/programs/ld-ctype.c (locale_ctype_t): New field class_b.
2785         (ctype_output): Output class_b[nr] right before class_3level[nr].
2786         (allocate_arrays): Fill class_b, similarly to class_3level.
2787
2788 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2789             Joseph S. Myers  <jsm28@cam.ac.uk>
2790
2791         * math/tgmath.h: Make standard compliant.  Don't ask how.
2792
2793 2000-07-04  H.J. Lu  <hjl@gnu.org>
2794
2795         * elf/Makefile ($(inst_slibdir)/$(rtld-version-installed-name)):
2796         Use $(do-install-program) instead of "$(INSTALL_PROGRAM) $< $@.new".
2797         ($(inst_slibdir)/$(rtld-installed-name)): Use $(make-shlib-link) only.
2798
2799 2000-07-30  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2800
2801         * include/features.h (_XOPEN_SOURCE): Update the explanation.
2802         (__USE_LARGEFILE): Add an explanation.
2803         (_POSIX_C_SOURCE): Define to 2 only if _XOPEN_SOURCE < 500.
2804         (__USE_XOPEN2K): Define whenever _XOPEN_SOURCE >= 600.
2805
2806 2000-08-01  Ulrich Drepper  <drepper@redhat.com>
2807
2808         * libio/Makefile: Enable exception handling for genops, wgenops,
2809         fileops, and wfileops.
2810
2811 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
2812
2813         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Take into
2814         acount that elf/rtld's main program might remove some varibales
2815         from the environment if we're trying to be secure.  Move the Hurd
2816         startup data if necessary, or, if we there is no startup data,
2817         make sure the magical convention that ARGV[0] is stored just after
2818         the environment list.
2819
2820 2000-08-01  Philip Blundell  <philb@gnu.org>
2821
2822         * sysdeps/unix/sysv/linux/arm/Makefile [subdir=resource]
2823         (sysdep_routines): Add oldgetrlimit, oldsetrlimit.
2824         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add oldgetrlimit,
2825         oldsetrlimit for GLIBC_2.0.
2826
2827 2000-08-01  Andreas Jaeger  <aj@suse.de>
2828
2829         * nss/nss_files/files-ethers.c: Use case-insensitive lookup.
2830         (LINE_PARSER): Allow any number of spaces between ip address and
2831         number.  Fixes PR libc/1833, reported by rp010gf@voruta.vu.lt.
2832
2833         * conform/data/netdb.h-data: Remove getipnodebyaddr and friends.
2834
2835         * include/netdb.h: Remove getipnodebyaddr and friends, leave
2836         constants in.
2837
2838         * nis/Versions: Remove _nss_nis_getipnodebyname_r and
2839         _nss_nisplus_getipnodebyname_r.
2840
2841         * nis/nss_nis/nis-hosts.c (_nss_nis_getipnodebyname_r): #if 0 for
2842         now, getipnodebyname is deprecated.
2843         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
2844         Likewise.
2845
2846         * inet/Makefile (routines): Don't build getipnodebyaddr and
2847         friends.
2848
2849         * intl/Makefile (distribute): Add tst-translit.sh and translit.po.
2850
2851         * hesiod/Makefile (distribute): Add nss_hesiod/nss_hesiod.h.
2852
2853         * elf/Makefile (distribute): Add filtmod1.c and filtmod2.c.
2854
2855         * wctype/Makefile (distribute): Add wchar-lookup.h.
2856
2857         * sysdeps/generic/Dist: Add bp-checks.h and bp-semctl.h.
2858
2859         * iconvdata/Makefile (distribute): Add isiri-3342.h.
2860
2861 2000-08-01  Andreas Schwab  <schwab@suse.de>
2862
2863         * Make-dist (dist): Resolve `..' in file names.
2864
2865 2000-08-01  Andreas Jaeger  <aj@suse.de>
2866
2867         * stdio-common/Makefile (distribute): Remove removed files, add
2868         new files.
2869
2870         * Makefile (distribute): Remove include/db_185.h and db.h.
2871
2872         * include/db_185.h: Remove, it's not needed anymore.
2873         * include/db.h: Likewise.
2874
2875 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2876
2877         * inet/Makefile (tests): Remove tst-ipnode.
2878         * include/netdb.h: Add stuff removed from resolv/netdb.h here for
2879         now.
2880
2881 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2882
2883         * sysdeps/ia64/elf/initfini.c: Kill dummy section since align and
2884         endp statements have already been added.
2885
2886 2000-04-18  David Mosberger  <davidm@hpl.hp.com>
2887
2888         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Include
2889         <sysdeps/ia64/sysdep.h>.
2890
2891         * sysdeps/ia64/_mcount.S: New file.
2892
2893         * sysdeps/ia64/elf/initfini.c (_init): Preserve gp around call to
2894         __gmon_start__.  Fix up extraneous whitespace.
2895
2896 2000-01-12  H.J. Lu  <hjl@gnu.org>
2897
2898         * sysdeps/ia64/elf/initfini.c: New file.
2899
2900 2000-07-31  Jes Sorensen  <jes@linuxcare.com>
2901
2902         * sysdeps/unix/sysv/linux/ia64/clone.S: Add stop bit to avoid WAW
2903         dependency between branch and ar.pfs write.
2904
2905 2000-07-31  H.J. Lu  <hjl@gnu.org>
2906
2907         * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
2908         handle the wchar_t array.
2909
2910 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2911
2912         * iconvdata/gb18030.c: Don't map to and from positions in ISO
2913         10646 which are not yet assigned.
2914         Patch by wang shouhua <shouhuawang@redflag-linux.com>.
2915
2916 2000-07-31  Andreas Jaeger  <aj@suse.de>
2917
2918         * inet/Versions: Remove getipnodebyaddr and friends from
2919         GLIBC_2.2.
2920
2921         * resolv/netdb.h: Remove getipnodebyaddr and friends.
2922
2923 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2924
2925         * iconvdata/sjis.c (BODY for FROM_LOOP): Treat the case
2926         ch >= 0x81 && ch2 < 0x40 as invalid.
2927
2928 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2929
2930         * iconvdata/uhc.c (BODY for FROM_LOOP): Reject ch2 == 0xff as invalid.
2931         (BODY for TO_LOOP): Accept 0x7f. Increment outptr as needed.
2932
2933 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2934
2935         * iconvdata/johab.c (BODY for TO_LOOP): After calling
2936         ucs4_to_ksc5601_sym, fix the conversion to JOHAB.
2937
2938 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2939
2940         * iconvdata/t.61.c (to_ucs4): Change values of 0xa4, 0a6, 0xa8, 0xb4,
2941         0xb8.
2942         (from_ucs4): Change values of U+00A4, U+00BB, U+00ED.
2943
2944 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2945
2946         * iconvdata/macintosh.c (HAS_HOLES): Set to 1.
2947
2948 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2949
2950         * iconvdata/iso_6937.c (to_ucs4): Change values of 0x24 and 0xb4.
2951         (from_ucs4): Change values of U+00A4 and U+00ED.
2952         (BODY of TO_LOOP): Remove mapping from U+02DC to 0x0020.
2953
2954 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2955
2956         * iconvdata/ansi_x3.110.c (from_ucs4): Change entry for 0xed.
2957         (BODY for TO_LOOP): Map U+2122, U+2126, not U+2022, U+2026.
2958
2959 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2960
2961         * iconvdata/Makefile (gen-8bit-gap-modules): Remove isiri-3342.
2962         * iconvdata/isiri-3342.h: New file.
2963         * iconvdata/isiri-3342.c (HAS_HOLES): Avoid gaps >= 0xe0, but don't
2964         treat 0x80 as a gap.
2965
2966 2000-07-30  Bruno Haible  <haible@clisp.cons.org>
2967
2968         * string/strxfrm.c (encoding_mask, encoding_byte): Remove.
2969         (utf8_encode): Use simple shifts instead.  Fix return value.
2970
2971 2000-07-31  Ulrich Drepper  <drepper@redhat.com>
2972
2973         * timezone/private.h: Update from tzcode2000e.
2974         * timezone/asia: Update from tzdata2000e.
2975         * timezone/australasia: Likewise.
2976         * timezone/europe: Likewise.
2977         * timezone/northamerica: Likewise.
2978         * timezone/zone-tab: Likewise.
2979
2980 2000-07-30  Ralf Baechle  <ralf@gnu.org>
2981
2982         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h:  New file.  On MIPS
2983         the order of struct sigaltstack members is different.
2984
2985 2000-07-26  Philip Blundell  <philb@gnu.org>
2986
2987         * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: New file.
2988
2989 2000-07-29  Ulrich Drepper  <drepper@redhat.com>
2990
2991         * locale/langinfo.h: Add entries for extra tables in CTYPE data.
2992         * locale/programs/ld-ctype.c: Adjust for this.
2993
2994         * locale/programs/ld-collate.c: Add more alignment checks.
2995         * locale/string/strcoll.c: Likewise.
2996
2997 2000-07-30  Mark Kettenis  <kettenis@gnu.org>
2998
2999         * stdio-common/vfprintf.c: Move inclusion of _i18n_number.h
3000         outside USE_IN_LIBIO block.
3001
3002 2000-07-26  Philip Blundell  <philb@gnu.org>
3003
3004         * sysdeps/arm/dl-machine.h (fix_bad_pc24): New function.
3005         (elf_machine_rel): Use it for out-of-range PC24 relocs.
3006
3007 2000-07-28  Philip Blundell  <philb@gnu.org>
3008
3009         * math/test-fpucw.c: Ignore reserved bits in control word.
3010
3011 2000-07-28  Philip Blundell  <philb@gnu.org>
3012
3013         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO_RET): New macro.
3014         (ret): Redefine to PSEUDO_RET.
3015         (PSEUDO): Remove jump to syscall_error.
3016
3017 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3018
3019         * resolv/README: Add some information about using the resolver in
3020         multi-threaded code and with C++.  Spelling fixes.
3021
3022 2000-07-29  Mark Kettenis  <kettenis@gnu.org>
3023
3024         * resolv/resolv.h (struct __sockaddr_in): Remove.
3025         (struct __res_state) [!_LIBC]: Remove reference to __sockaddr_in.
3026
3027 2000-07-29  Greg McGary  <greg@mcgary.org>
3028
3029         * Rules (test-bp-inputs, make-test-out): New variables.
3030         ($(objpfx)%-bp.out): New rule.
3031         ($(objpfx)%.out): Rewrite in terms of new variables.
3032
3033         * libio/iovswscanf.c (vswscanf): Pass _IO_FILE_plus pointer to
3034         internal function that uses vtable.
3035         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
3036         * libio/vswprintf.c (_IO_vswprintf): Likewise.
3037
3038         * malloc/malloc.c (mem2chunk): Define in terms of chunk_at_offset.
3039         (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
3040         (chunk_align): Likewise.
3041
3042         * time/asctime.c (ab_day_name, ab_month_name): Rewrite expression
3043         in a way that conforms to decl, and avoids spurious bounds violation.
3044
3045         * sysdeps/arm/frame.h (struct layout): Make pointers __unbounded.
3046         * sysdeps/generic/frame.h: Likewise.
3047         * sysdeps/generic/backtrace.c (ADVANCE_STACK_FRAME): Wrap bounds
3048         around return value.
3049         (__backtrace): Qualify frame-pointer chain and return address
3050         pointers as __unbounded.  Wrap bounds around variable `current'.
3051         * sysdeps/generic/segfault.c (ADVANCE_STACK_FRAME): Wrap bounds
3052         around return value.
3053         (catch_segfault): Qualify frame-pointer chain and return address
3054         pointers as __unbounded.  Wrap bounds around variable `current'.
3055         * sysdeps/i386/backtrace.c (struct layout): Make pointers __unbounded.
3056         (ADVANCE_STACK_FRAME): Wrap bounds around return value.
3057         * sysdeps/powerpc/backtrace.c (struct layout): Make pointers
3058         __unbounded.
3059         (__backtrace): Qualify frame-pointer chain and return address
3060         pointers as __unbounded.  Wrap bounds around variable `current'.
3061
3062         * sysdeps/i386/addmul_1.S: s2_limb is scalar so remove bounds check.
3063         * sysdeps/i386/mul_1.S: Likewise.
3064         * sysdeps/i386/submul_1.S: Likewise.
3065         * sysdeps/i386/i586/addmul_1.S: Likewise.
3066         * sysdeps/i386/i586/mul_1.S: Add bounds checks.
3067         * sysdeps/i386/i586/submul_1.S: Likewise.
3068
3069 2000-07-27  Andreas Jaeger  <aj@suse.de>
3070
3071         * libio/Depend: New file, libio needs localedata for tests.
3072         * posix/Depend: Likewise.
3073
3074 2000-07-28  Ulrich Drepper  <drepper@redhat.com>
3075
3076         * stdio-common/_i18n_itoa.c: Removed.
3077         * stdio-common/_i18n_itoa.h: Removed.
3078         * stdio-common/_i18n_itowa.c: Removed.
3079         * stdio-common/_i18n_itowa.h: Removed.
3080         * stdio-common/_i18n_number.h: New file.
3081         * stdio-common/Depend: New file.
3082         * stdio-common/printf-parse.h: Handle I modifier correctly.  Optimize.
3083         * stdio-common/vfprintf.c: Rewrite buffer handling for integer
3084         printing.  Change printing of numbers with locale specific digits to
3085         use new code in _i18n_number.h.
3086         * stdio-common/Makefile (routines): Remove _i18n_itoa and
3087         _i18n_itowa.
3088
3089         * stdio-common/bug13.c: Improve messages.
3090
3091         * locale/programs/ld-ctype.c (ctype_read): Improve error message.
3092         (set_class_defaults): Always search also for Uxxxx names.
3093         Detect insufficient number of outdigits.
3094
3095         * locale/Makefile (C-translit.h): Use mv not $(move-if-changed).
3096
3097 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3098
3099         * locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
3100         _NL_CTYPE_MAP_NAMES.
3101         * locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
3102         * wctype/wcfuncs.c (towlower, towupper): Use them.
3103         * wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
3104         * wctype/wctrans.c (wctrans): Likewise.
3105         * wctype/wctrans_l.c (__wctrans_l): Likewise.
3106
3107 2000-07-27  Bruno Haible  <haible@clisp.cons.org>
3108
3109         * posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
3110         Use the optimized version of this function outside glibc as well.
3111
3112 2000-07-27  Jakub Jelinek  <jakub@redhat.com>
3113
3114         * locale/indigits.h (indigit_value): Correct.
3115         * locale/indigitswc.h (indigitwc_value): Correct.
3116         * stdio-common/vfscanf.c (__vfscanf): Fix I18N number
3117         conversion, add GROUP checking for it, fix GROUP number
3118         conversion with strlen(thousands) > 1.
3119         Honour width correctly in the presence of floating
3120         decimal points and thousands separators.
3121         * stdio-common/tst-sscanf.c: New test.
3122         * stdio-common/Makefile: Add it to tests.
3123         * sysdeps/generic/strtol.c (strtol): Fix conversion if there are
3124         thousands separators and group argument is non-zero.
3125
3126 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3127
3128         * locale/Versions: Enumerate __*_l functions individually. __wctrans_l
3129         starts at GLIBC_2.2.
3130
3131 2000-07-12  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3132
3133         * sysdeps/unix/sysv/linux/mips/Dist: Add sys/tas.h.
3134         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Add
3135         _test_and_set.
3136         (headers): Add sys/tas.h.
3137         * sysdeps/unix/sysv/linux/mips/Versions: Export _test_and_set for
3138         GLIBC_2.2 from libc.
3139         * sysdeps/unix/sysv/linux/mips/_test_and_set.c: New file.
3140         * sysdeps/unix/sysv/linux/mips/sys/tas.h: New file for
3141         _test_and_set.
3142
3143 2000-07-28  Andreas Jaeger  <aj@suse.de>
3144
3145         * sysdeps/gnu/netinet/tcp.h: Add TCP options from Linux 2.4.
3146
3147         * dlfcn/Makefile ($(objpfx)tst-dladdr): New.
3148         ($(objpfx)tst-dladdr.out): new.
3149         (tests): Add tst-dladdr.
3150         ($(objpfx)glrefmain): Use libdl.
3151
3152         * dlfcn/tst-dladdr.c: New file.  Based on a test by Volkmar Sieh
3153         <vs@caldera.de>.
3154
3155 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3156
3157         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add truncate(64) and
3158         ftruncate(64) calls.
3159
3160 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3161
3162         * intl/tst-translit.c: Include string.h to get prototype for
3163         strcmp().
3164
3165 2000-07-27  Jes Sorensen  <jes@linuxcare.com>
3166
3167         * sysdeps/unix/sysv/linux/ia64/fork.c: Make __libc_fork the strong
3168         name and add weak alias for __fork.
3169
3170         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change llseek, pread
3171         & pwrite to use __libc_<name> as strong names instead of
3172         __syscall_<name>.
3173
3174         * include/sched.h: Add clone2 prototype.
3175
3176 2000-07-26  Jes Sorensen  <jes@linuxcare.com>
3177
3178         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ENTRY): Don't declare the
3179         procedure name twice.
3180
3181 2000-07-27  Philip Blundell  <philb@gnu.org>
3182
3183         * malloc/malloc.c (HAVE_MREMAP): Undo change of 1997-12-04.
3184
3185 2000-07-27  Andreas Jaeger  <aj@suse.de>
3186
3187         * sysdeps/unix/sysv/linux/bits/socket.h: Rename MSG_URG TO
3188         MSG_CONFIRM following kernel 2.4.0 (MSG_URG was never used).
3189         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
3190         Reported by Andi Kleen <ak@suse.de>.
3191
3192         * rt/tst-aio64.c: Add tests for aio_fsync64 and aio_cancel64.
3193         (do_wait): Test requests with aio_return64.
3194         (do_test): Change callers of do_wait.
3195
3196 2000-07-26  Andreas Jaeger  <aj@suse.de>
3197
3198         * rt/tst-aio.c: Add tests for aio_fsync and aio_cancel.
3199         (do_wait): Test requests with aio_return.
3200         (do_test): Change callers of do_wait.
3201
3202 2000-07-27  Ulrich Drepper  <drepper@redhat.com>
3203
3204         * rt/aio_misc.c (__aio_remove_request): New function.  Handle removing
3205         from request list.  Don't do the list handling here, call
3206         __aio_remove_request.
3207         * rt/aio_misc.h: Add prototype for __aio_remove_request.
3208         * rt/aio_cancel.c: Don't assume __aio_find_req_fd succeeds since the
3209         request might already be processed.  Don't do the list handling
3210         here, call __aio_remove_request.
3211
3212         * rt/aio_misc.c: Don't depend on aio_reqprio field for LIO_SYNC and
3213         LIO_DSYNC.
3214
3215         * rt/aio_misc.c: Add comment explaining why writer memory barriers
3216         are missing.
3217
3218 2000-07-27  Greg McGary  <greg@mcgary.org>
3219
3220         * sysdeps/generic/bp-checks.h (BOUNDED_N): Make it work for void*.
3221         * sysdeps/generic/bp-semctl.h (check_semctl): Fix syntax error
3222         in union init.  Pass zero for ignored semnum arg to semctl.
3223         * sysdeps/unix/sysv/linux/shmat.c (shmat): Fix typo.
3224
3225 2000-07-26  Greg McGary  <greg@mcgary.org>
3226
3227         * sysdeps/gnu/bits/msq.h: Qualify kernel's
3228         data structure pointers as __unbounded.
3229         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
3230         * sysdeps/generic/bp-semctl.h: New file.
3231         * sysdeps/unix/sysv/linux/msgctl.c: Qualify kernel's data structure
3232         pointers as __unbounded.  Check bounds of syscall args.
3233         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
3234         * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
3235         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3236         * sysdeps/unix/sysv/linux/semop.c: Likewise.
3237         * sysdeps/unix/sysv/linux/shmat.c: Likewise.
3238         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3239         * sysdeps/unix/sysv/linux/shmdt.c: Likewise.
3240         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
3241         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
3242         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
3243         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
3244         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
3245         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
3246         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Likewise.
3247         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
3248         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Likewise.
3249
3250 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3251
3252         * libio/iofwide.c: Enable transliteration for conversion from wchar_t
3253         by default.
3254         * locale/C-ctype.c: Likewise.
3255         * wcsmbs/wcsmbsload.c: Likewise.
3256
3257 2000-07-26  Greg McGary  <greg@mcgary.org>
3258
3259         * Makeconfig (+link-bounded, link-libc-bounded,
3260         link-extra-libs-bounded): New variables.
3261         (built-program-cmd): Omit $(run-program-prefix) for static BP tests.
3262         * Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
3263         * Rules (tests-bp.out): New variable.
3264         (tests): Conditionally add BP tests.
3265         (binaries-bounded): Add variable and associated rule.
3266         * csu/Makefile [build-bounded] (extra-objs, install-lib):
3267         Move conditional stuff after place where condition is defined.
3268
3269         * malloc/malloc.c (bp-checks.h): Add #include.
3270         (mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
3271         (_bin_at): Add unbounded version of bin_at.
3272         (IAV, chunk_alloc): Use unbounded _bin_at.
3273         (mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
3274         chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
3275         Wrap BOUNDED_N around return value.
3276         (chunk_realloc): Adjust oldsize once.
3277
3278         * sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
3279         (__ubp_memchr): Add correct decl.
3280         (_CHECK_STRING): Use __ubp_memchr.
3281         * sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
3282         New alias for unbounded-pointer __memchr.
3283         * sysdeps/i386/memchr.S: Likewise.
3284         * sysdeps/ia64/memchr.S: Likewise.
3285         * sysdeps/m68k/memchr.S: Likewise.
3286         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3287         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3288         * sysdeps/vax/memchr.s: Likewise.
3289
3290         * sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
3291         (SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
3292         (strtok): Don't bother to write into SAVE_PTR when returning NULL.
3293         * sysdeps/i386/i686/strtok.S: Likewise.
3294         * sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
3295         RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.
3296
3297         * sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
3298         * sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.
3299
3300         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
3301         bounds of copy_result to mount_proc.
3302
3303 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3304
3305         * wctype/wctype.h (__wctrans_l): New declaration.
3306         * wctype/wctrans_l.c: New file.
3307         * wctype/Makefile (routines): Add wctrans_l.
3308
3309 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3310
3311         * posix/fnmatch_loop.c: Fixes for use outside glibc.
3312         Patch by MacGyver <macgyver@tos.net>.
3313
3314 2000-07-26  Andreas Jaeger  <aj@suse.de>
3315
3316         * rt/tst-aio4.c: New file, slightly modified version of tst-aio2.
3317         * rt/tst-aio5.c: New file, slightly modified version of tst-aio2.
3318         * rt/Makefile: Add rules to build and run tst-aio4 and tst-aio5.
3319
3320         * rt/tst-aio.c (test_file): Fix typo.
3321         * rt/tst-aio64.c (test_file): Likewise.
3322
3323         * rt/tst-aio3.c: New file, slightly modified version of tst-aio2.
3324         * rt/Makefile: Add rules to build and run tst-aio3.
3325
3326         * sysdeps/unix/sysv/linux/netinet/ip.h: Removed ip_options since
3327         it's not needed and confuses only.
3328
3329 2000-07-26  Ulrich Drepper  <drepper@redhat.com>
3330
3331         * resolv/res_init.c: Add support for nameserver communication with
3332         IPv6.
3333         * resolv/res_send.c: Likewise.
3334         * resolv/resolv.h (struct __res_state): Store IPv6 address, not IPv4
3335         in nsaddrs field.
3336         Patch by <venaas@nvg.ntnu.no>.
3337
3338 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3339
3340         * locale/programs/ld-ctype.c (wctype_table_get): New function.
3341         (wcwidth_table_get): New function.
3342         (wcwidth_table_add): Call it.
3343         (wctrans_table_get): New function.
3344         (wctrans_table_add): Call it.
3345
3346 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3347
3348         * rt/lio_listio.c (lio_listio): Always disable individual
3349         notification.
3350         * rt/Makefile: Add rules to build and run tst-aio2.
3351         * rt/tst-aio2.c: New file.
3352
3353         * rt/lio_listio.c (lio_listio): Handle case of SIG == NULL correctly.
3354         Reported by Kevin Beard <beardk@gatwick.Geco-Prakla.slb.com>.
3355
3356 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3357
3358         * nss/nss_files/files-netgrp.c (strip_whitespace): New function.
3359         (_nss_netgroup_parseline): Use strip_whitespace to strip off any
3360         leading and trailing spaces from host, user and domain name.
3361
3362 2000-07-25  Jes Sorensen  <jes@linuxcare.com>
3363
3364         * csu/defs.awk: Add support for need_endp.
3365
3366 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3367
3368         * resolv/resolv.h: Remove __P from res_send_qhook and
3369         res_send_rhook typedefs.
3370
3371 2000-07-25  Bruno Haible  <haible@clisp.cons.org>
3372
3373         * intl/tst-translit.c (main): Unset OUTPUT_CHARSET.
3374
3375 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3376
3377         * iconv/gconv_builtin.h: Add WCHAR_T alias.
3378
3379 2000-07-25  Mark Kettenis  <kettenis@gnu.org>
3380
3381         * hurd/thread-cancel.c (hurd_thread_cancel): When cancelling the
3382         calling thread, set the cancellation flag and return success
3383         instead of EINTR.
3384
3385 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3386
3387         * libio/Makefile: Add rules build, run, and distribute tst-widetext.c.
3388         * libio/tst-widetext.c: New file.
3389         * libio/tst-widetext.input: New file.
3390
3391         * libio/iogetwline.c (_IO_getwline_info): Pretty print.
3392
3393         * libio/wfileops.c (_IO_wfile_underflow): Handle not entirely
3394         empty external buffer correctly.
3395
3396 2000-07-25  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3397
3398         * sysdeps/mips/dl-machine.h (_RTLD_PROLOGUE): Stringify using
3399         __STRING(entry) and not #entry.
3400         (_RTLD_EPILOGUE): Likewise.
3401         * sysdeps/mips/mips64/dl-machine.h: Likewise.
3402
3403 2000-07-25  Andreas Jaeger  <aj@suse.de>
3404
3405         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Change parameter
3406         according to changes in test program, run also with static only
3407         builds.
3408         ($(objpfx)tst-printf.out): Likewise.
3409
3410         * stdio-common/tst-unbputc.sh: Likewise.
3411         * stdio-common/tst-printf.sh: Likewise.
3412
3413 2000-07-25  Ulrich Drepper  <drepper@redhat.com>
3414
3415         * libio/wfileops.c (_IO_wdo_write): Correct return value.
3416
3417         * libio/wfileops.c (_IO_wdo_write): Allow partial conversions in the
3418         loop.
3419
3420         * libio/fileops.c: Pretty print.
3421
3422 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
3423
3424         * wctype/wchar-lookup.h: New file.
3425         * wctype/iswctype.c: Include "wchar-lookup.h".
3426         (__iswctype): Support alternate locale format with 3-level tables.
3427         * wctype/iswctype_l.c (__iswctype_l): Likewise.
3428         * wctype/towctrans.c (__towctrans): Likewise.
3429         * wctype/towctrans_l.c (__towctrans_l): Likewise.
3430         * wctype/wcfuncs.c: Include "wchar-lookup.h".
3431         (__ctype32_wctype, __ctype32_wctrans): Declare external.
3432         (__iswalnum, __iswalpha, __iswcntrl, __iswdigit, __iswlower,
3433         __iswgraph, __iswprint, __iswpunct, __iswspace, __iswupper,
3434         __iswxdigit, towlower, towupper): Support alternate locale format
3435         with 3-level tables.
3436         * wctype/wcextra.c (iswblank): Likewise.
3437         * wctype/wcfuncs_l.c: Include "wchar-lookup.h".
3438         (__iswalnum_l, __iswalpha_l, __iswcntrl_l, __iswdigit_l, __iswlower_l,
3439         __iswgraph_l, __iswprint_l, __iswpunct_l, __iswspace_l, __iswupper_l,
3440         __iswxdigit_l, __towlower_l, __towupper_l): Support alternate locale
3441         format with 3-level tables.
3442         * wctype/wcextra_l.c (__iswblank_l): Likewise.
3443         * wctype/wctype.c (__wctype): Likewise.  In the alternate locale
3444         format, return a 3-level table pointer.
3445         * wctype/wctype_l.c (__wctype_l): Likewise.
3446         * wctype/wctrans.c (wctrans): Likewise.
3447         * wctype/wctype.h (__ISwupper, __ISwlower, __ISwalpha, __ISwdigit,
3448         __ISwxdigit, __ISwspace, __ISwprint, __ISwgraph, __ISwblank,
3449         __ISwcntrl, __ISwpunct, __ISwalnum): New enum values.
3450         (iswctype): Remove macro definition.
3451         * wcsmbs/wcwidth.h: Include "wchar-lookup.h".
3452         (internal_wcwidth): Support alternate locale format with 3-level
3453         tables.
3454         * locale/langinfo.h (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3455         New nl_items.
3456         * locale/categories.def (_NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET):
3457         Define them as being type "word".
3458         * locale/C-ctype.c (_nl_C_LC_CTYPE): Add initializers for them.
3459         * ctype/ctype-info.c (__ctype32_wctype, __ctype32_wctrans,
3460         __ctype32_width): New exported variables.
3461         * locale/lc-ctype.c (_nl_postload_ctype): Initialize them in the
3462         alternate locale format. Don't initialize __ctype_names and
3463         __ctype_width in the alternate locale format.
3464         * locale/programs/localedef.h (oldstyle_tables): New declaration.
3465         * locale/programs/localedef.c (oldstyle_tables): New variable.
3466         (OPT_OLDSTYLE): New macro.
3467         (options): Add --old-style option.
3468         (parse_opt): Handle --old-style option.
3469         * locale/programs/ld-ctype.c (locale_ctype_t): Add class_offset,
3470         map_offset, class_3level, map_3level, width_3level members.
3471         (ctype_output): Support for alternate locale format: Computation of
3472         nelems changes. _NL_CTYPE_TOUPPER32, _NL_CTYPE_TOLOWER32 and
3473         _NL_CTYPE_CLASS32 only 256 characters. _NL_CTYPE_NAMES empty.
3474         New fields _NL_CTYPE_CLASS_OFFSET, _NL_CTYPE_MAP_OFFSET. Field
3475         _NL_CTYPE_WIDTH now contains the three-level table. Extra elems
3476         now contain both class and map tables.
3477         (struct wctype_table): New type.
3478         (wctype_table_init, wctype_table_add, wctype_table_finalize): New
3479         functions.
3480         (struct wcwidth_table): New type.
3481         (wcwidth_table_init, wcwidth_table_add, wcwidth_table_finalize): New
3482         functions.
3483         (struct wctrans_table): New type.
3484         (wctrans_table_init, wctrans_table_add, wctrans_table_finalize): New
3485         functions.
3486         (allocate_arrays): Support for alternate locale format: Set
3487         plane_size and plane_cnt to 0. Restrict ctype->ctype32_b to the first
3488         256 characters. Compute ctype->class_3level. Restrict ctype->map32[idx]
3489         to the first 256 characters. Compute ctype->map_3level. Set
3490         ctype->class_offset and ctype->map_offset. Compute ctype->width_3level
3491         instead of ctype->width.
3492
3493 2000-07-24  Ulrich Drepper  <drepper@redhat.com>
3494
3495         * libio/iogetwline.c (_IO_getwline_info): Use wide character
3496         string functions.
3497
3498 2000-07-24  Jakub Jelinek  <jakub@redhat.com>
3499
3500         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Measure size
3501         in wide characters, not bytes.
3502         * libio/tst_putwc.c (do_test): Add test for writing lots of data
3503         into file.
3504
3505 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3506
3507         * locale/nl_langinfo.c (nl_langinfo): Accept items belonging to the
3508         new categories LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE,
3509         LC_MEASUREMENT, LC_IDENTIFICATION.
3510
3511         * locale/xlocale.h (struct __locale_struct): Increase size of
3512         __locales array.
3513         * locale/duplocale.c (__duplocale): Copy newly added categories as
3514         well.
3515         * locale/freelocale.c (__freelocale): Free newly added categories.
3516         * locale/newlocale.c (__newlocale): Fix typo in sanity check.
3517         If a base is given, use it, don't simply return it.
3518
3519 2000-07-22  Bruno Haible  <haible@clisp.cons.org>
3520
3521         * crypt/md5-crypt.c (__md5_crypt_r): Avoid gcc warnings: Use pointer
3522         variables, copied_key and copied_salt, instead of boolean variables.
3523
3524 2000-07-24  Andreas Jaeger  <aj@suse.de>
3525
3526         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Really fix
3527         check for offset.
3528
3529         * grp/initgroups.c (initgroups_dyn_function): Renamed from
3530         initgroups_function, adopted prototype for change from 2000-07-23.
3531         (initgroups): Follow type change.
3532
3533         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64): Fix offset
3534         & PAGE_MASK case, reformat.
3535
3536         * string/Makefile ($(objpfx)tst-svc.out): Fix rule to read input
3537         from stdin and setup environment.
3538
3539 2000-07-24  Andreas Schwab  <schwab@suse.de>
3540
3541         * sysdeps/unix/sysv/linux/m68k/mmap.S: Remove mmap64 alias.
3542
3543 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3544
3545         * string/endian.h: Explain the _*_ENDIAN constant values a bit
3546         more.  Patch by scarlet@mit.edu [PR libc/1799].
3547
3548         * io/ftwtest-sh: Add -f parameter to chmod if -R is also given.
3549         [PR libc/1792].
3550
3551         * argp/argp-parse.c (parser_finalize): Reverse order in which
3552         parsers are run for ARGP_KEY_END.  [PR libc/1755].
3553
3554         * grp/initgroups.c (initgroups): Don't limit the possible number
3555         of groups to NGROUPS_MAX.  Allow dynamic resizing.  Loop around
3556         the setgroups call while the call fails and descrease the number
3557         of groups each round.
3558         The name of the initgroups function in the NSS modules changed.
3559         (compat_call): Adapt for dynamic resizing.
3560         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
3561         Implement dynamic resizing.
3562         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
3563         Likewise.
3564         * nis/nss_nis/compat-initgroups.c (_nss_nis_initgroups_dyn): Likewise.
3565         * hesiod/Versions: Change exported interface name.
3566         * nis/Versions: Change exported interface name.
3567
3568 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3569
3570         * locale/iso-639.def: Some errors corrected.
3571         Patch by Keld Simonsen.
3572
3573         * include/limits.h: Update non-gcc portion.
3574         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
3575
3576 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3577
3578         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When shrinking the
3579         program's data space, reallocate only the space that was just
3580         deallocated to release its backing space.
3581
3582 2000-07-23  Ulrich Drepper  <drepper@redhat.com>
3583
3584         * stdio-common/vfprintf.c (process_string_arg): For wide character
3585         version, handle precision also correctly.
3586
3587         * nss/nss_files/files-hosts.c: Correct problem with three or more
3588         entries with the same name.
3589
3590         * nss/nss_files/files-hosts.c: Implement multi handling.
3591         * resolv/Versions: Export _res_hconf for GLIBC_2.2 from libc.
3592
3593 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3594
3595         * nss/nss_files/files-parse.c: Don't pollute namespace by using
3596         strcasecmp.
3597
3598         * grp/Makefile: Change Makefiles and tests to run only when necessary.
3599         * malloc/Makefile: Likewise.
3600         * malloc/tst-mtrace.sh: Likewise.
3601         * posix/Makefile: Likewise.
3602         * posix/globtest.sh: Likewise.
3603         * posix/wordexp-tst.sh: Likewise.
3604         * string/Makefile: Likewise.
3605
3606 2000-07-22  Mark Kettenis  <kettenis@gnu.org>
3607
3608         * locale/findlocale.c (locale_file_list): Use __LC_LAST as array
3609         size instead of LC_ALL to take into account the new locale
3610         categories.
3611
3612 2000-07-22  Ulrich Drepper  <drepper@redhat.com>
3613
3614         * iconv/gconv_trans.c: Correct a few bugs in the search loop.  Remove
3615         remainders of hash table.
3616         * locale/categories.def: Remove remainders of transliteration
3617         hash table.
3618         * locale/langinfo.h: Likewise.
3619         * locale/programs/ld-ctype.c: Likewise.  Fix code to write out
3620         transliteration tables.
3621
3622         * locale/gen-translit.pl: New file.
3623         * locale/C-translit.h.in: New file.
3624         * locale/C-ctype.c: Include C-translit.h.  Initialize transliteration
3625         data pointers with data from this file.
3626         * locale/Makefile (distribute): Add C-translit.h.in, C-translit.h,
3627         and gen-translit.pl.
3628         Add rule to generate C-translit.h.
3629         * intl/tst-translit.c (main): Update for now performed
3630         transliteration.
3631
3632         * stdio-common/vfscanf.c: Handle input -- with format %f correctly
3633         (it's no input error).
3634         * stdio-common/tstscanf.c: Add test case for format %f with input --.
3635         * stdio-common/scanf12.c: Correct expected result for first scanf.
3636
3637         * stdio-common/vfprintf.c (process_string_arg): Correct handling
3638         of multibyte character strings in %s format with precision.
3639
3640 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3641
3642         * locale/programs/ld-collate.c (collate_read): Allow collating
3643         symbols and elements be named in reorder-after instructions.
3644         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3645
3646         * locale/programs/ld-collate.c (handle_ellipsis): Test for
3647         duplication with generated name, not the name of the first
3648         character.
3649         Patch by Yong Li <yong.li@asu.edu>.
3650
3651         * sysdeps/powerpc/strchr.S: Correct bugs introduced in BP-ification.
3652         Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
3653
3654 2000-07-21  Wolfram Gloger  <wg@malloc.de>
3655
3656         * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
3657         allocations only if a non-main arena cannot be extended.
3658
3659 2000-07-21  Ulrich Drepper  <drepper@redhat.com>
3660
3661         * elf/dl-load.c (_dl_map_object): Take loader==NULL into account
3662         in DF_1_NODEFLIB handling.
3663
3664 2000-07-21  Andreas Jaeger  <aj@suse.de>
3665
3666         * elf/Makefile ($(test-modules)): Exclude filtmod1.so, it has its
3667         own rule.
3668
3669         * libio/fwide.c: Include <wchar.h> for prototype.
3670
3671 2000-07-21  Greg McGary  <greg@mcgary.org>
3672
3673         * malloc/malloc.c (next_chunk, prev_chunk, inuse_bit_at_offset,
3674         set_inuse_bit_at_offset, clear_inuse_bit_at_offset, set_foot):
3675         Define in terms of chunk_at_offset.
3676         (inuse, set_inuse, clear_inuse): Define in terms of next_chunk.
3677         (next_bin, prev_bin): offset by size of real array elements.
3678         (chunk_align): Make `m' a scalar, since that's how it's used.
3679
3680 2000-07-21  Greg McGary  <greg@mcgary.org>
3681
3682         * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
3683         UNCHECK_BOUNDS.
3684         * sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
3685         * sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
3686         Wrap bounds around argv & envp and each of their string members.
3687         * sysdeps/powerpc/elf/start.S: Designate BP symbols.
3688         * sysdeps/unix/sysv/linux/powerpc/brk.S: Wrap entry-point
3689         symbol in BP_SYM ().  Discard bounds of address arg.
3690         * sysdeps/unix/sysv/linux/powerpc/clone.S: Likewise.
3691         * sysdeps/unix/sysv/linux/powerpc/mmap64.c (__mmap64):
3692         Discard bounds on address arg, add bounds to return value.
3693
3694 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3695
3696         * elf/Makefile (tests): Add filter.  Add rules to generate filter.
3697         * elf/filter.c: New file.
3698         * elf/filtmod1.c: New file.
3699         * elf/filtmod2.c: New file.
3700
3701         * elf/rtld.c: Define _dl_bind_not variable.
3702         (process_envvars): Recognize LD_BIND_NOT and set _dl_bind_not.
3703         * elf/dl-support.c: Likewise.
3704         * sysdeps/generic/ldsodefs.h: Declare _dl_bind_not.
3705         * elf/dl-runtime.c (fixup): Don't remember looked up value if
3706         _dl_bind_not.
3707         (profile_fixup): Likewise.
3708
3709         * libio/Makefile (routines): Add fwide.
3710         * libio/iofwide.c (_IO_fwide): Remove locking.  This is done in
3711         fwide now.  Internal calls to _IO_fwide must do locking themselves
3712         or don't need locking.
3713         * libio/fwide.c: New file.
3714
3715         * elf/dl-load.c (_dl_map_object): Implement handling of DF_1_NODEFLIB.
3716
3717         * elf/Makefile: Add no modules for nodelete test.
3718         * elf/nodelmod3.c: New file.
3719         * elf/nodelmod4.c: New file.
3720         * elf/nodelete.c: Also test case where dependency of dlopen() object
3721         is marked nodelete.
3722
3723         * elf/Makefile (tests): Add nodlopen.  Add rules to generate nodlopen.
3724         * elf/nodlopen.c: New file.
3725         * elf/nodlopenmod.c: New file.
3726         * include/dlfcn.h: Define __RTLD_DLOPEN.
3727         * elf/dl-load.c (_dl_map_object_from_fd): If DF_1_NOOPEN is set
3728         and this is a dlopen() call, do not load the binary.
3729         * dlfcn/dlopen.c: Add __RTLD_DLOPEN to mode passed down to _dl_open.
3730         * dlfcn/dlopenold.c: Likewise.
3731         * configure.in: Add test for -z nodelete option.
3732         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3733
3734 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3735
3736         Make Hesiod NSS module thread-safe.
3737
3738         * hesiod/README.hesiod: Update.
3739
3740         * hesiod/Versions [GLIBC_2.2]: Add _nss_hesiod_getservbyport_r,
3741         _nss_hesiod_setprotoent, _nss_hesiod_endprotoent,
3742         _nss_hesiod_getprotobyname_r, and _nss_hesiod_getprotobynumber_r.
3743         * hesiod/Makefile (libnss_hesiod-routines): Add hesiod-init and
3744         hesiod-proto.
3745         * hesiod/nss_hesiod/hesiod-init.c: New file.
3746         * hesiod/nss_hesiod/hesiod-pwd.c: Rewritten for thread-safeness.
3747         * hesiod/nss_hesiod/hesiod-grp.c: Likewise.
3748         * hesiod/nss_hesiod/nss_hesiod.h: New file.
3749         * hesiod/nss_hesiod/hesiod-service.c
3750         (_nss_hesiod_getservbyport_r): New function.  Provide support for
3751         looking up services by port number.
3752         * hesiod/nss_hesiod/hesiod-proto.c: New file.
3753
3754         * hesiod/hesiod.c: Update from BIND 8.2.3-T5B.
3755         * hesiod/hesiod.h: Likewise.
3756         * hesiod/hesiod_p.h: Likewise.
3757
3758 2000-07-20  Mark Kettenis  <kettenis@gnu.org>
3759
3760         Fix problems with `struct __res_state' getting too big.
3761         * resolv/resolv.h (struct __sockaddr_in): New definition.
3762         (struct __res_state): Use __sockaddr_in instead of sockaddr_in in
3763         the private parts of the structure to save some space.
3764         * resolv/res_send.c (res_nsend): Cast &EXT(statp).nsaddrs[ns] to
3765         (struct sockaddr_in *) in call to sock_eq.
3766         Use memcpy to copy statp->nsaddr_list[ns] to &EXT(statp).nsaddrs[ns].
3767
3768 2000-07-20  Ulrich Drepper  <drepper@redhat.com>
3769
3770         * elf/elf.h: Add various DF_1_*, DTF_1_*, and DF_P1_* entries.
3771         * elf/dl-close.c (_dl_close): Don't close an object if it is marked
3772         with nodelete.
3773         * elf/dl-open.c (dl_open_worker): Pass RTLD_NOLOAD as new parameter
3774         to _dl_map_object.  Return immediately if no object loaded.
3775         Set DF_1_NODELETE bit in l_flags_1 if RTLD_NODELETE was passed.
3776         * elf/dynamic-link.h (elf_get_dynamic_info): Copy DT_FLAGS_1 entry
3777         if it exists into l_flags_1 word.
3778         * elf/dl-load.c (_dl_map_object_from_fd): Take no parameter and use
3779         it to determine whether loading is wanted or not.
3780         (_dl_map_object): Likewise.
3781         Call _dl_map_object_from_fd with new parameter.
3782         * sysdeps/generic/ldsodefs.h: Update prototype.
3783         * elf/dl-deps.c: Add new parameter to _dl_map_object calls.
3784         * elf/rtld.c: Likewise.
3785         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3786         * elf/Makefile (tests): Add noload.  Add rules to generate noload.
3787         * elf/noload.c: New file.
3788         * include/link.h (struct link_map): Add l_feature_1 and l_flags_1.
3789         * sysdeps/generic/bits/dlfcn.h: Define RTLD_NOLOAD and RTLD_NODELETE.
3790         * sysdeps/mips/bits/dlfcn.h: Likewise.
3791         * elf/Makefile (tests): Add $(tests-nodelete-$(have-z-nodelete)).
3792         (tests-nodelete-yes): Define.
3793         (modules-names): Add $(modules-nodelete-$(have-z-nodelete)).
3794         Add rules to build nodelete and modules.
3795         * elf/nodelete.c: New file.
3796         * elf/nodelmod1.c: New file.
3797         * elf/nodelmod2.c: New file.
3798         * configure.in: Add test for -z nodelete option.
3799         * config.make.in: Define have-z-nodelete with libc_cv_z_nodelete.
3800
3801         * libio/Makefile (tests): Add tst_wprintf2.
3802         (tst_wprintf2-ARGS): Define.
3803         * libio/tst_wprintf2.c: New file.
3804         Based on a test case by Yoshito Kawada <KAWADA@jp.ibm.com>.
3805
3806         * libio/wfiledoalloc.c: Only allocate external buffer if this
3807         hasn't happened yet.
3808
3809         * libio/wfileops.c (_IO_wdo_write): Overflow only if there is really
3810         something in the buffer.  gconv call can write up to end of the
3811         buffer, not only _IO_write_end.
3812         (_IO_wfile_overflow): Allocate also external buffer.
3813
3814 2000-07-19  Ulrich Drepper  <drepper@redhat.com>
3815
3816         * stdio-common/vfprintf.c (process_string_arg): Handle multibyte
3817         strings with precision in vfwprintf correctly.
3818         * stdio-common/vfprintf.c: Fix completely broken handling of
3819         unbuffered wide character streams.
3820         Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
3821
3822         * resolv/Makefile (distribute): Add README.
3823
3824         * resolv/README: New file.  By Mark Kettenis <kettenis@gnu.org>.
3825
3826 2000-07-18  Mark Kettenis  <kettenis@gnu.org>
3827
3828         Update resolver code to BIND 8.2.3-T5B.
3829
3830         * resolv/Versions [GLIBC_2.2] (libc): Add __res_init and
3831         __res_nclose.
3832         [GLIBC_2.2] (libresolv): Add __dn_expand, __ns_samename,
3833         __res_mkquery, __res_nsend, __res_query, __res_querydomain and
3834         __res_search.
3835         * resolv/Banner: BIND-8.2.3-T5B.
3836
3837         * resolv/base64.c: Update from BIND 8.2.3-T5B.
3838         * resolv/herror.c: Likewise.
3839         * resolv/inet_addr.c: Likewise.
3840         * resolv/inet_net_ntop.c: Likewise.
3841         * resolv/inet_net_pton.c: Likewise.
3842         * resolv/inet_neta.c: Likewise.
3843         * resolv/inet_ntop.c: Likewise.
3844         * resolv/nsap_addr.c: Likewise.
3845         * resolv/inet_pton.c: Likewise.  Reject a few more more invalid
3846         IPv6 addresses (ISC bug #520).
3847
3848         * resolv/ns_name.c: Avoid emitting RCS ID in object file.
3849         * resolv/ns_parse.c: Likewise.
3850         * resolv/ns_netint.c: Likewise.
3851         * resolv/ns_samedomain.c: Likewise.
3852         * resolv/ns_ttl.c: Likewise.
3853         * resolv/ns_print.c: Update from BIND 8.2.3-T5B.  Avoid emitting
3854         RCS ID in object file.
3855
3856         * resolv/res_debug.c: Update from BIND 8.2.3-T5B.
3857         * resolv/res_mkquery.c: Likewise.
3858         * resolv/res_query.c: Likewise.
3859         * resolv/res_init.c: Likewise.
3860         (res_setoptions): Mark internal.
3861         * resolv/res_send.c: Likewise.
3862         [_LIBC]: Fully reinstate the code that avoids the FD_SETSIZE limit
3863         by using poll instead.
3864         * resolv/res_comp.c: Likewise.
3865         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make dn_expand a
3866         weak alias for __dn_expand.
3867         * resolv/res_data.c: Likewise.
3868         (res_close) [_LIBC]: Don't call res_nclose if RES_INIT isn't set
3869         in _res.options.  Avoids a potential security risk by avoiding a
3870         close (0).
3871         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_2)]: Make
3872         res_mkquery, res_query, res_querydomain adn res_search weak
3873         aliases for __res_mkquery, __res_query, __res_querydomain and
3874         __res_search.
3875         * resolv/res_libc.c: (_res): Don't initialize.  Fix res_close
3876         instead to avoid close(0).
3877         (res_init): Always use the static resolver context.
3878         [SHLIB_COMPAT (libc, GLIBC_2.0, GLIBC_2_2)]: Make res_init a weak
3879         alias for __res_init.
3880
3881         * resolv/resolv.h: Update from BIND 8.2.3-T5B.  Move definition of
3882         RES_SET_H_ERRNO and accompanying comment to...
3883         * include/resolv.h: ... here.
3884
3885         * resolv/arpa/namser.h: Update from BIND 8.2.3-T5B.
3886         * resolv/arpa/nameser_compat.h: Likewise.
3887
3888 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3889
3890         * nss/makedb.c (main): Compare result of load_db with
3891         NSS_STATUS_SUCCESS and not 0.
3892         Patch by Jan Rekorajski <baggins@sith.mimuw.edu.pl>.
3893
3894         * sysdeps/unix/sysv/linux/Versions: Export __sysctl for GLIBC_2.2.
3895
3896 2000-07-18  Greg McGary  <greg@mcgary.org>
3897
3898         * posix/regex.c (EXTEND_BUFFER_HIGH_BOUND): New macro.
3899         (EXTEND_BUFFER): Use it.
3900
3901 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3902
3903         * include/libc-symbols.h: Define RETURN_ADDRESS macro.
3904         * dlfcn/dlopen.c: Use RETURN_ADDRESS instead of
3905         __builtin_return_address.
3906         * dlfcn/dlopenold.c: Likewise.
3907         * dlfcn/dlsym.c: Likewise.
3908         * dlfcn/dlvsym.c: Likewise.
3909         * elf/dl-profstub.c: Likewise.
3910         * malloc/malloc.c: Likewise.
3911         * sysdeps/generic/machine-gmon.h: Likewise.
3912         Based on a patch by schwidefsky@de.ibm.com.
3913
3914 2000-07-18  Andreas Jaeger  <aj@suse.de>
3915
3916         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Pass 0 instead of
3917         NULL to elf_machine_fixup_plt t argument to silence GCC.
3918
3919         * include/string.h: Add prototype for __memchr.
3920
3921         * sysdeps/alpha/memchr.S: Fix copy & error in weak_alias.
3922
3923         * sysdeps/generic/memchr.c: Fix copy & paste error: Use memchr
3924         instead of memrchr.
3925
3926 2000-07-18  Ulrich Drepper  <drepper@redhat.com>
3927
3928         * intl/Makefile: Make sure tst-translit is run after tst-gettext.
3929
3930         * locale/C-ctype.c: Add initializers for gap elements.
3931         * locale/programs/ld-ctype.c (ctype_output): Write out index entries
3932         for gap elements.
3933
3934 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
3935
3936         * nscd/nscd.c (print_version): Update copyright year.
3937
3938 2000-07-17  Greg McGary  <greg@mcgary.org>
3939
3940         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
3941         keyletters F, I, S, W.  Remove unused keyletter V.  Surround
3942         signature argnames with angle-brackets for use as word delimiters,
3943         and to induce syntax errors for any args not handled.  Split
3944         multi-echo echoes and comment each stage.
3945         * sysdeps/unix/common/syscalls.list: Refine & correct signatures.
3946         * sysdeps/unix/inet/syscalls.list: Likewise.
3947         * sysdeps/unix/mman/syscalls.list: Likewise.
3948         * sysdeps/unix/syscalls.list: Likewise.
3949         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
3950         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
3951         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3952         * sysdeps/unix/sysv/syscalls.list: Likewise.
3953         * sysdeps/unix/sysv/linux/powerpc/syscalls.list
3954
3955         * sysdeps/generic/strcpy.c (strcpy): Stifle unused-value warnings.
3956         * sysdeps/unix/sysv/linux/execve.c (__execve): Add const
3957         qualifiers.  Don't check NULL-terminator of argv & envp.
3958         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Use
3959         unbounded pointer type in word-size assertion.
3960         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add missing
3961         cases to stifle warnings.
3962
3963         * libio/iofdopen.c (_IO_new_fdopen): Pass _IO_FILE_plus pointer to
3964         _IO_file_attach.
3965         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
3966
3967         * include/libc-symbols.h (symbol_set_declare): Revert 2000-06-26 mods.
3968         * include/set-hooks.h (RUN_HOOK): Revert 2000-06-26 mods.  Qualify
3969         ptr as __unbouned.
3970
3971         * Makerules (o-objects): Supplement with $(o-objects$o).
3972         * string/Makefile (o-objects.ob): Add variable to pull
3973         unbounded versions of memcpy, memset and memchr into libc_b.
3974
3975         * sysdeps/generic/bp-checks.h: Use unbounded __memchr
3976         rather than non-existent __ubp_memchr.
3977         (CHECK_STRINGopt, CHECK_FCNTL, BOUNDED_N, BOUNDED_1): New macros.
3978         (_CHECK_STRING, _CHECK_N): New macros.
3979         (CHECK_STRING, CHECK_N, CHECK_Nopt): Rewrite in terms of _CHECK_*.
3980         (CHECK_IOCTL): Move inside `#if !__ASSEMBLER__'.
3981         * sysdeps/alpha/memchr.S: Change strong name to "__memchr".
3982         Add weak alias "memchr".
3983         * sysdeps/generic/memchr.c: Likewise.
3984         * sysdeps/i386/memchr.S: Likewise.
3985         * sysdeps/ia64/memchr.S: Likewise.
3986         * sysdeps/m68k/memchr.S: Likewise.
3987         * sysdeps/sparc/sparc32/memchr.S: Likewise.
3988         * sysdeps/sparc/sparc64/memchr.S: Likewise.
3989         * sysdeps/vax/memchr.s: Likewise.
3990
3991         * iconv/gconv_trans.c: Add #include <stdlib.h> to get malloc decl.
3992
3993         * elf/dl-runtime.c (fixup): Trampoline passes unbounded pointer.
3994         (profile_fixup): Don't define for __BOUNDED_POINTERS__.
3995         * sysdeps/i386/dl-machine.h: Don't use regparm attribute for
3996         __BOUNDED_POINTERS__.
3997         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Use non-regparm version
3998         for __BOUNDED_POINTERS__.
3999
4000 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
4001
4002         * iconv/gconv_open.c (__gconv_open): Initialize the __data
4003         field of struct __gconv_trans_data differently.  Don't pass NULL to
4004         trans_init_fct.  Simplify list append operation.
4005
4006 2000-07-14  Bruno Haible  <haible@clisp.cons.org>
4007
4008         * intl/dcigettext.c (dcigettext): Call plural_eval on all platforms,
4009         not only those having tsearch.
4010
4011 2000-07-17  Ulrich Drepper  <drepper@redhat.com>
4012
4013         * locale/langinfo.h: Add placeholder values in enum for removed
4014         LC_CTYPE entries.
4015
4016 2000-07-17  Jakub Jelinek  <jakub@redhat.com>
4017
4018         * elf/dl-addr.c (_dl_addr): Keep searching in the _dl_loaded
4019         chain if the PHDR check fails.
4020
4021 2000-07-17  Mark Kettenis  <kettenis@gnu.org>
4022
4023         * nss/getent.c (print_hosts): Make sure we always print a space
4024         between numeric addresses and hostnames.
4025
4026 2000-07-17  Wolfram Gloger  <wg@malloc.de>
4027
4028         * malloc/malloc.c (chunk_alloc): Use mmap_chunk() only if allowed,
4029         i.e. if n_mmaps_max>0.
4030
4031 2000-07-16  Mark Kettenis  <kettenis@gnu.org>
4032
4033         * resolv/netdb.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Adjust
4034         values to remove possible clash with other AI_* constants.
4035         (AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST): Define as
4036         hexadecimal constants to stress the fact they're in fact
4037         bit flags.
4038
4039 2000-07-15  Mark Kettenis  <kettenis@gnu.org>
4040
4041         * nss/getXXent_r.c [NEED__RES]: Include <resolv.h>.
4042         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Use res_ninit
4043         instead of res_init.
4044
4045 2000-07-16  Ulrich Drepper  <drepper@redhat.com>
4046
4047         * crypt/md5-crypt.c (__md5_crypt_r): Add casts for first
4048         parameters of memset calls to avoid warnings.
4049
4050 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4051
4052         * stdlib/Makefile: Rewrite rules to avoid running isomac unless
4053         necessary.
4054
4055         * sysdeps/unix/sysv/linux/getcwd.c: Correct last patch.
4056         Patch by Greg McGary <greg@mcgary.org>.
4057
4058         * io/Makefile (tests): Add tst-getcwd.
4059         * io/tst-getcwd.c: New file.
4060
4061         * io/Makefile: Rewrite rules to avoid running ftwtest unless necessary.
4062
4063 2000-07-15  Jakub Jelinek  <jakub@redhat.com>
4064
4065         * iconv/gconv_open (__gconv_open): Initialize whole __gconv_trans_data
4066         structure.
4067
4068 2000-07-13  Jakub Jelinek  <jakub@redhat.com>
4069
4070         * sysdeps/posix/sysconf.c: Undef __sysconf before weak_alias.
4071         * sysdeps/unix/bsd/getpt.c: Undef __getpt before weak_alias.
4072
4073 2000-07-12  H.J. Lu  <hjl@gnu.org>
4074
4075         * sysdeps/unix/sysv/linux/ia64/Versions (libc): Add __clone2 to
4076         GLIBC_2.2.
4077         * sysdeps/unix/sysv/linux/ia64/Dist: Add clone2.S.
4078         * sysdeps/unix/sysv/linux/ia64/Makefile [$(subdir)=misc]
4079         (sysdep-routines): Add clone2.
4080         * sysdeps/unix/sysv/linux/ia64/clone2.S: New.
4081
4082 2000-07-13  Jes Sorensen  <jes@linuxcare.com>
4083
4084         * sysdeps/unix/sysv/linux/ia64/clone.S: New file.
4085         * sysdeps/unix/sysv/linux/ia64/fork.c: New file.
4086
4087 2000-06-05  David Mosberger  <davidm@hpl.hp.com>
4088
4089         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: New file
4090         based on sysdeps/unix/sysv/linux/bits/siginfo.h.
4091         Change type of si_band from "int" to "long".
4092         (si_imm) [USE_GNU]: Define
4093         (si_isr) [USE_GNU]: Ditto.
4094         (ILL_BREAK) [USE_GNU]: Ditto.
4095         (FPE_DECOVF) [USE_GNU]: Ditto.
4096         (FPE_DECDIV) [USE_GNU]: Ditto.
4097         (FPE_DECERR) [USE_GNU]: Ditto.
4098         (FPE_INVASC) [USE_GNU]: Ditto.
4099         (FPE_INVDEC) [USE_GNU]: Ditto.
4100         (TRAP_BRANCH) [USE_GNU]: Ditto.
4101         (TRAP_HWBKPT) [USE_GNU]: Ditto.
4102
4103 2000-07-06  Jes Sorensen  <jes@linuxcare.com>
4104
4105         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
4106         bits/sigcontext as struct mcontext does not depend on it.
4107
4108         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: New file.
4109
4110 2000-07-04  Jes Sorensen  <jes@linuxcare.com>
4111
4112         * sysdeps/unix/sysv/linux/ia64/shmctl.c: Removed.
4113
4114 2000-07-04  David Mosberger-Tang  <davidm@hpl.hp.com>
4115
4116         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: New file.
4117
4118 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
4119
4120         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: New file.
4121
4122 2000-07-15  Ulrich Drepper  <drepper@redhat.com>
4123
4124         * intl/Makefile (test-srcs): Add tst-translit.
4125         (tests): Likewise.
4126         Add rules to build and run tst-translit.
4127         * intl/tst-translit.c: New file.
4128         * intl/tst-translit.sh: New file.
4129         * intl/translit.po: New file.
4130
4131 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4132
4133         * iconv/loop.c (STANDARD_ERR_HANDLER): If one of the
4134         transliteration function did its job, continue, don't stop.
4135
4136         * iconvdata/iso646.c: Little optimizations in body for conversion
4137         from UCS4.
4138
4139 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4140
4141         * dlfcn/dlerror.c (free_key_mem): Add cast to silence compiler warning.
4142
4143 2000-07-14  Mark Kettenis  <kettenis@gnu.org>
4144
4145         * configure.in: Check for pwd binary.
4146         * config.make.in: Add PWD_P to be subsituted.
4147         * Makerules: Use $(PWD_P) instead of /bin/pwd.
4148
4149 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4150
4151         * iconvdata/Makefile (modules): Add GB18030.
4152         (distribute): Add gb18030.c.
4153         * iconvdata/gconv-modules: Add entries for GB18030 module.
4154         * iconvdata/gb18030.c: New file.
4155         Contributed by Wang ShouHua <shouhuawang@redflag-linux.com>
4156         and Wu Jian.
4157
4158 2000-07-13  Andreas Jaeger  <aj@suse.de>
4159
4160         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Revert last
4161         patch.
4162
4163         * grp/fgetgrent.c (free_mem): Remove if - free (0) is valid.
4164         * inet/getnetgrent.c (free_mem): Likewise.
4165         * misc/mntent.c (free_mem): Likewise.
4166         * nss/getXXbyYY.c (free_mem): Likewise.
4167         * nss/getXXent.c (free_mem): Likewise.
4168         * pwd/fgetpwent.c (free_mem): Likewise.
4169         * shadow/fgetspent.c (free_mem): Likewise.
4170
4171 2000-07-14  Ulrich Drepper  <drepper@redhat.com>
4172
4173         * sunrpc/xdr.c (xdr_u_long): Handle reading of unsigned long on
4174         64-bit architecture correctly [PR libc/1794].
4175
4176 2000-07-13  Ulrich Drepper  <drepper@redhat.com>
4177
4178         * elf/Versions (ld): Export _dl_out_of_memory for GLIBC_2.2.
4179         * dlfcn/dlerror.c (dlerror): Don't free the error string if it is the
4180         report that we are out of memory.
4181         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4182         * elf/dl-libc.c (dlerror_run): Likewise.
4183         * elf/dl-open.c (_dl_open): Likewise.
4184         * elf/rtld.c (dl_main): Likewise.
4185         * elf/dl-error.c: Define _dl_out_of_memory.
4186         (_dl_signal_error): Return _dl_out_of_memory if we cannot duplicate
4187         the error string.
4188         * sysdeps/generic/ldsodefs.h: Declare _dl_out_of_memory.
4189         [PR libc/1813].
4190
4191         * dlfcn/dlerror.c (free_key_mem): Also free error string.
4192
4193         * iconv/loop.c: Fix comment.
4194
4195         * malloc/mtrace.c (tr_freehook): Return immediately if ptr is NULL.
4196
4197 2000-07-13  Andreas Jaeger  <aj@suse.de>
4198
4199         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Correctly handle
4200         getcwd (NULL, size) with size > 0.
4201         Fixes PR libc/1788, reported by John Buddery <jvb@cyberscience.com>.
4202
4203 2000-07-13  Andreas Jaeger  <aj@suse.de>
4204
4205         * posix/Makefile: Remove build rules for libposix.
4206
4207 2000-07-13  Andreas Schwab  <schwab@suse.de>
4208
4209         * sysdeps/generic/glob.c (glob): Fix memory leak.
4210         [SHELL]: Remove reference to undefined variable `files'.
4211         Fixes PR libc/1782.
4212
4213 2000-07-13  Andreas Jaeger  <aj@suse.de>
4214
4215         * sysdeps/unix/sysv/linux/mips/Versions: Add libgcc frame handling
4216         functions.
4217
4218         * sysdeps/unix/sysv/linux/getsysstats.c (free_mem): Only free
4219         memory if it was allocated.
4220
4221 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4222
4223         * iconv/gconv_db.c (gen_steps): Always initialize __data field of
4224         step.
4225
4226         * iconv/gconv_open.c (__gconv_open): Reapply
4227         2000-07-12 Bruno Haible <haible@clisp.cons.org>
4228
4229                 * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4230
4231         * iconv/gconv_open.c: Undo last two changes for now.  They break
4232         everything.
4233
4234 2000-07-12  Andreas Jaeger  <aj@suse.de>
4235
4236         * elf/Makefile (SYSCONF-FLAGS): Added to pass sysconfdir to
4237         compiler.
4238         (CFLAGS-cache.c): Added, uses SYSCONF-FLAGS.
4239         (CFLAGS-dl-cache.c): Likewise.
4240         (CFLAGS-ldconfig.c): Added, passes directory locations.
4241
4242         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): Use SYSCONFDIR to
4243         locate cache.
4244         * elf/ldconfig.c (LD_SO_CONF): Likewise.
4245         (main): Use configured LIBDIR and SLIBDIR.
4246
4247 2000-07-11  Jakub Jelinek  <jakub@redhat.com>
4248
4249         * math/bits/cmathcalls.h (cimag): Add __THROW.
4250         (creal, conj): Likewise.
4251         * wctype/wctype.h (_ISwbit): Avoid warnings about shifting left
4252         by negative value.
4253
4254 2000-07-12  H.J. Lu  <hjl@gnu.org>
4255
4256         * resolv/Versions (libresolv): Add __res_hostalias to GLIBC_2.2
4257         for _nss_dns_gethostbyname2_r in resolv/nss_dns/dns-host.c.
4258
4259 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4260
4261         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Shut gcc up although
4262         it is wrong.
4263
4264 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4265
4266         * iconv/gconv_open.c (__gconv_open): Merge duplicated code.
4267
4268 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4269
4270         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
4271         __modname.
4272
4273 2000-07-12  Bruno Haible  <haible@clisp.cons.org>
4274
4275         * iconv/gconv_open.c (__gconv_open): Initialize
4276         result->__steps[cnt].__data.
4277
4278 2000-07-12  Mark Kettenis  <kettenis@gnu.org>
4279
4280         * nss/getent.c (services_keys): Pass port number in network byte
4281         order in call to getservbyport.
4282
4283 2000-07-11  Andreas Jaeger  <aj@suse.de>
4284
4285         * stdlib/Makefile (test-canon-ARGS): Fix for building in the
4286         source dir.
4287         * intl/Makefile (do-gettext-test): Likewise.
4288         * dirent/Makefile (opendir-tst1-ARGS): Likewise.
4289
4290 2000-07-11  Andreas Schwab  <schwab@suse.de>
4291
4292         * Makeconfig (run-program-prefix): New rule.
4293         (built-program-cmd): Use run-program-prefix.
4294
4295 2000-07-12  Ulrich Drepper  <drepper@redhat.com>
4296
4297         * locale/langinfo.h: Make CRNCYSTR, RADIXCHAR, THOUSANDS_SEP, YESEXPR,
4298         and NOEXPR unconditionally available.
4299
4300 2000-07-12  Greg McGary  <greg@mcgary.org>
4301
4302         * sysdeps/generic/open64.c: Wrap extern symbols in BP_SYM ().
4303         * sysdeps/posix/open64.c: Likewise.
4304         * sysdeps/generic/fegetenv.c: Likewise.
4305         * sysdeps/powerpc/fpu/fegetenv.c: Likewise.
4306         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4307         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4308         * sysdeps/powerpc/fpu/fgetexcptflg.c: Likewise.
4309         * sysdeps/powerpc/fpu/fraiseexcpt.c: Likewise.
4310         * sysdeps/powerpc/fpu/fsetexcptflg.c: Likewise.
4311
4312 2000-07-11  Greg McGary  <greg@mcgary.org>
4313
4314         * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
4315         Add extra level of macro expansion.
4316         [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
4317         * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
4318         is available at the time `select' prototype is declared.
4319         * sysdeps/unix/make-syscalls.sh: Remove unused variables.
4320         Collect non-versioned weak aliases.  Consider only non-versioned
4321         aliases for the user-visible systemcall name.  Do checks inline with
4322         call to primitive system call.
4323         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
4324         stand-alone bounds checks to suppress unused value warnings.
4325         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
4326
4327 2000-07-10  Mark Kettenis  <kettenis@gnu.org>
4328
4329         * sysdeps/mach/hurd/check_fds.c: New file.  Implements
4330         file descriptor checking in SUID programs for the Hurd.
4331
4332         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Use
4333         res_hostalias instead of __hostalias for thread-safety.
4334
4335 2000-07-09  Mark Kettenis  <kettenis@gnu.org>
4336
4337         * elf/rtld.c (dl_main): Move call to __libc_check_standard_fds...
4338         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): ... to here.
4339
4340 2000-07-10  Ulrich Drepper  <drepper@redhat.com>
4341
4342         * include/features.h: Include ISO C99 features if the compiler used
4343         is an ISO C99 compiler.
4344         Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
4345
4346 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4347
4348         * iconv/gconv_conf.c: Include <bits/libc-lock.h>.
4349
4350 2000-07-10  Andreas Jaeger  <aj@suse.de>
4351
4352         * sysdeps/unix/sysv/linux/i386/sigaction.c: Make alias weak since
4353         it's overridden by libpthreads.
4354         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4355         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4356         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4357         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4358         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4359
4360         * malloc/Makefile: Run tst-mtrace only with shared libs.
4361
4362         * stdio-common/Makefile: Run unbputc and tst-printf tests only
4363         with shared libs.
4364
4365 2000-07-10  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4366
4367         * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Verify
4368         that gpreg really points to the GOT section of the calling object.
4369         Scan all PT_LOAD segments of objects for stub_pc, instead of only
4370         checking a start address of first one.
4371         Fix typos.
4372         * sysdeps/mips/mips64/dl-machine.h (elf_machine_runtime_link_map):
4373         Likewise.
4374
4375         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Fix a typo.
4376
4377 2000-07-10  Andreas Jaeger  <aj@suse.de>
4378
4379         * sysdeps/unix/sysv/linux/sigaction.c: Fix typo
4380         (string_alias->strong_alias).
4381
4382 2000-07-08  Mark Kettenis  <kettenis@gnu.org>
4383
4384         * hurd/hurd/fd.h: Include <cthreads.h> instead of <lock-intern.h>.
4385
4386 2000-07-07  Greg McGary  <greg@mcgary.org>
4387
4388         * sysdeps/unix/make-syscalls.sh: Tolerate syscalls that
4389         have no names without leading underscores.
4390
4391 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4392
4393         * iconvdata/sjis.c (from_ucs4_lat1): Fix mappng of U005C and
4394         U007E.
4395
4396         * stdio-common/Makefile (tests): Remove tst-printf here...
4397         (tests-srcs): ...and add it here.
4398         (distribute): Add tst-unbputc.sh and tst-printf.sh.
4399         Add rules to run tst-printf.sh.
4400         * stdio-common/tst-printf.c: Move code around so that there is really
4401         no further output where it's stated.
4402         * stdio-common/tst-printf.sh: New file.
4403
4404 2000-07-07  Mark Kettenis  <kettenis@gnu.org>
4405
4406         * hurd/vpprintf.c [USE_IN_LIBIO]: Include <libioP.h>.
4407         (do_write): Renamed from pwrite.
4408         (vpprintf) [USE_IN_LIBIO]: Adjust for renaming and reshufling of
4409         `struct _IO_cookie_file'.
4410
4411 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4412
4413         * malloc/mtrace.pl: Exit with exit code 1 if any leak was
4414         detected.
4415         * malloc/tst-mtrace.sh: Run mtrace script.
4416
4417 2000-07-07  Greg McGary  <greg@mcgary.org>
4418
4419         * posix/regex.c (EXTEND_BUFFER): Compute increment once.
4420         Move all three components of a bounded pointer.
4421
4422 2000-07-07  Ulrich Drepper  <drepper@redhat.com>
4423
4424         * locale/programs/locale.c (write_locales): Don't simply add all
4425         directories found in the subdir, test whether at least the
4426         LC_CTYPE file is in there.
4427
4428 2000-07-06  Ulrich Drepper  <drepper@redhat.com>
4429
4430         * iconvdata/euc-jp.c: Map characters in C1 area to itself.
4431         * iconvdata/euc-kr.c: Likewise.
4432
4433         * stdio-common/vfprintf.c (process_string_arg): Check result of
4434         wcrtomb call and bail out if it failed.
4435
4436         * malloc/Makefile (test-srcs): Add tst-mtrace.
4437         (distribute): Add tst-mtrace.sh.
4438         Add rule to run tst-mtrace.sh.
4439         * malloc/tst-mtrace.c: New file.
4440         * malloc/tst-mtrace.sh: New file.
4441
4442         * include/signal.h: Declare __libc_sigaction.
4443         * sysdeps/unix/sysv/linux/Versions: Export __libc_sigaction.
4444         * sysdeps/unix/sysv/linux/sigaction.c: Add __libc_sigaction alias.
4445         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4446         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4447         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4448         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
4449         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4450
4451         * configure.in: Fix CFLAGS-memprofstat.c definition after
4452         2000-06-19 change.
4453         Patch by Bradford W. Johnson <bradford@math.umn.edu>.
4454
4455 2000-07-06  Jakub Jelinek  <jakub@redhat.com>
4456
4457         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Pass 0
4458         instead of NULL to elf_machine_fixup_plt t argument.
4459         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
4460         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c (__mmap64): Add
4461         cast.
4462
4463 2000-07-06  Andreas Jaeger  <aj@suse.de>
4464
4465         * crypt/Makefile (LDLIBS-cert): Removed.
4466         (LDLIBS-md5c-test): Removed.
4467         ($(objpfx)cert): Renamed from cert.out to fix dependencies.
4468         ($(objpfx)md5c-test): Likewise for md5c-test.out.
4469
4470 2000-07-06  Andreas Jaeger  <aj@suse.de>
4471
4472         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): The type
4473         of the proc system is "proc".
4474
4475         * sysdeps/generic/libc-start.c (__libc_start_main): Initialize
4476         thread library for static programs.
4477
4478 2000-07-06  Greg McGary  <greg@mcgary.org>
4479
4480         * sysdeps/generic/bp-checks.h (CHECK_SIGSET, CHECK_SIGSETopt):
4481         New macros.
4482         * sysdeps/generic/strcpy.c: Add bounds checks.
4483         * sysdeps/unix/fxstat.c: Likewise.
4484         * sysdeps/unix/xstat.c: Likewise.
4485         * sysdeps/unix/common/lxstat.c: Likewise.
4486         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
4487         * sysdeps/unix/sysv/linux/execve.c: Likewise.
4488         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
4489         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
4490         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
4491         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
4492         * sysdeps/unix/sysv/linux/llseek.c: Likewise.
4493         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
4494         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
4495         * sysdeps/unix/sysv/linux/poll.c: Likewise.
4496         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4497         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4498         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
4499         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4500         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4501         * sysdeps/unix/sysv/linux/readv.c: Likewise.
4502         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
4503         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
4504         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
4505         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
4506         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
4507         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
4508         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
4509         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
4510         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4511         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
4512         * sysdeps/unix/sysv/linux/writev.c: Likewise.
4513         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
4514         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
4515         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
4516         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
4517         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
4518         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
4519         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
4520         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
4521         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
4522         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
4523         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
4524         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
4525         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
4526         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
4527         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
4528         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
4529         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
4530         * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise.
4531         * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise.
4532         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
4533         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise.
4534         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise.
4535         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise.
4536         * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise.
4537         * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise.
4538         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4539         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4540         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4541         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4542         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4543         * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise.
4544         * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise.
4545         * sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: Likewise.
4546         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
4547         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
4548         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise.
4549         * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: Likewise.
4550
4551         * string/endian.h (__LONG_LONG_PAIR): New macro.
4552         * sysdeps/unix/sysv/linux/ftruncate64.c: Use it.
4553         * sysdeps/unix/sysv/linux/pread.c: Likewise.
4554         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
4555         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
4556         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
4557         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
4558         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
4559         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
4560         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
4561         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
4562         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
4563         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
4564
4565         * sysdeps/unix/sysv/linux/sys/ptrace.h (PT_SYSCALL): Fix LHS.
4566
4567 2000-07-06  Andreas Jaeger  <aj@suse.de>
4568
4569         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4570         Initialize result.
4571
4572         * math/test-fpucw.c: Include <stdio.h> for printf.
4573
4574 2000-07-05  Greg McGary  <greg@mcgary.org>
4575
4576         * sysdeps/generic/bp-checks.h: New file.
4577         * sysdeps/generic/bp-thunks.h: Replace generic thunk definitions
4578         with list of #include files.
4579         * sysdeps/unix/make-syscalls.sh: Handle new arg signature
4580         keyletters a, b, B, f, n, N, P, v, V.  Fixup some indentation.
4581         Don't generate BP thunk if `V' appears in signature.
4582         Generate thunks with complete bounds checks.
4583         * sysdeps/unix/syscalls.list: Refine signatures using new keyletters.
4584         * sysdeps/unix/inet/syscalls.list: Likewise.
4585         * sysdeps/unix/mman/syscalls.list: Likewise.
4586         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
4587         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
4588         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
4589         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
4590
4591 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4592
4593         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Cache
4594         result.  Search first in /etc/mtab (proc/mounts would be stupid).
4595         If mount not in the file fall back on /proc.
4596
4597         * crypt/md5-crypt.c (__md5_crypt_r): Clear arrays the key and salt
4598         string got copied in.
4599         Patch by Solar Designer <solar@false.com>.
4600
4601 2000-07-05  Andreas Jaeger  <aj@suse.de>
4602
4603         * manual/install.texi (Installation): Update information about
4604         add-ons.
4605         (Configuring and compiling): Update for glibc 2.2.
4606
4607 2000-07-04  Andreas Jaeger  <aj@suse.de>
4608
4609         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT): Correct value.
4610         (_FPU_IEEE): Likewise.
4611
4612         * math/Makefile (tests): Add test-fpucw.
4613
4614         * math/test-fpucw.c (main): New file.
4615
4616 2000-07-05  Ulrich Drepper  <drepper@redhat.com>
4617
4618         * locale/loadlocale.c (_nl_unload_locale): Add cast to avoid warning.
4619
4620         * locale/programs/ld-collate.c (collate_output): Also write out the
4621         collation sequence values and the wide character string for the
4622         collation symbol table.
4623
4624         * posix/fnmatch.c: Include "../locale/elem-hash.h".
4625         * posix/fnmatch_loop.c: Implement collating symbol handling.
4626         * posix/tst-fnmatch.input: Add more tests, especially for collating
4627         symbol handling.
4628
4629         * posix/regex.c: Fix comment.
4630
4631 2000-07-05  Andreas Jaeger  <aj@suse.de>
4632
4633         * sysdeps/mips/fpu_control.h: Fix type of fpu_control_t.
4634         (_FPU_GETCW): Remove extra colon.
4635         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
4636
4637         * posix/fnmatch_loop.c (FCT): Only declare len if
4638         !WIDE_CHAR_VERSION to silence GCC.
4639
4640         * sysdeps/generic/rawmemchr.c: Include <stdlib.h> for abort
4641         prototype.
4642         * sysdeps/generic/strchrnul.c: Likewise.
4643         * sysdeps/generic/strlen.c: Likewise.
4644         * sysdeps/generic/strchr.c: Likewise.
4645         * sysdeps/generic/memchr.c: Likewise.
4646
4647 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4648
4649         * posix/fnmatch_loop.c: Implement equivalence class handling.
4650         * posix/tst-fnmatch.input: Add tests for equivalence class
4651         handling.
4652
4653         * posix/fnmatch_loop.c: Improve performance for single-byte
4654         character sets by not using btowc.
4655
4656         * posix/tst-fnmatch.input: Add tests for locale dependent
4657         behaviour.
4658         * posix/tst-fnmatch.c (main): Also set LC_CTYPE category.
4659
4660         * posix/tst-fnmatch.input: Add more test cases.
4661
4662         * crypt/md5-crypt.c (__md5_crypt_r): If buffers for key and salt
4663         are not aligned to alignof(md5_uint32) do it before calling
4664         __md5_process_bytes.
4665         * crypt/md5.c: Make sure buffers are aligned.
4666         * crypt/md5.h: Likewise.
4667         Reported by Solar Designer <solar@false.com>.
4668
4669         * crypt/Makefile: Add dependencies for test programs.
4670
4671         * Rules: Define LC_ALL=C in environments of all programs we run.
4672
4673         * intl/tst-gettext.sh (LC_ALL): Define to C and export.
4674
4675 2000-07-03  H.J. Lu  <hjl@gnu.org>
4676
4677         * locale/programs/ld-ctype.c (ctype_output): The size of iov
4678         is 2 + elem + offset, not 2 + elem + offset + 2.
4679
4680 2000-07-04  Ulrich Drepper  <drepper@redhat.com>
4681
4682         * posix/fnmatch_loop.c: Fix two problems uncovered by the new test
4683         suite.
4684         * posix/Makefile (tests): Add tst-fnmatch.
4685         (tst-fnmatch-ENV): Define.
4686         * posix/tst-fnmatch.c: New file.
4687         * posix/tst-fnmatch.sh: New file.
4688
4689 2000-07-04  NIIBE Yutaka  <gniibe@chroot.org>
4690
4691         * locale/programs/charmap.c (charmap_read): Prepend
4692         the condition filename == NULL.
4693
4694 2000-07-03  Greg McGary  <greg@mcgary.org>
4695
4696         * sysdeps/i386/bits/setjmp.h (PUSH_SIGNAL_MASK): Fix typo.
4697
4698         * csu/Makefile (extra-objs, install-lib): Add BP objects conditionally.
4699         ($(objpfx)b$(start-installed-name)): Add non-elf rule.
4700
4701         * libio/libio.h (_IO_FILE): Revert type of _chain to _IO_FILE*.
4702         * libio/libioP.h (_IO_ITER): Revert to type _IO_FILE*.
4703         (FILEBUF_LITERAL): Add cast for CHAIN init.
4704         * libio/genops.c (_IO_un_link, _IO_link_in, _IO_iter_begin): Add casts.
4705         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4706         Revert type of `fp' to _IO_FILE*.
4707         (_IO_iter_file): Remove cast.
4708         (_IO_iter_next): Elide intermediate member reference.
4709
4710         * sysdeps/powerpc/strchr.S:  Check bounds.
4711         Wrap extern symbols in BP_SYM ().
4712
4713 2000-07-03  Andreas Jaeger  <aj@suse.de>
4714
4715         * dlfcn/Makefile (generated): New.
4716
4717 2000-07-03  Ulrich Drepper  <drepper@redhat.com>
4718
4719         * libio/genops.c (__overflow): Use _IO_fwide to orient the stream.
4720         (__uflow): Likewise.
4721         (__underflow): Likewise.
4722         * libio/wgenops.c (__wunderflow): Likewise.
4723         * stdio-common/tst-unbputc.c: New file.
4724         * stdio-common/tst-unbputc.sh: New file.
4725         * stdio-common/Makefile: Add rules to build and run tst-unbputc.
4726
4727         * po/en_GB.po: New file.
4728         Contributed by Robert Brady <rwb197@ecs.soton.ac.uk>.
4729
4730 2000-07-01  Andreas Jaeger  <aj@suse.de>
4731
4732         * intl/Makefile (generated-dirs): New.
4733
4734         * elf/Makefile (generated): trusted-dirs.h is always generated,
4735         move out of build-shared condition.
4736         (generated): Merge the two entries for build-shared.
4737
4738 2000-07-01  Ulrich Drepper  <drepper@redhat.com>
4739
4740         * debug/Makefile (distribute): Add xtrace.sh.
4741
4742 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4743
4744         * version.h (VERSION): Bump to 2.1.91.
4745
4746         * configure.in: Update warning comment.  glibc should not be
4747         broken anymore.
4748
4749         * sysdeps/unix/sysv/linux/ia64/Dist: Remove old content.  Add
4750         ioperm.c, sys/procfs.h, and sys/io.h.
4751
4752         * sysdeps/powerpc/Dist: Add bp-asm.h.
4753
4754         * assert/Depend: Add localedata.
4755         * assert/Makefile (test-assert-ENV): New.  Define LANGUAGE=C.
4756         (test-assert-perr-ENV): New.  Define LANGUAGE=C.
4757
4758         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [r_type ==
4759         R_ALPHA_REFQUAD]: Use memcpy to load and store value from
4760         relocation address to prevent unaligned trap.
4761         Suggested by Richard Henderson <rth@cygnus.com>.
4762
4763 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4764
4765         * io/sys/stat.h (stat64, lstat64, fstat64): Don't define inlines
4766         if redirecting and either redirection is done using defines or
4767         not optimizing.
4768
4769 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4770
4771         * sunrpc/rpc_cout.c (inline_struct): Add missing parenthesis in
4772         generated expressions.
4773         Patch by Darren McClelland <dmcclell@zetec.com>.
4774
4775         * timezone/Makefile (build-testdata): Set LANGUAGE and LC_ALL
4776         since zic uses setlocale and gettext but we cannot make it use the
4777         new locale data since zic calls a shell which might not use the
4778         new libc.
4779
4780         * stdlib/strfmon.c: Move somewhat closer to the standard wrt to
4781         handling the internation currency symbol.  POSIX says that the
4782         fourth character is used to separate the currency symbol from the
4783         value.  Therefore it does not have to be printed.  But we cannot
4784         remove the space if the currency symbol is printed before the
4785         number since this is what many locales expect.
4786
4787         * iconv/gconv_trans.c: Test with _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN
4788         whether this information is available.
4789
4790         * intl/dcigettext.c (_nl_find_msg): Correct reallocation of
4791         buffers in case the translation is too large.  Remember allocated
4792         memory blocks in a list.
4793         (free_mem): Free memory for translations.
4794
4795         * intl/tst-gettext.c: Use correct locale.  Improve error messages.
4796
4797         * locale/programs/ld-ctype.c (ctype_output): If no default_missing
4798         information is available set the string length to zero.
4799
4800         * sysdeps/i386/i686/strcmp.S: Little optimization in non-BP case.
4801
4802 2000-06-30  Greg McGary  <greg@mcgary.org>
4803
4804         * sysdeps/powerpc/bp-asm.h: New file.
4805         * sysdeps/powerpc/__longjmp.S:  Check bounds.
4806         Wrap extern symbols in BP_SYM ().
4807         * sysdeps/powerpc/bsd-_setjmp.S: Likewise.
4808         * sysdeps/powerpc/bsd-setjmp.S: Likewise.
4809         * sysdeps/powerpc/setjmp.S: Likewise.
4810         * sysdeps/powerpc/add_n.S: Likewise.
4811         * sysdeps/powerpc/addmul_1.S: Likewise.
4812         * sysdeps/powerpc/lshift.S: Likewise.
4813         * sysdeps/powerpc/rshift.S: Likewise.
4814         * sysdeps/powerpc/mul_1.S: Likewise.
4815         * sysdeps/powerpc/sub_n.S: Likewise.
4816         * sysdeps/powerpc/submul_1.S: Likewise.
4817         * sysdeps/powerpc/strlen.S: Likewise.
4818         * sysdeps/powerpc/memset.S: Likewise.
4819         * sysdeps/powerpc/stpcpy.S: Likewise.
4820         * sysdeps/powerpc/strcmp.S: Likewise.
4821         * sysdeps/powerpc/strcpy.S: Likewise.
4822         * sysdeps/powerpc/elf/bzero.S: Likewise.
4823
4824         * sysdeps/powerpc/stpcpy.S: Define & use symbolic register names.
4825         Line up operands column with tabs.
4826
4827 2000-06-30  Ulrich Drepper  <drepper@redhat.com>
4828
4829         * elf/Makefile (LDFLAGS-origtest): Actually add it.
4830
4831         * sysdeps/ia64/htonl.S: New file.
4832         * sysdeps/ia64/htons.S: New file.
4833         * sysdeps/ia64/memcpy.S: Replace with version which does not use
4834         floating point registers.
4835         Patches by Dan Pop <Dan.Pop@cern.ch>.
4836
4837 2000-06-30  Andreas Jaeger  <aj@suse.de>
4838
4839         * posix/Makefile (tests): tst-exec and tst-spawn only work with
4840         shared libraries.
4841
4842         * io/Makefile (CFLAGS-test-lfs.c): New.
4843         (tests): Add test-lfs.
4844
4845         * io/test-lfs.c: New file.
4846
4847 2000-06-30  Jakub Jelinek  <jakub@redhat.com>
4848
4849         * sysdeps/i386/bits/string.h (strcmp): Use 8bit register in 8bit
4850         instruction.
4851
4852 2000-06-29  David Mosberger-Tang  <davidm@hpl.hp.com>
4853
4854         * sysdeps/unix/sysv/linux/ia64/ioperm.c: New file.
4855
4856 2000-06-29  Jes Sorensen  <jes@linuxcare.com>
4857
4858         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add __fstatfs64
4859         alias to the fstatfs call.
4860
4861         * sysdeps/unix/sysv/linux/ia64/getrlimit64.c: New file.
4862         * sysdeps/unix/sysv/linux/ia64/setrlimit64.c: New file.
4863
4864         * sysdeps/unix/sysv/linux/ia64/ftruncate64.c: New file.
4865         * sysdeps/unix/sysv/linux/ia64/truncate64.c: New file.
4866
4867         * sysdeps/unix/sysv/linux/ia64/readdir.c: New file.
4868         * sysdeps/unix/sysv/linux/ia64/readdir_r.c: New file.
4869         * sysdeps/unix/sysv/linux/ia64/readdir64.c: New file.
4870         * sysdeps/unix/sysv/linux/ia64/readdir64_r.c: New file.
4871
4872         * sysdeps/unix/sysv/linux/ia64/glob.c: New file.
4873         * sysdeps/unix/sysv/linux/ia64/glob64.c: New file.
4874
4875         * sysdeps/unix/sysv/linux/ia64/fstatfs64.c: New file.
4876         * sysdeps/unix/sysv/linux/ia64/statfs64.c: New file.
4877
4878         * sysdeps/unix/sysv/linux/ia64/pread64.c: New file.
4879         * sysdeps/unix/sysv/linux/ia64/pwrite64.c: New file.
4880
4881         * sysdeps/unix/sysv/linux/ia64/shmctl.c: New file.
4882
4883 2000-06-29  Andreas Jaeger  <aj@suse.de>
4884
4885         * sunrpc/rpc_svcout.c (write_msg_out): Always use format string
4886         with syslog.
4887         (print_err_message): Likewise.
4888         Reported by Chris Evans <chris@ferret.lmh.ox.ac.uk>.
4889
4890 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4891
4892         * locale/loadlocale.c (_nl_load_locale): Make sure all locale data
4893         used as words is properly aligned.
4894
4895         * locale/programs/ld-ctype.c (ctype_output): Don't generate unaligned
4896         data files.
4897
4898 2000-06-29  Greg McGary  <greg@mcgary.org>
4899
4900         * sysdeps/generic/libc-start.c (__libc_stack_end): Chop __unbounded.
4901         * sysdeps/unix/make-syscalls.sh: Handle signatures of
4902         length 7..9, just in case...
4903         * misc/sys/cdefs.h (__ptrvalue): Define as nothing for non-BP.
4904
4905         * sysdeps/i386/bp-asm.h (PCOFF): New constant.
4906         (POP_ERRNO_LOCATION_RETURN): Fold insns.
4907         * sysdeps/i386/bits/setjmp.h (JB_SIZE): New constant.
4908         (PUSH_SIGNAL_MASK): New macro.
4909         * sysdeps/i386/__longjmp.S (__longjmp): Wrap symbol in BP_SYM ().
4910         LEAVE is unnecessary.  Check bounds of jmp_buf.
4911         * sysdeps/i386/elf/setjmp.S: Call PUSH_SIGNAL_MASK.  Wrap symbols
4912         in BP_SYM ().  Check bounds of jmp_buf.  Don't call LEAVE until
4913         immediately before tail-call.
4914         * sysdeps/i386/setjmp.S: Likewise.
4915         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4916         * sysdeps/i386/bsd-setjmp.S: Likewise.
4917
4918 2000-06-29  Jakub Jelinek  <jakub@redhat.com>
4919
4920         * sysdeps/sparc/fpu/fclrexcpt.c: Use SHLIB_COMPAT, compat_symbol and
4921         versioned_symbol.
4922         * sysdeps/sparc/fpu/fesetenv.c: Likewise.
4923         * sysdeps/sparc/fpu/feupdateenv.c: Likewise.
4924         * sysdeps/sparc/fpu/fgetexcptflg.c: Likewise.
4925         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
4926         * sysdeps/sparc/fpu/fsetexcptflg.c: Likewise.
4927         * sysdeps/sparc/fpu/fegetenv.c: Likewise.
4928         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions: New file.
4929         * shlib-versions: Make sparc64 GLIBC_2.2+ only.
4930
4931 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4932
4933         * stdio-common/printf_fp.c (__printf_fp): Don't clobber pointer which
4934         we later need to calling free().
4935         Patch by Matt Wilson <msw@redhat.com>.
4936
4937         * stdio-common/tst-printf.c: Add test for above problem.
4938
4939 2000-06-27  David Mosberger-Tang  <davidm@hpl.hp.com>
4940
4941         * sysdeps/unix/sysv/linux/ia64/bits/ipc.h: New file.
4942         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: New file.
4943
4944 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
4945
4946         * sysdeps/ieee754/dbl-64/s_exp2.c: Add include stdlib.h to get
4947         prototype for abs().
4948         * sysdeps/ieee754/flt-32/s_exp2f.c: ditto.
4949
4950 2000-06-23  Andreas Jaeger  <aj@suse.de>
4951
4952         * config.h.in: Don't use regparm with bounded pointers.
4953
4954 2000-06-29  Ulrich Drepper  <drepper@redhat.com>
4955
4956         * stdlib/grouping.h: Correctly handle multibyte thousands
4957         separator and decimal point.
4958         * stdlib/stdtod.c: Likewise.
4959         * sysdeps/generic/strtol.c: Likewise.
4960
4961         * locale/categories.def: Add entries for wide character decimal point
4962         and thousands separator in numeric and monetary category.
4963
4964 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
4965
4966         * stdio-common/printf_fp.c (__printf_fp): Remove unnecessary
4967         second definition and initialization of decimal.
4968
4969 2000-06-28  Greg McGary  <greg@mcgary.org>
4970
4971         * libio/libio.h (struct _IO_cookie_file): Move struct type defintion
4972         out.
4973         (_IO_FILE): Declare chain as (struct _IO_FILE_plus *).
4974         * libio/libioP.h (struct _IO_cookie_file): Move struct type defintion
4975         in.
4976         (_IO_JUMPS): Don't cast THIS--expect arg to be a
4977         (struct _IO_FILE_plus *).
4978         (_IO_JUMPS_FUNC): Express in terms of _IO_JUMPS, and add cast to
4979         THIS, since _IO_JUMPS no longer does it implicitly.
4980         (_IO_file_init, _IO_old_file_init, _IO_new_file_init): Declare
4981         arg type as (struct _IO_FILE_plus *).
4982         (_IO_str_init_static, _IO_str_init_readonly): Declare 1st
4983         arg as (_IO_strfile *).
4984         * libio/strops.c (_IO_str_init_static, _IO_str_init_readonly):
4985         Declare 1st arg as (_IO_strfile *).
4986         * libio/fileops.c (_IO_new_file_init): Declare
4987         arg type as (struct _IO_FILE_plus *).
4988         * libio/oldfileops.c (_IO_old_file_init): Likewise.
4989         * libio/genops.c (_IO_link_in, _IO_un_link): Likewise.
4990         (_IO_flush_all, _IO_flush_all_linebuffered, _IO_unbuffer_write):
4991         Declare iteration pointer as (struct _IO_FILE_plus *).
4992         (_IO_iter_next, _IO_iter_file): _IO_ITER is now
4993                 (struct _IO_FILE_plus *).
4994         * libio/stdfiles.c (_IO_list_all): Declare as (struct _IO_FILE_plus *).
4995         * libio/oldstdfiles.c (_IO_list_all): Likewise.
4996         (_IO_check_libio): Set user-visible handles to
4997         (struct _IO_FILE_plus *).
4998         * libio/stdio.c (stdin, stdout, stderr): Set user-visible handles
4999         to (struct _IO_FILE_plus *).
5000
5001         * libio/iofdopen.c (_IO_new_fdopen): Pass FILE handle pointer
5002         whose high bound includes vtable to all functions that will use
5003         vtable.  For streambufs, pass pointer whose bounds include struct
5004         _IO_strfile.
5005         * libio/wgenops.c (_IO_wdefault_finish): Likewise.
5006         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
5007         * libio/iofopen.c (_IO_new_fopen): Likewise.
5008         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
5009         * libio/iofopen64.c (_IO_fopen64): Likewise.
5010         * libio/iopopen.c (_IO_new_popen): Likewise.
5011         * libio/oldiopopen.c (_IO_old_popen): Likewise.
5012         * libio/memstream.c (open_memstream): Likewise.
5013         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
5014         * libio/iovsprintf.c (_IO_vsprintf): Likewise.
5015         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
5016         * libio/iofopncook.c (_IO_cookie_init): Likewise.
5017         * libio/obprintf.c (_IO_obstack_vprintf): Likewise.
5018         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5019         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
5020         * libio/stdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5021         * libio/oldstdfiles.c (_IO_stdout_, _IO_stderr_): Likewise.
5022         * stdlib/strfmon.c (__strfmon_l): Likewise.
5023         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5024         (vfprintf): Qualify computed-goto targets as unbounded.
5025
5026 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5027
5028         * stdio-common/vfscanf.c: Finally handle multibyte decimal point and
5029         thousands separator correctly.
5030
5031         * stdio-common/vfscanf.c: Use COMPILE_WSCANF not COMPILE_WPRINTF.
5032         * stdio-common/vfwscanf.c: Likewise.
5033
5034 2000-06-27  Jes Sorensen  <jes@linuxcare.com>
5035
5036         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Change argument
5037         count into signatures for most calls.
5038
5039 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5040
5041         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: Removed.  We can use
5042         the generic parser now.
5043
5044 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5045
5046         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: Deleted.  Hash
5047         table entries are 32 bit on the ia64 (as specified by the ABI),
5048         not 64 bit as on the Alpha.
5049
5050         * shlib-versions: Bump ia64 soname to ld-linux-ia64.so.2 to mark
5051         change of objects to use 32 bit hash table indices (see above).
5052
5053 2000-06-28  Jes Sorensen  <jes@linuxcare.com>
5054
5055         * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
5056         prototype for abs().
5057
5058 2000-06-28  Wolfram Gloger  <wg@malloc.de>
5059
5060         * malloc/malloc.c (chunk_alloc): If extension of the linear heap
5061         fails, try mmap_chunk() as a last resort even though n_mmaps_max
5062         may have been reached.
5063
5064 2000-06-28  Ulrich Drepper  <drepper@redhat.com>
5065
5066         * locale/programs/ld-collate.c (insert_weights): Handle <Uxxxx>
5067         symbols in multi-character weights correctly.
5068
5069         * wcsmbs/mbrtowc.c: Set flush to 1 for conversion function calls
5070         depending on whether the input string is empty or not.
5071
5072         * wcsmbs/mbrtowc.c: Calling function without input means clearing the
5073         given state and not avoiding this by modifying a local object.
5074         * wcsmbs/wcrtomb.c: Likewise.
5075
5076         * iconv/skeleton.c: If no EMIT_SHIFT_TO_INIT is defined clear state
5077         object since some incomplete characters might be in there.
5078
5079         * iconvdata/euc-jp.c: In conversion to UCS4, handling invalid
5080         sequences with first byte 0x8e correctly.
5081
5082         * iconvdata/jis0208.h: Remove redundant test.
5083
5084 2000-06-27  Ulrich Drepper  <drepper@redhat.com>
5085
5086         * sysdeps/generic/initfini.c (SECTION): Remove trailing semicolon.
5087         Add it where it is needed now.
5088
5089         * locale/programs/ld-ctype.c (ctype_finish): Take all characters from
5090         the input charset into account when generating the hash table.
5091         (allocate_arrays): Correct setting default width.  Not all empty slots
5092         in the table are filled, only those not covert explicitly by the
5093         locale description and in the charset.
5094
5095         * wctype/towctrans.c (__towctrans): Be graceful and accept error
5096         return values from the wctrans function.
5097
5098         * stdio-common/vfscanf.c: Make sure to always return WEOF and EOF for
5099         wide character version.
5100         For %C handling, test correct pointer variable for NULL.
5101
5102         * wcsmbs/wctob.c: Handle WEOF special.
5103
5104         * wcsmbs/wcwidth.h: 0xff in width array means invalid character.
5105
5106         * wctype/wctype.h: Protect gcc-isms with __extension__.  Avoid
5107         always-true test to avoid warning.
5108
5109 2000-06-27  Greg McGary  <greg@mcgary.org>
5110
5111         * elf/dl-open.c (_dl_sysdep_start): Wrap weak_extern decl in BP_SYM ().
5112         * include/libc-symbols.h (weak_extern): Add extra level of expansion.
5113         (symbol_version, default_symbol_version): Factor redundant
5114         definitions out of conditional.
5115
5116 2000-06-27  Jakub Jelinek  <jakub@redhat.com>
5117
5118         * libio/obprintf.c (_IO_obstack_vprintf): Call obstack_make_room,
5119         not obstack_blank.
5120
5121 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5122
5123         * include/libc-symbols.h (symbol_version): Add extra level of
5124         macro expansion.
5125         (default_symbol_version): Likewise.
5126
5127 2000-06-26  Greg McGary  <greg@mcgary.org>
5128
5129         * sysdeps/unix/i386/sysdep.S (syscall_error): Push & pop space
5130         for BP return value & push implicit struct-return pointer to
5131         __errno_location.
5132         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
5133         (SYSCALL_ERROR_HANDLER): Likewise.
5134         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
5135         (SYSCALL_ERROR_HANDLER): Likewise.
5136
5137         * Makeconfig: Add missing comment.
5138         * csu/Makefile (extra-objs, omit-deps, install-lib): Add
5139         BP-flavored startup object.
5140         ($(objpfx)b$(start-installed-name)): New rule.
5141         * include/libc-symbols.h (symbol_set_declare): Change type
5142         of `__start_##set' and `__stop_##set' to pointer-to-function.
5143         (symbol_set_declare): Change type of `set' to array of
5144         pointer-to-function.
5145         * include/set-hooks.h (RUN_HOOK): Change type of `ptr' to
5146         pointer-to-function.
5147
5148         * string/bits/string2.h: Inhibit inlines if __BOUNDED_POINTERS__.
5149
5150         * sysdeps/unix/sysv/linux/syscalls.list: Add missing signatures.
5151         Remove clock_* and timer_* entries.
5152         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Replace
5153         arg-count with signatures.
5154
5155         * sysdeps/i386/add_n.S: Wrap entry-point symbol in BP_SYM ().
5156         Check bounds of arguments.
5157         * sysdeps/i386/addmul_1.S: Likewise.
5158         * sysdeps/i386/lshift.S: Likewise.
5159         * sysdeps/i386/mul_1.S: Likewise.
5160         * sysdeps/i386/rshift.S: Likewise.
5161         * sysdeps/i386/sub_n.S: Likewise.
5162         * sysdeps/i386/submul_1.S: Likewise.
5163         * sysdeps/i386/i586/add_n.S: Likewise.
5164         * sysdeps/i386/i586/addmul_1.S: Likewise.
5165         * sysdeps/i386/i586/lshift.S: Likewise.
5166         * sysdeps/i386/i586/rshift.S: Likewise.
5167         * sysdeps/i386/i586/sub_n.S: Likewise.
5168         * sysdeps/i386/i686/add_n.S: Likewise.
5169
5170         * sysdeps/i386/memchr.S: Likewise.
5171         * sysdeps/i386/memcmp.S: Likewise.
5172         * sysdeps/i386/rawmemchr.S: Likewise.
5173         * sysdeps/i386/i586/bzero.S: Likewise.
5174         * sysdeps/i386/i586/memcpy.S: Likewise.
5175         * sysdeps/i386/i586/mempcpy.S: Likewise.
5176         * sysdeps/i386/i586/memset.S: Likewise.
5177         * sysdeps/i386/i686/bzero.S: Likewise.
5178         * sysdeps/i386/i686/memcpy.S: Likewise.
5179         * sysdeps/i386/i686/mempcpy.S: Likewise.
5180         * sysdeps/i386/i686/memset.S: Likewise.
5181
5182         * sysdeps/i386/stpcpy.S: Likewise.
5183         * sysdeps/i386/stpncpy.S: Likewise.
5184         * sysdeps/i386/strchr.S: Likewise.
5185         * sysdeps/i386/strchrnul.S: Likewise.
5186         * sysdeps/i386/strcspn.S: Likewise.
5187         * sysdeps/i386/strpbrk.S: Likewise.
5188         * sysdeps/i386/strrchr.S: Likewise.
5189         * sysdeps/i386/strspn.S: Likewise.
5190         * sysdeps/i386/strtok.S: Likewise.
5191         * sysdeps/i386/strtok_r.S: Likewise.
5192         * sysdeps/i386/i486/strcat.S: Likewise.
5193         * sysdeps/i386/i486/strlen.S: Likewise.
5194         * sysdeps/i386/i586/strchr.S: Likewise.
5195         * sysdeps/i386/i586/strcpy.S: Likewise.
5196         * sysdeps/i386/i586/strlen.S: Likewise.
5197         * sysdeps/i386/i686/strcmp.S: Likewise.
5198         * sysdeps/i386/i686/strtok.S: Likewise.
5199         * sysdeps/i386/i686/strtok_r.S: Likewise.
5200
5201         * sysdeps/i386/fpu/fegetenv.c: Wrap symbol names with BP_SYM ().
5202         * sysdeps/i386/fpu/fesetenv.c: Likewise.
5203         * sysdeps/i386/fpu/feupdateenv.c: Likewise.
5204         * sysdeps/i386/fpu/fgetexcptflg.c: Likewise.
5205         * sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
5206
5207         * sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
5208         * sysdeps/i386/mul_1.S: Likewise.
5209         * sysdeps/i386/submul_1.S: Likewise.
5210         * sysdeps/i386/i586/add_n.S: Likewise.
5211         * sysdeps/i386/i586/addmul_1.S: Likewise.
5212         * sysdeps/i386/i586/lshift.S: Likewise.
5213         * sysdeps/i386/i586/mul_1.S: Likewise.
5214         * sysdeps/i386/i586/rshift.S: Likewise.
5215         * sysdeps/i386/i586/sub_n.S: Likewise.
5216         * sysdeps/i386/i586/submul_1.S: Likewise.
5217
5218 2000-06-26  Ulrich Drepper  <drepper@redhat.com>
5219
5220         * rt/Makefile (librt-routines): Add clock_nanosleep.
5221         * rt/Versions [GLIBC_2.2] (librt): Add clock_nanosleep.
5222         * sysdeps/generic/clock_nanosleep.c: New file.
5223         * sysdeps/unix/clock_nanosleep.c: New file.
5224         * sysdeps/unix/i386/i586/clock_nanosleep.c: New file.
5225         * time/time.h: Declare clock_nanosleep.
5226
5227 2000-06-26  Greg McGary  <greg@mcgary.org>
5228
5229         * sysdeps/i386/asm-syntax.h (R, MEM, MEM_DISP, MEM_INDEX,
5230         INSN1, INSN2, TEXT, GLOBL): Remove macros.
5231         (ALIGN): Cleanup surrounding conditionals.
5232
5233         * sysdeps/i386/addmul_1.S: Replace asm-syntax macros with gas syntax.
5234         Call ENTER/LEAVE macros.
5235         * sysdeps/i386/mul_1.S: Replace asm-syntax macros with gas syntax.
5236         * sysdeps/i386/submul_1.S: Likewise.
5237
5238         * sysdeps/i386/i586/addmul_1.S: Replace asm-syntax macros with gas
5239         syntax.  Define & use symbolic argument stack offsets.  Call
5240         ENTER/LEAVE macros.
5241         * sysdeps/i386/i586/mul_1.S: Likewise.
5242         * sysdeps/i386/i586/submul_1.S: Likewise.
5243
5244 2000-06-25  Greg McGary  <greg@mcgary.org>
5245
5246         * sysdeps/i386/i586/memcpy.S: Redefine memcpy as mempcpy,
5247         not as bcopy.
5248
5249 2000-06-25  Ulrich Drepper  <drepper@redhat.com>
5250
5251         * iconvdata/gen-8bit-gap-1.sh: Update for new charmap format.
5252         * iconvdata/gen-8bit-gap.sh: Likewise.
5253         * iconvdata/gen-8bit.sh: Likewise.
5254
5255         * iconv/gconv_open.c (__gconv_open): Move comment to correct position.
5256
5257         * locale/programs/ld-collate.c (collate_read): Don't actually read
5258         the copy locale if we are ignoring the content.
5259
5260         * locale/programs/ld-address.c (INT_STR_ELEM): Correct test for
5261         unknown character.
5262
5263         * locale/programs/ld-collate.c: Correct handling of different
5264         collation sections.
5265         * locale/programs/localedef.c (add_to_readlist): Take locale pointer
5266         as extra parameter from which to copy category information.
5267         Change all callers.
5268         (load_locale): Likewise.
5269         * locale/programs/localedef.h: Update prototypes of add_to_readlist
5270         and load_locale.
5271         * locale/programs/ld-ctype.c: Update call to add_to_readlist.
5272         * locale/programs/locfile.h: Likewise.
5273         * locale/programs/locfile-kw.gperf: Add entry for script.
5274         * locale/programs/locfile-token.h: Add tok_script.
5275
5276         * locale/programs/locale.c: Update copyright year.
5277         * locale/programs/localedef.c: Likewise.
5278
5279 2000-06-23  Thorsten Kukuk  <kukuk@suse.de>
5280
5281         * sunrpc/xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from
5282         Jens Moeller <jens.moeller@waii.com>.
5283
5284 2000-06-24  Ulrich Drepper  <drepper@redhat.com>
5285
5286         * locale/programs/ld-name.c (name_finish): Add missing format
5287         specifier to test for name_fmt.
5288
5289         * locale/programs/ld-address.c (iso639): Correct length of string
5290         elements.
5291         (iso3166): Likewise.
5292
5293         * sysdeps/unix/sysv/linux/i386/sys/elf.h (elf_fpxregset_t): Define.
5294
5295         * sysdeps/unix/sysv/linux/i386/sys/user.h (struct user_fpxregs_struct):
5296         Define.
5297
5298         * elf/elf.h (NT_PRFPXREG): Define.
5299
5300 2000-06-23  Ulrich Drepper  <drepper@redhat.com>
5301
5302         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Define
5303         PTRACE_GETFPXREGS and PTRACE_SETFPXREGS.
5304
5305 2000-06-23  Andreas Schwab  <schwab@suse.de>
5306
5307         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Replace arg-count
5308         with signatures.
5309
5310 2000-06-23  Andreas Jaeger  <aj@suse.de>
5311
5312         * iconv/gconv_int.h (norm_add_slashes): Protect suffix expansion.
5313
5314         * io/test-stat.c: Add copyright header, mention Maciej.
5315
5316         * sysdeps/unix/sysv/linux/mips/sys/syscall.h (SYS_pivot_root,
5317         SYS_mincore, SYS_madvise): Added.
5318
5319         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix signature of
5320         execve.
5321
5322 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5323
5324         * libio/Makefile (tests): Add tst-getwc and tst_putwc.
5325         (CFLAGS-tst_putwc.c): New definition.
5326         * libio/tst_getwc.c: New file.
5327         * libio/tst_getwc.input: New file.
5328         * libio/tst_putwc.c: New file.
5329
5330         * include/string.h: Add prototype for __strdup.
5331
5332 2000-06-22  Greg McGary  <greg@mcgary.org>
5333
5334         * sysdeps/unix/syscalls.list (sys_mknod): Fix signatures.
5335         * sysdeps/unix/inet/syscalls.list (accept, getpeername, getsockname):
5336         Fix signatures.
5337
5338 2000-06-23  Jes Sorensen  <jes@linuxcare.com>
5339
5340         * sysdeps/ia64/memcpy.S: Disable branch predict instruction.
5341
5342 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5343
5344         * sysdeps/unix/sysv/linux/ia64/bits/statfs.h: New file.
5345
5346 2000-06-22  Jes Sorensen  <jes@linuxcare.com>
5347
5348         * shlib-versions: Bump so versions to 6.1 for libc and libm on the
5349         ia64 to allow 2.2+ libraries to coexist with 2.1 ones.
5350
5351 2000-06-22  Ulrich Drepper  <drepper@redhat.com>
5352
5353         * io/sys/stat.h: Define S_TYPEISMQ, S_TYPEISSEM, and S_TYPEISSHM.
5354         * sysdeps/generic/bits/stat.h: Define __S_TYPEISMQ, __S_TYPEISSEM,
5355         and __S_TYPEISSHM.
5356         * sysdeps/mach/hurd/bits/stat.h: Likewise.
5357         * sysdeps/unix/bsd/bits/stat.h: Likewise.
5358         * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
5359         * sysdeps/unix/sysv/bits/stat.h: Likewise.
5360         * sysdeps/unix/sysv/irix4/bits/stat.h: Likewise.
5361         * sysdeps/unix/sysv/hpux/bits/stat.h: Likewise.
5362         * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
5363         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
5364         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
5365         * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
5366         * sysdeps/unix/sysv/sysv4/i386/bits/stat.h: Likewise.
5367         * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
5368         * sysdeps/unix/sysv/aix/bits/stat.h: Likewise.
5369         * manual/filesys.texi: Document S_TYPEISMQ, S_TYPEISSEM, and
5370         S_TYPEISSHM.
5371
5372 2000-06-22  Andreas Jaeger  <aj@suse.de>
5373
5374         * sysdeps/unix/sysv/linux/mips/syscalls.list: Replace arg-count
5375         with signatures.
5376
5377         * elf/dl-reloc.c (_dl_relocate_object): Fix typos.
5378
5379         * sysdeps/unix/sysv/linux/mips/syscalls.list: Fix sysctl entry.
5380
5381 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5382
5383         * iconv/gconv_trans.c: Move initialization of winbuf and winbufend
5384         ahead.
5385
5386 2000-06-21  Greg McGary  <greg@mcgary.org>
5387
5388         * Makerules (elide-routines.*, elide-bp-thunks):
5389         Define unconditionally.
5390
5391 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5392
5393         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5394
5395 2000-06-21  Andreas Jaeger  <aj@suse.de>
5396
5397         * io/Makefile (tests): Add test-stat.
5398         (CFLAGS-test-stat.c): New.
5399
5400         * io/test-stat.c: New file from Maciej W. Rozycki
5401         <macro@ds2.pg.gda.pl>.
5402
5403 2000-06-21  Jes Sorensen  <jes@linuxcare.com>
5404
5405         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Reorder elements
5406         in __rlimit_resource to make them match the kernel order.
5407         rlim_t is always 64 bit, use __rlim64_t to declare it
5408         unconditionally.
5409
5410 2000-05-04  Jes Sorensen  <jes@linuxcare.com>
5411
5412         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: Undef
5413         RLIM_INFINITY before defining it to avoid clash with kernel header
5414
5415 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
5416
5417         * sysdeps/unix/sysv/linux/ia64/bits/resource.h: New file.
5418
5419 2000-06-21  Ulrich Drepper  <drepper@redhat.com>
5420
5421         * sysdeps/unix/sysv/linux/ia64/Versions: New file.
5422
5423 2000-06-21  Andreas Jaeger  <aj@suse.de>
5424
5425         * stdio-common/temptest.c: Include <stdlib.h>.
5426         * stdio-common/tst-fileno.c: Likewise.
5427         * stdio-common/scanf4.c: Likewise.
5428         * stdio-common/scanf5.c: Likewise.
5429         * time/clocktest.c: Likewise.
5430         * posix/test-vfork.c: Likewise.
5431         * posix/globtest.c: Likewise.
5432         * io/test-utime.c: Likewise.
5433         * wctype/test_wcfuncs.c: Likewise.
5434         * crypt/cert.c: Likewise.
5435
5436         * stdio-common/tst-printfsz.c: Include <string.h>.
5437         * libio/tst_swscanf.c: Likewise.
5438         * libio/tst_wscanf.c: Likewise.
5439         * posix/runtests.c: Likewise.
5440         * posix/tst-getaddrinfo.c: Likewise.
5441         * posix/wordexp-test.c: Likewise.
5442         * misc/tst-efgcvt.c: Likewise.
5443
5444         * stdlib/tst-xpg-basename.c: Include <stdlib.h> and <string.h>.
5445         * nss/test-netdb.c: Likewise.
5446
5447         * sysdeps/unix/sysv/linux/configure.in: Add check for minimal
5448         supported kernel for MIPS.
5449
5450         * elf/vismod2.c: Include <stdlib.h> for abort prototype.
5451         * rt/aio_suspend.c: Likewise.
5452
5453 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5454
5455         * math/libm-test.inc: Include <string.h>.
5456
5457 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5458
5459         * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file.
5460
5461 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5462
5463         * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file.
5464         * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file.
5465
5466 2000-06-20  David Mosberger-Tang  <davidm@hpl.hp.com>
5467
5468         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file.
5469
5470 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5471
5472         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
5473
5474 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5475
5476         * locale/programs/ld-collate.c (insert_value): Now take string and
5477         length instead of struct token* parameter.  Adjust use of token.
5478         (handle_ellipsis): Likewise.
5479         (collate_read): Allow <Uxxxx> names and transform them into names
5480         to be passed to insert_value and handle_ellipsis.
5481
5482         * locale/programs/ld-ctype.c (uninames): New array with names of
5483         digits in <Uxxxxxxxx> format.
5484         (ctype_finish): Correct search for space character value.  Likewise
5485         for default outdigits values.
5486
5487 2000-06-20  Greg McGary  <greg@mcgary.org>
5488
5489         * Makerules (objects): Add BP thunks.
5490
5491 2000-06-20  Ulrich Drepper  <drepper@redhat.com>
5492
5493         * locale/programs/charmap.c (parse_charmap): Handle UCS names also
5494         in width definitions.
5495
5496 2000-06-20  Andreas Jaeger  <aj@suse.de>
5497
5498         * sysdeps/mips/fpu/libm-test-ulps: New file.
5499
5500         * sysdeps/mips/fpu/fesetenv.c (__fesetenv): Flush fpu pipeline
5501         first.
5502
5503         * sysdeps/mips/fpu/feholdexcpt.c: New file.
5504
5505         * sysdeps/mips/fpu/fraiseexcpt.c: New file.
5506
5507 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5508
5509         * iconv/gconv_builtin.c (BUILTIN_TRANSFORMATION): Update for
5510         change in gconv_builtin.h.
5511
5512         * malloc/Makefile: Change all references to memprof into memusage.
5513         * malloc/memprof.c: Rename to...
5514         * malloc/memusage.c: ...this.  New file.
5515         * malloc/memprof.sh: Rename to...
5516         * malloc/memusage.sh: ...this.  New file.
5517         * malloc/memprofstat.c: Rename to...
5518         * malloc/memusagestat.c: ...this.  New file.
5519         * sysdeps/alpha/memprof.h: Rename to..
5520         * sysdeps/alpha/memusage.h: ...this.  New file.
5521         * sysdeps/arm/memprof.h: Rename to..
5522         * sysdeps/arm/memusage.h: ...this.  New file.
5523         * sysdeps/generic/memprof.h: Rename to..
5524         * sysdeps/generic/memusage.h: ...this.  New file.
5525         * sysdeps/i386/memprof.h: Rename to..
5526         * sysdeps/i386/memusage.h: ...this.  New file.
5527         * sysdeps/ia64/memprof.h: Rename to..
5528         * sysdeps/ia64/memusage.h: ...this.  New file.
5529         * sysdeps/m68k/memprof.h: Rename to..
5530         * sysdeps/m68k/memusage.h: ...this.  New file.
5531         * sysdeps/mips/memprof.h: Rename to..
5532         * sysdeps/mips/memusage.h: ...this.  New file.
5533         * sysdeps/powerpc/memprof.h: Rename to..
5534         * sysdeps/powerpc/memusage.h: ...this.  New file.
5535         * sysdeps/sparc/memprof.h: Rename to..
5536         * sysdeps/sparc/memusage.h: ...this.  New file.
5537         * sysdeps/sh/memprof.h: Rename to..
5538         * sysdeps/sh/memusage.h: ...this.  New file.
5539
5540         * elf/sprof.c (print_version): Update year.
5541
5542         * elf/sprof.c (load_shobj): Don't always add load address to dynamic
5543         table entry values.  Use D_PTR.
5544         * elf/dl-reloc.c (_dl_relocate_object): Don't start profiling weird
5545         binaries without PLT.  Patches by James Mathiesen <james@curl.com>.
5546
5547 2000-06-20  Jes Sorensen  <jes@linuxcare.com>
5548
5549         * sysdeps/unix/sysv/linux/ia64/Makefile: New file.
5550         * sysdeps/unix/sysv/linux/ia64/sys/io.h: New file.
5551         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: New file.
5552         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: New file.
5553
5554 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
5555
5556         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: New file.
5557
5558 2000-06-16  Jes Sorensen  <jes@linuxcare.com>
5559
5560         * sysdeps/unix/sysv/linux/ia64/xstat.c: New file.
5561         * sysdeps/unix/sysv/linux/ia64/fxstat.c: New file.
5562         * sysdeps/unix/sysv/linux/ia64/lxstat.c: New file.
5563
5564         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: Deleted.
5565
5566         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Update after latest
5567         kernel change.
5568
5569         * sysdeps/unix/sysv/linux/ia64/bits/types.h: Make __ino_t,
5570         __nlink_t and __blkcnt_t 64 bit to accomodate new kernel stat data
5571         structure.
5572         Change __fsblkcnt_t and __fsfilcnt_t to 64 bit to match kernel
5573         implementation.
5574
5575 2000-06-15  Jes Sorensen  <jes@linuxcare.com>
5576
5577         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Deleted.
5578
5579 2000-06-08  Jes Sorensen  <jes@linuxcare.com>
5580
5581         * sysdeps/unix/sysv/linux/ia64/mmap64.c: New file.
5582
5583 2000-06-19  Ulrich Drepper  <drepper@redhat.com>
5584
5585         * iconv/gconv_int.h (strict gconv_module): Remove all members
5586         associated with regular expressions.  Use a simple string as the
5587         from name.
5588         * iconv/gconv_db.c: Remove code handling regular expressions.
5589         * iconv/gconv_conf.c: Likewise.
5590         * iconv/iconv_prog.c: Likewise.
5591         * iconv/gconv_builtin.h: Adjust for change in gconv_conf.c.
5592
5593         * iconv/gconv.h (__gconv_trans_fct): Add new parameter.
5594         General namespace cleanup.
5595         (struct __gconv_trans_data): Add next field.
5596         (struct __gconv_step_data): Make __trans a pointer.
5597         * iconv/gconv_conf.c: Split out code to find gconv directories from
5598         __gconv_read_conf in new functions.
5599         * iconv/gconv_int.h: Define new data structure and declare new
5600         functions for handling of gconv directory list.
5601         * iconv/gconv_open.c: Allow more than one error handling step being
5602         used.  Call function to load error handling module if it is none
5603         of the builtin transformations.
5604         * iconv/gconv_close.c: Add code to free transliteration data.
5605         * iconv/gconv_trans.c: Add functions to load and unload modules
5606         implementing transliteration etc.
5607         * iconv/skeleton.c: Call all context functions now that more than
5608         one module is allowed.
5609         * iconv/loop.c (STANDARD_ERR_HANDLING): New macro.
5610         * iconv/gconv_simple.c: Use STANDARD_ERR_HANDLING macro for places
5611         where the full error handling using transliteration is needed.
5612         * iconvdata/8bit-gap.c: Likewise.
5613         * iconvdata/8bit-generic.c: Likewise.
5614         * iconvdata/ansi_x3.110.c: Likewise.
5615         * iconvdata/big5.c: Likewise.
5616         * iconvdata/big5hkscs.c: Likewise.
5617         * iconvdata/euc-cn.c: Likewise.
5618         * iconvdata/euc-jp.c: Likewise.
5619         * iconvdata/euc-kr.c: Likewise.
5620         * iconvdata/euc-tw.c: Likewise.
5621         * iconvdata/gbgbk.c: Likewise.
5622         * iconvdata/gbk.c: Likewise.
5623         * iconvdata/iso-2022-cn.c: Likewise.
5624         * iconvdata/iso-2022-jp.c: Likewise.
5625         * iconvdata/iso-2022-kr.c: Likewise.
5626         * iconvdata/iso646.c: Likewise.
5627         * iconvdata/iso8859-1.c: Likewise.
5628         * iconvdata/iso_6937-2.c: Likewise.
5629         * iconvdata/iso_6937.c: Likewise.
5630         * iconvdata/johab.c: Likewise.
5631         * iconvdata/sjis.c: Likewise.
5632         * iconvdata/t.61.c: Likewise.
5633         * iconvdata/uhc.c: Likewise.
5634         * iconvdata/unicode.c: Likewise.
5635         * iconvdata/utf-16.c: Likewise.
5636         * libio/iofwide.c: Reset __trans member of __gconv_trans_data
5637         structure correctly after last change.
5638         * wcsmbs/btowc.c: Likewise.
5639         * wcsmbs/mbrtowc.c: Likewise.
5640         * wcsmbs/mbsnrtowcs.c: Likewise.
5641         * wcsmbs/mbsrtowcs.c: Likewise.
5642         * wcsmbs/wcrtomb.c: Likewise.
5643         * wcsmbs/wcsnrtombs.c: Likewise.
5644         * wcsmbs/wcsrtombs.c: Likewise.
5645         * wcsmbs/wctob.c: Likewise.
5646
5647         * localedata/Makefile: Set -Wno-format for some files since gcc does
5648         not know all the format specifiers.
5649
5650 2000-06-18  Ulrich Drepper  <drepper@redhat.com>
5651
5652         * locale/loadlocale.c (_nl_unload_locale): Remove a bit of
5653         unneeded code.
5654         * locale/lc-time.c (_nl_init_era_entries): Likewise.
5655
5656 2000-06-18  Andreas Jaeger  <aj@suse.de>
5657
5658         * sysdeps/mips/dl-machine.h: Always use $25 as jump register.
5659         Patch by Ralf Baechle <ralf@uni-koblenz.de>.
5660
5661 2000-06-17  Ulrich Drepper  <drepper@redhat.com>
5662
5663         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Define and use
5664         LINUX_LINK_MAX.
5665         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
5666
5667         * locale/programs/ld-ctype.c (ctype_output): Really write out
5668         mboutdigits information.
5669         * localedata/tst-trans.c: Add code to test printf's I flag with locale.
5670         * localedata/tst-trans.sh: Set GCONV_PATH for compilation environment.
5671         * localedata/tests/trans.def: Add outdigit information.
5672
5673         * localedata/tst-mbswcs3.c: Remove comment.
5674
5675         * stdio-common/vfprintf.c (vfprintf): Fix handling of I flag.
5676         * stdio-common/tiformat.c (sprint_ints): Add tests for I flag.
5677         * libio/tst_wprintf.c (main): Add test for I flag.
5678
5679         * iconv/gconv_trans.c: Implement handling if translit_ignore.
5680         * locale/langinfo.h: Add entries for translit_ignore information.
5681         * locale/categories.def: Add entries for new LC_CTYPE elements.
5682         * locale/C-ctype.c: Add initializers for new fields.  Use NULL
5683         pointer instead of "" where possible.
5684         * locale/programs/ld-ctype.c: Write out translit_ignore information.
5685         * intl/Depend: Add localedata.
5686         * intl/tst-gettext.c: Call setlocale for LC_CTYPE.
5687         * intl/tst-gettext.sh: Set LOCPATH to localedata build dir.
5688
5689 2000-06-16  Ulrich Drepper  <drepper@redhat.com>
5690
5691         * locale/langinfo.h: Add entries for default_missing information.
5692         * locale/C-ctype.c: Add initializers for new fields.
5693         * iconv/gconv_trans.c: If nothing matched, try to use default_missing
5694         information.
5695         * locale/categories.h: Add entries for all LC_CTYPE values.
5696         * locale/programs/ld-ctype.c (ctype_output): Write out default_missing
5697         information.
5698
5699         * localedata/tst-trans.c: Write out an error message if class is
5700         not found.
5701
5702         * iconv/gconv_int.h (norm_add_slashes): Optionally add given suffix.
5703         * iconv/gconv_open.c: Remove error handling specification from `from'
5704         character set name.
5705         * intl/loadmsgcat.c (_nl_load_domain): Call norm_add_slashes with
5706         new parameter to always enable transliteration.
5707         * locale/localeinfo.h (LIMAGIC): Bump number because of incompatible
5708         change.
5709         (struct locale_data): Add new members use_translit and options.
5710         * locale/findlocale.c (_nl_find_locale): Set use_translit flag is
5711         character set name contained modifier TRANSLIT.
5712         * locale/loadlocale.c (_nl_load_locale): Initialize new use_translit
5713         and options fields.
5714         (_nl_unload_locale): Free options string if necessary.
5715         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Enable translation if
5716         the locale names suggested this.
5717         * locale/C-address.c: Add two new initialilzers to adjust data
5718         structure for new format.
5719         * locale/C-collate.c: Likewise.
5720         * locale/C-ctype.c: Likewise.
5721         * locale/C-identification.c: Likewise.
5722         * locale/C-measurement.c: Likewise.
5723         * locale/C-messages.c: Likewise.
5724         * locale/C-monetary.c: Likewise.
5725         * locale/C-name.c: Likewise.
5726         * locale/C-numeric.c: Likewise.
5727         * locale/C-paper.c: Likewise.
5728         * locale/C-telephone.c: Likewise.
5729         * locale/C-time.c: Likewise.
5730
5731         * locale/setlocale.c: Add some more __builtin_expect.
5732
5733 2000-06-15  Ulrich Drepper  <drepper@redhat.com>
5734
5735         * iconv/gconv.h (__gconv_fct): Change type of fifth parameter to
5736         unsigned char **.
5737         (__gconv_init_fct): Remove two parameters.
5738         * iconv/gconv_int.h (__gconv_transliterate): Renamed from
5739         gconv_transliterate.  Remove two parameters.
5740         Change prototypes of builtin functions according to __gconv_fct change.
5741         * iconv/skeleton.c: Change type of fifth parameter.  make sure it is
5742         != NULL only during error handling.  Stop in this case after the
5743         conversion.
5744         * iconv/gconv_trans.c: Replace with real implementation for
5745         __gconv_transliterate.
5746         * iconv/gconv_open.c: Adjust for renaming of __gconv_transliterate.
5747         * iconv/gconv.c: Change calls to downstream functions once again.
5748         Use NULL for the fifth parameter instead of pointer to output buffer.
5749         * libio/iofwide.c: Likewise.
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         * iconv/gconv_simple.c: Remove two parameters from error handling
5759         function call.
5760         * iconvdata/8bit-gap.c: Likewise.
5761         * iconvdata/8bit-generic.c: Likewise.
5762         * iconvdata/ansi_x3.110.c: Likewise.
5763         * iconvdata/big5.c: Likewise.
5764         * iconvdata/big5hkscs.c: Likewise.
5765         * iconvdata/euc-cn.c: Likewise.
5766         * iconvdata/euc-jp.c: Likewise.
5767         * iconvdata/euc-kr.c: Likewise.
5768         * iconvdata/euc-tw.c: Likewise.
5769         * iconvdata/gbgbk.c: Likewise.
5770         * iconvdata/gbk.c: Likewise.
5771         * iconvdata/iso-2022-cn.c: Likewise.
5772         * iconvdata/iso-2022-jp.c: Likewise.
5773         * iconvdata/iso-2022-kr.c: Likewise.
5774         * iconvdata/iso646.c: Likewise.
5775         * iconvdata/iso8859-1.c: Likewise.
5776         * iconvdata/iso_6937-2.c: Likewise.
5777         * iconvdata/iso_6937.c: Likewise.
5778         * iconvdata/johab.c: Likewise.
5779         * iconvdata/sjis.c: Likewise.
5780         * iconvdata/t.61.c: Likewise.
5781         * iconvdata/uhc.c: Likewise.
5782         * iconvdata/unicode.c: Likewise.
5783         * iconvdata/utf-16.c: Likewise.
5784
5785 2000-06-15  Greg McGary  <greg@mcgary.org>
5786
5787         * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs
5788         of callnum assignment.  Tolerate callnum expressions containing
5789         parens.
5790
5791 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5792
5793         * login/Makefile (utmpd): Remove rule to build utmpd.
5794
5795         * csu/Versions: Move libgcc frame handling functions from here...
5796         * sysdeps/unix/sysv/linux/alpha/Versions: ...to here...
5797         * sysdeps/unix/sysv/linux/arm/Versions: ...to here...
5798         * sysdeps/unix/sysv/linux/i386/Versions: ...to here...
5799         * sysdeps/unix/sysv/linux/m68k/Versions: ...to here...
5800         * sysdeps/unix/sysv/linux/powerpc/Versions: ...to here...
5801         * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: ...and here.
5802         New file.
5803         * sysdeps/mach/hurd/i386/Versions: ...and here.  New file.
5804
5805         * locale/programs/ld-ctype.c (allocate_arrays): Correct a comment.
5806
5807         * misc/syslog.c (vsyslog): Initialize msgoff in all cases.
5808
5809 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
5810
5811         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
5812         compatibility.
5813         * sysdeps/sh/sh4/fpu/fegetenv.c: Likewise.
5814         * sysdeps/sh/sh4/fpu/fesetenv.c: Likewise.
5815         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: Likewise.
5816         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: Likewise.
5817
5818 2000-06-14  Jakub Jelinek  <jakub@redhat.com>
5819
5820         * include/libc-symbols.h (link_warning): If HAVE_SECTION_QUOTES is
5821         defined, terminate quotes and read them after the comment char.
5822         * configure.in (HAVE_SECTION_QUOTES): Test whether
5823         __attribute__((section ("x"))) puts quotes around x or not.
5824         * config.h.in (HAVE_SECTION_QUOTES): Add.
5825         * configure: Rebuilt.
5826
5827 2000-06-14  Andreas Jaeger  <aj@suse.de>
5828
5829         * sysdeps/unix/sysv/linux/configure.in: Set libc_cv_sysconfdir
5830         depending on the configure option --sysconfdir.
5831         Closes PR libc/1762.
5832         Patch by Andreas Schwab <schwab@suse.de>.
5833
5834         * sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
5835         entry point.
5836         Reported by Jim Pick <jim@jimpick.com>.
5837
5838 2000-06-14  Ulrich Drepper  <drepper@redhat.com>
5839
5840         * misc/syslog.c (vsyslog): Allow open_memstream to fail without
5841         crashing the application.  Emit some simple error message.
5842         Reported by mju@panasas.com [PR libc/1769].
5843
5844 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5845
5846         * malloc/Makefile (distribute): Add memprof.sh and memprofstat.c.
5847
5848         * crypt/Makefile (distribute): Add md5.h.
5849
5850         * Makefile (distribute): Add include/shlib-compat.h.
5851
5852         * Make-dist: Search for tests also in sysdeps hierachy.
5853
5854         * crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
5855         ufc.c, speeds.c, README.ufc-crypt, and Banner.
5856
5857         * sysdeps/sparc/Subdirs: New file.
5858
5859         * locale/Makefile (distribute): Add weightwc.h and
5860         programs/localedef.h.
5861
5862         * time/Makefile (distribute): Add datemsk.
5863
5864         * sysdeps/ia64/Dist: Add softpipe.h.
5865
5866         * sysdeps/unix/sysv/aix/Dist: New file.
5867
5868         * posix/setpgrp.c: Moved to...
5869         * sysdeps/generic/setpgrp.c: ...here.  New file.
5870         * io/mknod.c: Moved to...
5871         * sysdeps/generic/mknod.c: ...here.  New file.
5872
5873         * sysdeps/unix/sysv/linux/ia64/Dist: New file.
5874
5875         * sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
5876
5877         * sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
5878
5879         * sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
5880         gprsave0.S, gprrest1.S, and gprrest0.S.
5881
5882         * sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
5883
5884         * posix/Makefile (routines): Add spawnattr_getsigmask,
5885         spawnattr_getschedpolicy, spawnattr_getschedparam,
5886         spawnattr_setsigmask, spawnattr_setschedpolicy, and
5887         spawnattr_setschedparam.
5888         * posix/Versions: Add posix_spawnattr_getschedpolicy,
5889         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
5890         posix_spawnattr_setschedparam.
5891
5892         * posix/spawnattr_setschedparam.c: Fix typo.
5893
5894         * posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
5895         Correct typo.
5896
5897         * login/programs/utmpd.c: Removed.
5898         * login/programs/utmpd.h: Removed.
5899         * login/programs/utmpd-private.h: Removed.
5900
5901         * Makefile (distribute): Add include/db_185.h and include/db.h.
5902
5903         * iconvdata/Makefile (distribute): Add iso-ir-165.c and
5904         iso-ir-165.h.
5905
5906         * elf/Makefile (distribute): Add missing files.
5907
5908         * dlfcn/Makefile: Add back rules to include eval in libdl.so.
5909         * elf/eval.c: Moved to...
5910         * dlfcn/eval.c: ...here.  New file.
5911
5912         * Makefile (distribute): Also distribute ChangeLog.1?.
5913
5914         * Make-dist (+tsrcs): Remove .args handling here as well.
5915
5916         * rt/Makefile (tests): Add tst-timer.
5917         * sysdeps/generic/tst-timer.c: New file.
5918
5919         * Makerules (sources): Don't add BP sources here.
5920
5921         * login/Makefile (distribute): Remove xtmp.h.
5922
5923         * iconv/iconv_prog.c (main): Fix appending slashes if omit_invalid
5924         is true.  Reported by Bruno Haible <haible@ilog.fr>.
5925
5926 2000-06-13  Andreas Jaeger  <aj@suse.de>
5927
5928         * sysdeps/mips/elf/start.S (ENTRY_POINT): Remove mips64 defines.
5929         Patch by Ralf Baechle <ralf@gnu.org>.
5930
5931 2000-06-13  Ulrich Drepper  <drepper@redhat.com>
5932
5933         * sysdeps/unix/sysv/linux/syscalls.list: Add parameter information
5934         for mincore syscall.
5935
5936         * misc/sys/cdefs.h: Define __bounded and __unbounded if
5937         __BOUNDED_POINTERS__ is not defined.
5938
5939 2000-06-07  Greg McGary  <greg@mcgary.org>
5940
5941         * sysdeps/generic/bp-sym.h: New file.
5942         * sysdeps/generic/bp-start.h: New file.
5943         * sysdeps/i386/elf/start.S: Designate BP symbols.
5944         * sysdeps/generic/libc-start.c: Wrap bounds around
5945         argv & envp and each of their string members.
5946
5947 2000-06-07  Greg McGary  <greg@mcgary.org>
5948
5949         * sysdeps/unix/make-syscalls.sh: Add comments to
5950         output that aid debugging & comprehension.
5951         Map simple syscall signatures to number of args.
5952         Generate BP syscall thunk definitions.
5953         * sysdeps/generic/bp-thunks.h: New file.
5954         * sysdeps/unix/syscalls.list: Replace arg-count with
5955         simple return+arg signature.
5956         * sysdeps/unix/common/syscalls.list: Likewise.
5957         * sysdeps/unix/inet/syscalls.list: Likewise.
5958         * sysdeps/unix/mman/syscalls.list: Likewise.
5959         * sysdeps/unix/sysv/syscalls.list: Likewise.
5960         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
5961         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
5962
5963 2000-06-07  Greg McGary  <greg@mcgary.org>
5964
5965         * Makeconfig (CPPFLAGS-.ob): Pass -fbounded-pointers
5966         for all files *.[cS].
5967         (CFLAGS-.ob): Don't optimize sibling calls.
5968         (bppfx): New variable.
5969         * Makerules (elide-bp-thunks): New variable.
5970         (elide-routines.*): Elide BP-* files for all but *.ob.
5971         (sources): Include bp-thunks.
5972
5973 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
5974
5975         * iconv/gconv_simple.c: Remove unnecessary prototype.
5976
5977         * iconv/gconv_trans.c: Pretty print.
5978
5979         * elf/elf.h (R_SH_NUM): Got accidently dropped.
5980
5981         * sysdeps/unix/sysv/linux/configure.in: Improve handling of
5982         minimal kernel versions.  Add information about IA-64 kernel.
5983
5984         * sysdeps/unix/sysv/linux/configure.in: Allow architecture
5985         specific minimal supported kernel versions to be specified.
5986
5987         * libio/iofwide.c (_IO_fwide): Initialize transliteration part of
5988         step data structure.
5989         * wcsmbs/btowc.c: Likewise.
5990         * wcsmbs/mbrtowc.c: Likewise.
5991         * wcsmbs/mbsnrtowcs.c: Likewise.
5992         * wcsmbs/mbsrtowcs.c: Likewise.
5993         * wcsmbs/wcrtomb.c: Likewise.
5994         * wcsmbs/wcsnrtombs.c: Likewise.
5995         * wcsmbs/wcsrtombs.c: Likewise.
5996         * wcsmbs/wctob.c: Likewise.
5997
5998         * sysdeps/unix/sysv/linux/sh/Dist: There is no ioperm file.
5999         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: Removed.
6000
6001         * shlib-versions: Earliest backward compatible version for SH is 2.2.
6002
6003         * misc/sys/cdefs.h: Remove one more __P.
6004
6005         * sysvipc/sys/shm.h: Move __getpagesize declaration inside extern C.
6006         Reported by HJ Lu.
6007
6008         * sysdeps/sh/sh3/bits/setjmp.h: Removed.
6009         * sysdeps/sh/sh4/bits/setjmp.h: Moved to...
6010         * sysdeps/sh/bits/setjmp.h: ...here.  New file.
6011
6012 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6013             Yutaka Niibe  <gniibe@chroot.org>
6014
6015         * configure.in: Add machine sh3, sh4.
6016         * elf/elf.h: Add SH specific declarations of relocations.
6017         * shlib-versions: Add sh*-*-linux* cases.
6018
6019 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6020
6021         * sysdeps/sh/sh3/bsd-_setjmp.S: Move to...
6022         * sysdeps/sh/bsd-_setjmp.S: ...here.  New file.
6023         * sysdeps/sh/sh4/bsd-_setjmp.S: Removed.
6024         * sysdeps/sh/sh3/bsd-setjmp.S: Move to...
6025         * sysdeps/sh/bsd-setjmp.S: ...here.  New file.
6026         * sysdeps/sh/sh4/bsd-setjmp.S: Removed.
6027
6028         * sysdeps/sh/dl-machine.h (FGR_SAVE): Protect using HAVE_FPU macro
6029         instead of KERNEL_MATH_EMULATION.
6030         * sysdeps/sh/sh4/dl-machine.h: Define HAVE_FPU not
6031         KERNEL_MATH_EMULATION.
6032
6033         * sysdeps/sh/Dist: Removed.  There is no ieee754.h file.
6034         * sysdeps/sh/sh3/dl-machine.h: Moved to...
6035         * sysdeps/sh/dl-machine.h: ...here.  New file.
6036         * sysdeps/sh/sh4/dl-machine.h: Simply define KERNEL_MATH_EMULATION
6037         and include generic SH version.
6038         * sysdeps/sh/sh3/bits/endian.h: Move to...
6039         * sysdeps/sh/bits/endian.h: ...here.  New file.
6040         * sysdeps/sh/sh4/bits/endian.h: Removed.
6041         * sysdeps/sh/sh3/bits/huge_val.h: Move to...
6042         * sysdeps/sh/bits/huge_val.h: ...here.  New file.
6043         * sysdeps/sh/sh4/bits/huge_val.h: Removed.
6044
6045         * include/libc-symbols.h (link_warning): Work around a change in
6046         GAS which warns about changing section attributes.
6047         Proposed by Nick Clifton <nickc@redhat.com>.
6048
6049 2000-06-12  H.J. Lu  <hjl@gnu.org>
6050
6051         * sysdeps/i386/fpu/bits/mathinline.h (__sgn1l): Add __extension__.
6052
6053 2000-06-11  H.J. Lu  <hjl@gnu.org>
6054
6055         * sysdeps/i386/fpu/Versions: New file.
6056
6057 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6058
6059         * iconv/gconv.h (__gconv_trans_context_fct): Remove two
6060         parameters.
6061         * iconv/skeleton.c (FUNCTION_NAME): Call __trans_context_fct if it
6062         exists.
6063
6064 2000-06-12  Jes Sorensen  <jes@linuxcare.com>
6065
6066         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: New file.
6067         * sysdeps/unix/sysv/linux/ia64/xstatconv.c: New file.
6068         * sysdeps/unix/sysv/linux/ia64/bits/stat.h: New file.
6069
6070         * sysdeps/unix/sysv/linux/ia64/fxstat64.c: New file.
6071         * sysdeps/unix/sysv/linux/ia64/lxstat64.c: New file.
6072         * sysdeps/unix/sysv/linux/ia64/xstat64.c: New file.
6073
6074 2000-06-12  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
6075             Yutaka Niibe  <gniibe@chroot.org>
6076
6077         * sysdeps/sh/Dist: New file.
6078         * sysdeps/sh/Implies: New file.
6079         * sysdeps/sh/elf/initfini.c: New file.
6080         * sysdeps/sh/gmp-mparam.h: New file.
6081         * sysdeps/sh/init-first.c: New file.
6082         * sysdeps/sh/machine-gmon.h: New file.
6083         * sysdeps/sh/memcpy.S: New file.
6084         * sysdeps/sh/memprof.h: New file.
6085         * sysdeps/sh/memset.S: New file.
6086         * sysdeps/sh/sh3/__longjmp.S: New file.
6087         * sysdeps/sh/sh3/bits/endian.h: New file.
6088         * sysdeps/sh/sh3/bits/huge_val.h: New file.
6089         * sysdeps/sh/sh3/bits/setjmp.h: New file.
6090         * sysdeps/sh/sh3/bsd-_setjmp.S: New file.
6091         * sysdeps/sh/sh3/bsd-setjmp.S: New file.
6092         * sysdeps/sh/sh3/dl-machine.h: New file.
6093         * sysdeps/sh/sh3/setjmp.S: New file.
6094         * sysdeps/sh/sh4/__longjmp.S: New file.
6095         * sysdeps/sh/sh4/bits/endian.h: New file.
6096         * sysdeps/sh/sh4/bits/huge_val.h: New file.
6097         * sysdeps/sh/sh4/bits/setjmp.h: New file.
6098         * sysdeps/sh/sh4/bsd-_setjmp.S: New file.
6099         * sysdeps/sh/sh4/bsd-setjmp.S: New file.
6100         * sysdeps/sh/sh4/dl-machine.h: New file.
6101         * sysdeps/sh/sh4/fpu/bits/fenv.h: New file.
6102         * sysdeps/sh/sh4/fpu/bits/huge_val.h: New file.
6103         * sysdeps/sh/sh4/fpu/bits/mathdef.h: New file.
6104         * sysdeps/sh/sh4/fpu/fclrexcpt.c: New file.
6105         * sysdeps/sh/sh4/fpu/fegetenv.c: New file.
6106         * sysdeps/sh/sh4/fpu/fegetround.c: New file.
6107         * sysdeps/sh/sh4/fpu/feholdexcpt.c: New file.
6108         * sysdeps/sh/sh4/fpu/fesetenv.c: New file.
6109         * sysdeps/sh/sh4/fpu/fesetround.c: New file.
6110         * sysdeps/sh/sh4/fpu/fpu_control.h: New file.
6111         * sysdeps/sh/sh4/fpu/fraiseexcpt.c: New file.
6112         * sysdeps/sh/sh4/fpu/fsetexcptflg.c: New file.
6113         * sysdeps/sh/sh4/fpu/ftestexcept.c: New file.
6114         * sysdeps/sh/sh4/fpu/libm-test-ulps: New file.
6115         * sysdeps/sh/sh4/setjmp.S: New file.
6116         * sysdeps/sh/elf/start.S: New file.
6117         * sysdeps/sh/sys/ucontext.h: New file.
6118         * sysdeps/sh/strlen.S: New file.
6119         * sysdeps/sh/sysdep.h: New file.
6120         * sysdeps/unix/sh/sysdep.S: New file.
6121         * sysdeps/unix/sh/sysdep.h: New file.
6122         * sysdeps/unix/sysv/linux/sh/Dist: New file.
6123         * sysdeps/unix/sysv/linux/sh/Makefile: New file.
6124         * sysdeps/unix/sysv/linux/sh/Versions: New file.
6125         * sysdeps/unix/sysv/linux/sh/bits/mman.h: New file.
6126         * sysdeps/unix/sysv/linux/sh/bits/resource.h: New file.
6127         * sysdeps/unix/sysv/linux/sh/brk.c: New file.
6128         * sysdeps/unix/sysv/linux/sh/chown.c: New file.
6129         * sysdeps/unix/sysv/linux/sh/clone.S: New file.
6130         * sysdeps/unix/sysv/linux/sh/fchown.c: New file.
6131         * sysdeps/unix/sysv/linux/sh/fxstat.c: New file.
6132         * sysdeps/unix/sysv/linux/sh/getegid.c: New file.
6133         * sysdeps/unix/sysv/linux/sh/geteuid.c: New file.
6134         * sysdeps/unix/sysv/linux/sh/getgroups.c: New file.
6135         * sysdeps/unix/sysv/linux/sh/getresgid.c: New file.
6136         * sysdeps/unix/sysv/linux/sh/getresuid.c: New file.
6137         * sysdeps/unix/sysv/linux/sh/getrlimit.c: New file.
6138         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: New file.
6139         * sysdeps/unix/sysv/linux/sh/getuid.c: New file.
6140         * sysdeps/unix/sysv/linux/sh/lchown.c: New file.
6141         * sysdeps/unix/sysv/linux/sh/lxstat.c: New file.
6142         * sysdeps/unix/sysv/linux/sh/msgctl.c: New file.
6143         * sysdeps/unix/sysv/linux/sh/oldgetrlimit64.c: New file.
6144         * sysdeps/unix/sysv/linux/sh/pipe.S: New file.
6145         * sysdeps/unix/sysv/linux/sh/profil-counter.h: New file.
6146         * sysdeps/unix/sysv/linux/sh/semctl.c: New file.
6147         * sysdeps/unix/sysv/linux/sh/setegid.c: New file.
6148         * sysdeps/unix/sysv/linux/sh/seteuid.c: New file.
6149         * sysdeps/unix/sysv/linux/sh/setfsgid.c: New file.
6150         * sysdeps/unix/sysv/linux/sh/setfsuid.c: New file.
6151         * sysdeps/unix/sysv/linux/sh/setgid.c: New file.
6152         * sysdeps/unix/sysv/linux/sh/setgroups.c: New file.
6153         * sysdeps/unix/sysv/linux/sh/setregid.c: New file.
6154         * sysdeps/unix/sysv/linux/sh/setresgid.c: New file.
6155         * sysdeps/unix/sysv/linux/sh/setresuid.c: New file.
6156         * sysdeps/unix/sysv/linux/sh/setreuid.c: New file.
6157         * sysdeps/unix/sysv/linux/sh/setrlimit.c: New file.
6158         * sysdeps/unix/sysv/linux/sh/setuid.c: New file.
6159         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: New file.
6160         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: New file.
6161         * sysdeps/unix/sysv/linux/sh/shmctl.c: New file.
6162         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: New file.
6163         * sysdeps/unix/sysv/linux/sh/socket.S: New file.
6164         * sysdeps/unix/sysv/linux/sh/sys/io.h: New file.
6165         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
6166         * sysdeps/unix/sysv/linux/sh/sys/user.h: New file.
6167         * sysdeps/unix/sysv/linux/sh/syscalls.list: New file.
6168         * sysdeps/unix/sysv/linux/sh/sysdep.S: New file.
6169         * sysdeps/unix/sysv/linux/sh/sysdep.h: New file.
6170         * sysdeps/unix/sysv/linux/sh/vfork.S: New file.
6171         * sysdeps/unix/sysv/linux/sh/xstat.c: New file.
6172
6173 2000-06-12  Ulrich Drepper  <drepper@redhat.com>
6174
6175         * Rules (%.out): Define GCONV_PATH in the environment.
6176         * assert/Depend: New file.
6177         * iconvdata/Depend: New file.
6178         * intl/Depend: New file.
6179         * timezone/Makefile (build-testdata): Add GCONV_PATH to environment.
6180         * intl/tst-gettext.sh: Likewise.
6181         * iconv/Makefile (routines): Add gconv_trans.
6182         * iconv/gconv_trans.c: New file.
6183         * iconv/gconv.h (struct __gconv_trans_data): New type.
6184         (__gconv_fct): New parameter with starting position in output buffer.
6185         (__gconv_trans_fct, __gconv_trans_context_fct, __gconv_trans_query_fct,
6186         __gconv_trans_init_fct, __gconv_trans_end_fct): New types.
6187         (struct __gconv_step): Add new member __trans.
6188         * iconv/gconv_int.h: Pretty print prototypes.
6189         (gconv_transliterate): New prototype.
6190         (__BUILTIN_TRANS): Update for new conversion function interface.
6191         * iconv/gconv.c (__gconv): Pass new parameter to conversion function.
6192         * iconv/gconv_open.c (__gconv_open): Recognize error handling suffix
6193         in names, find appropriate function, and install in the conversion
6194         steps it can be used.
6195         * iconv/skeleton.c: Add additional parameter for beginning of output
6196         buffer.  Change calls of downstream functions.
6197         * iconv/loop.c: Change loop function interface completely.  Pass in
6198         step and step_data structure.  Remove optimization for BODY with
6199         NEED_LENGTH_TEST == 0.
6200         * iconv/gconv_simple.c: Update interfaces of functions.  Insert
6201         appropriate error handling code to use transliteration steps.  Remove
6202         optimization for BODY with NEED_LENGTH_TEST == 0.
6203         * iconvdata/8bit-gap.c: Likewise.
6204         * iconvdata/8bit-generic.c: Likewise.
6205         * iconvdata/ansi_x3.110.c: Likewise.
6206         * iconvdata/big5.c: Likewise.
6207         * iconvdata/big5hkscs.c: Likewise.
6208         * iconvdata/euc-cn.c: Likewise.
6209         * iconvdata/euc-jp.c: Likewise.
6210         * iconvdata/euc-kr.c: Likewise.
6211         * iconvdata/euc-tw.c: Likewise.
6212         * iconvdata/gbgbk.c: Likewise.
6213         * iconvdata/gbk.c: Likewise.
6214         * iconvdata/iso-2022-cn.c: Likewise.
6215         * iconvdata/iso-2022-jp.c: Likewise.
6216         * iconvdata/iso-2022-kr.c: Likewise.
6217         * iconvdata/iso646.c: Likewise.
6218         * iconvdata/iso8859-1.c: Likewise.
6219         * iconvdata/iso_6937-2.c: Likewise.
6220         * iconvdata/iso_6937.c: Likewise.
6221         * iconvdata/johab.c: Likewise.
6222         * iconvdata/sjis.c: Likewise.
6223         * iconvdata/t.61.c: Likewise.
6224         * iconvdata/uhc.c: Likewise.
6225         * iconvdata/unicode.c: Likewise.
6226         * iconvdata/utf-16.c: Likewise.
6227         * libio/iofwide.c: Adjust to new interface of gconv functions.  Use
6228         DL_CALL_FCT.
6229         * wcsmbs/btowc.c: Likewise.
6230         * wcsmbs/mbrtowc.c: Likewise.
6231         * wcsmbs/mbsnrtowcs.c: Likewise.
6232         * wcsmbs/mbsrtowcs.c: Likewise.
6233         * wcsmbs/wcrtomb.c: Likewise.
6234         * wcsmbs/wcsnrtombs.c: Likewise.
6235         * wcsmbs/wcsrtombs.c: Likewise.
6236         * wcsmbs/wctob.c: Likewise.
6237
6238 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
6239
6240         * sysdeps/powerpc/dl-machine.c: Include dl-machine.h after the
6241         other header files.  Mention about 128-byte cache line sizes.
6242         (__elf_machine_fixup_plt): Make types match elf_machine_fixup_plt.
6243         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Update
6244         for current calling sequence.
6245         * sysdeps/powerpc/dl-start.S (_dl_start_user): Close comment.
6246
6247         * sysdeps/powerpc/fpu/s_rint.c: Handle rounding to -0 correctly.
6248         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6249
6250         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add getrlimit
6251         and setrlimit syscalls for backwards compatibility.
6252
6253 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6254
6255         * iconv/skeleton.c:  Rename converted written to correcter name
6256         irreversible.
6257         * iconv/gconv.c: Rename converted variable to correcter name
6258         irreversible.
6259         * iconv/gconv_int.h: Likewise.
6260         * iconv/gconv_simple.c: Likewise.
6261         * iconv/iconv.c: Likewise.
6262         * iconv/loop.c: Likewise.
6263         * iconvdata/8bit-gap.c: Likewise.
6264         * iconvdata/8bit-generic.c: Likewise.
6265         * iconvdata/ansi_x3.110.c: Likewise.
6266         * iconvdata/big5.c: Likewise.
6267         * iconvdata/big5hkscs.c: Likewise.
6268         * iconvdata/euc-cn.c: Likewise.
6269         * iconvdata/euc-jp.c: Likewise.
6270         * iconvdata/euc-kr.c: Likewise.
6271         * iconvdata/gbgbk.c: Likewise.
6272         * iconvdata/gbk.c: Likewise.
6273         * iconvdata/iso-2022-cn.c: Likewise.
6274         * iconvdata/iso-2022-jp.c: Likewise.
6275         * iconvdata/iso-2022-kr.c: Likewise.
6276         * iconvdata/iso646.c: Likewise.
6277         * iconvdata/iso8859-1.c: Likewise.
6278         * iconvdata/iso_6937-2.c: Likewise.
6279         * iconvdata/iso_6937.c: Likewise.
6280         * iconvdata/johab.c: Likewise.
6281         * iconvdata/sjis.c: Likewise.
6282         * iconvdata/t.61.c: Likewise.
6283         * iconvdata/uhc.c: Likewise.
6284         * iconvdata/unicode.c: Likewise.
6285         * iconvdata/utf-16.c: Likewise.
6286
6287         * sysdeps/unix/sysv/linux/bits/socket.h (struct cmsghdr): Mark
6288         __cmsg_data field with __extension__.
6289
6290 2000-06-10  David Mosberger  <davidm@hpl.hp.com>
6291
6292         * sysdeps/unix/sysv/linux/ia64/syscall.S: Fix it so it actually works.
6293
6294 2000-06-10  Ulrich Drepper  <drepper@redhat.com>
6295
6296         * iconv/gconv_simple.c: Fix various small bugs in several
6297         functions.
6298
6299         * iconv/loop.c: Fix comment.
6300
6301 2000-06-10  Jakub Jelinek  <jakub@redhat.com>
6302
6303         * elf/link.h: Remove libc internal declarations.
6304         * include/link.h: Move them here.
6305
6306 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6307
6308         * sysdeps/unix/sysv/linux/ia64/getsysstats.c: New file.
6309         Patch by Dan Pop <Dan.Pop@cern.ch>.
6310
6311         Rewrite error message handling.
6312         * elf/dl-deps.c (_dl_map_object_deps): Pass new parameter to
6313         _dl_catch_error.
6314         * elf/dl-error (struct catch): Add objname member.
6315         (_dl_signal_error): Take new parameter with object name.  When
6316         passing message on simply store object name and duplicate error
6317         message.
6318         (_dl_catch_error): Take new parameter.  Store object name in the
6319         place pointed to.
6320         * include/dlfcn.h: Adjust _dl_catch_error prototype.
6321         * sysdeps/generic/ldsodefs.h: Adjust _dl_signal_error prototype.
6322         * dlfcn/dlerror.c (struct dl_action_result): Add objname member.
6323         (dlerror): Add objname to asprintf() parameters.
6324         (_dl_error_run): Pass new parameter to _dl_catch_error.
6325         * elf/dl-libc.c (dlerror_run): Pass new parameter to _dl_catch_error.
6326         * elf/dl-open.c (_dl_open): Likewise.
6327         * elf/rtld.c (dl_main): Likewise.
6328         * elf/dl-close.c: Mark error messages with N_().
6329         * elf/dl-deps.c: Likewise.
6330         * elf/dl-error.c: Likewise.
6331         * elf/dl-load.c: Likewise.
6332         * elf/dl-open.c: Likewise.
6333         * elf/dl-reloc.c: Likewise.
6334         * elf/dl-support.c: Likewise.
6335         * elf/dl-sym.c: Likewise.
6336         * elf/dl-version.c: Likewise.
6337         * elf/dl-lookup.c: Add comments about problems with error message
6338         translations.
6339         * elf/dl-reloc.c: Likewise.
6340         * elf/dl-version.c: Likewise.
6341
6342 2000-06-09  H.J. Lu  <hjl@gnu.org>
6343
6344         * dlfcn/dlerror.c (_dlerror_run): Set result->errstring to NULL
6345         after freeing it.
6346
6347         * dlfcn/Makefile (distribute): Add failtestmod.c.
6348         (tests): Add failtest.
6349         Add rules to build and run failtest.
6350         * dlfcn/failtest.c: New file.
6351         * dlfcn/failtestmod.c: New file.
6352
6353 2000-06-09  David Mosberger-Tang  <davidm@hpl.hp.com>
6354
6355         * sysdeps/unix/sysv/linux/ia64/__longjmp.S: new file
6356         * sysdeps/unix/sysv/linux/ia64/bsd-_setjmp.S: new file
6357         * sysdeps/unix/sysv/linux/ia64/bsd-setjmp.S: new file
6358         * sysdeps/unix/sysv/linux/ia64/setjmp.S: new file
6359         * sysdeps/unix/sysv/linux/ia64/bits/setjmp.h: new file
6360
6361 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6362
6363         * sysdeps/unix/sysv/linux/ia64/brk.S: New file.
6364         * sysdeps/unix/sysv/linux/ia64/pipe.S: New file.
6365
6366 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6367             Ulrich Drepper  <drepper@redhat.com>
6368
6369         * sysdeps/unix/sysv/linux/ia64/sigaction.c: New file.
6370         * sysdeps/unix/sysv/linux/ia64/sigpending.c: New file.
6371         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: New file.
6372         * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: New file.
6373         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: New file.
6374         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h: New file.
6375
6376 2000-06-09  Ulrich Drepper  <drepper@redhat.com>
6377
6378         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Try harder
6379         to find correct mount point despite wrong information from the
6380         kernel.
6381
6382 2000-06-09  Jes Sorensen  <jes@linuxcare.com>
6383
6384         * elf/dl-libc.c (__libc_dlsym): Use DL_SYMBOL_ADDRESS() to obtain
6385         the address of a symbol so function pointers are handled properly.
6386
6387 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6388
6389         * sysdeps/i386/Dist: Add bp-asm.h.
6390
6391         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Use
6392         defaultdir variable instead of "/var/shm" everywhere.
6393         (defaultdir): Change to /dev/shm/.
6394
6395 2000-06-08  Greg McGary  <greg@mcgary.org>
6396
6397         * sysdeps/i386/bp-asm.h: New file.
6398         * sysdeps/i386/__longjmp.S: Define & use symbolic argument stack
6399         offsets.  Add ENTER/LEAVE macros for optionally maintaining
6400         frame-pointer chain when debugging.
6401         * sysdeps/i386/add_n.S: Likewise.
6402         * sysdeps/i386/addmul_1.S: Likewise.
6403         * sysdeps/i386/lshift.S: Likewise.
6404         * sysdeps/i386/memchr.S: Likewise.
6405         * sysdeps/i386/memcmp.S: Likewise.
6406         * sysdeps/i386/mul_1.S: Likewise.
6407         * sysdeps/i386/rawmemchr.S: Likewise.
6408         * sysdeps/i386/rshift.S: Likewise.
6409         * sysdeps/i386/stpcpy.S: Likewise.
6410         * sysdeps/i386/stpncpy.S: Likewise.
6411         * sysdeps/i386/strchr.S: Likewise.
6412         * sysdeps/i386/strchrnul.S: Likewise.
6413         * sysdeps/i386/strcspn.S: Likewise.
6414         * sysdeps/i386/strpbrk.S: Likewise.
6415         * sysdeps/i386/strrchr.S: Likewise.
6416         * sysdeps/i386/strspn.S: Likewise.
6417         * sysdeps/i386/strtok.S: Likewise.
6418         * sysdeps/i386/sub_n.S: Likewise.
6419         * sysdeps/i386/submul_1.S: Likewise.
6420         * sysdeps/i386/elf/setjmp.S: Likewise.
6421         * sysdeps/i386/i486/strcat.S: Likewise.
6422         * sysdeps/i386/i486/strlen.S: Likewise.
6423         * sysdeps/i386/i586/add_n.S: Likewise.
6424         * sysdeps/i386/i586/lshift.S: Likewise.
6425         * sysdeps/i386/i586/memcpy.S: Likewise.
6426         * sysdeps/i386/i586/memset.S: Likewise.
6427         * sysdeps/i386/i586/rshift.S: Likewise.
6428         * sysdeps/i386/i586/strchr.S: Likewise.
6429         * sysdeps/i386/i586/strcpy.S: Likewise.
6430         * sysdeps/i386/i586/strlen.S: Likewise.
6431         * sysdeps/i386/i586/sub_n.S: Likewise.
6432         * sysdeps/i386/i686/add_n.S: Likewise.
6433         * sysdeps/i386/i686/memcpy.S: Likewise.
6434         * sysdeps/i386/i686/mempcpy.S: Likewise.
6435         * sysdeps/i386/i686/memset.S: Likewise.
6436         * sysdeps/i386/i686/strcmp.S: Likewise.
6437
6438 2000-06-08  Ulrich Drepper  <drepper@redhat.com>
6439
6440         * sysdeps/unix/sysv/linux/getdtsz.c: New file.
6441
6442         * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
6443         256 and don't use OPEN_MAX.
6444
6445         * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and
6446         use it instead of LINK_MAX.
6447         * sysdeps/unix/sysv/linux/fpathconf.c: Likewise.
6448
6449 2000-06-08  Andreas Jaeger  <aj@suse.de>
6450
6451         * libio/genops.c (_IO_list_lock): Only compile body if we're
6452         thread safe.
6453         (_IO_list_unlock): Likewise.
6454         (_IO_list_resetlock): Likewise.
6455
6456 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6457
6458         * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
6459         unless user defined it.
6460
6461         * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
6462         if not defined by the user.
6463
6464         * libio/iofwrite_u.c (fwrite_unlocked): Remove obsolete comment.
6465         * libio/iofwrite.c (_IO_fwrite): Likewise.
6466
6467         * time/time.h: Add missing __THROW for clock_getcpuclockid
6468         prototype.
6469
6470         * elf/Makefile (distribute): Add dl-dtprocnum.h.
6471         * include/elf.h: Include also <dl-dtprocnum.h>.
6472         * elf/dl-deps.c: Likewise.
6473         * elf/dl-lookup.c: Likewise.
6474         * elf/dl-runtime.c: Likewise.
6475         * elf/dl-version.c: Likewise.
6476         * elf/do-rel.h: Likewise.
6477         * elf/dynamic-link.h: Likewise.
6478         * elf/link.h: Likewise.
6479         * elf/rtld.c: Likewise.
6480         * sysdeps/generic/dl-dtprocnum.h: New file.
6481         * sysdeps/ia64/dl-dtprocnum.h: New file.
6482         * sysdeps/mips/dl-dtprocnum.h: New file.
6483         * sysdeps/sparc/dl-dtprocnum.h: New file.
6484
6485         * sysdeps/i386/dl-machine.h: Add more __builtin_expect.
6486
6487         * elf/do-lookup.h: Add some __builtin_expect.
6488
6489         * dlfcn/dlfcn.h: Pretty print dladdr declaraction.
6490
6491         * elf/rtld.c (process_envvars): Recognize LD_DYNAMIC_WEAK.
6492         (_dl_dynamic_weak): New variable.
6493         * elf/dl-support.c: Likewise.
6494         * sysdeps/generic/ldsodefs.h: Declare _dl_dynamic_weak.
6495         * elf/do-lookup.h: If we find a weak definition treat it like a
6496         normal symbol unless _dl_dynamic_weak is nonzero.  In the latter
6497         case treat it like before.
6498
6499         * elf/dl-addr.c (_dl_addr): Fill in correct information if symbol
6500         is in main program.
6501         * elf/Versions [ld] (GLIBC_2.2): Export _dl_argv.
6502
6503         * elf/dl-addr.c (_dl_addr): Do exact testing of address range
6504         using l_map_start and l_map_end.
6505
6506         * elf/dl-version.c: Add __builtin_expect in many places.
6507
6508         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (x86_cap_flags):
6509         Update.
6510
6511 2000-06-04  Kaz Kylheku  <kaz@ashi.footprints.net>
6512
6513         Lock for stdio stream list becomes global, for use in LinuxThreads.
6514
6515         * libio/genops.c (_IO_iter_begin, _IO_iter_end,
6516         _IO_iter_next, _IO_iter_file, _IO_list_lock, _IO_list_unlock,
6517         _IO_list_resetlock): New interface for iterating global list of
6518         streams without accessing the _IO_list_all global variable,
6519         and for manipulating the lock which protects this list.
6520         * libio/libioP.h: Likewise.
6521         * libio/Version: Add entries for the new functions.
6522
6523         * libio/libioP.h (_IO_ITER): New typedef, just an alias for
6524         pointer to _IO_FILE.
6525
6526 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6527
6528         * locale/programs/ld-ctype.c (set_class_defaults): Several uses of
6529         BIT() must actually be BITw().
6530
6531         * locale/programs/ld-ctype.c: Handle SP and space consistently.
6532
6533         * locale/programs/charmap.c: Allow string arguments for
6534         code_set_name and repertoiremap.
6535
6536 2000-06-07  Andreas Jaeger  <aj@suse.de>
6537
6538         * elf/Makefile: Build ldconfig only when building shared libraries.
6539
6540 2000-06-07  Jakub Jelinek  <jakub@redhat.com>
6541
6542         * sysdeps/alpha/fpu/bits/mathinline.h (__fdimf): Only declare if
6543         __USE_ISOC99.
6544         (fdimf, __fdim, fdim): Likewise.
6545
6546 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
6547
6548         * locale/findlocale.c: Add __builtin_expect in many places.
6549         * locale/loadlocale.c: Likewise.
6550
6551 2000-06-06  Greg McGary  <greg@mcgary.org>
6552
6553         * sysdeps/mips/elf/start.S: Trim redundant code.
6554
6555         * sysdeps/powerpc/memset.S: Define & use symbolic register names.
6556         Use C comments throughout.  Line up operands column with tabs.
6557         * sysdeps/powerpc/strchr.S: Likewise.
6558         * sysdeps/powerpc/strcmp.S: Likewise.
6559         * sysdeps/powerpc/strcpy.S: Likewise.
6560         * sysdeps/powerpc/strlen.S: Likewise.
6561
6562         * sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]:
6563         Get low part of &__curbrk with @l.
6564
6565 2000-06-06  Ulrich Drepper  <drepper@redhat.com>
6566
6567         * iconvdata/utf-16.c: Add __builtin_expect in many places.
6568         * iconvdata/unicode.c: Likewise.
6569         * iconvdata/uhc.c: Likewise.
6570         * iconvdata/t.61.c: Likewise.
6571         * iconvdata/sjis.c: Likewise.
6572         * iconvdata/johab.c: Likewise.
6573         * iconvdata/iso_6937.c: Likewise.
6574         * iconvdata/iso_6937-2.c: Likewise.
6575         * iconvdata/iso8859-1.c: Likewise.
6576         * iconvdata/iso646.c: Likewise.
6577         * iconvdata/iso-2022-kr.c: Likewise.
6578         * iconvdata/iso-2022-jp.c: Likewise.
6579         * iconvdata/iso-2022-cn.c: Likewise.
6580         * iconvdata/gbgbk.c: Likewise.
6581         * iconvdata/gbk.c: Likewise.
6582         * iconvdata/euc-kr.c: Likewise.
6583         * iconvdata/euc-jp.c: Likewise.
6584         * iconvdata/euc-cn.c: Likewise.
6585
6586 2000-06-05  Ulrich Drepper  <drepper@redhat.com>
6587
6588         * iconvdata/big5hkscs.c: Add __builtin_expect in many places.
6589         * iconvdata/big5.c: Likewise.
6590         * iconvdata/ansi_x3.110.c: Likewise.
6591         * iconvdata/8bit-generic.c: Likewise.
6592         * iconvdata/8bit-gap.c: Likewise.
6593         * iconv/loop.c: Likewise.
6594         * iconv/gconv_db.c: Likewise.
6595         * iconv/gconv_dl.c: Likewise.
6596         * iconv/gconv_simple.c: Likewise.
6597         * iconv/skeleton.c: Likewise.
6598
6599         * iconv/gconv.h (__GCONV_IS_LAST, __GCONV_IGNORE_ERRORS): Define.
6600         (struct __gconv_step_data): Rename __is_last to __flags.
6601         * iconv/gconv_close.c: Change all uses of __is_last.
6602         * iconv/skeleton.c: Likewise.
6603         * iconvdata/iso-2022-cn.c: Likewise.
6604         * iconvdata/iso-2022-jp.c: Likewise.
6605         * iconvdata/iso-2022-kr.c: Likewise.
6606         * iconv/gconv_open.c: Likewise.  Avoid unneeded initializations.
6607         Recognize IGNORE error handling, set flag, and remove from name.
6608         * iconv/loop.c (ignore_errors_p): Define.
6609         Add flags parameter to both functions.
6610         * iconv/skeleton.c: Pass flags to all conversion functions.
6611         * iconv/gconv_simple.c: Add flags parameter to all functions.
6612         Don't return error for invald error if ignore flag is set.
6613         (ucs4_internal_loop_single): Add missing pointer increment.
6614         (internal_ucs4le_loop_single): Likewise.
6615         * iconv/iconv_prog.c: Implement handling of -c parameter.
6616         * iconvdata/8bit-gap.c: Don't return error for invald error if
6617         ignore flag is set.
6618         * iconvdata/8bit-generic.c: Likewise.
6619         * iconvdata/ansi_x3.110.c: Likewise.
6620         * iconvdata/big5.c: Likewise.
6621         * iconvdata/big5hkscs.c: Likewise.
6622         * iconvdata/euc-cn.c: Likewise.
6623         * iconvdata/euc-jp.c: Likewise.
6624         * iconvdata/euc-kr.c: Likewise.
6625         * iconvdata/gbgbk.c: Likewise.
6626         * iconvdata/gbk.c: Likewise.
6627         * iconvdata/iso-2022-cn.c: Likewise.
6628         * iconvdata/iso-2022-jp.c: Likewise.
6629         * iconvdata/iso-2022-kr.c: Likewise.
6630         * iconvdata/iso646.c: Likewise.
6631         * iconvdata/iso8859-1.c: Likewise.
6632         * iconvdata/iso_6937-2.c: Likewise.
6633         * iconvdata/iso_6937.c: Likewise.
6634         * iconvdata/johab.c: Likewise.
6635         * iconvdata/sjis.c: Likewise.
6636         * iconvdata/t.61.c: Likewise.
6637         * iconvdata/uhc.c: Likewise.
6638         * iconvdata/unicode.c: Likewise.
6639         * iconvdata/utf-16.c: Likewise.
6640         * libio/fileops.c: Likewise.
6641         * libio/iofwide.c: Likewise.
6642         * wcsmbs/btowc.c: Likewise.
6643         * wcsmbs/mbrtowc.c: Likewise.
6644         * wcsmbs/mbsnrtowcs.c: Likewise.
6645         * wcsmbs/mbsrtowcs.c: Likewise.
6646         * wcsmbs/wcrtomb.c: Likewise.
6647         * wcsmbs/wcsnrtombs.c: Likewise.
6648         * wcsmbs/wcsrtombs.c: Likewise.
6649         * wcsmbs/wctob.c: Likewise.
6650
6651         * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s change in all cases of
6652         an error.
6653
6654 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6655
6656         * iconv/gconv_dl.c (do_release_shlib): Don't reset reference
6657         counter for the object we are releasing, just decrement it.
6658         Patch by Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>.
6659
6660 2000-06-04  Jakub Jelinek  <jakub@redhat.com>
6661
6662         * sysdeps/i386/fpu/bits/mathinline.h: Only inline sinh, cosh and tanh
6663         if -ffast-math.
6664
6665 2000-06-04  Ulrich Drepper  <drepper@redhat.com>
6666
6667         * iconvdata/big5hkscs.c: New file.
6668         Modified from big5.c by Roger So <rogerso@sis.dhs.org>.
6669
6670         * iconvdata/gconv-modules: Add entry for new module.
6671         * iconvdata/Makefile (modules): Add BIG5HKSCS.
6672         (distribute): Add big5hkscs.c.
6673
6674 2000-06-01  Jakub Jelinek  <jakub@redhat.com>
6675
6676         * libc/sysdeps/alpha/fpu/bits/mathinline.h: Add __THROW to all
6677         inlines to match prototypes in mathcalls.h.
6678         * libc/sysdeps/i386/fpu/bits/mathinline.h: Likewise.
6679         * libc/sysdeps/m68k/fpu/bits/mathinline.h: Likewise.
6680         * libc/sysdeps/powerpc/fpu/bits/mathinline.h: Likewise.
6681         * libc/sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
6682
6683 2000-06-03  Ulrich Drepper  <drepper@redhat.com>
6684
6685         * elf/elf.h (SHT_SUNW_move): Define.
6686
6687         * elf/elf.h: Add more Solaris compatiblity definitions.
6688
6689 2000-06-03  Andreas Jaeger  <aj@suse.de>
6690
6691         * sysdeps/powerpc/dl-start.S: Close open comment.
6692
6693 2000-06-03  Jakub Jelinek  <jakub@redhat.com>
6694
6695         * inet/Versions: Fix typo in rresvport_af export.
6696
6697 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6698
6699         * math/tgmath.h: Pretty print.
6700
6701 2000-06-02  Andreas Jaeger  <aj@suse.de>
6702
6703         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Fix typo.
6704         Reported by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6705
6706 2000-06-02  Ulrich Drepper  <drepper@redhat.com>
6707
6708         * elf/rtld.c (process_envvars): Test for = after variable name.
6709
6710 2000-06-01  Ulrich Drepper  <drepper@redhat.com>
6711
6712         * sysdeps/generic/initfini.c (_init): One less relocation.  Don't
6713         have extra call to __gmon_start__, use the pointer we already have.
6714
6715         * elf/elf.h (ELF64_R_INFO): Cast sym value to Elf64_Xword before
6716         shifting.
6717
6718         * sysdeps/i386/elf/setjmp.S: Work around change is recent
6719         binutils.  gas now emits a jump through the PLT instead of a
6720         relative jump if the jump target is an exported symbol.
6721
6722 2000-05-31  Ulrich Drepper  <drepper@redhat.com>
6723
6724         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Define AIX_CBAUD.
6725
6726 2000-05-31  Andreas Jaeger  <aj@suse.de>
6727
6728         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Use array for
6729         gregset_t.
6730
6731         * sysdeps/unix/sysv/linux/mips/Versions: Export _flush_cache.
6732         Patches by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
6733
6734         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Fix prototype of
6735         syscall.
6736         * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
6737
6738 2000-05-30  Ulrich Drepper  <drepper@redhat.com>
6739
6740         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Loose __P.
6741
6742         * locale/Versions [libc] (GLIBC_2.2): Add localeconv.
6743         * locale/localeconv.c: Make function versioned (with same definition).
6744
6745         * elf/Makefile (modules-names): Strip before using it.
6746
6747 2000-05-30  Andreas Jaeger  <aj@suse.de>
6748
6749         * sysdeps/unix/sysv/linux/mips/truncate64.c: New file.
6750         * sysdeps/unix/sysv/linux/mips/ftruncate64.c: New file.
6751         * sysdeps/unix/sysv/linux/mips/pread64.c: Readded file.
6752         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Readded file.
6753         * sysdeps/unix/sysv/linux/mips/pread.c: Readded file.
6754         * sysdeps/unix/sysv/linux/mips/pwrite.c: Readded file.
6755
6756 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6757
6758         * Makefile: Add GNU make magic.
6759
6760         * inet/Makefile (CFLAGS-rcmd.c, CFLAGS-rexec.c, CFLAGS-ruserpass.c):
6761         Removed.
6762         * inet/rcmd.c: Remove __P.  Remove unused variables.
6763         (iruserfopen): Make first parameter const.
6764         (ruserok_sa): Return result of ruserok2_sa.
6765         (__checkhost_sa): Correctly iterate through results of getaddrinfo.
6766         * inet/rexec.c: Remove unused variables.  Other small cleanups.
6767         * inet/ruserpass.c: Remove __P.  Remove unused variables.
6768         (ruserpass): Check results of memory allocation.
6769         * include/netdb.h: Add prototype for ruserpass.
6770
6771 2000-05-29  Andreas Jaeger  <aj@suse.de>
6772
6773         * elf/readlib.c (interpreters): Use LD_SO since this is supported
6774         for all platforms.
6775
6776 2000-05-29  Jakub Jelinek  <jakub@redhat.com>
6777
6778         * inet/rcmd.c (rresvport_af): Use correct port number.
6779
6780 2000-05-26  Andreas Schwab  <schwab@suse.de>
6781
6782         * Makeconfig ($(common-objpfx)soversions.mk): Prepend `$lib=' to
6783         entries in all-sonames.
6784         ($(common-objpfx)gnu/lib-names.h): Use it for the CPP symbol,
6785         preserving the old name if different for compatibility.
6786
6787 2000-05-29  Ulrich Drepper  <drepper@redhat.com>
6788
6789         * posix/Makefile (tests): Add tst-spawn.
6790         (tst-spawn-ARGS): New variable.
6791         * posix/tst-spawn.c: New file.
6792
6793         * posix/spawn_faction_addclose.c: Correctly account for new entry.
6794         * posix/spawn_faction_adddup2.c: Likewise.
6795         * posix/spawn_faction_addopen.c: Likewise.
6796         * posix/spawni.c: Correctly test for success of dup2 calls.
6797
6798         * posix/tst-preadwrite.c: Check success of malloc call.
6799
6800 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6801
6802         * posix/Makefile (tests): Add tst-exec.
6803         (tst-exec-ARGS): New variable.
6804         * posix/tst-exec.c: New file.
6805
6806         * sysdeps/arm/atomicity.h (compare_and_swap): Return result.
6807
6808 2000-05-04  Andreas Jaeger  <aj@suse.de>
6809
6810         * string/string.h: Remove __strdup prototype, it's not needed in
6811         this file anymore.
6812
6813 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6814
6815         * posix/Makefile (tests): Add tst-fork.
6816         * posix/tst-fork.c: New file.
6817
6818         * resolv/inet_pton.c: Loose __P.
6819
6820 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
6821
6822         * libio/libioP.h (_IO_CHECK_WIDE): Define.
6823         * libio/iosetbuffer.c (_IO_setbuffer): Use it.
6824         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
6825         * libio/fileops.c (_IO_new_file_fopen): Return NULL if
6826         _IO_CHECK_WIDE fails.
6827
6828 2000-05-28  Ulrich Drepper  <drepper@redhat.com>
6829
6830         * po/da.po: New file.
6831
6832         * manual/arith.texi (Rounding Functions): Fix documentation of trunc.
6833         Patch by Steven G. Johnson <stevenj@gil-galad.mit.edu>.
6834
6835         * manual/charset.texi (Extended Char Intro): Fix typo (and -> as).
6836         (Other iconv Implementations): Fix typo.
6837         Patch by Martin Pool <mbp@wistful.humbug.org.au>.
6838
6839 2000-05-27  Andreas Jaeger  <aj@suse.de>
6840
6841         * sysdeps/unix/sysv/linux/i386/pread.c: Removed, we can use the
6842         normal version now.
6843         * sysdeps/unix/sysv/linux/i386/pwrite.c: Likewise.
6844         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
6845         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6846         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6847         * sysdeps/unix/sysv/linux/arm/pread.c: Likewise.
6848         * sysdeps/unix/sysv/linux/arm/pwrite.c: Likewise.
6849
6850         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Check
6851         endianness to decide how to pass arguments.
6852         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
6853
6854         * elf/vismain.c: Use test-skeleton interface.
6855         (TEST_FUNCTION): New macro.
6856         (do_test): Renamed from main.
6857
6858 2000-05-27  Ulrich Drepper  <drepper@redhat.com>
6859
6860         * sysdeps/posix/getaddrinfo.c (gaih_inet): If req->ai_family ==
6861         AF_UNSPEC don't allow the IPv6 lookup to return mapped IPv4 addresses.
6862
6863         * nss/nss_files/files-hosts.c (LINE_PARSER): Simplify.  Correct
6864         handling of AI_V4MAPPED flag.
6865
6866         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): If lookup
6867         of IPv6 address failed and RES_USE_INET6 bit in _res.options is set,
6868         perform lookup for T_A type and tell getanswer_r to convert the
6869         result with new argument.
6870         (_nss_dns_gethostbyaddr_r): Pass zero as new argument to getanswer_r.
6871         Don't convert addresses from IPv4 to IPv6 here.
6872         (getanswer_r): Take new parameter indicating if mapping from IPv4 to
6873         IPv6 is wanted.  Allow qtype and type from reply to disagree if
6874         IPv4 mapping has to be done.  Perform mappings if required by the
6875         caller and not if RES_USE_INET6 bit in _res.options is set.
6876         Add several __builtin_expect.
6877
6878 2000-05-26  Ulrich Drepper  <drepper@redhat.com>
6879
6880         * catgets/open_catalog.c (__open_catalog): Add a few __builtin_expect.
6881
6882         * elf/dl-load.c (_dl_map_object): Don't ignore RPATHs if loader ==
6883         NULL.
6884
6885         * posix/tst-preadwrite.c: Allow parallel execution of
6886         tst-preadwrite and tst-preadwrite64.
6887
6888         * posix/Makefile (tests): Add tst-truncate and tst-truncate64.
6889         * posix/tst-truncate.c: New file.
6890         * posix/tst-truncate64.c: New file.
6891
6892         * sysdeps/unix/sysv/linux/pread64.c: The little/big endian code
6893         was switched.
6894
6895         * posix/Makefile (tests): Add tst-preadwrite64.
6896         * posix/tst-preadwrite.c: Alloc file being used also for testing
6897         pread64 and pwrite64.
6898         * posix/tst-preadwrite64.c: New file.
6899
6900 2000-05-26  Andreas Jaeger  <aj@suse.de>
6901
6902         * sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Make order
6903         of arguments dependend on endianness.
6904         * sysdeps/unix/sysv/linux/truncate64.c: Likewise.
6905
6906         * sysdeps/unix/sysv/linux/i386/pread64.c: Removed, we can use the
6907         normal version now.
6908         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
6909         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
6910         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6911         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6912
6913         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Check
6914         endianness to check how to pass argument.
6915         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
6916
6917         * elf/ldconfig.h: Update parameter list for process_elf_file.
6918
6919         * sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file):
6920         Add parameter file_length and pass it ot process_elf*file.
6921
6922         * sysdeps/generic/readelflib.c (check_ptr): New.
6923         (process_elf_file): Use check_ptr to check all accesses to the
6924         mmapped file. Add parameter file_length.
6925
6926         * elf/readlib.c (known_libs): Use <gnu/lib-names.h> to specify
6927         library names.
6928
6929         * sunrpc/xdr_intXX_t.c (xdr_uint8_t): Fix conversion.
6930         Closes PR libc/1573, reported by Bradley White
6931         <bww@laurelnetworks.com>.
6932
6933 2000-05-25  Ulrich Drepper  <drepper@redhat.com>
6934
6935         * sysdeps/i386/fpu/bits/mathinline.h: Define expm1 inline only if
6936         __FAST_MATH__ is defined.
6937
6938 2000-05-22  Andreas Jaeger  <aj@suse.de>
6939
6940         * math/Makefile: Add -D__FAST_MATH__ to CFLAGS-test-ifloat.c,
6941         CFLAGS-test-idouble.c, CFLAGS-test-ildoubl.c.
6942
6943         * manual/math.texi (FP Function Optimizations): Document gcc
6944         -ffast-math behaviour with mathinlines.
6945
6946         * sysdeps/i386/fpu/bits/mathinline.h: Only use save inline
6947         functions unless -ffast-math is given to gcc.
6948
6949 2000-05-23  Jakub Jelinek  <jakub@redhat.com>
6950
6951         * sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
6952         __sincosl): Guard with __USE_GNU.
6953
6954 2000-05-24  Ulrich Drepper  <drepper@redhat.com>
6955
6956         * csu/Makefile (routines): Add check_fds.
6957         * elf/rtld.c (dl_main): Call __libc_check_standard_fds for SUID
6958         binaries.  Add various __builtin_expect.
6959         * sysdeps/generic/libc-start.c: Move check_fds and helper functions...
6960         * sysdeps/generic/check_fds.c: ...here.  New file.
6961
6962         * malloc/malloc.c (ptmalloc_init): Only enable debugging for SUID
6963         binaries if file /etc/suid-debug is available.
6964
6965         * locale/programs/ld-collate.c (struct element_t): Add mbseqorder
6966         and wcseqorder members.
6967         (struct locale_collate_t): Likewise.
6968         (collate_finish): Assign collation sequence value to each character.
6969         Create tables for output.
6970         (collate_output): Write out tables with collation sequence information.
6971         * locale/C-collate.c: Provide C locale data for collation sequence
6972         table.
6973         * locale/langinfo.h: Add _NL_COLLATE_COLLSEQMB and
6974         _NL_COLLATE_COLLSEQWC.
6975         * locale/categories.def: Add entries for _NL_COLLATE_COLLSEQMB and
6976         _NL_COLLATE_COLLSEQWC.
6977         * posix/fnmatch.c: Define SUFFIX and WIDE_CHAR_VERSION before
6978         include fnmatch_loop.c.
6979         * posix/fnmatch_loop.c: Don't use strcoll while determining whether
6980         character is matched by range expression.  Use collation sequence
6981         table.  Outside glibc fall back on simple character value comparison.
6982
6983 2000-05-24  Andreas Jaeger  <aj@suse.de>
6984
6985         * sysdeps/mips/elf/start.S (ENTRY_POINT): Align stack for double
6986         words.
6987
6988         * intl/Makefile: Run gettext-test only if msgfmt is available.
6989
6990         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_LDT_WORKS):
6991         Define it for newer kernels.
6992
6993 2000-05-23  Ulrich Drepper  <drepper@redhat.com>
6994
6995         * elf/dl-sym.c: Minor cleanups.
6996
6997         * configure.in: Add test for .protected.
6998         * config.make.in: Add have-protected variable.
6999         * elf/Makefile (tests): Add $(tests-vis-$(have-protected)).
7000         (tests-vis-yes): Add vismain.
7001         (modules-names): Add $(modules-vis-$(have-protected)).
7002         (modules-vis-yes): Add vismod1, vismod2, and vismod3.
7003         Add rules to generate and run vismain.
7004         * elf/vismain.c: New file.
7005         * elf/vismod1.c: New file.
7006         * elf/vismod2.c: New file.
7007         * elf/vismod3.c: New file.
7008
7009 2000-05-23  Andreas Jaeger  <aj@suse.de>
7010
7011         * stdio-common/tfformat.c (sprint_doubles): Add testcase for %a.
7012
7013         * manual/search.texi (Array Sort Function): Document that qsort is
7014         not necessarily in-place.
7015
7016         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7017         Closes PR libc/1731.
7018
7019         * csu/munch-tmpl.c (__libc_init): Remove K&R support.
7020         * dirent/scandir64.c: Likewise.
7021         * pwd/getpw.c: Likewise.
7022         * stdlib/bsearch.c (bsearch): Likewise.
7023         * stdlib/tst-strtoll.c: Likewise.
7024         * localedata/collate-test.c: Likewise.
7025         * localedata/xfrm-test.c: Likewise.
7026         * posix/bsd-getpgrp.c: Likewise.
7027         * sysdeps/alpha/fpu/bits/fenv.h: Likewise.
7028         * sysdeps/generic/bits/siginfo.h: Likewise.
7029         * sysdeps/generic/bits/sockaddr.h: Likewise.
7030         * sysdeps/generic/sys/swap.h: Likewise.
7031         * sysdeps/generic/sys/sysinfo.h: Likewise.
7032         * sysdeps/generic/vfork.c: Likewise.
7033         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
7034         * sysdeps/mach/hurd/fdopen.c: Likewise.
7035         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: Likewise.
7036         * sysdeps/unix/sysv/linux/poll.c: Likewise.
7037         * sysdeps/unix/sysv/linux/readv.c: Likewise.
7038         * sysdeps/unix/sysv/linux/writev.c: Likewise.
7039         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7040         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
7041         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
7042
7043         * misc/tst-dirname.c: Remove K&R support, use ANSI C prototypes.
7044         * shadow/lckpwdf.c: Likewise.
7045         * stdlib/tst-strtol.c: Likewise.
7046         * sysdeps/generic/tcsetattr.c: Likewise.
7047         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
7048         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
7049
7050 2000-05-22  Jakub Jelinek  <jakub@redhat.com>
7051
7052         * elf/dl-load.c (_dl_init_paths): If env_path_list has 0 elements,
7053         free it and set to (void *) -1.
7054
7055 2000-05-22  Jakub Jelinek <jakub@redhat.com>
7056
7057         * stdio-common/vfscanf.c (__vfscanf): Remove bogus check if '-' is
7058         not the second character in the range.
7059         * stdio-common/tstscanf.c (main): Add testcase for the above.
7060         Reported by jik@kamens.brookline.ma.us.
7061
7062 2000-05-21  H.J. Lu  <hjl@gnu.org>
7063
7064         * elf/do-lookup.h (do_lookup_versioned): Replace reloc_type parameter
7065         with noexec and noplt parameter.
7066         (do_lookup): Likewise.
7067
7068         * elf/dl-lookup.c (_dl_lookup_symbol): Change for new parameters of
7069         do_lookup.  Support STV_PROTECTED.
7070         (_dl_lookup_symbol_skip): Likewise.
7071         (_dl_lookup_versioned_symbol): Likewise.
7072         (_dl_lookup_versioned_symbol_skip): Likewise.
7073
7074         * elf/dl-reloc.c (RESOLVE): Check STB_LOCAL instead of ST_VISIBILITY.
7075
7076         * elf/dl-runtime.c (profile_fixup): Fix a typo in comment.
7077
7078 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7079
7080         * sysdeps/arm/bits/huge_val.h: Prereq gcc 2.96+, not 2.95.
7081         * sysdeps/i386/bits/huge_val.h: Likewise.
7082         * sysdeps/ieee754/bits/huge_val.h: Likewise.
7083         * sysdeps/m68k/bits/huge_val.h: Likewise.
7084         * sysdeps/sparc/sparc32/bits/huge_val.h: Likewise.
7085         * sysdeps/sparc/sparc64/bits/huge_val.h: Likewise.
7086
7087 2000-05-22  Andreas Jaeger  <aj@suse.de>
7088
7089         * iconv/tst-iconv1.c (main): Remove const from inbuf to follow
7090         change in iconv.h.
7091
7092 2000-05-19  Andreas Jaeger  <aj@suse.de>
7093
7094         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h
7095         (SYSCALL_ERROR_HANDLER): Remove unneeded syscall_error which
7096         breaks compilation without linuxthreads.
7097
7098 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7099
7100         * sysdeps/ia64/memccpy.S: New file.
7101         * sysdeps/ia64/memchr.S: New file.
7102         * sysdeps/ia64/memcmp.S: New file.
7103         * sysdeps/ia64/memcpy.S: New file.
7104         * sysdeps/ia64/memmove.S: New file.
7105         * sysdeps/ia64/memset.S: New file.
7106         * sysdeps/ia64/strcat.S: New file.
7107         * sysdeps/ia64/strchr.S: New file.
7108         * sysdeps/ia64/strcmp.S: New file.
7109         * sysdeps/ia64/strcpy.S: New file.
7110         * sysdeps/ia64/strlen.S: New file.
7111         * sysdeps/ia64/strncmp.S: New file.
7112         * sysdeps/ia64/strncpy.S: New file.
7113         * sysdeps/ia64/softpipe.h: New file.
7114         Patches by Dan Pop <Dan.Pop@cern.ch>.
7115
7116         * manual/memory.texi: Document memory handling functions (mlock,
7117         munlock, mlockall, munlockall, brk, and sbrk)
7118         * manual/time.texi: Document timespec and friends.
7119         * manual/conf.texi: Fix references.
7120         * manual/ctype.texi: Likewise.
7121         * manual/errno.texi: Likewise.
7122         * manual/intro.texi: Likewise.
7123         * manual/locale.texi: Likewise.
7124         * manual/sysinfo.texi: Likewise.
7125         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7126
7127 2000-05-09  Jes Sorensen  <jes@linuxcare.com>
7128
7129         * sysdeps/ia64/dl-machine.h: Move DL_SYMBOL_ADDRESS definition to...
7130         * sysdeps/ia64/dl-lookupcfg.h: ...here.
7131
7132 2000-05-21  Jakub Jelinek  <jakub@redhat.com>
7133
7134         * sysdeps/unix/sysv/linux/scsi/sg.h (sg_io_hdr_t): Remove duplicate
7135         dxfer_direction.
7136
7137 2000-05-21  Ulrich Drepper  <drepper@redhat.com>
7138
7139         * locale/locale.h (struct lconv): Add new elements from ISO C99.
7140         * locale/localeconv.c: Initialize new elements from ISO C99.
7141         * locale/langinfo.h: Remove _NL_MONETARY prefix from descriptors for
7142         new standard elements.
7143         * locale/categories.def: Adjust accordingly.
7144
7145         * iconv/iconv.h (iconv): Remove const from inbuf parameter.
7146         * iconv/iconv.c: Likewise.
7147         * conform/data/iconv.h-data: Likewise.
7148         * iconv/iconv_prog.c (process_block): Remove const from second
7149         parameter.
7150         (main): Remove const from addr definition.
7151         * manual/charset.texi (Generic Conversion Interface): Remove from
7152         inbuf parameter of iconv.
7153
7154         * intl/dcigettext.c: Fix typo in comment.
7155
7156 2000-05-20 2000  H.J. Lu  <hjl@gnu.org>
7157
7158         * resolv/res_libc.c (_res): Initialize _sock to -1.
7159
7160 2000-05-18  Jakub Jelinek  <jakub@redhat.com>
7161
7162         * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
7163         (fopencookie@@GLIBC_2.2): New.
7164         (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
7165         (fopencookie@GLIBC_2.0): New.
7166         * libio/Versions: Add fopencookie to GLIBC_2.2.
7167
7168 2000-05-18  Andreas Jaeger  <aj@suse.de>
7169
7170         * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
7171         Closes PR libc/1731.
7172
7173         * manual/arith.texi (Parsing of Integers): Fix typo.
7174         Closes PR libc/1744, reported by blp@gnu.org.
7175
7176 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7177
7178         * sysdeps/arm/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Add
7179         __extension__ to hexadecimal floating constant notation.
7180         * sysdeps/i386/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7181         Likewise.
7182         * sysdeps/ieee754/bits/huge_val.h (HUGE_VAL, HUGE_VALF): Likewise.
7183         * sysdeps/m68k/bits/huge_val.h (HUGE_VAL, HUGE_VALF, HUGE_VALL):
7184         Likewise.
7185         * sysdeps/sparc/sparc64/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7186         HUGE_VALL): Likewise.
7187         * sysdeps/sparc/sparc32/bits/huge_val.h (HUGE_VAL, HUGE_VALF,
7188         HUGE_VALL): Likewise.
7189         (HUGE_VALL): Set to HUGE_VAL on sparc32.
7190
7191 2000-05-17  Andreas Jaeger  <aj@suse.de>
7192
7193         * string/envz.h: Add pure attributes if possible.
7194
7195         * string/argz.h: argz_count is a pure function.
7196
7197         * string/strings.h: Add pure and const attributes if possible.
7198
7199         * sysdeps/generic/memmem.c (memmem): Check arguments to avoid
7200         possibly searching through the whole memory.
7201         Closes PR libc/1730, reported by Greg Hudson <ghudson@mit.edu>.
7202
7203 2000-05-17  Jakub Jelinek  <jakub@redhat.com>
7204
7205         * sysdeps/generic/dl-cache.h (_DL_CACHE_DEFAULT_ID): Only define if
7206         not yet defined.
7207         (_dl_cache_check_flags): Likewise.
7208         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-cache.h: include_next
7209         dl-cache.h.
7210
7211 2000-05-17  Andreas Jaeger  <aj@suse.de>
7212
7213         * manual/creature.texi (Feature Test Macros): Remove paragraph
7214         since the description is wrong.
7215         Closes PR libc/1691, reported by Geoff Clare <gwc@unisoft.com>.
7216
7217         * scripts/config.sub: New version.
7218         * scripts/config.guess: Likewise.
7219         * manual/texinfo.tex: Likewise.
7220
7221         * time/test_time.args: Removed.
7222         * time/Makefile (test_time-ARGS): Added contents here instead.
7223
7224         * posix/tstgetopt.args: Removed.
7225         * posix/Makefile (tstgetopt-ARGS): Added contents here instead.
7226
7227         * Rules: Allow arguments for test files to be specified in
7228         Makefile with testname-ARGS; remove rules with .args in it.
7229
7230         * dirent/Makefile (opendir-tst1-ARGS): Use this for opendir-tst1,
7231         remove old bogus rule for opendir-tst1.args.
7232
7233         * stdlib/test-canon.c: Rewrite to use test-skeleton.c.
7234
7235         * stdlib/Makefile (test-canon-ARGS): New, supply argument to chdir
7236         into objdir.  This allows a readonly sourcetree.
7237         Reported by lrgallardo@yahoo.com, closes PR libc/1421.
7238
7239 2000-05-16  Andreas Jaeger  <aj@suse.de>,
7240             David Huggins-Daines <dhd@linuxcare.com>
7241
7242         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Set
7243         cache_data in case of only new cache format correctly.
7244
7245         * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Align struct
7246         cache_file_new.
7247
7248         * sysdeps/generic/dl-cache.h (ALIGN_CACHE): New macro to align
7249         struct cache_file_new.
7250
7251         * elf/cache.c (save_cache): Fix str_offset if only new cache is
7252         present.
7253
7254         * elf/cache.c (save_cache): Align struct new_file_cache.
7255         (print_cache): Likewise.
7256
7257 2000-05-13  Jakub Jelinek  <jakub@redhat.com>
7258
7259         * elf/soinit.c (__libc_global_ctors): Move
7260         __pthread_initialize_minimal call out of HAVE_DWARF2_* defines.
7261         * resolv/resolv.h (__res_state): Added __attribute__((const)).
7262         (_res): If __RES_PTHREAD_INTERNAL is defined, declare it as
7263         variable, don't define it to __res_state call.
7264
7265 2000-05-13  Andreas Jaeger  <aj@suse.de>
7266
7267         * sysdeps/unix/sysv/linux/bits/socket.h (PF_PPPOX): New, from
7268         Linux 2.3.99pre7.
7269         (AF_PPPOX): Likewise.
7270         * sysdeps/unix/sysv/linux/mips/bits/socket.h (PF_PPPOX): Likewise.
7271         (AF_PPPOX): Likewise.
7272
7273 2000-05-12  Andreas Jaeger  <aj@suse.de>
7274
7275         * inet/netinet/in.h (IN6_ARE_ADDR_EQUAL): Correct indices.
7276         Reported by tmoestl@gmx.net, closes PR libc/1732.
7277
7278 2000-05-11  Jan Hubicka  <jh@suse.cz>
7279
7280         * misc/sys/cdefs.h: Add support for pure attribute.
7281
7282         * include/string.h: Add __attribute_pure__ to various functions.
7283         * string/string.h: Likewise.
7284
7285 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7286
7287         * elf/dl-reloc.c (_dl_reloc_bad_type): Sync messages with plt
7288         argument.
7289         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7290         R_SPARC_UA64.
7291         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: New file.
7292
7293 2000-05-10  Jakub Jelinek  <jakub@redhat.com>
7294
7295         * elf/dl-reloc.c (_dl_reloc_bad_type): Write type into the message
7296         at proper place.  Compute the high nibble correctly.
7297
7298 2000-05-09  Jakub Jelinek  <jakub@redhat.com>
7299
7300         * elf/ldconfig.c: Include elf.h.
7301
7302         * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero.
7303         (_dl_vsym): Likewise.
7304         Reported by Owen Taylor <otaylor@redhat.com>.
7305
7306         * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini
7307         always.
7308
7309 2000-05-08  Andreas Jaeger  <aj@suse.de>
7310
7311         * include/libintl.h: Add prototype for __bind_textdomain_codeset.
7312
7313         * intl/bindtextdom.c (set_binding_values): Add prototype.
7314
7315 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7316
7317         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Fix arguments in
7318         call to elf_machine_fixup_plt.
7319         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7320         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7321
7322 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7323
7324         * elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
7325         they are not dlclose'd from underneath us.
7326
7327 2000-05-08  Andreas Schwab  <schwab@suse.de>
7328
7329         * posix/execle.c: Fix size parameter of memcpy.
7330
7331 2000-05-08  Andreas Schwab  <schwab@suse.de>
7332
7333         * sysdeps/unix/sysv/linux/m68k/getpagesize.c: New file.  Use
7334         getpagesize syscall if available.
7335
7336 2000-05-08  Andreas Jaeger  <aj@suse.de>
7337
7338         * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and
7339         set errno.
7340
7341 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
7342
7343         * elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in
7344         sizeof(struct link_map *) chunks, not in bytes.
7345
7346 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7347
7348         * locale/Makefile (locale-CPPFLAGS): Renamed from CPPFLAGS.  It's
7349         only needed for locale.
7350         * catgets/Makefile (catgets-CPPFLAGS): Renamed from CPPFLAGS.
7351         It's only needed for catgets.
7352         Patches by Greg McGary <gkm@eng.ascend.com>.
7353
7354 2000-05-07  Mark Kettenis  <kettenis@gnu.org>
7355
7356         * nss/nss_db/db-open.c: Cleanup and add comments.  Pretty print.
7357         Remove duplicate <errno.h> include.  Remove inclusion of
7358         <libintl.h> and "nsswitch.h".
7359         (set_cloexec_flag): New function, broken out of dbopen.
7360         (dbopen): Changed return type to `enum
7361         nss_status'.  Mostly rewritten to make sure that we do not report
7362         NSS_STATUS_SUCCESS if something went wrong.  Remove unnecessary casts.
7363         (internal_setent): Change return type to nss_status.
7364         Document, and make sure that the function
7365         behaves accordingly.  Make dynamically loading the database
7366         library really thread-safe and return NSS_STATUS_UNAVAIL if it
7367         failed.
7368         (db_cursor): Return ENOMEM is memory allocation failed.  Remove
7369         unecessary casts.
7370         * nss/nss_db/dummy-db.h: Add copyright notice.  Improve
7371         documentation.
7372         (struct dbc24, struct dbc27): Use DBT type in parameter lists for
7373         c_get function member.
7374         * nss/nss_db/nss_db.h: Add and tweak some comments.
7375         (DBT): Move typedef before NSS_DBC typedef.
7376         (NSS_DBC, NSS_DB): Use DBT in function member parameter lists.
7377
7378 2000-05-07  H.J. Lu  <hjl@gnu.org>
7379
7380         * csu/initfini.c: Moved to ....
7381         * sysdeps/generic/initfini.c: ...here.
7382
7383         * csu/Makefile (initfini.c): Set vpath to $(full_config_sysdirs).
7384
7385 2000-05-07  Ulrich Drepper  <drepper@redhat.com>
7386
7387         * manual/resource.texi: Document POSIX scheduling functions.
7388         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7389
7390         * inet/rcmd.c (rcmd_af): errno is not set if read returns without
7391         reading anything.  Reported by Andries.Brouwer@cwi.nl.
7392
7393         * sysdeps/generic/memccpy.c (__memccpy): Don't use reg_char type
7394         for x since promotion in comparison might leads to unexpected
7395         results.  Reported by Dan Pop <Dan.Pop@cern.ch>.
7396
7397         * iconv/Makefile (tests): Add tst-iconv1.
7398         * iconv/tst-iconv1.c: New file.
7399         * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
7400         empty input buffer over full output buffer.
7401         (ucs4_internal_loop): Likewise.
7402         (ucs4_internal_loop_unaligned): Likewise.
7403         (internal_ucs4le_loop): Likewise.
7404         (internal_ucs4le_loop_unaligned): Likewise.
7405         (ucs4le_internal_loop): Likewise.
7406         (ucs4le_internal_loop_unaligned): Likewise.
7407         Reported by yaoz@nih.gov.
7408
7409 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7410
7411         * iconv/gconv_open.c (__gconv_open): If __gconv_find_transform
7412         returned != __GCONV_OK, there is nothing to clean up.
7413
7414 2000-05-06  Bruno Haible  <haible@clisp.cons.org>
7415
7416         * intl/tst-gettext.c (main): Disable possibly existing LC_CTYPE and
7417         OUTPUT_CHARSET environment variables.
7418
7419 2000-05-06  Andreas Jaeger  <aj@suse.de>
7420
7421         * sysdeps/generic/dl-cache.h (struct file_entry_new): New.
7422         (struct cache_file_new): New.
7423         (struct file_entry): New (moved from cache.c).
7424         (struct cache_file): New (moved from cache.c).
7425
7426         * sysdeps/generic/dl-cache.c (SEARCH_CACHE): New macro, broken out
7427         from _dl_load_cache_lookup.
7428         (_dl_load_cache_lookup): Move search to SEARCH_CACHE macro, handle
7429         the different cache formats.
7430         New variable cache_new for new format.
7431
7432         * elf/ldconfig.h: Change according to changes in cache.c and
7433         ldconfig.c; remove cache_libcmp; add opt_format.
7434
7435         * elf/ldconfig.c: Include "dl-cache.h" and "dl-procinfo.h"; remove
7436         stuff that's defined in those headers.
7437         Add hwcap to struct lib_entry.
7438         (opt_format): New variable to select cache format.
7439         (options): Add format parameter.
7440         (is_hwcap): New function.
7441         (path_hwcap): New function.
7442         (parse_opt): Handle new format parameter.
7443         (search_dir): Handle hwcap, search also subdirectories with hwcap.
7444
7445         * elf/cache.c (_GNU_SOURCE): Removed.  Not needed anymore since
7446         ldconfig is part of glibc.
7447         Include dl-cache.h and remove stuff that's defined there.
7448         (struct cache_entry): Add new member hwcap.
7449         (print_entry): Print hwcap, cleanup a bit.
7450         (print_cache): Print new and old formats.
7451         (compare): Use _dl_cache_libcmp from dl-cache.h; handle hwcap.
7452         (save_cache): Save new and old formats.
7453         (add_to_cache): Handle hwcap.
7454
7455         * sysdeps/generic/dl-cache.c (_dl_cache_libcmp): Moved from here...
7456         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): ...to here.
7457         * sysdeps/generic/dl-cache.c (LD_SO_CACHE): Moved from here...
7458         * sysdeps/generic/dl-cache.h (LD_SO_CACHE): ...to here.
7459         * sysdeps/generic/dl-cache.c (CACHEMAGIC): Moved from here...
7460         * sysdeps/generic/dl-cache.h (CACHEMAGIC): ...to here.
7461
7462 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7463
7464         * intl/dcigettext.c (alignof): New macro.
7465         (_nl_find_msg): Use it instead of __alignof__. Pass correct output
7466         buffer length to __gconv/iconv. If malloc (freemem_size) fails, set
7467         freemem_size to 0.
7468
7469 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
7470
7471         * intl/dcigettext.c (dcigettext): Fix interpretation of tsearch
7472         return value.
7473
7474 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7475
7476         * intl/dcigettext.c (DCIGETTEXT): Always define local variable `index'.
7477         (mempcpy): Correct typo is parameter list.
7478
7479 2000-05-06  Andreas Jaeger  <aj@suse.de>
7480
7481         * sysdeps/i386/fpu/bits/mathinline.h: Disable some inline
7482         functions unless -ffast-math is given to gcc.
7483
7484 2000-05-06  Ulrich Drepper  <drepper@redhat.com>
7485
7486         * po/ko.po: Update from translation team.
7487
7488 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7489
7490         * sysdeps/unix/sysv/aix/linux/errnoconv.c: Moved to...
7491         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: ...here.
7492         * sysdeps/unix/sysv/aix/linux/statconv.c: Moved to...
7493         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: ...here.
7494         * sysdeps/unix/sysv/aix/linux/direntconv.c: Moved to...
7495         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: ...here.
7496
7497         * sysdeps/unix/sysv/aix/linux/linux-errno.h: Removed.
7498         * sysdeps/unix/sysv/aix/linux/linux-stat.h: Removed
7499         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: Removed.
7500
7501         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: New file.
7502         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: New file.
7503         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: New file.
7504         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: New file.
7505
7506         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: New file.
7507         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: New file.
7508
7509 2000-05-05  Jes Sorensen  <jes@linuxcare.com>
7510
7511         * sysdeps/unix/sysv/linux/ia64/sysdep.h: New file.
7512         * sysdeps/unix/sysv/linux/ia64/syscall.S: New file.
7513
7514         * sysdeps/unix/sysv/linux/ia64/bits/types.h: New file.
7515         * sysdeps/unix/sysv/linux/ia64/bits/endian.h: New file.
7516
7517         * sysdeps/ia64/Implies: New file.
7518         * sysdeps/ia64/Versions: New file.  Declare _dl_symbol_address.
7519         * sysdeps/ia64/Makefile: New file.
7520         * sysdeps/ia64/gmp-mparam.h: New file,
7521
7522         * sysdeps/ia64/elf/start.S: New file.
7523
7524         * sysdeps/ia64/bits/fenv.h: New file.
7525
7526 2000-05-05  David Mosberger-Tang  <davidm@hpl.hp.com>
7527
7528         * sysdeps/unix/sysv/linux/ia64/sysdep.S: New file.
7529
7530 2000-04-26  Jes Sorensen  <Jes.Sorensen@cern.ch>
7531
7532         * sysdeps/unix/sysv/linux/ia64/bits/elfclass.h: New file.  The
7533         ia64 has 64 bit .hash entries just as the Alpha.
7534
7535 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
7536
7537         * sysdeps/ia64/memprof.h: New file.  Provide GETSP() macro.
7538
7539 2000-04-17  Jes Sorensen  <Jes.Sorensen@cern.ch>
7540
7541         * sysdeps/ia64/fpu/fclrexcpt.c: New file.
7542         * sysdeps/ia64/fpu/fedisblxcpt.c: New file.
7543         * sysdeps/ia64/fpu/feenablxcpt.c: New file.
7544         * sysdeps/ia64/fpu/fegetenv.c: New file.
7545         * sysdeps/ia64/fpu/fegetexcept.c: New file.
7546         * sysdeps/ia64/fpu/fegetround.c: New file.
7547         * sysdeps/ia64/fpu/feholdexcpt.c: New file.
7548         * sysdeps/ia64/fpu/fesetenv.c: New file.
7549         * sysdeps/ia64/fpu/fesetround.c: New file.
7550         * sysdeps/ia64/fpu/feupdateenv.c: New file.
7551         * sysdeps/ia64/fpu/fgetexcptflg.c: New file.
7552         * sysdeps/ia64/fpu/fraiseexcpt.c: New file.
7553         * sysdeps/ia64/fpu/fsetexcptflg.c: New file.
7554         * sysdeps/ia64/fpu/ftestexcept.c: New file.
7555
7556 2000-05-05  Andreas Jaeger  <aj@suse.de>
7557
7558         * misc/tst-tsearch.c (main): Correct type for initstate argument.
7559
7560         * sysdeps/generic/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7561         (_dl_string_hwcap): New, does nothing.
7562
7563         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_DL_HWCAP_COUNT): New.
7564         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7565         (_dl_string_hwcap): New function, converts from string to hwcap
7566         encoding.
7567         * sysdeps/unix/sysv/linux/sparc/sparc32/dl-procinfo.h
7568         (_DL_HWCAP_COUNT): New.
7569         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7570         (_dl_string_hwcap): New function, converts from string to hwcap
7571         encoding.
7572         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-procinfo.h
7573         (_DL_HWCAP_COUNT): New.
7574         (_dl_procinfo): Use _DL_HWCAP_COUNT instead of a constant.
7575         (_dl_string_hwcap): New function, converts from string to hwcap
7576         encoding.
7577
7578 2000-05-05  Ulrich Drepper  <drepper@redhat.com>
7579
7580         * elf/Makefile (distribute): Add dl-lookupcfg.h.
7581         * sysdeps/ia64/Dist: New file.
7582
7583         * elf/dl-load.c (_dl_map_object_from_fd): Little of computation of
7584         parameter to mprotect and for variable assignments.
7585
7586 2000-05-03  Jes Sorensen  <jes@linuxcare.com>
7587
7588         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Check the
7589         validity of map before dereferencing it.
7590
7591         * elf/dl-reloc.c (RESOLVE_MAP): Define.
7592
7593 2000-05-02  Jes Sorensen  <jes@linuxcare.com>
7594
7595         * elf/dl-runtime.c (fixup): Add the value returned in the symbol
7596         lookup to the arguments to elf_machine_fixup_plt().
7597
7598         * sysdeps/ia64/dl-machine.h (elf_machine_fixup_plt): Add Link_map
7599         of the symbol being resolved to input argument list and make the
7600         function return the pointer to the reloc.
7601
7602         * sysdeps/alpha/dl-machine.h (elf_machine_fixup_plt): Change
7603         return valuie to lookup_t and return the value.
7604         * sysdeps/arm/dl-machine.h (elf_machine_fixup_plt): Likewise.
7605         * sysdeps/generic/dl-machine.h (elf_machine_fixup_plt): Likewise.
7606         * sysdeps/i386/dl-machine.h (elf_machine_fixup_plt): Likewise.
7607         * sysdeps/m68k/dl-machine.h (elf_machine_fixup_plt): Likewise.
7608         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_fixup_plt): Likewise.
7609         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_fixup_plt): Likewise.
7610
7611         * sysdeps/powerpc/dl-machine.h (elf_machine_fixup_plt): Likewise.
7612         Make it an inline function returning value after calling
7613         __elf_machine_fixup_plt().
7614
7615         * elf/dl-sym.c (_dl_vsym): Use DL_SYMBOL_ADDRESS() to obtain the
7616         symbol address.
7617
7618         * elf/dl-symbol.c (_dl_symbol_value): Use LOOKUP_VALUE_ADDRESS to
7619         obtain the symbol address.
7620
7621         * sysdeps/generic/ldsodefs.h: Add generic DL_SYMBOL_ADDRESS() macro
7622         depending on the definition of ELF_FUNCTION_PTR_IS_SPECIAL.
7623
7624         * sysdeps/ia64/dl-machine.h: Add DL_SYMBOL_ADDRESS() macro calling
7625         _dl_symbol_address() - this way DL_SYMBOL_ADDRESS() turns into an
7626         inline on non ia64.
7627
7628 2000-04-28  Jes Sorensen  <jes@linuxcare.com>
7629
7630         * elf/dl-runtime.c (fixup): Use the portable macros to get the
7631         symbol address of an object.
7632
7633         * elf/dl-runtime.c (fixup-profile): Use the portable macros to get
7634         the symbol address of an object.
7635
7636         * elf/dl-libc.c (struct do_dlsym_args): Change loadbase to a lookup_t.
7637         * elf/dl-lookup.c (_dl_lookup_symbol): Likewise.
7638         (_dl_lookup_symbol_skip): Likewise.
7639         (_dl_lookup_versioned_symbol): Likewise.
7640         (_dl_lookup_versioned_symbol_skip): Likewise.
7641
7642 2000-04-27  Jes Sorensen  <jes@linuxcare.com>
7643
7644         * elf/rtld.c (_dl_start): Get the function pointer return address
7645         via _dl_start_address for architectures that need a function
7646         pointer descriptor rather than just a pointer (ia64).
7647
7648         * sysdeps/generic/dl-lookupcfg.h: New file.
7649         * sysdeps/ia64/dl-lookupcfg.h: New file.
7650         * sysdeps/ia64/dl-machine.h: New file.
7651         * sysdeps/ia64/dl-symaddr.c: New file.
7652         * sysdeps/ia64/dl-fptr.c: New file.
7653
7654         * elf/elf.h: Add IA-64 specific definitions.
7655
7656 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7657
7658         * sysdeps/generic/bits/confname.h (_SC* enum): Avoid comma at the
7659         end of enum.
7660
7661 2000-05-04  Jakub Jelinek  <jakub@redhat.com>
7662
7663         * iconv/gconv.h (__gconv_t): Add __extension__ to make gcc -pedantic
7664         happy.
7665
7666 2000-04-11  Geoff Keating  <geoffk@cygnus.com>
7667
7668         * sysdeps/powerpc/dl-start.S (_dl_start): Add _dl_start_user
7669         symbol.  Call _dl_init rather than the old way.
7670
7671 2000-05-04  Ulrich Drepper  <drepper@redhat.com>
7672
7673         * elf/dl-open.c (dl_open_worker): Use l_map_start and l_map_end to
7674         test for pointer in range of DSO address space.
7675
7676 2000-05-04  Andreas Jaeger  <aj@suse.de>
7677
7678         * nscd/pwdcache.c (addpwbyname): Initialize oldeuid to silence GCC.
7679
7680 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7681
7682         * locale/findlocale.c (_nl_find_locale): Add new parameter to
7683         calls of _nl_make_l10nflist.
7684
7685         * libio/stdio.h: Make fseeko and ftello prototypes available is
7686         __USE_LARGEFILE.  Patch by Paul Eggert <eggert@twinsun.com>.
7687
7688         * sysdeps/generic/dl-environ.c (unsetenv): Follow change to the
7689         real unsetenv implementation from 1999-07-29 [PR libc/1714].
7690
7691 2000-05-03  Bruno Haible  <haible@clisp.cons.org>
7692
7693         * intl/dcigettext.c (dcigettext): Do the defaulting of 'domainname'
7694         before calling tfind.
7695
7696 2000-03-05  Jakub Jelinek  <jakub@redhat.com>
7697
7698         * resolv/resolv.h (res_querydomain): Remove redefinition to
7699         __res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).
7700
7701 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7702
7703         * po/gl.po: Update from translation team.
7704
7705         * manual/intro.texi (Program Basics): Change section title.
7706         * manual/process.texi: Fix reference.
7707         (Executing a File): Add reference exec in other section.
7708         * manual/signal.texi: Fix reference.
7709         * manual/startup.texi: Document syscall function.
7710         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
7711
7712 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7713
7714         * intl/libintl.h (bind_textdomain_codeset): New declaration.
7715         * intl/bindtextdom.c (set_binding_values): New function.
7716         (bindtextdomain): Call it.
7717         (bind_textdomain_codeset): New function.
7718         * intl/dcigettext.c (dcigettext): Pass binding to _nl_find_domain.
7719         (free_mem): Free each binding's codeset.
7720         * intl/gettextP.h (struct binding): Add codeset field.
7721         (_nl_find_domain): Add domainbinding argument.
7722         * intl/finddomain.c (_nl_find_domain): Add domainbinding argument.
7723         Pass it to _nl_make_l10nflist.
7724         * intl/loadinfo.h (struct loaded_l10nfile): Add domainbinding field.
7725         (_nl_make_l10nflist): Add domainbinding argument.
7726         * intl/l10nflist.c (_nl_make_l10nflist): Add domainbinding argument.
7727         * intl/loadmsgcat.c (_nl_load_domain): Look at the domainbinding's
7728         codeset when determining outcharset. If !_LIBC && HAVE_ICONV, call
7729         locale_charset().
7730         * manual/message.texi: New node "Charset conversion in gettext".
7731
7732 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7733
7734         * catgets/open_catalog.c (__open_catalog): Use __builtin_expect where
7735         appropriate.  Handle possible __read error.
7736
7737 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7738
7739         * intl/gettextP.h (__builtin_expect): Define as empty if not a
7740         compiler builtin.
7741         * intl/loadinfo.h (__builtin_expect): Likewise.
7742         * intl/dcigettext.c (dcigettext, _nl_find_msg): Use
7743         __builtin_expect where appropriate.
7744         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7745         * intl/localealias.c (extend_alias_table): Return an error indicator.
7746         (read_alias_file): Bail out if extend_alias_table fails.
7747
7748 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7749
7750         * intl/loadmsgcat.c: Define _GNU_SOURCE as early as possible.
7751         * intl/localealias.c: Likewise.
7752
7753 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7754
7755         * intl/loadmsgcat.c (_nl_load_domain): Initialize domain->conv_tab.
7756         Initialize domain->plural and domain->nplurals even if there is no
7757         nullentry.
7758
7759 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7760
7761         * intl/dcigettext.c (_nl_find_msg): Terminate __gconv loop if return
7762         value is == __GCONV_OK or == __GCONV_EMPTY_INPUT, not != __GCONV_OK.
7763         In case of failure, goto converted.
7764
7765 2000-05-01  Bruno Haible  <haible@clisp.cons.org>
7766
7767         * wcsmbs/wcsmbsload.c (norm_add_slashes): Move away.
7768         * iconv/gconv_int.h (norm_add_slashes): Move to here.
7769         * intl/loadmsgcat.c (_nl_load_domain): Normalize strings passed to
7770         __gconv_open.
7771
7772 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7773
7774         * intl/dcigettext.c (transcmp): Compare the domains as well.
7775         (dcigettext): Call strlen (msgid1) after testing msgid1 against NULL,
7776         not before.
7777         * intl/loadmsgcat.c (_nl_load_domain): Deal with EINTR. Include
7778         <errno.h>.
7779
7780 2000-05-03  Ulrich Drepper  <drepper@redhat.com>
7781
7782         * string/bits/string2.h: Declare __strdup and __strndup if necessary.
7783         Reported by Bruno Haible.
7784
7785 2000-04-29  Bruno Haible  <haible@clisp.cons.org>
7786
7787         * manual/arith.texi: Remove @w from @itemize.
7788
7789 2000-05-02  Andreas Jaeger  <aj@suse.de>
7790
7791         * conform/data/tar.h-data: Add some checks for specific values.
7792
7793         * conform/data/stdlib.h-data: Add checks for value of EXIT_SUCCESS
7794         and RAND_MAX.
7795
7796         * conform/data/stdio.h-data: Add checks for value of TMP_MAX and
7797         FOPEN_MAX.
7798
7799         * conform/data/netinet/in.h-data: Add exact checks for the values
7800         fo INET_ADDRSTRLEN and INET6_ADDRSTRLEN.
7801
7802         * conform/data/float.h-data: Add some minimal values.
7803
7804         * conform/conformtest.pl: Test for macros with string constants,
7805         check for minimum and maximum values.
7806         Add limits.h to headers.
7807
7808         * conform/data/cpio.h-data: Test for value of MAGIC.
7809
7810         * conform/data/limits.h-data: New file.
7811
7812 2000-04-30  Bruno Haible  <haible@clisp.cons.org>
7813
7814         * math/Makefile (headers): Add bits/fenvinline.h.
7815
7816 2000-05-01  Ulrich Drepper  <drepper@redhat.com>
7817
7818         * sysdeps/unix/sysv/aix/linux/linux-dirent.h: New file.
7819         * sysdeps/unix/sysv/aix/linux/direntconv.c: New file.
7820
7821         * posix/Versions: Change posix_spawnattr_getdefault and
7822         posix_spawnattr_setdefault to posix_spawnattr_getsigdefault
7823         and posix_spawnattr_setsigdefault respectively.
7824         * posix/spawn.h: Likewise.
7825         * posix/spawnattr_getdefault.h: Likewise.
7826         * posix/spawnattr_setdefault.h: Likewise.
7827         * conform/data/spawn.h-data: Likewise.
7828
7829 2000-05-01  Andreas Jaeger  <aj@suse.de>
7830
7831         * nscd/nscd.c: Include <grp.h> for setgroups prototype.
7832
7833 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7834
7835         * manual/sysinfo.texi: Document getdomainname, setdomainname
7836         and sysctl.
7837         * manual/string.texi: Fix typo.
7838         * manual/terminal.texi: Document gtty and stty.
7839         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
7840
7841 2000-04-30  Andreas Jaeger  <aj@suse.de>
7842
7843         * posix/bits/posix1_lim.h (_POSIX_PATH_MAX): Increase to 256 in
7844         accordance with Austin Draft.
7845
7846 2000-04-30  Ulrich Drepper  <drepper@redhat.com>
7847
7848         * catgets/gencat.c (read_input_file): Use isblank and not isspace
7849         to recognize second character in comment line.
7850
7851         * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Set errno to
7852         ENOBUFS if we are out of memory.
7853
7854         * sysdeps/generic/bits/fcntl.h (F_SETOWN, F_GETOWN): Make
7855         available if __USE_XOPEN2K.
7856         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
7857         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7858         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
7859         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
7860         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
7861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
7862         * sysdeps/unix/sysv/aix/bits/fcntl.h: Likewise.
7863         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
7864
7865 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7866
7867         * iconv/iconv_prog.c (main): Handle input file name "-" correctly.
7868         Recognize option -s, -c, and -l.
7869
7870 2000-04-20  Thorsten Kukuk  <kukuk@suse.de>
7871
7872         * nscd/nscd.c: Start new session for nscd, drop privilegs
7873         to configured user if requested and no -S parameter are used.
7874         * nscd/nscd.conf: Add new option "server-user".
7875         * nscd/nscd_conf.c: Add support for new "server-user" option.
7876         * nscd/nscd.h: Add declaration for server_user variable.
7877         Based on patch by Chris Wing <wingc@engin.umich.edu>
7878
7879 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7880
7881         * sysdeps/unix/sysv/linux/i386/sigaction.c: Add comment explaining
7882         that changing the __restore and __restore_rt signal return code
7883         will break GDB.
7884
7885 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7886
7887         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Do not include
7888         <sys/user.h>.
7889
7890 2000-04-29  Mark Kettenis  <kettenis@gnu.org>
7891
7892         * conform/data/ucontext.h-data: Allow ss_* instead of SS_*.
7893
7894 2000-04-29  Ulrich Drepper  <drepper@redhat.com>
7895
7896         * conform/conformtest.pl (@headers): Add sys/utsname.h, sys/un.h,
7897         sys/socket.h, spawn.h, netinet/tcp.h, netinet/in.h, net/if.h, and
7898         arpa/inet.h.
7899         * conform/data/fcntl.h-data: Add F_GETOWN, F_SETOWN,
7900         SEEK_SET, SEEK_CUR, SEEK_END, S_IFMT, S_IFBLK, S_IFCHR, S_IFIFO,
7901         S_IFREG, S_IFDIR, S_IFLNK, S_IFSOCK, S_IRWXU, S_IRUSR S_IWUSR,
7902         S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH,
7903         S_IWOTH, S_IXOTH, S_ISUID, S_ISGID, S_ISVTX, POSIX_FADV_NORMAL,
7904         POSIX_FADV_SEQUENTIAL, POSIX_FADV_RANDOM, POSIX_FADV_WILLNEED,
7905         POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE, posix_fadvise,
7906         posix_fallocate, and posix_madvise.
7907         * conform/data/netdb.h-data: New file.
7908         * conform/data/pthread.h-data: Add pthread_barrier_t,
7909         pthread_barrierattr_t, pthread_barrier_destroy,
7910         pthread_barrier_init, pthread_barrier_wait,
7911         pthread_barrierattr_destroy, pthread_barrierattr_getpshared,
7912         pthread_barrierattr_init, pthread_barrierattr_setpshared,
7913         pthread_condattr_getclock, pthread_condattr_setclock,
7914         pthread_getcpuclockid, pthread_mutex_timedlock,
7915         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7916         pthread_sigmask, pthread_spin_destroy, pthread_spin_init,
7917         pthread_spin_lock, pthread_spin_trylock, and pthread_spin_unlock.
7918         * conform/data/sched.h-data: Add sched_ss_low_priority,
7919         sched_ss_repl_period, sched_ss_init_budget, sched_ss_max_repl, and
7920         SCHED_SPORADIC.
7921         * conform/data/semaphore.h-data: Add sem_timedwait.
7922         * conform/data/signal.h-data: Add SIGIO.
7923         * conform/data/spawn.h-data: New file.
7924         * conform/data/stdlib.h-data: Add posix_memalign, setenv, and unsetenv.
7925         * conform/data/time.h-data: Add CLOCK_PROCESS_CPUTIME_ID,
7926         CLOCK_THREAD_CPUTIME_ID, clock_getcpuclockid, and clock_nanosleep.
7927         Fix typo in gmtime_r definition.
7928         * conform/data/unistd.h-data: Add _POSIX_ADVISORY_INFO,
7929         _POSIX_ASYNCHRONOUS_IO, _POSIX_BARRIERS, _POSIX_MONOTONIC_CLOCK,
7930         _POSIX_READER_WRITER_LOCKS, _POSIX_SHELL, _POSIX_SPAWN,
7931         _POSIX_SPIN_LOCKS, _POSIX_SPORADIC_SERVER, _POSIX_THREAD_CPUTIME,
7932         _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_THREAD_SPORADIC_SERVER,
7933         _XOPEN_STREAMS, _POSIX_TIMEOUTS, _POSIX2_PBS,
7934         _POSIX2_PBS_ACCOUNTING, _POSIX2_PBS_CHECKPOINT,
7935         _POSIX2_PBS_LOCATE, _POSIX2_PBS_MESSAGE, _POSIX2_PBS_TRACK,
7936         _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_CHECKPOINT,
7937         _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK,
7938         _SC_BARRIERS, _SC_BASE, _SC_CLOCK_SELECTION, _SC_DEVICE_IO,
7939         _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO,
7940         _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM,
7941         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK,
7942         _SC_MESSAGE_PASSING, _SC_MONOTONIC_CLOCK, _SC_MULTIPLE_PROCESS,
7943         _SC_NETWORKING, _SC_PIPE, _SC_READER_WRITER_LOCKS, _SC_REGEXP,
7944         _SC_SHELL, _SC_SIGNALS, _SC_SINGLE_PROCESS, _SC_SPIN_LOCKS,
7945         _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R,
7946         _SC_STREAMS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE,
7947         _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, setegid, seteuid.  Fix
7948         typo in off_t definition.
7949         * conform/data/net/if.h-data: New file.
7950         * conform/data/netinet/in.h-data: New file.
7951         * conform/data/netinet/tcp.h-data: New file.
7952         * conform/data/sys/mman.h-data: Add POSIX_MADV_NORMAL,
7953         POSIX_MADV_SEQUENTIAL, POSIX_MADV_RANDOM, POSIX_MADV_WILLNEED,
7954         POSIX_MADV_DONTNEED, POSIX_TYPED_MEM_ALLOCATE,
7955         POSIX_TYPED_MEM_ALLOCATE_CONTIG, POSIX_TYPED_MEM_MAP_ALLOCATABLE,
7956         posix_typedmem_info, posix_mem_offset, posix_typed_mem_get_info,
7957         and posix_typed_mem_open.
7958         * conform/data/sys/socket.h-data: New file.
7959         * conform/data/sys/stat.h-data: Add S_TYPEISTMO and isfdtype.
7960         * conform/data/sys/types.h-data: Add pthread_barrier_t,
7961         pthread_barrierattr_t, and pthread_spinlock_t.
7962         * conform/data/sys/un.h-data: New file.
7963         * conform/data/sys/utsname.h-data: New file.
7964
7965         * include/netdb.h (__gethostbyaddr_r): Fix types of first and second
7966         parameter.
7967         * inet/gethstbyad.c (gethostbyname): Likewise.
7968         * inet/gethstbyad_t.c (gethostbyname_r): Likewise.
7969         * inet/getipnodebyad.c (getipnodebyad): Likewise.
7970         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise.
7971         * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r):
7972         Likewise.
7973         * nscd/gethstbyad_r.c (gethostbyaddr_r): Likewise.
7974         * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise.
7975         * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Likewise.
7976         * nss/nss_files/files-hosts.c (_nss_files_gethostbyaddr_r): Likewise.
7977         * resolv/gethnamaddr.c (gethostbyname): Likewise.
7978         * resolv/netdb.h (struct hostent): Fix type of h_length member.
7979         (gethostbyaddr, getipnodebyaddr, gethostbyaddr_r): Fix types of first
7980         and second parameter.
7981
7982         * wcsmbs/mbrtowc.c (__mbrtowc): Set end of buffer correctly if s
7983         == NULL.
7984
7985 2000-04-29  Andreas Jaeger  <aj@suse.de>
7986
7987         * conform/data/arpa/inet.h-data: New file.
7988
7989 2000-04-28  Geoff Clare <gwc@unisoft.com>
7990
7991         * io/ftw.c: Set errno to ENOENT (instead of ENOTDIR) when the
7992         path passed to ftw() or nftw() is an empty string.
7993         Closes PR libc/1710.
7994
7995 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
7996
7997         * localedata/Makefile (test-srcs): Add tst-mbswcs4 and tst-mbswcs5.
7998         (do-tst-mbswcs): Add tst-mbswcs4 and tst-mbswcs5 to dependencies.
7999         * localedata/tst-mbswcs.sh: Run tst-mbswcs4 and tst-mbswcs5.
8000         * localedata/tst-mbswcs4.c: New file.
8001         * localedata/tst-mbswcs5.c: New file.
8002
8003         * wcsmbs/wcrtomb.c (__wcrtomb): Set end of buffer correctly if s
8004         == NULL.  Little optimization.
8005
8006         * elf/dl-init.c (_dl_init): Correct typo (DT_PREINIT_ARRAY not
8007         DT_PREINIT_ARRAYSZ).
8008         Reported by Jes Sorensen <Jes.Sorensen@cern.ch>.
8009
8010         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
8011         overflows in conversion from ASCII.
8012
8013 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8014
8015         * Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
8016         * Makerules (full_config_sysdirs): Likewise.
8017         * MakeTAGS (full_config_sysdirs): Likewise.
8018
8019 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8020
8021         * .cvsignore: Remove linuxthreads.
8022         * po/.cvsignore: Remove *.pot.
8023         * posix/glob/.cvsignore: Removed.
8024         * sysdeps/unix/bsd/osf/.cvsignore: Removed.
8025
8026 2000-04-25  Andreas Jaeger  <aj@suse.de>
8027
8028         * conform/Makefile (distribute): Also distribute contents of
8029         subdirectories.
8030
8031         * Makerules (no_deps): Remove abi-versions.h.
8032
8033         * nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.
8034
8035 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8036
8037         * sysdeps/sparc/sparc64/elf/Dist: Remove.
8038         * sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
8039         * sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
8040         * sysdeps/sparc/sparc64/elf/crtend.S: Remove.
8041         * sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
8042         * sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
8043         objects.
8044
8045 2000-04-25  Thorsten Kukuk  <kukuk@suse.de>
8046
8047         * nscd/grpcache.c: Fix gr_name pointer [PR/1702].
8048
8049 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8050
8051         * intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
8052         * intl/l10nflist.c: Likewise.
8053
8054 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8055
8056         * intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
8057         __libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
8058         * intl/textdomain.c [!_LIBC]: Likewise.
8059         * intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
8060         __libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
8061         * intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
8062         syntax error.
8063
8064 2000-04-23  Bruno Haible  <haible@clisp.cons.org>
8065
8066         * intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
8067         character set conversion also in the case the translation was found
8068         after a hash collision or through binary search.  Store the maximum
8069         index together with the converted message.  Use iconv() when available.
8070         In case of out of memory during conversion, return the unconverted
8071         translated string, not NULL.
8072
8073 2000-04-25  Jes Sorensen  <Jes.Sorensen@cern.ch>
8074
8075         * shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
8076         to avoid name clashes with the ia32 linker.
8077
8078 2000-04-25  Jakub Jelinek  <jakub@redhat.com>
8079
8080         * sysdeps/alpha/dl-machine.h (_dl_start_user): Fix the _dl_skip_args
8081         handling.
8082
8083 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8084
8085         * manual/string.texi: Document strcasestr, strchrnul, strtoimax,
8086         strtoumax, strfry, and memfrob.
8087         * manual/arith.texi: Document {,u}int*_t types, and strto{i,u}max.
8088         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8089
8090         * elf/soinit.c (__libc_global_ctors): Call __pthread_initialize_minimal
8091         if this function is available.
8092
8093         * sysdeps/i386/i486/atomicity.h (exchange_and_add): Use uint32_t for
8094         all values.
8095
8096 2000-04-27  Jakub Jelinek  <jakub@redhat.com>
8097
8098         * nss/getXXbyYY_r.c: Fix a typo in __old_getxxbyyy_r versioning.
8099
8100 2000-04-27  Ulrich Drepper  <drepper@redhat.com>
8101
8102         * localedata/Makefile (test-srcs); Add tst-mbswcs3.
8103         Add rule to build tst-mbswcs3 before running tst-mbswcs.sh.
8104         * localedata/tst-mbswcs.sh: Run tst-mbswcs3.
8105         * localedata/tst-mbswcs3.c: New file.
8106
8107 2000-04-26  Ulrich Drepper  <drepper@redhat.com>
8108
8109         * wcsmbs/mbsnrtowcs.c: Correctly compute number of converted
8110         characters.  Don't handle incomplete characters as errors.
8111         * wcsmbs/mbsrtowcs.c: Don't handle incomplete characters as errors.
8112         * localedata/Makefile (test-srcs): Add tst-mbswcs2.
8113         Add rule to build tst-mbswcs2 before running tst-mbswcs.sh.
8114         * localedata/tst-mbswcs.sh: Run tst-mbswcs2.
8115         * localedata/tst-mbswcs2.c: New file.
8116
8117         * iconv/gconv_simple.c (utf8_internal_loop): Correctly reconstruct
8118         stored character in state in UNPACK_BYTES macro.
8119         * iconv/loop.c (SINGLE(LOOPFCT)): Make it actually work.  Correct
8120         test for available characters, handle result of BODY code correctly.
8121         * localedata/Makefile (test-srcs): Add tst-mbswcs1.
8122         (distribute): Add tst-mbswcs.sh.
8123         Add rule to run tst-mbswcs.sh.
8124         * localedata/tst-mbswcs.sh: New file.
8125         * localedata/tst-mbswcs1.c: New file.
8126
8127 2000-04-26  Jakub Jelinek  <jakub@redhat.com>
8128
8129         * nis/nis_callback.c (__nis_create_callback): Do failed memory
8130         allocation fixups centrally, fix __builtin_expect call, return NULL
8131         on failure, not NIS_NOMEMORY.
8132
8133 2000-04-27  Bruno Haible  <haible@clisp.cons.org>
8134
8135         * intl/ngettext.c [!_LIBC]: Fix definition of NGETTEXT.
8136
8137         * intl/loadinfo.h (internal_function): Define if not already defined.
8138
8139 2000-04-27  Andreas Jaeger  <aj@suse.de>
8140
8141         * intl/libintl.h: Fix typo, reported by Bruno Haible
8142         <haible@clisp.cons.org>.
8143
8144 2000-04-25  Ulrich Drepper  <drepper@redhat.com>
8145
8146         * elf/dl-profile.c (_dl_mcount): Try to be thread-safe while not
8147         setting the state to GMON_PROF_BUSY.
8148
8149 2000-04-24  Ulrich Drepper  <drepper@redhat.com>
8150
8151         * elf/dl-profile.c (_dl_start_profile): define all variables which
8152         do not have to be global as local variables.
8153
8154         * nis/nis_callback.c (__nis_create_callback): Partially undo last
8155         patch.  Keep needed tests for failed memory allocation.
8156
8157         * elf/dl-reloc.c (_dl_relocate_object): Add one more
8158         __builtin_expect saying that we don't normally expect to profile.
8159
8160         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add
8161         __builtin_expect where desirable.
8162
8163 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8164
8165         * manual/Makefile (chapters): Add syslog.
8166         * manual/syslog.texi: New file.
8167         * manual/math.texi: Fix references.
8168         * manual/terminal.texi: Likewise.
8169         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8170
8171 2000-04-18  Jakub Jelinek  <jakub@redhat.com>
8172
8173         * posix/sys/wait.h: Define __WAIT_STATUS and the like either if
8174         stdlib.h was not included or __USE_XOPEN not defined.
8175
8176 2000-04-23  Ulrich Drepper  <drepper@redhat.com>
8177
8178         * nss/Makefile (libnss_db-dbs): Remove stray backslash.
8179         Patch by Zack Weinberg <zack@wolery.cumb.org>.
8180
8181 2000-04-22  Ulrich Drepper  <drepper@redhat.com>
8182
8183         * manual/examples/subopt.c (mount_opts): Add missing terminating
8184         entry.
8185         Reported by Michael Deutschmann <michael@talamasca.ocis.net>.
8186
8187         * assert/assert-perr.c: Include <stdlib.h> for abort prototype.
8188         * libio/ftello.c: Likewise.
8189         * libio/ftello64.c: Likewise.
8190         * libio/ioftell.c: Likewise.
8191         * sysdeps/generic/memrchr.c: Likewise.
8192         * sysdeps/posix/libc_fatal.c: Likewise.
8193         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
8194         * misc/fstab.c: Include <string.h> for strcmp prototype.
8195         * sysdeps/generic/ldsodefs.h: Likewise.
8196         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
8197         Patch by Kurt Roeckx <Q@ping.be>.
8198
8199         * nss/Makefile (libnss_db-dbs): Renamed from libnss_db-routines.
8200         Remove db-open.  Change all uses.
8201         (libnss_db-routines): Define as $(libnss_db-dbs) db-open.
8202
8203 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8204
8205         * sysdeps/unix/sysv/linux/alpha/msgctl.c (__syscall_msgctl): Declare.
8206         * sysdeps/unix/sysv/linux/alpha/semctl.c (__syscall_semctl): Declare.
8207         * sysdeps/unix/sysv/linux/alpha/shmctl.c (__syscall_shmctl): Declare.
8208         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Surround uses of $f28
8209         with .set noat/at to shut up warnings.
8210         * sysdeps/unix/sysv/linux/alpha/syscalls.list (__fstatfs64): Add alias.
8211         * sysdeps/unix/sysv/linux/alpha/ioperm.c (init_iosys): Allow
8212         compilation if __NR_pciconfig_iobase is not defined.
8213         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (__fstatfs64):
8214         Add alias.
8215
8216 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8217
8218         * manual/sysinfo.texi: Fix typo.
8219         * manual/time.texi: Document timelocal, timegm, adjtimex, and stime.
8220         Replace "high precision time" with "high accuracy clock".
8221         Fix language.
8222         Patches by Bryan Henderson <bryanh@giraffe-data.com>.
8223
8224         * nis/nis_findserv.c (__nis_findfastest): Improve memory handling.
8225         * nis/nis_print_group_entry.c (nis_print_group_entry): Use alloca
8226         instead of malloc.
8227         * nis/nis_subr.c: Use __builtin_expect.
8228         * nis/ypclnt.c: Likewise.
8229         * nis/nis_getservlist.c: Likewise.
8230         * nis/nis_creategroup.c: Likewise.
8231
8232         * nis/nis_callback.c (__nis_create_callback): Check result of
8233         memory allocation.  Fix memory leaks.  Use __builtin_expect.
8234         (__nis_destroy_callback): Fix memory leaks.
8235
8236 2000-04-21  Andreas Jaeger  <aj@suse.de>
8237
8238         * sysdeps/mips/elf/start.S: Use __PIC__ instead of PIC.
8239         * sysdeps/mips/mips64/add_n.S: Likewise.
8240         * sysdeps/mips/mips64/bsd-_setjmp.S: Likewise.
8241         * sysdeps/mips/mips64/lshift.S: Likewise.
8242         * sysdeps/mips/mips64/mul_1.S: Likewise.
8243         * sysdeps/mips/mips64/rshift.S: Likewise.
8244         * sysdeps/mips/mips64/setjmp.S: Likewise.
8245         * sysdeps/mips/mips64/sub_n.S: Likewise.
8246         * sysdeps/mips/mips64/submul_1.S: Likewise
8247         * sysdeps/unix/mips/sysdep.S: Likewise.
8248
8249         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Remove strtab
8250         and update comment.  The strtab from _dl_relocate_object can be
8251         used.
8252
8253 2000-04-21  Ulrich Drepper  <drepper@redhat.com>
8254
8255         * iconv/iconv.c (iconv): Add __builtin_expect where useful.
8256         * iconv/iconv_close.c (iconv_close): Likewise.
8257         * iconv/iconv_open.c (iconv_open): Likewise.
8258
8259         * grp/putgrent.c (putgrent): Unlock steam if fprintf failed.  Add
8260         __builtin_expect where useful.
8261
8262         * grp/initgroups.c (initgroups): Test for result of memory
8263         allocation and punt if it fails.
8264
8265         * dirent/scandir.c (scandir): Add __builtin_expect where useful.
8266         * grp/fgetgrent.c (fgetfrent): Likewise.
8267         * grp/fgetgrent_r.c (__fgetgrent_r): Likewise.
8268
8269 2000-04-21  Jakub Jelinek  <jakub@redhat.com>
8270
8271         * libio/vasprintf.c: Include string.h to get memcpy prototype.
8272
8273 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8274
8275         * wcsmbs/wcsrtombs.c (__wcsrtombs): If output buffer is too small
8276         don't search for NUL byte to decrement counter.
8277         Reported by Ulrich.Brink@sap.com.
8278
8279         * iconv/gconv_simple.c: Define separate functions to convert from
8280         UCS4/UCS4-LE to the internal encoding.
8281         * iconv/gconv_builtin.h: Use separate functions to convert from
8282         UCS4/UCS4-LE to the internal encoding.
8283         * iconv/gconv_int.h: Declare __gconv_transform_ucs4_internal and
8284         __gconv_transform_ucs4le_internal.
8285
8286         * iconv/gconv_simple.c (internal_utf8_loop): Correct check for
8287         output buffer overflow.  Reported by Ulrich.Brink@sap.com.
8288
8289         * iconv/skeleton.c: Add some more __builtin_expect.
8290         * iconv/loop.c: Likewise.
8291
8292 2000-03-08  H.J. Lu  <hjl@gnu.org>
8293
8294         * posix/regex.c (regex_compile): Correctly handle "\{" when
8295         the RE_INTERVALS is set and the RE_NO_BK_BRACES bit is not set.
8296
8297 2000-04-20  Ulrich Drepper  <drepper@redhat.com>
8298
8299         * manual/stdio.texi: Give advise about handling error when using
8300         stream functions.
8301         Patch by Michael Deutschmann <michael@talamasca.ocis.net>.
8302
8303 2000-04-19  Jakub Jelinek  <jakub@redhat.com>
8304
8305         * locale/programs/ld-ctype.c (ctype_output): Set size of the idx
8306         field to nelems * sizeof (uint32_t).
8307         * locale/programs/ld-address.c (address_output): Align word fields
8308         properly.
8309         * locale/programs/ld-monetary.c (monetary_output): Likewise.
8310         Don't restart idx pointers to idx end at the duo_int_curr_symbol
8311         field.
8312         Avoid giving arbitrary garbage in the crncystr field.
8313         Use sizeof(uint32_t) instead of 4 for len in uno_valid_from,
8314         uno_valid_to, duo_valid_from, duo_valid_to and conversion_rate
8315         fields.
8316         * locale/programs/ld-numeric.c (numeric_output): Likewise.
8317         Don't restart idx pointers to idx end at the decimal_point_wc field.
8318         * locale/programs/ld-time.c (time_output): week_1stday should be
8319         word, not byte.  Align it properly.
8320
8321 2000-04-19  H.J. Lu  <hjl@gnu.org>
8322
8323         * csu/gmon-start.c (_start): Declared as "extern void".
8324         (etext): Likewise.
8325
8326 2000-04-18  Andreas Jaeger  <aj@suse.de>
8327
8328         * manual/install.texi (Running make install): Don't mention utmpd
8329         anymore.
8330
8331 2000-04-18  Andreas Jaeger  <aj@suse.de>
8332
8333         * linuxthreads/Versions: Use ld instead of ld.so.
8334
8335         * elf/Makefile (ld-map): Use ld.map.
8336
8337         * Versions.def: Use ld instead of ld.so.
8338         * elf/Versions: Likewise.
8339         * sysdeps/mach/hurd/Versions: Likewise.
8340
8341 2000-04-20  Andreas Jaeger  <aj@suse.de>
8342
8343         * elf/rtld.c (print_statistics): Move ifndef further up.
8344         (_dl_start_final): Added HP_TIMINIG_NONAVAIL to avoid warnings.
8345         (dl_main): Likewise.
8346
8347 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8348
8349         * gmon/gmon.c: Add weak alias moncontrol for __moncontrol.
8350         * gmon/Versions: Move moncontrol to GLIBC_2.2.
8351
8352         * po/cs.po: Update from translation team.
8353
8354         * sysdeps/generic/updwtmp.c: Remove daemon support.
8355
8356         * login/Makefile (routines): Remove utmp_daemon.
8357
8358         * sysdeps/unix/sysv/aix/gethostname.c: Fix type of len argument.
8359         * sysdeps/unix/sysv/aix/access.c: Define ACC_INVOKER.
8360         * sysdeps/unix/sysv/aix/getegid.c: Define ID_EFFECTIVE.
8361         * sysdeps/unix/sysv/aix/geteuid.c: Likewise.
8362
8363         * elf/rtld.c: Display statitics option also if hp timing is not
8364         available.
8365
8366         * login/programs/connection.c: Removed.
8367         * login/programs/database.c Removed.
8368         * login/programs/error.c: Removed.
8369         * login/programs/request.c: Removed.
8370         * login/programs/xtmp.c: Removed.
8371         * login/programs/xtmp.h: Removed.
8372         * login/Makefile: Remove rules for utmpd.
8373         * login/README.utmpd: Removed.
8374         * login/utmp_daemon.c: Removed.
8375         * login/getutent_r.c: Remove references to daemon functions.
8376         * login/utmp-private.h (__libc_utmp_daemon_functions): Remove
8377         declaration.
8378
8379 2000-04-18  Andreas Jaeger  <aj@suse.de>
8380
8381         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8382         2.2 for libnsl, libresolv, librt, libnss_*.
8383
8384         * elf/rtld.c (process_dl_debug): Remove obsolete comment.
8385
8386         * sysdeps/mips/dl-machine.h (elf_machine_rel): Fix relocation.
8387
8388 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8389
8390         * sysdeps/unix/sysv/aix/geteuid.c: Don't try to include <sys/id.h>.
8391         * sysdeps/unix/sysv/aix/getegid.c: Likewise.
8392         * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64.
8393         * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL.
8394         * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS.
8395         * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL.
8396         * sysdeps/unix/sysv/aix/setregid.c: Likewise.
8397         * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL.
8398         * sysdeps/unix/sysv/aix/setgid.c: Likewise.
8399         * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE.
8400         * sysdeps/unix/sysv/aix/setegid.c: Likewise.
8401         * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type.
8402         * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define
8403         it here.
8404         * sysdeps/unix/sysv/aix/msync.c: New file.
8405         * sysdeps/unix/sysv/aix/msgsnd.c: New file.
8406         * sysdeps/unix/sysv/aix/net/if.h: New file.
8407         * sysdeps/unix/sysv/aix/pipe.c: New file.
8408         * sysdeps/unix/sysv/aix/poll.c: New file.
8409         * sysdeps/unix/sysv/aix/rename.c: New file.
8410         * sysdeps/unix/sysv/aix/rmdir.c: New file.
8411         * sysdeps/unix/sysv/aix/select.c: New file.
8412         * sysdeps/unix/sysv/aix/semctl.c: New file.
8413         * sysdeps/unix/sysv/aix/semget.c: New file.
8414         * sysdeps/unix/sysv/aix/semop.c: New file.
8415         * sysdeps/unix/sysv/aix/sendto.c: New file.
8416         * sysdeps/unix/sysv/aix/setgroups.c: New file.
8417         * sysdeps/unix/sysv/aix/setpgid.c: New file.
8418         * sysdeps/unix/sysv/aix/setpgrp.c: New file.
8419         * sysdeps/unix/sysv/aix/setpriority.c: New file.
8420         * sysdeps/unix/sysv/aix/setrlimit.c: New file.
8421         * sysdeps/unix/sysv/aix/setrlimit64.c: New file.
8422         * sysdeps/unix/sysv/aix/setsid.c: New file.
8423         * sysdeps/unix/sysv/aix/setsockopt.c: New file.
8424         * sysdeps/unix/sysv/aix/shmat.c: New file.
8425         * sysdeps/unix/sysv/aix/shmctl.c: New file.
8426         * sysdeps/unix/sysv/aix/shmdt.c: New file.
8427         * sysdeps/unix/sysv/aix/shmget.c: New file.
8428         * sysdeps/unix/sysv/aix/sigaltstack.c: New file.
8429         * sysdeps/unix/sysv/aix/sigstack.c: New file.
8430         * sysdeps/unix/sysv/aix/socket.c: New file.
8431         * sysdeps/unix/sysv/aix/socketpair.c: New file.
8432         * sysdeps/unix/sysv/aix/speed.c: New file.
8433         * sysdeps/unix/sysv/aix/symlink.c: New file.
8434         * sysdeps/unix/sysv/aix/sync.c: New file.
8435         * sysdeps/unix/sysv/aix/tcgetattr.c: New file.
8436         * sysdeps/unix/sysv/aix/tcsetattr.c: New file.
8437         * sysdeps/unix/sysv/aix/times.c: New file.
8438         * sysdeps/unix/sysv/aix/ulimit.c: New file.
8439         * sysdeps/unix/sysv/aix/umask.c: New file.
8440         * sysdeps/unix/sysv/aix/unlink.c: New file.
8441         * sysdeps/unix/sysv/aix/ustat.c: New file.
8442         * sysdeps/unix/sysv/aix/utimes.c: New file.
8443
8444 2000-04-18  Andreas Jaeger  <aj@suse.de>
8445
8446         * manual/startup.texi (Environment Access): Fix putenv prototype
8447         according to recent changes.
8448         Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>, closes
8449         PR libc/1692.
8450
8451         * elf/rtld.c (print_statistics): Added HP_TIMINIG_NONAVAIL where
8452         needed.
8453
8454 2000-04-18  Ulrich Drepper  <drepper@redhat.com>
8455
8456         * posix/Makefile (tests): Add tst-getaddrinfo.
8457         * posix/tst-getaddrinfo.c: New file.
8458
8459 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8460
8461         * manual/sysinfo.texi: Document that umount2 is not widely available.
8462
8463         * sysdeps/generic/hp-timing.h (HP_TIMING_NONAVAIL): Define to
8464         signal timing is not really implemented.
8465
8466 2000-04-17  Andreas Jaeger  <aj@suse.de>
8467
8468         * elf/rtld.c (process_dl_debug): Mention statistics in help message.
8469
8470 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8471
8472         * Makefile (install): Use slibdir and libdir instead of inst_slibdir
8473         and inst_libdir.
8474
8475 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8476
8477         * manual/intro.texi: Change reference from System Information to
8478         System Management.
8479         * manual/users.texi: Likewise.
8480         * manual/conf.texi: Likewise.
8481         * manual/sysinfo.texi: Document mount, umount, and umount2.
8482         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8483
8484 2000-04-17  Jakub Jelinek  <jakub@redhat.com>
8485
8486         * sysdeps/ieee754/ldbl-128/printf_fphex.c (PRINT_FPHEX_LONG_DOUBLE):
8487         Create wnumstr as well as numstr to support wide character output
8488         correctly.
8489
8490 2000-04-15  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * sysdeps/sparc/sparc64/Makefile: Remove sysdep-CFLAGS
8493         modification and move it...
8494         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: ...here.
8495         Add -melf64_sparc switch to $(LD) on sparc64-linux.
8496         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Add -melf32_sparc
8497         switch to $(LD) on sparc-linux.
8498
8499 2000-04-17  Thorsten Kukuk  <kukuk@suse.de>
8500
8501         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Remove setresgid
8502         and setresuid from sysdep_routines.
8503
8504 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8505
8506         * manual/Makefile (chapters): Add resource.
8507
8508         * manual/time.texi: Move section on resources to...
8509         * manual/resource.texi: ...here.  New file.  Document ulimit, vlimit,
8510         and vtimes.
8511         * manual/setjmp.texi: Adjust back reference.
8512         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8513
8514         * sysdeps/unix/sysv/aix/lxstat64.c: Uncomment STX_LINK and STX_64
8515         definition.
8516         * sysdeps/unix/sysv/aix/lxstat.c: Uncomment STX_LINK definition.
8517         * sysdeps/unix/sysv/aix/kill.c: Add copyright.
8518         * sysdeps/unix/sysv/aix/getuid.c: Define ID_REAL.
8519         * sysdeps/unix/sysv/aix/getgid.c: Define ID_REAL.
8520         * sysdeps/unix/sysv/aix/execve.c: Add copyright.
8521         * sysdeps/unix/sysv/aix/euidaccess.c: Add copyright.
8522         * sysdeps/unix/sysv/aix/close.c: Add copyright.
8523         * sysdeps/unix/sysv/aix/brk.c: Add copyright.
8524         * sysdeps/unix/sysv/aix/bits/errno.h: Add EAFNOSUPPORT.
8525         * sysdeps/unix/sysv/aix/access.c: Add copyright.
8526         * sysdeps/unix/sysv/aix/Makefile: Add some temporary definitions.
8527         * sysdeps/unix/sysv/aix/Implies: New file.
8528         * sysdeps/unix/sysv/aix/Versions: New file.
8529         * sysdeps/unix/sysv/aix/bind.c: New file.
8530         * sysdeps/unix/sysv/aix/bits/ioctl-types.h: New file.
8531         * sysdeps/unix/sysv/aix/bits/ioctls.h: New file.
8532         * sysdeps/unix/sysv/aix/bits/poll.h: New file.
8533         * sysdeps/unix/sysv/aix/bits/termios.h: New file.
8534         * sysdeps/unix/sysv/aix/chdir.c: New file.
8535         * sysdeps/unix/sysv/aix/chmod.c: New file.
8536         * sysdeps/unix/sysv/aix/chroot.c: New file.
8537         * sysdeps/unix/sysv/aix/creat.c: New file.
8538         * sysdeps/unix/sysv/aix/dl-close.c: New file.
8539         * sysdeps/unix/sysv/aix/dl-open.c: New file.
8540         * sysdeps/unix/sysv/aix/dl-sym.c: New file.
8541         * sysdeps/unix/sysv/aix/fchdir.c: New file.
8542         * sysdeps/unix/sysv/aix/fchmod.c: New file.
8543         * sysdeps/unix/sysv/aix/getgroups.c: New file.
8544         * sysdeps/unix/sysv/aix/gethostname.c: New file.
8545         * sysdeps/unix/sysv/aix/getpriority.c: New file.
8546         * sysdeps/unix/sysv/aix/getrlimit.c: New file.
8547         * sysdeps/unix/sysv/aix/getrlimit64.c: New file.
8548         * sysdeps/unix/sysv/aix/getrusage.c: New file.
8549         * sysdeps/unix/sysv/aix/link.c: New file.
8550         * sysdeps/unix/sysv/aix/madvise.c: New file.
8551         * sysdeps/unix/sysv/aix/mkdir.c: New file.
8552         * sysdeps/unix/sysv/aix/mknod.c: New file.
8553         * sysdeps/unix/sysv/aix/mprotect.c: New file.
8554         * sysdeps/unix/sysv/aix/msgctl.c: New file.
8555         * sysdeps/unix/sysv/aix/msgget.c: New file.
8556         * sysdeps/unix/sysv/aix/msgrcv.c: New file.
8557
8558 2000-04-17  Andreas Jaeger  <aj@suse.de>
8559
8560         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Optimize a bit
8561         as suggested by Ulrich Drepper.
8562         (__dl_runtime_resolve): Remove unused variable, initialize sym
8563         directly.
8564         (RTLD_START): Document OFFSET_GP_GOT.
8565         (OFFSET_GP_GOT): New magic value.
8566         (elf_mips_got_from_gpreg): Use OFFSET_GP_GOT.
8567         (elf_machine_got_rel): Only declare strtab if needed.
8568         (elf_machine_relplt): Removed, it's not needed.
8569         (_dl_runtime_resolve): Fix \n for a comment, safe gp and not pc.
8570
8571         * sysdeps/mips/add_n.S: Add newline at EOF.
8572         * sysdeps/mips/rshift.S: Likewise.
8573         * sysdeps/mips/mul_1.S: Likewise.
8574         * sysdeps/mips/lshift.S: Likewise.
8575         * sysdeps/mips/addmul_1.S: Likewise.
8576
8577 2000-04-17  Ulrich Drepper  <drepper@redhat.com>
8578
8579         * sysdeps/powerpc/fpu/s_isnan.c: Pretty printing.
8580
8581         * elf/dl-reloc.c (_dl_relocate_object): Add more __builtin_expect.
8582         * elf/dl-lookup.c: Likewise.
8583         * elf/dl-init.c (_dl_init): Likewise.
8584         * elf/dl-fini.c (_dl_fini): Likewise.
8585         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
8586         * elf/dl-close.c (_dl_close): Likewise.
8587         * elf/rtld.c (_dl_start_final): Likewise.
8588
8589         * elf/dl-lookup.c (add_dependency): Correct __builtin_expect use.
8590
8591 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8592
8593         * csu/Makefile ($(objpfx)version-info.h): Get OS name from uname and
8594         only fall back on using Linux.
8595
8596         * elf/dl-version.c (_dl_check_map_versions): New argument trace_mode.
8597         Before testing versions check that we actually loaded the object
8598         and whether we are in trace mode.  If not loaded during tracing don't
8599         test versions in this object.
8600         (_dl_check_all_versions): Take new parameter and pass to
8601         _dl_check_map_versions.
8602         * sysdeps/generic/ldsodefs.h: Update prototypes for
8603         _dl_check_all_versions and _dl_check_map_versions.
8604         * elf/rtld.c (struct version_check_args): Add dotrace.
8605         (version_check_doit): Pass args->dotrace to _dl_check_all_versions.
8606         (dl_main): Pass info about trace mode to version_check_doit.
8607         * elf/dl-open.c (dl_open_worker): Pass zero as new argument to
8608         _dl_check_all_versions.
8609
8610         * manual/users.texi (XPG Functions): Document utmpxname, getutmp,
8611         and getutmpx.
8612         Patch by Bryan Henderson <bryanh@giraffe-data.com>.
8613
8614         * manual/argp.texi: Document index parameter of argp_parse.
8615         Fix typo.
8616         Reported by Andrew Schulman <SCHULMAN.ANDREW@epamail.epa.gov>.
8617
8618 2000-04-14  Andreas Jaeger  <aj@suse.de>
8619
8620         * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for
8621         SHMFS_SUPER_MAGIC.  Remove definition of SHMFS_SUPER_MAGIC.
8622
8623         * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added.
8624
8625 2000-04-15  Ulrich Drepper  <drepper@redhat.com>
8626
8627         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Fix typo in
8628         compat_symbol call for old adjtime.
8629
8630         * sysdeps/alpha/dl-machine.h (RTLD_START): Rewrite for new init
8631         function interface.  Patch by Richard Henderson <rth@cygnus.com>.
8632
8633         * posix/Makefile (headers): Add spawn.h.
8634         (distribute): Add spawn_int.h.
8635         (routines): Add spawn_faction_init, spawn_faction_destroy,
8636         spawn_faction_addclose, spawn_faction_addopen, spawn_faction_adddup2,
8637         spawnattr_init, spawnattr_destroy, spawnattr_getdefault,
8638         spawnattr_setdefault, spawnattr_getflags, spawnattr_setflags,
8639         spawnattr_getpgroup, spawnattr_setpgroup, spawn, spawnp, and spawni.
8640         * posix/Versions [libc] (GLIBC_2.2): Add posix_spawn_file_actions_init,
8641         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addclose,
8642         posix_spawn_file_actions_addopen, posix_spawn_file_actions_adddup2,
8643         posix_spawnattr_init, posix_spawnattr_destroy,
8644         posix_spawnattr_getdefault, posix_spawnattr_setdefault,
8645         posix_spawnattr_getflags, posix_spawnattr_setflags,
8646         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn,
8647         and posix_spawnp.
8648         * posix/spawn.c: New file.
8649         * posix/spawn.h: New file.
8650         * posix/spawn_faction_addclose.c: New file.
8651         * posix/spawn_faction_adddup2.c: New file.
8652         * posix/spawn_faction_addopen.c: New file.
8653         * posix/spawn_faction_destroy.c: New file.
8654         * posix/spawn_faction_init.c: New file.
8655         * posix/spawn_int.h: New file.
8656         * posix/spawnattr_destroy.c: New file.
8657         * posix/spawnattr_getdefault.c: New file.
8658         * posix/spawnattr_getflags.c: New file.
8659         * posix/spawnattr_getpgroup.c: New file.
8660         * posix/spawnattr_getschedparam.c: New file.
8661         * posix/spawnattr_getschedpolicy.c: New file.
8662         * posix/spawnattr_getsigmask.c: New file.
8663         * posix/spawnattr_init.c: New file.
8664         * posix/spawnattr_setdefault.c: New file.
8665         * posix/spawnattr_setflags.c: New file.
8666         * posix/spawnattr_setpgroup.c: New file.
8667         * posix/spawnattr_setschedparam.c: New file.
8668         * posix/spawnattr_setschedpolicy.c: New file.
8669         * posix/spawnattr_setsigmask.c: New file.
8670         * posix/spawni.c: New file.
8671         * posix/spawnp.c: New file.
8672
8673         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_SPAWN.
8674         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8675
8676 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8677
8678         * malloc/Versions [libc] (GLIBC_2.2): Add posix_memalign.
8679         * malloc/malloc.c: Implement posix_memalign for glibc.
8680         * include/stdlib.h: Add prototype for __posix_memalign.
8681         * stdlib/stdlib.h: Add prototype for posix_memalign.
8682
8683 2000-04-14  Andreas Jaeger  <aj@suse.de>
8684
8685         * sysdeps/mips/dl-machine.h (elf_machine_got_rel): Initialize
8686         symidx correctly.
8687         (elf_machine_got_rel): Cast sym correctly.
8688
8689         * sysdeps/mips/add_n.S: Use __PIC__, add end directive.
8690         * sysdeps/mips/addmul_1.S: Likewise.
8691         * sysdeps/mips/lshift.S: Likewise.
8692         * sysdeps/mips/mul_1.S: Likewise.
8693         * sysdeps/mips/rshift.S: Likewise.
8694         * sysdeps/mips/sub_n.S: Likewise.
8695         * sysdeps/mips/submul_1.S: Likewise.
8696
8697         * stdlib/stdlib.h: Fix typo in comment.
8698
8699         * shlib-versions (mips.*-.*-linux.*): Support only GLIBC 2.0 and
8700         2.2 for libdl, ld and libm.
8701
8702         * sysdeps/generic/madvise.c: Fix typos.
8703
8704         * sysdeps/unix/sysv/linux/mips/clone.S (error): Use __PIC__.
8705
8706         * sysdeps/mips/bits/setjmp.h: Remove K&R compatibility.
8707
8708         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Silence gcc
8709         warnings.
8710
8711 2000-04-14  Ulrich Drepper  <drepper@redhat.com>
8712
8713         * include/sys/statfs.h: Add prototypes for __statfs64 and __fstatfs64.
8714         * sysdeps/generic/fstatfs64.c (__fstatfs64): Renamed to fstatfs64.
8715         Make old name weak alias.
8716         * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise.
8717         * sysdeps/generic/statfs64.c (__statfs64): Renamed to statfs64.
8718         Make old name weak alias.
8719         * sysdeps/unix/sysv/linux/statfs64.c: Likewise.
8720
8721         * io/Makefile (routines): Add posix_fadvise, posix_fadvise64,
8722         posix_fallocate, and posix_fallocate64.
8723         * io/Versions [libc] (GLIBC_2.2): Add posix_fadvise, posix_fadvise64,
8724         posix_fallocate, and posix_fallocate64.
8725         * io/fcntl.h: Declare posix_fadvise, posix_fadvise64,
8726         posix_fallocate, and posix_fallocate64.
8727         * sysdeps/generic/fadvise.c: New file.
8728         * sysdeps/generic/fadvise64.c: New file.
8729         * sysdeps/generic/fallocate.c: New file.
8730         * sysdeps/generic/fallocate64.c: New file.
8731         * sysdeps/posix/fallocate.c: New file.
8732         * sysdeps/posix/fallocate64.c: New file.
8733         * sysdeps/generic/bits/fcntl.h: Define POSIX_FADV_NORMAL,
8734         POSIX_FADV_RANDOM, POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED,
8735         POSIX_FADV_DONTNEED, and POSIX_FADV_NOREUSE.
8736         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
8737         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
8738         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
8739         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
8740         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
8741         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
8742
8743         * sysdeps/generic/madvise.c (__madvise): Renamed to posix_madvise.
8744         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8745
8746 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * misc/Versions [libc] (GLIBC_2.2): Add posix_madvice.
8749         * misc/sys/mman.h (posix_madvise): Add prototype.
8750         * sysdeps/generic/madvise.c (madvise): Renamed to __madvise.  Make
8751         old name and posix_madvise weak aliases.
8752         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
8753         * sysdeps/generic/bits/mman.h: Add POSIX_MADV_* constants.
8754         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Likewise.
8755         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8756         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
8757         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8758         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8759
8760 2000-04-13  Andreas Jaeger  <aj@suse.de>
8761
8762         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Handle symbol
8763         versioning.
8764         (elf_machine_got_rel): Only add runtime display if needed.
8765         (elf_machine_got_rel): Handle symbol versioning.
8766
8767 2000-04-13  Andreas Jaeger  <aj@suse.de>
8768
8769         * sysdeps/unix/sysv/linux/mips/clone.S: Fix function.
8770
8771         * sysdeps/unix/mips/pipe.S: Reorder instructions since .reorder is
8772         default.
8773
8774         * sysdeps/mips/__longjmp.c (__longjmp): Use $25 to fix problems
8775         with some applications.
8776         Patches by Ralf Baechle <ralf@uni-koblenz.de>.
8777
8778         * sysdeps/mips/bsd-setjmp.S: Use __PIC__.
8779         * sysdeps/mips/bsd-_setjmp.S: Likewise.
8780         * sysdeps/mips/setjmp.S: Likewise.
8781
8782         * sysdeps/unix/sysv/linux/mips/pipe.S: New file.
8783
8784 2000-04-13  Ulrich Drepper  <drepper@redhat.com>
8785
8786         * posix/globtest.sh: Work around inconsistency with expanding ~/
8787         in shell (PR libc/1690).  Reported by patsmith@pobox.com.
8788
8789 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8790
8791         * posix/getconf.c: Add support for many more POSIX options.
8792         * sysdeps/posix/sysconf.c: Likewise.
8793         * sysdeps/generic/bits/confname.h: Add many more POSIX options.
8794         * sysdeps/mach/hurd/bits/posix_opt.h: Add _POSIX_REGEXP and
8795         _POSIX_SHELL.
8796         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise.
8797         * sysdeps/unix/sysv/linux/i386/bits/time.h: Rename __CLOCK_HIGHRES to
8798         CLOCK_PROCESS_CPUTIME_ID.  Add define CLOCK_MONOTONIC and
8799         CLOCK_THREAD_CPUTIME_ID.
8800         * sysdeps/unix/i386/clock_getcpuclockid.c: Set *clock_id to
8801         CLOCK_PROCESS_CPUTIME_ID.
8802         * sysdeps/unix/i386/i586/clock_getres.c: Change for renaming of
8803         __CLOCK_HIGHRES to CLOCK_PROCESS_CPUTIME_ID.  Handle
8804         CLOCK_THREAD_CPUTIME_ID and CLOCK_MONOTONIC the same.
8805         * sysdeps/unix/i386/i586/clock_gettime.c: Likewise.
8806
8807         * malloc/Makefile (tests): Add tst-calloc.
8808         * malloc/tst-calloc.c: New file.
8809
8810         * sysdeps/arm/libm-test-ulps: New file.
8811
8812         * malloc/malloc.c: Undo all of today's changes.
8813
8814         * locale/programs/locale.c (show_info): Don't try to look into
8815         data for LC_ALL (there is none).
8816
8817         * malloc/malloc.c (cALLOc): Clear only what the user asked for and
8818         avoid writing over boundary.
8819         Patch by Greg McGary <gkm@eng.ascend.com>.
8820
8821         * sysdeps/arm/memprof.h: New file.
8822
8823 2000-04-12  Andreas Jaeger  <aj@suse.de>
8824
8825         * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.
8826
8827         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
8828         for memmem declaration.
8829
8830 2000-04-12  Ulrich Drepper  <drepper@redhat.com>
8831
8832         * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
8833         to -1.
8834         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
8835
8836         * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the
8837         mode is invalid.
8838         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
8839         Patch by Bart Veer <bartv@redhat.com>.
8840
8841         * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
8842         function interface.
8843
8844 2000-04-11  Andreas Jaeger  <aj@suse.de>
8845
8846         * sysdeps/mips/dl-machine.h: Update some comments.
8847         (ELF_MACHINE_ALIGN_MASK): Removed, it's not needed.
8848
8849 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8850
8851         * sysdeps/unix/sysv/linux/bits/posix_opt.h: Add
8852         _POSIX_SHARED_MEMORY_OBJECTS.
8853
8854         * rt/Makefile (tests): Add tst-shm.
8855         Add rules to generate tst-shm.
8856         * rt/tst-shm.c: New file.
8857
8858         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Set FD_CLOEXEC
8859         for descriptor.
8860
8861         * misc/sys/mman.h: Add prototypes for shm_open and shm_unlink.
8862         * rt/Makefile (librt-routines): Add shm_open and shm_unlink.
8863         * rt/Versions [librt] (GLIBC_2.2): Add shm_open and shm_unlink.
8864         * sysdeps/generic/shm_open.c: New file.
8865         * sysdeps/generic/shm_unlink.c: New file.
8866         * sysdeps/unix/sysv/linux/shm_open.c: New file.
8867         * sysdeps/unix/sysv/linux/shm_unlink.c: New file.
8868         * sysdeps/unix/sysv/linux/Versions [libc] (GLIBC_2.2): Export
8869          __endmntent, __getmntent_r, __setmntent, and __statfs.
8870
8871         * libio/vasprintf.c (_IO_vasprintf): Try to avoid memory
8872         fragmentation by allocating new memory at the end instead of
8873         reallocating.
8874
8875         * posix/globtest.sh: Fix last change.
8876
8877 2000-04-10  Philip Blundell  <philb@gnu.org>
8878
8879         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_JOIN_GROUP,
8880         IPV6_LEAVE_GROUP): New names for IPV6_ADD_MEMBERSHIP,
8881         IPV6_DROP_MEMBERSHIP.
8882         * sysdeps/generic/bits/in.h (IPV6_JOIN_GROUP, IPV6_LEAVE_GROUP):
8883         Likewise.
8884
8885 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8886
8887         * elf/readlib (process_file): Close streams in case of an error.
8888
8889 2000-04-09  Andreas Jaeger  <aj@suse.de>
8890
8891         * elf/readlib.c (process_file): Check if file is big enough to
8892         contain aout and ELF headers.
8893         Reported by Reinhard Moosauer <RMoosauer@steinecker.com>.
8894
8895 2000-04-10  Jes Sorensen  <Jes.Sorensen@cern.ch>
8896
8897         * elf/dl-fini.c: Include alloca.h to get proper prototype for alloca().
8898
8899 2000-04-11  Ulrich Drepper  <drepper@redhat.com>
8900
8901         * test-skeleton.c (main): If STDOUT_UNBUFFERED is defined, make stdout
8902         stream unbuffered.
8903         * rt/Makefile (tests): Add tst-clock.
8904         Add rules to build tst-clock.
8905         * rt/tst-clock.c: New file.
8906         * sysdeps/unix/i386/i586/clock_getres.c: Correct expression to decide
8907         about initialization of nsec.
8908         * sysdeps/unix/i386/i586/clock_gettime.c: Correct expression to decide
8909         about initialization of freq.  Set retval to zero if successful.
8910         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Cache result.
8911
8912 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8913
8914         * Versions.def (librt): Add GLIBC_2.2.
8915         * rt/Makefile (librt-routines): Add get_clockfreq, clock_getcpuclockid,
8916         clock_getres, clock_gettime, clock_settime, timer_create, timer_delete,
8917         timer_getoverr, timer_gettime, and timer_settime.
8918         * rt/Versions [librt] (GLIBC_2.2): Add clock_getres, clock_gettime,
8919         clock_settime, timer_create, timer_delete, timer_getoverrun,
8920         timer_gettime, and timer_settime.
8921         * sysdeps/generic/clock_getcpuclockid.c: New file.
8922         * sysdeps/generic/get_clockfreq.c: New file.
8923         * sysdeps/unix/i386/clock_getcpuclockid.c: New file.
8924         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: New file.
8925         * sysdeps/mach/hurd/i386/bits/time.h: New file.
8926         * sysdeps/unix/i386/i586/clock_getres.c: New file.
8927         * sysdeps/unix/i386/i586/clock_gettime.c: New file.
8928         * sysdeps/unix/i386/i686/Implies: New file.
8929         * sysdpes/unix/sysv/linux/i386/bits/time.h: New file.
8930         * time/Makefile (routines): Move clock_getres, clock_gettime,
8931         clock_settime, timer_create, timer_delete, timer_getoverr,
8932         timer_gettime, and timer_settime to rt/Makefile.
8933         * time/Versions [libc] (GLIBC_2.2): Remove clock_getres, clock_gettime,
8934         clock_settime, timer_create, timer_delete, timer_getoverrun,
8935         timer_gettime, and timer_settime.
8936         * time/time.h: Define pid_t.  Add prototype for clock_getcpuclockid.
8937
8938         * sysdeps/mach/hurd/bits/time.h: Drop K&R compatibility.  Use __const__
8939         and not const as attribute name.
8940
8941 2000-04-10  Thorsten Kukuk  <kukuk@suse.de>
8942
8943         * elf/cache.c (save_cache): Make sure /etc/ld.so.cache is mode 644.
8944
8945 2000-04-10  Andreas Schwab  <schwab@suse.de>
8946
8947         * posix/globtest.sh: Skip tests that depend on unreadable
8948         directories if run as root.
8949
8950 2000-04-10  Ulrich Drepper  <drepper@redhat.com>
8951
8952         * sysdeps/unix/clock_settime.c (clock_settime): Test tv_nsec value
8953         for correct range.  From code by Kaz Kylheku <kaz@ashi.footprints.net>.
8954
8955 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
8956
8957         * sysdeps/unix/clock_gettime.c: New file.
8958         * sysdeps/unix/clock_settime.c: New file.
8959         * sysdeps/posix/clock_getres.c: New file.
8960
8961         * conform/data/ftw.h-data: Add allow-header sys/stat.h.
8962
8963         * sysdeps/unix/sysv/linux/getdents.c (__getdents): Avoid initial
8964         lseek call be passing in a buffer which never allow a successful
8965         first getdents syscall if not at leas the initial entry can be
8966         stored in the user buffer.
8967
8968         * localedata/Makefile: Add rules to clean up directories created by
8969         new strfmon tests.
8970
8971 2000-04-09  Geoff Clare  <gwc@unisoft.com>
8972
8973         * localedata/tst-fmon.data: Added new tests for strfmon()
8974         using test locales with all combinations of cs_precedes,
8975         sign_posn and sep_by_space.
8976         * localedata/tst-fmon.sh: Updated to support the new tests.
8977         * localedata/tst-fmon-locales/tstfmon_n01y12: New file containing
8978         the localedef source for the new strfmon() test locale.
8979         * localedata/tst-fmon-locales/tstfmon_n02n40: Likewise.
8980         * localedata/tst-fmon-locales/tstfmon_n10y31: Likewise.
8981         * localedata/tst-fmon-locales/tstfmon_n11y41: Likewise.
8982         * localedata/tst-fmon-locales/tstfmon_n12y11: Likewise.
8983         * localedata/tst-fmon-locales/tstfmon_n20n32: Likewise.
8984         * localedata/tst-fmon-locales/tstfmon_n30y20: Likewise.
8985         * localedata/tst-fmon-locales/tstfmon_n41n00: Likewise.
8986         * localedata/tst-fmon-locales/tstfmon_y01y10: Likewise.
8987         * localedata/tst-fmon-locales/tstfmon_y02n22: Likewise.
8988         * localedata/tst-fmon-locales/tstfmon_y22n42: Likewise.
8989         * localedata/tst-fmon-locales/tstfmon_y30y21: Likewise.
8990         * localedata/tst-fmon-locales/tstfmon_y32n31: Likewise.
8991         * localedata/tst-fmon-locales/tstfmon_y40y00: Likewise.
8992         * localedata/tst-fmon-locales/tstfmon_y42n21: Likewise.
8993
8994         * stdlib/strfmon.c: Correct problems with missing or extra
8995         spaces for unusual combinations of sign_posn and sep_by_space.
8996         Improved left-precision alignment code.
8997
8998 2000-04-07  Andreas Jaeger  <aj@suse.de>
8999
9000         * posix/Makefile (CFLAGS-regex.c): Remove DEBUG.
9001
9002 2000-04-10  Andreas Jaeger  <aj@suse.de>
9003
9004         * intl/Makefile: Don't run do-gettext-test when cross-compiling.
9005
9006 2000-04-09  Ulrich Drepper  <drepper@redhat.com>
9007
9008         Implement handling of restartable conversion functions according to
9009         ISO C.
9010         * iconv/gconv.h (__gconv_fct): Add additional parameter.
9011         * iconv/gconv_int.h (__BUILTIN_TRANS): Likewise.
9012         * iconv/gconv.c: Pass additional parameter to conversion function.
9013         * iconv/gconv_simple.c (internal_ucs4_loop_single): New function.
9014         (internal_ucs4le_loop_single): New function.
9015         (__gconv_transform_ascii_internal): Define ONE_DIRECTION.
9016         (__gconv_transform_internal_ascii): Likewise.
9017         (__gconv_transform_internal_utf8): Likewise.
9018         (__gconv_transform_utf8_internal): Likewise.
9019         (__gconv_transform_ucs2_internal): Likewise.
9020         (__gconv_transform_internal_ucs2): Likewise.
9021         (__gconv_transform_ucs2reverse_internal): Likewise.
9022         (__gconv_transform_internal_ucs2reverse): Likewise.
9023         (internal_ucs4le_loop_unaligned): Before return
9024         __GCONV_INCOMPLETE_INPUT check that the remaining bytes really form
9025         a valid character.  Otherwise return __GCONV_ILLEGAL_INPUT.
9026         (__gconv_transform_utf8_internal): Define STORE_REST and UNPACK_BYTES.
9027         * iconv/loop.c: Fit in definition of function to convert one character
9028         for processing of left-over bytes from the state object.
9029         * iconv/skeleton.c (gconv): Rename inbuf to inptrp and inbufend to
9030         inend to match names in loop functions.
9031         (RESET_INPUT_BUFFER): Change apprpriately.
9032         (gconv): If needed, call function to process bytes from the state
9033         object.  Similar at the end: store left over bytes if input is
9034         incomplete.
9035         Take extra argument and add new argument to all calls of the
9036         conversion function.
9037         * iconvdata/iso-2022-cn.c: Adjust numeric values used to store
9038         information in the state object to not conflict with length count.
9039         * iconvdata/iso-2022-jp.c: Likewise.
9040         * iconvdata/iso-2022-kr.c: Likewise.
9041         * iconvdata/unicode.c: Adjust for change change in parameters of
9042         skeleton function.
9043         * iconvdata/utf-16.c: Likewise.
9044         * libio/iofwide.c: Add new parameter to all calls of conversion
9045         function.
9046         * wcsmbs/btowc.c: Likewise.
9047         * wcsmbs/mbrtowc.c: Likewise.
9048         * wcsmbs/mbsnrtowcs.c: Likewise.
9049         * wcsmbs/mbsrtowcs.c: Likewise.
9050         * wcsmbs/wcrtomb.c: Likewise.
9051         * wcsmbs/wcsnrtombs.c: Likewise.
9052         * wcsmbs/wcsrtombs.c: Likewise.
9053         * wcsmbs/wctob.c: Likewise.
9054
9055         * iconvdata/gbgbk.c: Always define MAX_NEEDED_OUTPUT and
9056         MAX_NEEDED_INPUT.
9057
9058 2000-04-07  Andreas Jaeger  <aj@suse.de>
9059
9060         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Updated for
9061         newer kernels.
9062
9063 2000-04-07  Ulrich Drepper  <drepper@redhat.com>
9064
9065         * wcsmbs/wchar.h (__mbstate_t): Rename elements.  Make __value
9066         element a union to allow byte access.
9067         * iconvdata/iso-2022-cn.c: Adjust for change of element name in
9068         mbstate_t.
9069         * iconvdata/iso-2022-jp.c: Likewise.
9070         * iconvdata/iso-2022-kr.c: Likewise.
9071         * wcsmbs/mbsinit.c: Likewise.
9072         * stdlib/mblen.c: Likewise.
9073         * stdio-common/printf-parse.h: Likewise.
9074
9075 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9076
9077         * sysdeps/unix/sysv/linux/getdents.c (__getdents): The Linux
9078         kernel does not allow relative seeks on descriptors associated
9079         with directories.  Go back to get the position in the directory
9080         every time we enter the function.  Return -1 and set errno if one
9081         entry could be read from the kernel but does not fit into the
9082         buffer passed in by the user.
9083
9084         * locale/programs/charmap.c (charmap_new_char): Add parameter step.
9085         Support ..(2).. ellipsis.
9086         (parse_charmap): Recognize ..(2).. etc and pass step down.
9087         Correctly generate names for UCS4 characters.
9088
9089         * locale/programs/ld-ctype.c (struct translit_ignore_t): Add step.
9090         (ctype_finish): We know the wide character value for <SP>,
9091         don't search.
9092         (charclass_symbolic_ellipsis): Handle ..(2).. ellipsis.
9093         (charclass_ucs4_ellipsis): Likewise.
9094         (read_translit_ignore_entry): Store ellipsis step.
9095         (ctype_read): Recognize ..(2).. etc and pass step down.
9096
9097         * locale/programs/linereader.c (lr_token): When seeing comment
9098         character ignore only rest of line in sources but stop at escaped
9099         newline.
9100         Recognize ..(2).. and ....(2).....
9101
9102         * locale/programs/locfile-token.h (enum token_t): Add tok_ellipsis2_2
9103         and tok_ellipsis4_2.
9104
9105 2000-04-06  Andreas Jaeger  <aj@suse.de>
9106
9107         * sysdeps/unix/sysv/linux/alpha/Dist: init-first.h has been
9108         removed, remove it here also.
9109         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
9110         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
9111         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
9112         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
9113
9114 2000-04-06  Jakub Jelinek  <jakub@redhat.com>
9115
9116         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Don't
9117         include bits/sigcontext.h.
9118         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9119
9120 2000-04-06  Ulrich Drepper  <drepper@redhat.com>
9121
9122         * locale/programs/ld-collate.c (collate_read): Handle ellipsis in
9123         collation symbol definition.  Value in quivalence definition must
9124         be defined, don't check that it is not.
9125
9126         * locale/programs/charmap.c (parse_charmap): Recognize <Uxxxx>
9127         values as character names.
9128
9129         * locale/programs/ld-ctype.c (get_character): Handle missing
9130         repertoire map correctly.
9131
9132 2000-04-05  Cristian Gafton  <gafton@redhat.com>
9133
9134         * ctype/ctype.h (__isctype_l): Define even if not __OPTIMIZE__
9135         because it is used in generic code.
9136         * wctype/wctrans.c: Define __ctype32_toupper and __ctype32_tolower.
9137         * wcsmbs/wcwidth.h: Declare __ctype32_b.
9138         * intl/gettext.c: Include <locale.h>.
9139         * intl/ngettext.c: Likewise.
9140
9141 2000-04-05  Jakub Jelinek  <jakub@redhat.com>
9142
9143         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6, inet_ntop): Use
9144         socklen_t type for size.
9145         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Rewrite for new
9146         init function interface.
9147         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
9148         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h: Don't include
9149         sys/ucontext.h.
9150         (__jmp_buf): Declare the whole type structure here, don't use
9151         ucontext.
9152
9153 2000-04-05  Ulrich Drepper  <drepper@redhat.com>
9154
9155         * iconv/skeleton.c (put16u): Fix typo.
9156         Reported by Bruno Haible <haible@ilog.fr>.
9157
9158         * sysdeps/unix/sysv/linux/alpha/init-first.h: Not needed anymore.
9159         * sysdeps/unix/sysv/linux/arm/init-first.h: Likewise.
9160         * sysdeps/unix/sysv/linux/mips/init-first.h: Likewise.
9161         * sysdeps/unix/sysv/linux/powerpc/init-first.h: Likewise.
9162         * sysdeps/unix/sysv/linux/sparc/sparc32/init-first.h: Likewise.
9163         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
9164
9165         * sysdeps/unix/sysv/linux/Dist: Remove getresuid and getresgid.
9166         * Makefile (distribute): Add abi-versions.awk and
9167         firstversions.awk.
9168         Patches by Torsten Duwe <duwe@caldera.de>.
9169
9170 2000-04-05  Andreas Schwab  <schwab@suse.de>
9171
9172         * nss/Makefile ($(objpfx)makedb): Move $(libdl) after db-open.o.
9173
9174 2000-04-05  Andreas Schwab  <schwab@suse.de>
9175
9176         * sysdeps/m68k/dl-machine.h (RTLD_START): Readd _dl_start_user
9177         entry point, used on Hurd.
9178
9179 2000-04-04  Andreas Jaeger  <aj@suse.de>
9180
9181         * intl/Makefile: Only run the gettext test with shared libraries.
9182
9183 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
9184
9185         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
9186         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
9187
9188 2000-04-05  Roland McGrath  <roland@baalperazim.frob.com>
9189
9190         * Makeconfig: Undo last change.
9191         * configure.in: If --disable-shared was given, don't set VERSIONING,
9192         don't define DO_VERSIONING, and don't give scare warning for no
9193         versioning.
9194         * configure: Regenerated.
9195
9196 2000-04-04  Roland McGrath  <roland@baalperazim.frob.com>
9197
9198         * Makeconfig [$(build-shared) != yes] (versioning): Set to `no'.
9199
9200 2000-04-04  Andreas Jaeger  <aj@suse.de>
9201
9202         * sysdeps/generic/fgetexcptflg.c: Use shlib-compat macros.
9203
9204 2000-04-04  Ulrich Drepper  <drepper@redhat.com>
9205
9206         * elf/dl-runtime.c (fixup): Correct handling of symbols marked
9207         STV_HIDDEN and STV_INTERNAL during lookup.
9208         (profile_fixup): Likewise.
9209         * elf/dl-reloc.c (RESOLVE): Likewise.
9210
9211         * iconv/skeleton.c (FUNCTION_NAME): Reorder initialization of
9212         unaligned so that it compiles for system which need unaligned
9213         access handling.
9214
9215 2000-04-04  Andreas Schwab  <schwab@suse.de>
9216
9217         * elf/cache.c (print_entry): Only look at the type field when
9218         printing the type.
9219
9220 2000-04-04  Andreas Schwab  <schwab@suse.de>
9221
9222         * iconvdata/big5.c (BODY): Fix typo.
9223
9224 2000-04-04  Andreas Schwab  <schwab@suse.de>
9225
9226         * sysdeps/m68k/dl-machine.h (RTLD_START): Rewrite for new init
9227         function interface.  Remove unused _dl_start_user entry point.
9228
9229 2000-04-03  Andreas Jaeger  <aj@suse.de>
9230
9231         * include/arpa/inet.h (__inet_aton): Add protoype.
9232
9233 2000-04-01  Andreas Jaeger  <aj@suse.de>
9234
9235         * sysdeps/mach/hurd/mips/init-first.c: Use SHARED instead of PIC.
9236
9237         * sysdeps/unix/mips/sysdep.h: Use __PIC__ instead of PIC.
9238         * sysdeps/mach/mips/thread_state.h: Likewise.
9239
9240         * sysdeps/generic/fclrexcpt.c: Use shlib-compat macros.
9241         * sysdeps/generic/fegetenv.c: Likewise.
9242         * sysdeps/generic/fesetenv.c: Likewise.
9243         * sysdeps/generic/feupdateenv.c: Likewise.
9244         * sysdeps/generic/fraiseexcpt.c: Likewise.
9245         * sysdeps/generic/fsetexcptflg.c: Likewise.
9246         * sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
9247         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9248         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
9249         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9250
9251 2000-04-02  H.J. Lu  <hjl@gnu.org>
9252
9253         * elf/ldconfig.h (FLAG_IA64_LIB64): New. Defined.
9254
9255 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9256
9257         * elf/dl-load.c (_dl_dst_substitute): Pretty print comment.
9258         (add_name_to_object): Add cast in malloc call.
9259         (fillin_rpath): Optimize loop to initialize ->status a bit.
9260
9261         * sysdeps/i386/dl-machine.h: Undo last change.
9262         * sysdeps/mach/hurd/i386/dl-machine.h (RTLD_START_SPECIAL_INIT):
9263         Restore %edx register after call here.
9264
9265         * sysdeps/arm/atomicity.h: New file.
9266         Contributed by Jesper Skov <jskov@redhat.com>.
9267
9268 2000-04-03  Roland McGrath  <roland@baalperazim.frob.com>
9269
9270         * Makeconfig (preprocess-versions): Undo last change.
9271         Instead, pass -I$(common-objdir) -I$(..)include instead of $(CPPFLAGS).
9272
9273         * sysdeps/mach/hurd/i386/init-first.c (init): Don't set __environ
9274         here, before we might move the stack.
9275         (posixland_init): Set __libc_argc, __libc_argc, and __environ here.
9276         (init1): And not here.
9277
9278         * sysdeps/i386/dl-machine.h (RTLD_START): Fix code broken by last
9279         change, to restore argc value in call-clobbered register after
9280         RTLD_START_SPECIAL_INIT, which will contain a call.
9281
9282         * elf/dl-deps.c (_dl_map_object_deps): Fix size calculations for
9283         allocating and initializing L->l_initfini.
9284
9285         * resolv/Makefile (headers): Add bits/netdb.h, so it gets installed.
9286
9287 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9288
9289         * elf/dl-load.c (_dl_init_paths): Use (void*) -1 to signal non-existing
9290         RUNPATH, RPATH, and LD_LIBRARY_PATH.
9291         (open_path): Change type of fourth parameter.  Make pointer to array
9292         of pointers.  Create variable dirs with original type.
9293         Track whether any directory for the object exists and if not,
9294         change *DIRSP to (void*) -1 to signal there is no such search path.
9295         (_dl_map_object): Change all calls of open_path.
9296         Rewrite decompose_rpath calls.
9297
9298 2000-03-31  Andreas Schwab  <schwab@suse.de>
9299
9300         * string/strfry.c: Declare STATE as array of char instead of int
9301         and do not initialize it (done by initstate_r).  Pass correct
9302         size.
9303
9304 2000-04-03  Ulrich Drepper  <drepper@redhat.com>
9305
9306         * sysdeps/generic/ldsodefs.h: Fix typo in comment.
9307
9308         * sysdeps/i386/dl-machine.h (RTLD_START): Squeeze one more
9309         instruction out of the code.
9310
9311 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9312
9313         * elf/dl-fini.c (_dl_fini): Increment j counter after swapping in
9314         element at this position.
9315
9316         * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_load_lock.
9317         * elf/link.h (struct link_map): Add l_reldepsmax, l_reldepsact, and
9318         l_reldeps elements.
9319         * elf/dl-lookup.c (add_dependency): New function.
9320         (_dl_lookup_symbol): Use it whenever symbol was found in a global,
9321         dynamically loaded object.
9322         (_dl_lookup_symbol_skip): Likewise.
9323         (_dl_lookup_versioned_symbol): Likewise.
9324         (_dl_lookup_versioned_symbol_skip): Likewise.
9325         * elf/dl-open.c: Don't define _dl_load_lock here...
9326         * elf/rtld.c: ...but here...
9327         * elf/dl-support.c: ...and here.
9328         * elf/dl-close.c (_dl_close): Close also dependent objects introduce
9329         through relocation.
9330         * elf/dl-fini.c (_dl_fini): Also take dependencies introduced through
9331         relocations.
9332         * dlfcn/Makefile (glrefmain.out): Test is not expected to fail
9333         anymore.
9334         * dlfcn/glrefmain.c: Add one more debug message.
9335
9336         * Makeconfig (preprocess-versions): Don't add $(CPPFLAGS) to compiler
9337         command line.
9338         * Makerules (sysd-versions): Use ( ) instead of { }.
9339
9340         * elf/dl-load.c: Use __builtin_expect to signal that compiler should
9341         optimize for the non-debugging case.
9342         * elf/dl-lookup.c: Likewise.
9343         * sysdeps/generic/libc-start.c: Likewise.
9344
9345 2000-04-02  Roland McGrath  <roland@baalperazim.frob.com>
9346
9347         * sysdeps/mach/hurd/i386/init-first.c: Replace PIC #ifdefs with SHARED.
9348         (init1): Don't initialize __environ here, since init already does it.
9349         (first_init): New function, broken out of _init.
9350         (_hurd_stack_setup): Use it.
9351         [SHARED] (_dl_init_first): New function, renamed from old _init.
9352         (init1) [SHARED]: Don't call posixland_init here.
9353         (posixland_init): Take ENVP arg, so signature is usual for initializer.
9354         [SHARED] (_init): Define as alias for posixland_init.
9355         [! SHARED] (__libc_first_init): Define as alias for posixland_init.
9356         * sysdeps/i386/dl-machine.h (RTLD_START): Insert the macro
9357         RTLD_START_SPECIAL_INIT before calling initializers.
9358         (RTLD_START_SPECIAL_INIT): Define to empty if undefined.
9359         * sysdeps/mach/hurd/i386/dl-machine.h: New file.
9360         * sysdeps/mach/hurd/dl-sysdep.c (_dl_init_first): New weak function.
9361         * elf/Versions ({libc,ld.so}: GLIBC_2.2): Add _dl_init_first.
9362
9363         * stdio-common/tmpfile.c [! USE_IN_LIBIO]: No alias needed,
9364         since we define the function with the name `tmpfile'.
9365
9366         * mach/Versions: Define SHARED instead of PIC to affect shlib-compat.h.
9367         * hurd/Versions: Likewise.
9368
9369 2000-04-02  Ulrich Drepper  <drepper@redhat.com>
9370
9371         * elf/dl-runtime.c (fixup): Fix typo in comment.
9372
9373         * resolv/netdb.h (getnameinfo): All length parameters are of type
9374         socklen_t.
9375         * inet/getnameinfo.c: Likewise.
9376
9377 2000-04-01  Ulrich Drepper  <drepper@redhat.com>
9378
9379         * posix/unistd.h (socklen_t): Define if it has not yet happened.
9380         (gethostname): Change type of second parameter to socklen_t.
9381         * include/unistd.h (__gethostname): Change type of second
9382         parameter to socklen_t.
9383         * sysdeps/generic/gethostname.c (__gethostname): Likewise.
9384         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
9385         * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise.
9386         * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname):
9387         Likewise.
9388         * sysdeps/unix/sysv/linux/gethostname.c: Removed.
9389         * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t.
9390         Allow definition elsewhere.
9391         * sysdeps/unix/sysv/aix/bits/socket.h: Likewise.
9392         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9393         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise.
9394         * sysdeps/generic/bits/types.h: Define __socklen_t.
9395         * sysdeps/unix/sysv/aix/bits/types.h: Likewise.
9396         * sysdeps/unix/sysv/hpux/bits/types.h: Likewise.
9397         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
9398         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
9399         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
9400         * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
9401         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
9402
9403         * inet/arpa/inet.h (inet_addr): Change return type to in_addr_t.
9404         (inet_lnaof): Likewise.
9405         (inet_netof): Likewise.
9406         (inet_network): Likewise.
9407         (inet_aton): Likewise.
9408         (inet_makeaddr): Change parameter types to in_addr_t.
9409         (inet_neta): Likewise.
9410         (inet_ntop): Change type of last parameter to socklen_t.
9411         (inet_aton): Only make available if __USE_MISC.
9412         (inet_neta): Likewise.
9413         (inet_net_ntop): Likewise.
9414         (inet_net_pton): Likewise.
9415         (inet_nsap_ntoa): Likewise.
9416
9417         * inet/in.h: Define in_port_t type.
9418         Define in_addr_t type.
9419         (struct in_addr): Use in_addr_t in definition.
9420         (IN_CLASSA): Use cast to in_addr_t.
9421         (IN_CLASSB): Likewise.
9422         (IN_CLASSC): Likewise.
9423         (IN_CLASSD): Likewise.
9424         (IN_EXPERIMENTAL): Likewise.
9425         (IN_BADCLASS): Likewise.
9426         (INADDR_ANY): Likewise.
9427         (INADDR_BROADCAST): Likewise.
9428         (INADDR_NONE): Likewise.
9429         (INADDR_LOOPBACK): Likewise.
9430         (INADDR_UNSPEC_GROUP): Likewise.
9431         (INADDR_ALLHOSTS_GROUP): Likewise.
9432         (INADDR_ALLRTRS_GROUP): Likewise.
9433         (INADDR_MAX_LOCAL_GROUP): Likewise.
9434         (struct sockaddr_in): Use in_port_t for sin_port element.
9435         (struct sockaddr_in6): Use in_port_t for sin6_port element.
9436         Use uint8_t instead of u_int8_t.
9437
9438         * resolv/inet_addr.c (inet_addr): Change return type to in_addr_t.
9439         Call __inet_aton instead of inet_aton.
9440         (__inet_aton): Renamed from inet_aton.  Add weak alias under old name.
9441
9442         * resolv/netdb.h (gethostbyname2): Define only is __USE_MISC.
9443         (innetgr): Likewise.
9444         (struct addrinfo): Use socklen_t for ai_addrlen element.
9445
9446         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MTU_DISCOVER, IPV6_MTU,
9447         IPV6_RECVERR): New defines.
9448
9449         * include/netdb.h: Change type of first parameter of __getnetbyaddr_r.
9450         * inet/getnetbyad.c: Likewise.
9451         * inet/getnetbyad_r.c: Likewise.
9452         * nis/nss_nis/nis-network.c: Likewise.
9453         * nis/nssplus_nis/nisplus-network.c: Likewise.
9454         * nss/nss_files/files-network.c: Likewise.
9455         * resolv/netdb.h: Define uint32_t if not already happened.
9456         Include bits/netdb.h.  Remove definition of struct netent.
9457         Change type of first parameter of getnetbyaddr_r and getnetbyaddr.
9458         * sysdeps/generic/stdint.h: Allow definition of uint32_t elsewhere.
9459         * sysdeps/generic/bits/netdb.h: New file.
9460         * sysdeps/unix/sysv/linux/alpha/bits/netdb.h: New file.
9461
9462         * dlfcn/Makefile (distribute): Add glreflib1.c and glreflib2.c.
9463         (tests): Add glrefmain.
9464         Add rules to build modules and run tests.  Ignore result of glrefmain
9465         for now since it fails.
9466         * dlfcn/glrefmain.c: New file.
9467         * dlfcn/glreflib1.c: New file.
9468         * dlfcn/glreflib2.c: New file.
9469
9470         * test-skeleton.c: Include <string.h> for strsignal prototype.
9471
9472         * locale/programs/ld-collate.c (check_duplicate): Allow repertoire
9473         to be missing.
9474
9475         * sysdeps/unix/sysv/linux/init-first.c (init): Add code from
9476         former init-first.h.  Initialize __libc_multiple_libcs.
9477
9478 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9479
9480         * iconv/skeleton.c: Define access macros with u suffix.  Adjust
9481         #if expression for use of unaligned function to the one used in
9482         the definition of these functions.
9483         * iconv/loop.c: Undefined `unaligned' before recursive inclusion.
9484         * iconv/gconv_simple.c (internal_ucs4_loop_unaligned): New function.
9485         (internal_ucs4le_loop_unaligned): New function.
9486
9487         * elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
9488         (tests): Add order.
9489         (module-names): Add dep1, dep2, dep3, and dep4.
9490         Add dependencies for dep* modules and order.
9491         Define rule for order.out which checks the result.
9492         * elf/dep1.c: New file.
9493         * elf/dep2.c: New file.
9494         * elf/dep3.c: New file.
9495         * elf/dep4.c: New file.
9496         * elf/order.c: New file.
9497
9498         * elf/dl-init.c: Fix typo in comment.
9499
9500 2000-03-31  Andreas Jaeger  <aj@suse.de>
9501
9502         * sysdeps/mips/dl-machine.h (RTLD_START): Rewritten to match new
9503         init function interface.
9504         * sysdeps/mips/mips64/dl-machine.h (RTLD_START): Likewise.
9505
9506 2000-03-31  Andreas Jaeger  <aj@suse.de>
9507
9508         * sysdeps/mips/fpu/fgetexcptflg.c: Fix last patch to use #if.
9509         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9510         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9511         * sysdeps/mips/fpu/fclrexcpt.c: Likewise.
9512         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9513
9514         * sysdeps/generic/ldsodefs.h: DT_INIT_ARRAY is not relocated
9515         anymore, update comment.
9516
9517         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9518
9519         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Remove
9520         SHLIB_COMPAT - the struct is always needed.
9521
9522 2000-03-31  Ulrich Drepper  <drepper@redhat.com>
9523
9524         * sysdeps/i386/dl-machine.h (RTLD_START): Optimize for i686.
9525         * elf/dl-support.c: Define _dl_starting_up.
9526
9527 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9528
9529         * elf/dl-init.c (_dl_init): Clear _dl_starting_up at end of function.
9530         * sysdeps/i386/dl-machine.h: Remove code to clear _dl_starting_up.
9531
9532         * misc/sys/cdefs.h: Don't allow gcc in traditional mode to be used.
9533
9534         * elf/Makefile (dl-routines): Remove preinit.
9535         * elf/Versions: Remove _dl_preinit.
9536         * elf/dl-preinit.c: Removed.  Move content into...
9537         * elf/dl-init.c: ...here.
9538         * sysdeps/i386/dl-machine.h (RTLD_START): Remove call to _dl_preinit.
9539
9540         * sysdeps/generic/bits/shm.h (struct shmid_ds): Correct names of
9541         elements.
9542
9543 2000-03-29  Geoff Clare  <gwc@unisoft.com>
9544
9545         * stdlib/strfmon.c: Corrected problems with the code that
9546         sets default values for [np]_sep_by_space and
9547         [np]_sign_posn; also the new positive/negative alignment
9548         code from the previous patch was not quite right for
9549         [np]_sign_posn = 0.
9550
9551         * localedata/tst-fmon.data: Changes corresponding to the
9552         two sets of fixes made to stdlib/strfmon.c.
9553
9554 2000-03-29  Jes Sorensen  <jes@pcatls01.cern.ch>
9555
9556         * malloc/malloc.c: Declare bit flags UL so that they will not
9557         default to int size when being inverted.
9558
9559 2000-03-29  Andreas Jaeger  <aj@suse.de>
9560
9561         * sysdeps/unix/sysv/linux/arm/errlist.c: Use shlib-compat macros.
9562         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9563
9564 2000-03-29  Andreas Jaeger  <aj@suse.de>,
9565             Ralf Baechle <ralf@uni-koblenz.de>
9566
9567         * Makeconfig: Introduce new variable SHARED to mark code used in
9568         the shared library.
9569         * elf/dl-close.c: Use it instead of PIC.
9570         * elf/dl-load.c: Likewise.
9571         * elf/dl-open.c: Likewise.
9572         * hurd/geteuids.c: Likewise.
9573         * include/libc-symbols.h: Likewise.
9574         * include/shlib-compat.h: Likewise.
9575         * libio/freopen.c: Likewise.
9576         * linuxthreads/cancel.c: Likewise.
9577         * linuxthreads/pthread.c: Likewise.
9578         * linuxthreads/wrapsyscall.c: Likewise.
9579         * nss/nsswitch.c: Likewise.
9580         * stdio-common/vfprintf.c: Likewise.
9581         * sysdeps/arm/init-first.c: Likewise.
9582         * sysdeps/i386/init-first.c: Likewise
9583         * sysdeps/generic/init-first.c: Likewise.
9584         * sysdeps/generic/libc-start.c: Likewise.
9585         * sysdeps/mips/init-first.c: Likewise.
9586         * sysdeps/powerpc/elf/libc-start.c: Likewise.
9587         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
9588         * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
9589         * sysdeps/unix/sysv/linux/arm/errlist.c: Likewise.
9590         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
9591
9592         * sysdeps/mips/machine-gmon.h (asm): Use __PIC__ as check.
9593
9594 2000-03-29  Andreas Jaeger  <aj@suse.de>
9595
9596         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_runtime_setup):
9597         Use D_PTR to access relocated entries in l_info.
9598         (elf_machine_rela): Likewise.
9599
9600         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
9601         Likewise.
9602         (elf_machine_rela): Likewise.
9603
9604         * sysdeps/powerpc/dl-machine.c (__elf_machine_runtime_setup):
9605         Likewise.
9606         (__elf_machine_fixup_plt): Likewise.
9607         (__process_machine_rela): Likewise.
9608
9609         * sysdeps/m68k/dl-machine.h (elf_machine_runtime_setup): Likewise.
9610         (elf_machine_rela): Likewise.
9611
9612         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Likewise.
9613         (elf_machine_rel): Likewise.
9614
9615         * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Likewise.
9616         (elf_machine_fixup_plt): Likewise.
9617         (elf_machine_rela): Likewise.
9618
9619 2000-03-29  Andreas Jaeger  <aj@suse.de>
9620
9621         * sysdeps/unix/sysv/linux/msgctl.c: Use shlib-compat macros.
9622         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9623         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9624         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise.
9625         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
9626         * sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
9627         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
9628         * sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
9629         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
9630         * sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
9631         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise.
9632         * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise.
9633         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise.
9634         * sysdeps/unix/sysv/linux/alpha/adjtime.c: Likewise.
9635         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
9636
9637         * sysdeps/unix/sysv/linux/alpha/oldglob.c: Use shlib-compat
9638         macros, remove K&R prototypes.
9639
9640 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9641
9642         * posix/getopt.c (_getopt_internal): Return -1 if argc < 1.
9643         Reported by Andrew Wiseman <a.wiseman@bandc.dircon.co.uk>
9644         (PR libc/1677).
9645
9646 2000-03-30  Andreas Jaeger  <aj@suse.de>
9647
9648         * misc/sys/cdefs.h: Remove K&R support.
9649
9650 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9651
9652         * iconv/skeleton.c: Avoid compiling unaligned versions in some
9653         more cases.
9654         * iconv/loop.c: Likewise.
9655
9656 2000-03-29  Bruno Haible  <haible@clisp.cons.org>
9657
9658         * iconv/loop.c (put16): Remove __const. Fix access index.
9659         (put32): Remove __const. Use uint32_t instead of uint16_t.
9660         * iconv/skeleton.c: Likewise.
9661
9662 2000-03-30  Roland McGrath  <roland@baalperazim.frob.com>
9663
9664         * mach/Versions (libc: GLIBC_2.0)
9665         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Conditionalize
9666         __vm_allocate on this.
9667         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)]: Conditionalize
9668         mutex- and spinlock-related symbols on this.
9669         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9670         New version set.  Lock-related symbols go here instead in this case.
9671         * sysdeps/mach/hurd/Versions (libc: GLIBC_2.0): Remove
9672         _cthread_exit_routine, _cthread_init_routine, cthread_keycreate,
9673         cthread_getspecific, cthread_setspecific, __libc_getspecific.
9674         * hurd/Versions
9675         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: GLIBC_2.0):
9676         Put them here instead.
9677         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)] (libc: HURD_CTHREADS_0.3):
9678         New version set.  Those cthreads symbols go here instead in this case.
9679         * Versions.def (libc) [USE_IN_LIBIO]: Add HURD_CTHREADS_0.3 version.
9680
9681 2000-03-30  Ulrich Drepper  <drepper@redhat.com>
9682
9683         * elf/dl-init.c (_dl_init): We don't need to call constructors
9684         recursively.  Fold _dl_init_rec in _dl_init and optimize a bit more.
9685
9686         Implement dynamic determination of constructor/destructor order in
9687         the dynamic linker.
9688         * elf/Versions [ld.so] (GLIBC_2.0): Remove _dl_init_next.
9689         (GLIBC_2.2): Add _dl_init.
9690         * elf/dl-close.c: Also call all destructors in FINI_ARRAY.
9691         r_duplist is not anymore allocated separately.  l_initfini is and
9692         therefore free it if necessary.
9693         * elf/dl-deps.c: If a searchlist has to be allocated, put all in one
9694         malloc block.  Otherwise allocate l_initfini list only.
9695         Put dependencies for the object in l_initfini list.
9696         Sort dependencies for the object to be loaded topologically.
9697         * elf/dl-fini.c: Before running the destructors sort the topologically.
9698         * elf/dl-init.c (_dl_init): Renamed from _dl_init_next.  Rewrite to
9699         call constructors instead of iterating over the pointers.  Get list of
9700         objects for which to run constructors from l_initfini element. Accept
9701         argc, argv, and env as parameters and pass them to the constructors.
9702         * elf/ld-load.c (_dl_map_object_from_fd): Initialize l_ldnum member
9703         with size of dynamic section.
9704         * elf/dl-open.c (dl_open_worker): Only call _dl_init instead of
9705         _dl_init_next and calling constructors ourself.
9706         * elf/dl-preinit.c (_dl_preinit): Renamed from _dl_preinit_next.
9707         Take argc, argv, and env as parameters and pass them to the
9708         constructors.  Rewrite to call all constructors and not iterate over
9709         the pointers.
9710         * elf/dynamic-link.h: Don't relocate DT_FINI_ARRAY entry.  Don't
9711         precompute l_initcount and l_preinitcount.
9712         * elf/link.h (struct link_map): Add l_ldnum member.
9713         Make l_phdr_allocated part of the bitfield.  Remove l_runcount,
9714         l_initcount, and l_preinitcount.  Add l_initfini.
9715         * sysdeps/generic/ldsodefs.h: Replace _dl_init_next prototype with
9716         one for _dl_init.
9717         * sysdeps/i386/dl-machine (RTLD_START): Rewrite to match new init
9718         function interface.
9719         * sysdeps/unix/sysv/linux/init-first.h: Removed.
9720         * sysdeps/unix/sysv/linux/Dist: Delete file here as well.
9721         * sysdeps/unix/sysv/linux/init-first.c [PIC]: Don't use
9722         SYSDEP_CALL_INIT.  Make _init a strong alias of init.  The calling
9723         conventions now match.
9724
9725         * sysdeps/generic/libc-start.c: Calling __libc_init_first has no
9726         effect for shared objects.  Don't emit message and call only for
9727         static library.
9728
9729 2000-03-29  Ulrich Drepper  <drepper@redhat.com>
9730
9731         * iconvdata/testdata/CSA_Z243.4-1985-1..UCS-2BE: Renamed from
9732         CSA_Z243.4-1985-1..UCS2.
9733         * iconvdata/testdata/ISO-8859-10..UCS-2BE: Renamed from
9734         ISO-8859-10..UCS2.
9735
9736 2000-03-29  Andreas Jaeger  <aj@suse.de>
9737
9738         * include/unistd.h: Remove duplicate entry for __rmdir.
9739         Remove declaration of __mkdir since __mkdir is declared in
9740         sys/stat.h.
9741
9742         * manual/creature.texi (Feature Test Macros): Fix typo, reported
9743         by Michael Deutschmann <michael@talamasca.ocis.net>.
9744
9745         * sysdeps/mips/fpu/fclrexcpt.c: Use shlib-compat macros.
9746         * sysdeps/mips/fpu/fegetenv.c: Likewise.
9747         * sysdeps/mips/fpu/fesetenv.c: Likewise.
9748         * sysdeps/mips/fpu/feupdateenv.c: Likewise.
9749         * sysdeps/mips/fpu/fgetexcptflg.c: Likewise.
9750
9751 2000-03-28  Andreas Jaeger  <aj@suse.de>
9752
9753         * sysdeps/i386/fpu/bits/mathinline.h (__sincos): Remove redundant
9754         declaration, the prototype is defined via bits/mathcalls.h.
9755         (__sincosf): Likewise.
9756         (__sincosl): Likewise.
9757         (ldexp): Likewise.
9758         (ldexpf): Likewise.
9759         (ldexpl): Likewise.
9760         (__finite): Likewise.
9761         (__inline_mathcodeNP): New macro without prototype
9762         declarations.
9763         (__inline_mathcodeNP2): Likewise.
9764         (__inline_mathcodeNP3): Likewise.
9765         (__inline_mathcodeNP_): Likewise.
9766         (__inline_mathcodeNP2_): Likewise.
9767         (__inline_mathcodeNP3_): Likewise.
9768         (__inline_mathopNP): Likewise.
9769         (__inline_mathop_declNP): Likewise.
9770         (__inline_mathop_declNP_): Likewise.
9771         (__inline_mathcode_): Use __inline_mathcodeNP_.
9772         (__inline_mathcode2_): Use __inline_mathcodeNP2_.
9773         (__inline_mathcode3_): Use __inline_mathcodeNP3_.
9774         (__inline_mathop_decl_): Use __inline_mathop_declNP__.
9775         (__expm1l): Don't define prototype, the prototype is defined via
9776         bits/mathcalls.h.
9777         (exp): Likewise.
9778         (__expl): Likewise.
9779         (tan): Likewise.
9780         (atan2): Likewise.
9781         (__atan2l): Likewise.
9782         (fmod): Likewise.
9783         (pow): Likewise.
9784         (fabsf): Likewise.
9785         (fabsl): Likewise.
9786         (__fabsl): Likewise.
9787         (asin): Likewise.
9788         (acos): Likewise.
9789         (sinh): Likewise.
9790         (cosh): Likewise.
9791         (tanh): Likewise.
9792         (floor): Likewise.
9793         (ceil): Likewise.
9794         (expm1): Likewise.
9795         (log1p): Likewise.
9796         (asinh): Likewise.
9797         (acosh): Likewise.
9798         (atanh): Likewise.
9799         (hypot): Likewise.
9800         (logb): Likewise.
9801         (fma): Likewise.
9802         (drem): Likewise.
9803         (sqrt): Likewise.
9804         (__sqrtl): Likewise.
9805         (sin): Likewise.
9806         (cos): Likewise.
9807         (atan): Likewise.
9808         (log): Likewise.
9809         (log10): Likewise.
9810         (asinh): Likewise.
9811         (log2): Likewise.
9812         (rint): Likewise.
9813
9814 2000-03-28  Ulrich Drepper  <drepper@redhat.com>
9815
9816         * Makerules: If make variable md5 is defined to yes after
9817         generating dependencies generate MD5 sum for the object.
9818
9819         * iconv/gconv_builtin.h: Fix length in transformation definition
9820         for UNICODEBIG.
9821
9822         * iconvdata/TESTS: Use UCS-2BE instead of UCS2.
9823
9824         * iconv/loop.c: Define get16, get32, put16, and put32 macros to
9825         allow as well reading from/writing to unaligned addresses on machines
9826         which don't support this in hardware.  Use FCTNAME macro to define
9827         function name.  Include the file a second time for platforms which
9828         need special unaligned handling.
9829         * iconv/skeleton.c: Define get16u, get32u, put16u, and put32u macros
9830         to access potentially unaligned addresses.  These macros are intended
9831         to be used only outside the loops.
9832         (unaligned): New definition.  In case the machine can handle unaligned
9833         access define as zero.  Otherwise as a variable which is initialized
9834         as nonzero in case the buffer passed in at runtime is unaligned with
9835         respect to the character set encoding involved.
9836         Call aligned or unaligned looop functions according to unaligned
9837         variable.
9838         * iconvdata/8bit-gap.c: Use get16, get32, put16, and put32 instead
9839         of direct casting pointer to potentially handle unaligned memory
9840         accesses.
9841         * iconvdata/8bit-generic.c: Likewise.
9842         * iconvdata/ansi_x3.110.c: Likewise.
9843         * iconvdata/big5.c: Likewise.
9844         * iconvdata/euc-cn.c: Likewise.
9845         * iconvdata/euc-jp.c: Likewise.
9846         * iconvdata/euc-kr.c: Likewise.
9847         * iconvdata/euc-tw.c: Likewise.
9848         * iconvdata/gbk.c: Likewise.
9849         * iconvdata/iso-2022-cn.c: Likewise.
9850         * iconvdata/iso-2022-jp.c: Likewise.
9851         * iconvdata/iso-2022-kr.c: Likewise.
9852         * iconvdata/iso646.c: Likewise.
9853         * iconvdata/iso_6937-2.c: Likewise.
9854         * iconvdata/iso_6937.c: Likewise.
9855         * iconvdata/johab.c: Likewise.
9856         * iconvdata/sjis.c: Likewise.
9857         * iconvdata/t.61.c: Likewise.
9858         * iconvdata/uhc.c: Likewise.
9859         * iconvdata/unicode.c: Likewise.
9860         * iconvdata/utf-16.c: Likewise.
9861
9862         * locale/programs/simple-hash.c: Little optimizations.  Remove K&R
9863         prototypes.
9864
9865         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_check_all.
9866         * malloc/mcheck.c (mcheck_check_all): Renamed from check_all and made
9867         public.
9868         * malloc/mcheck.h (mcheck_check_all): Declare.
9869
9870         * stdio-common/Makefile (tests): Add tst-obprintf.
9871
9872 2000-03-28  Roland McGrath  <roland@baalperazim.frob.com>
9873
9874         * sysdeps/generic/bits/sigthread.h: Clean up conditionals.
9875         Declare pthread_sigmask.
9876
9877         * csu/version.c: Add 2000 to copyright years.
9878         Remove Emacs local variables section.
9879
9880 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
9881
9882         * iconv/gconv_int.h (__gconv_transform_ucs2little_internal,
9883         __gconv_transform_internal_ucs2little): Remove declarations.
9884         * iconv/gconv_simple.c (__gconv_transform_ucs2_internal,
9885         __gconv_transform_internal_ucs2): Never need to bswap_16.
9886         (__gconv_transform_ucs2reverse_internal,
9887         __gconv_transform_internal_ucs2reverse): Always need to bswap_16.
9888
9889 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9890
9891         * include/shlib-compat.h (SHLIB_COMPAT): Make the test handle the
9892         obsoleting version not being defined at all, in which case the
9893         result is always true.
9894
9895         * Makeconfig (preprocess-versions): New canned sequence for running
9896         cpp on shlib-versions and the like.
9897         (soversions.i): Use it.
9898         * Makerules (Versions.all, sysd-versions): Use it to preprocess the
9899         Versions.def and Versions files.
9900
9901 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9902
9903         * stdio-common/tst-obprintf.c (main): Add another check to see
9904         obstack_printf handling all possible beginnings of the block
9905         inside an obstack chunk.
9906
9907         * locale/programs/localedef.c: Use __malloc_initialize_hook to
9908         install mcheck handler.
9909
9910         * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory
9911         handling problem.
9912
9913 2000-03-27  Roland McGrath  <roland@baalperazim.frob.com>
9914
9915         * stdio-common/tmpfile.c: Use <shlib-compat.h> macros.
9916
9917         * include/shlib-compat.h: Conditionalize <abi-versions.h> include
9918         on [HAVE_ELF && DO_VERSIONING].
9919
9920 2000-03-27  Ulrich Drepper  <drepper@redhat.com>
9921
9922         * stdio-common/tst-obprintf.c: New file.
9923
9924 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9925
9926         * libio/genops.c (_IO_default_xsputn): Little optimization.  Call
9927         _IO_OVERFLOW directly instead through __overflow.
9928
9929         * locale/programs/localedef.c (construct_output_path): If path
9930         contains a / compute the end of the directory name correctly.
9931
9932         * include/features.h: Undef and document __USE_XOPEN2K.
9933
9934         * malloc/mcheck.c: Implement pedantic checking of all allocated blocks
9935         whenever a function is called.  Initiated by calling mcheck_pedantic
9936         instead of mcheck.
9937         * malloc/mcheck.h: Declare mcheck_pedantic.
9938         * malloc/Versions [libc] (GLIBC_2.2): Add mcheck_pedantic.
9939         * locale/programs/localdef.c: Use mcheck_pedantic instead of mcheck
9940         for now.
9941
9942 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9943
9944         * dlfcn/dlopen.c: Use <shlib-compat.h> macros.
9945         * dlfcn/dlopenold.c: Likewise.
9946         * nss/getXXbyYY_r.c: Likewise.
9947         * nss/getXXent_r.c: Likewise.
9948         * hurd/hurdinit.c: Likewise.
9949         * hurd/compat-20.c: Likewise.
9950         * libio/oldiofopen.c: Likewise.
9951         * libio/oldiofclose.c: Likewise.
9952         * libio/oldiofdopen.c: Likewise.
9953         * libio/oldfileops.c: Likewise.
9954         * libio/oldstdfiles.c: Likewise.
9955         * libio/oldiofsetpos.c: Likewise.
9956         * libio/oldiofgetpos.c: Likewise.
9957         * libio/oldiofgetpos64.c: Likewise.
9958         * libio/oldiofsetpos64.c: Likewise.
9959         * libio/oldiopopen.c: Likewise.
9960         * libio/oldpclose.c: Likewise.
9961         * libio/oldtmpfile.c: Likewise.
9962         * libio/freopen.c (freopen): Likewise.
9963         * libio/iofclose.c (_IO_new_fclose): Likewise.
9964
9965         * sysdeps/mach/sys/reboot.h: Include <features.h>.
9966         (reboot): Declare it.
9967
9968         * libio/Makefile (headers): Add bits/stdio-lock.h here.
9969
9970         * sysdeps/mach/hurd/bits/stdio-lock.h: New file.
9971
9972         * include/shlib-compat.h: Include <abi-versions.h> unconditionally.
9973
9974         * posix/unistd.h (intptr_t): Conditionalize on [__USE_MISC ||
9975         __USE_XOPEN_EXTENDED] rather than on [__USE_UNIX98].
9976         We need this for the sbrk decl, which can be included without Unix98.
9977
9978 2000-03-20  Richard Henderson  <rth@cygnus.com>
9979
9980         * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Last
9981         argument to yperr2nss is an int, not size_t.
9982         * posix/regex.c (print_partial_compiled_pattern): Cast all
9983         ptrdiff_t to long for printing.
9984         (print_compiled_pattern): Use Z for printing size_t.
9985         * posix/testfnm.c (tests): Avoid trigraphs.
9986         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
9987         Use a C comment, not an assembly comment.
9988
9989         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Clarify use
9990         of __ASSUME_32BITUIDS.
9991
9992 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
9993
9994         * libio/iofopncook.c: Remove K&R prototypes.
9995
9996 2000-03-26  Roland McGrath  <roland@baalperazim.frob.com>
9997
9998         * hurd/hurdrlimit.c (init_rlimit): Give the RLIMIT_NOFILE soft limit
9999         an initial value of 1024 instead of RLIM_INFINITY.
10000
10001         * Versions.def (libmachuser, libhurduser): Remove these sections,
10002         since these libraries do not presently use symbol versions.
10003
10004         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): If the resource limit
10005         is RLIM_INFINITY, return -1 instead.
10006
10007 2000-03-24  Andreas Jaeger  <aj@suse.de>
10008
10009         * Makefile (postclean): Added soversions.i.
10010
10011 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10012
10013         * sysdeps/arm/fpu/fpu_control.h: Define _FPU_MASK_IM, _FPU_MASK_ZM,
10014         _FPU_MASK_OM, _FPU_MASK_UM, _FPU_MASK_PM, _FPU_MASK_DM, _FPU_DEFAULT,
10015         and _FPU_IEEE.  Change _FPU_RESERVED.
10016
10017 2000-03-24  Scott Bambrough  <scottb@netwinder.org>
10018
10019         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: New file.
10020
10021 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10022
10023         * sysdeps/posix/getaddrinfo.c: Include <net/if.h> for if_nametoindex.
10024         (gaih_inet): Remove unused duplicate variable.
10025
10026         * inet/getnameinfo.c (getnameinfo): Use IFNAMSIZ, not MAXHOSTNAMELEN.
10027         Don't use __libc_sa_len, which only exists for Linux.  Just handle
10028         AF_INET and AF_INET6 directly as well as AF_LOCAL, since those are the
10029         only flavors supported by this function anyway.
10030
10031 2000-03-24  Geoff Clare  <gwc@unisoft.com>
10032
10033         * stdlib/strfmon.c: Corrected problems with missing signs and
10034         missing or extra spaces; allow for sign strings longer than
10035         one character; add padding to ensure positive and negative
10036         formats are aligned when a left precision is used.
10037
10038 2000-03-26  Ulrich Drepper  <drepper@redhat.com>
10039
10040         * stdlib/random_r.c (__setstate_r): Allow RNGs of type 4.
10041         Patch by John Mizel <John.Mizel@msdw.com>.
10042
10043 2000-03-25  Ulrich Drepper  <drepper@redhat.com>
10044
10045         * manual/install.texi: Remove references to crypt add-on.
10046
10047 2000-03-25  Roland McGrath  <roland@baalperazim.frob.com>
10048
10049         * sysdeps/mach/hurd/setrlimit.c (setrlimit): Go into a critical
10050         section while taking the _hurd_rlimit_lock.
10051         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
10052
10053 2000-03-24  Roland McGrath  <roland@baalperazim.frob.com>
10054
10055         * Makerules [$(cross-compiling) = yes] (symbolic-link-prog): Define
10056         using $(LN_S).
10057
10058         * sysdeps/mach/hurd/if_index.c: New file.
10059
10060         * sysdeps/unix/sysv/linux/net/if.h: Moved to ...
10061         * sysdeps/gnu/net/if.h: here.
10062         (_IOT_ifconf, _IOT_ifreq): Hurd ioctl type macros moved from ...
10063         * sysdeps/mach/hurd/net/if.h: ... here; this file now removed.
10064         * sysdeps/generic/net/if.h: New file.  Declares just the standard
10065         functions and `struct if_nameindex' type.
10066         * socket/Makefile (headers): Add net/if.h here.
10067         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Not here.
10068         * sysdeps/mach/hurd/Dist: Remove it here.
10069         * sysdeps/unix/sysv/linux/Dist: And here.
10070         * sysdeps/generic/if_index.c: Include <net/if.h>.
10071
10072 2000-03-24  Andreas Jaeger  <aj@suse.de>
10073
10074         * sysdeps/mips/dl-machine.h (__dl_runtime_resolve): Use D_PTR to
10075         access relocated entries in l_info.
10076         (elf_machine_got_rel): Likewise.
10077         (elf_machine_runtime_setup): Likewise.
10078         * sysdeps/mips/mips64/dl-machine.h (elf_machine_got_rel): Likewise.
10079         (elf_machine_runtime_setup): Likewise.
10080         (__dl_runtime_resolve): Likewise.
10081
10082 2000-03-23  Ulrich Drepper  <drepper@redhat.com>
10083
10084         * resolv/netdb.h (SCOPE_DELIMITER): New definitions.
10085         * inet/netinet/in.h (struct sockaddr_in6): Add sin6_scope_id
10086         according to RFC 2553.
10087         * sysdeps/posix/getaddrinfo.c: Change to follow latest RFC draft.
10088         * inet/getnameinfo.c: Likewise.
10089         Patches by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10090
10091 2000-03-23  Bruno Haible  <haible@clisp.cons.org>
10092
10093         * iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
10094         Remove no-op pointer increment.
10095
10096 2000-03-23  Andreas Jaeger  <aj@suse.de>
10097
10098         * stdio-common/tst-cookie.c (cookieseek): Change prototype to
10099         follow change for libio.h from 2000-03-10.
10100
10101 2000-03-23  Andreas Jaeger  <aj@suse.de>
10102
10103         * elf/dl-addr.c: Adjust include paths for ldsodefs location
10104         change.
10105         * elf/dl-debug.c: Likewise.
10106         * elf/dl-deps.c: Likewise.
10107         * elf/dl-error.c: Likewise.
10108         * elf/dl-fini.c: Likewise.
10109         * elf/dl-init.c: Likewise.
10110         * elf/dl-load.c: Likewise.
10111         * elf/dl-lookup.c: Likewise.
10112         * elf/dl-minimal.c: Likewise.
10113         * elf/dl-object.c: Likewise.
10114         * elf/dl-open.c: Likewise.
10115         * elf/dl-preinit.c: Likewise.
10116         * elf/dl-profile.c: Likewise.
10117         * elf/dl-profstub.c: Likewise.
10118         * elf/dl-reloc.c: Likewise.
10119         * elf/dl-runtime.c: Likewise.
10120         * elf/dl-support.c: Likewise.
10121         * elf/dl-symbol.c: Likewise.
10122         * elf/dl-version.c: Likewise.
10123         * elf/rtld.c: Likewise.
10124         * elf/sprof.c: Likewise.
10125         * sysdeps/generic/dl-cache.c: Likewise.
10126         * sysdeps/generic/dl-origin.c: Likewise.
10127         * sysdeps/generic/dl-sysdep.c: Likewise.
10128         * sysdeps/generic/elf/backtracesyms.c: Likewise.
10129         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10130         * sysdeps/generic/libc-start.c: Likewise.
10131         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
10132         * sysdeps/powerpc/dl-machine.c: Likewise.
10133         * sysdeps/powerpc/elf/libc-start.c: Likewise.
10134         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10135         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10136         * sysdeps/unix/sysv/linux/dl-origin.c: Likewise.
10137
10138         * elf/ldsodefs.h: Move file to ...
10139         * sysdeps/generic/ldsodefs.h: ... here.
10140
10141         * sysdeps/generic/ldsodefs.h: Add definition for D_PTR.
10142
10143         * sysdeps/mips/elf/ldsodefs.h: New file.
10144
10145         * elf/dl-version.c (match_symbol): Use D_PTR to access relocated
10146         entries in l_info.
10147         (_dl_check_map_versions): Likewise.
10148         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
10149         * elf/dl-load.c (_dl_init_paths): Likewise.
10150         (_dl_map_object): Likewise.
10151         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Likewise.
10152         (elf_get_dynamic_info): Likewise.
10153         * elf/do-lookup.h (FCT): Likewise.
10154         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
10155         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
10156         * elf/dl-addr.c (_dl_addr): Likewise.
10157         * elf/dl-runtime.c (profile_fixup): Likewise.
10158         (fixup): Likewise.
10159         * elf/dl-init.c (_dl_init_next): Likewise.
10160         * sysdeps/generic/dl-machine.h (elf_machine_runtime_setup): Likewise.
10161         * sysdeps/unix/sysv/linux/i386/dl-librecon.h
10162         (DISTINGUISH_LIB_VERSIONS): Likewise.
10163         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Likewise.
10164         (elf_machine_rel): Likewise.
10165
10166         * elf/dynamic-link.h (elf_get_dynamic_info): Only change l_info
10167         for writable dynamic section.
10168
10169 2000-03-22  Ulrich Drepper  <drepper@redhat.com>
10170
10171         * inet/getnameinfo.c (getnameinfo): Check that addrlen value is
10172         large enough.  Patch by YOSHIFUJI Hideaki <yoshfuji@v6.linux.or.jp>.
10173
10174 2000-03-22  Andreas Jaeger  <aj@suse.de>
10175
10176         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MADV_*): Add flags
10177         from latest Linux kernel.
10178
10179 2000-03-21  Andreas Jaeger  <aj@suse.de>
10180
10181         * Versions.def: Add version 2.1.4.
10182
10183 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10184
10185         * libio/oldtmpfile.c: Update for new SHLIB_COMPAT definition.
10186         * libio/oldiofopen.c: Likewise.
10187         * libio/oldiofclose.c: Likewise.
10188         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10189
10190 2000-03-22  Roland McGrath  <roland@baalperazim.frob.com>
10191
10192         * include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
10193         indicating the first version set to obsolete the conditionalized code.
10194         (compat_symbol): New macro.
10195         * scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
10196         rhs be the ABI_* macro for the subsuming version.  Assign increasing
10197         integer values to the ABI_* macros for supported versions.
10198         * sysdeps/gnu/siglist.c: Use new SHLIB_COMPAT convention, and use
10199         compat_symbol macro.
10200
10201 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10202
10203         * nscd/connections.c (nscd_run): Pretty print.
10204         * elf/dl-runtime.c: Include stdlib.h for alloca prototype.
10205
10206         * manual/charset.texi: Fix typos.  Rephrase.
10207         * manual/process.texi: Likewise.
10208         * manual/signal.texi: Likewise.
10209         Patches by Mike Coleman <mkc@kc.net>.
10210
10211         * libio/oldtmpfile.c: Use new macros from shlib-compat.h to define
10212         versions.
10213         * libio/iofdopen.c: Likewise.
10214         * libio/iofgetpos.c: Likewise.
10215         * libio/iofgetpos64.c: Likewise.
10216         * libio/iofopen.c: Likewise.
10217         * libio/iofsetpos.c: Likewise.
10218         * libio/iofsetpos64.c: Likewise.
10219         * libio/iopopen.c: Likewise.
10220         * libio/oldiofopen.c: Likewise.
10221         * libio/pclose.c: Likewise.
10222         * sysdeps/gnu/siglist.c: Likewise.
10223         * sysdeps/unix/sysv/linux/errlist.c: Likewise.
10224
10225         * include/shlib-compat.h (versioned_symbol): Give preprocessor the
10226         chance to expand VERSION_##lib##_##version.
10227
10228         * libio/fileops.c: Use new macros from shlib-compat.h to define
10229         versions.
10230         * libio/iofclose.c: Likewise.
10231         * libio/oldiofclose.c: Likewise.
10232         Patch by Roland McGrath <roland@frob.com>.
10233
10234 2000-03-21  Jakub Jelinek  <jakub@redhat.com>
10235
10236         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: Clean up namespace.
10237         Lay out struct sigcontext according to what really gets passed on
10238         the stack.
10239         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Don't include asm/elf.h.
10240         (elf_gregset_t, elf_greg_t, elf_fpregset_t, ELF_NGREG): Define.
10241         (prgregset_t, prfpregset_t): Define to elf_* types.
10242         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_WRITEDATA):
10243         Define to correct value.
10244         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Use struct
10245         sigcontext.
10246         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
10247
10248 2000-03-21  Roland McGrath  <roland@baalperazim.frob.com>
10249
10250         * scripts/firstversions.awk: Allow multiple version sets in the
10251         "earliest version" specification, meaning that version sets in the
10252         gaps between listed versions should be folded into the earliest later
10253         version that is explicitly listed.
10254         * shlib-versions (mips.*-.*-linux.*): Use that syntax for to say
10255         we support GLIBC_2.0 and GLIBC_2.2 but not the intervening sets.
10256
10257 2000-03-21  Ulrich Drepper  <drepper@redhat.com>
10258
10259         * iconv/gconv_builtin.c: Include <endian.h>.
10260         * iconv/gconv_builtin.h: Add UCS-BE aliases.
10261         Add UCS-4LE transformation.  Define UNICODEBIG and UNICODELITTLE
10262         according to current platform.
10263         * iconv/gconv_int.h: Declare __gconv_transform_ucs2reverse_internal,
10264         __gconv_transform_internal_ucs2reverse, and
10265         __gconv_transform_internal_ucs4le.
10266         * iconv/gconv_simple.c: Implement __gconv_transform_internal_ucs4le,
10267         __gconv_transform_ucs2reverse_internal and
10268         __gconv_transform_internal_ucs2reverse.
10269         * iconvdata/Makefile (modules): Add UNICODE.
10270         (distribute): Add unicode.c.
10271         * iconvdata/gconv-modules: Add definitions for UNICODE module.
10272         * iconvdata/unicode.c: New file.
10273
10274         * iconvdata/utf-16.c: Rewrite code to emit BOM.  Correct code to
10275         determine byte order of input and convert accordingly.
10276
10277         * iconvdata/utf-16.c (gconv_init): Fix typo.
10278
10279 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10280
10281         * iconvdata/gconv-modules: Fix typo.
10282
10283         * sysdeps/unix/sysv/linux/configure.in: Remove `crypt' from one
10284         more messages.
10285
10286         * sysdeps/unix/sysv/aix/*: Add initial code for port to AIX 4.3.
10287
10288 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10289
10290         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h: New.
10291
10292 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10293
10294         * misc/Makefile (routines): Add mincore.
10295
10296 2000-03-20  Andreas Jaeger  <aj@suse.de>
10297
10298         * sysdeps/generic/mincore.c: New stub file.
10299
10300         * sysdeps/unix/sysv/linux/arm/bits/mman.h (MADV_*): Add flags
10301         from latest Linux kernel.
10302
10303 2000-03-20  Ulrich Drepper  <drepper@redhat.com>
10304
10305         * grp/initgroups.c (compat_call): Use _SC_GETGR_R_SIZE_MAX instead of
10306         _SC_GETPW_R_SIZE_MAX.
10307
10308 2000-03-20  Richard Henderson  <rth@cygnus.com>
10309
10310         * sysdeps/unix/sysv/linux/alpha/Versions: Put pciconfig_iobase
10311         in GLIBC_2.1.4.
10312
10313 2000-03-20  Richard Henderson  <rth@cygnus.com>
10314
10315         * sysdeps/alpha/fpu/fraiseexcpt.c: Use get/set_fp_control instead
10316         of arithmetic instructions.
10317
10318         * sysdeps/alpha/fpu/s_ceil.c: Use round to -inf instead of playing
10319         with the fpcr.  Protect from INV exception.
10320         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
10321         * sysdeps/alpha/fpu/s_floor.c: Protect from INV exception.
10322         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
10323
10324         * sysdeps/alpha/fpu/s_copysign.c: New.
10325         * sysdeps/alpha/fpu/s_copysignf.c: New.
10326         * sysdeps/alpha/fpu/s_fabs.c: New.
10327         * sysdeps/alpha/fpu/s_fabsf.c: New.
10328         * sysdeps/alpha/fpu/s_rint.c: New.
10329         * sysdeps/alpha/fpu/s_rintf.c: New.
10330
10331         * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Add MADV constants.
10332
10333         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines):
10334         Kill sethae.
10335         * sysdeps/unix/sysv/linux/alpha/Versions: Add pciconfig_iobase.
10336         * sysdeps/unix/sysv/linux/alpha/ioperm.c (all address constants):
10337         Use physical addresses not KSEG addresses.
10338         (io_system): Add PYXIS.
10339         (io): Remove hae.reg, sys, hae_shift.
10340         (stb_mb, stw_mb, stl_mb, __sethae): New.
10341         (inline_outb, inline_outw, inline_outl): Don't set hae.
10342         (inline_inb, inline_inw, inline_inl): Likewise.
10343         (dense_sethae): New null function.
10344         (struct cpuinfo_data): New.
10345         (process_cpuinfo): Use local and stack variables, not static.
10346         Move readlink check here from init_iosys.
10347         (init_iosys): Use __pciconfig_iobase first.  Know SX and LX as PYXIS.
10348         (_iopl): Simplify.
10349         (_hae_shift): Calculate it here.
10350         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sethae,
10351         add pciconfig_iobase.
10352
10353 2000-03-20  Roland McGrath  <roland@baalperazim.frob.com>
10354
10355         * locale/programs/ld-time.c (time_finish): Use %Z instead of %z.
10356         * locale/programs/ld-ctype.c (ctype_finish, ctype_class_new): Likewise.
10357
10358         * scripts/versions.awk: Fixed version renaming code to distinguish
10359         libraries properly.
10360
10361 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10362
10363         * include/stdlib.h: Add prototype for __cxa_atexit.
10364
10365         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Update comment about
10366         _SLOWDOWN flags.  Patch by Jim Blandy <jimb@cygnus.com>.
10367
10368 2000-03-17  Cristian Gafton  <gafton@redhat.com>
10369
10370         * elf/Makefile ($(rtld-version-installed-name)): Delay replacing
10371         existing rtld-installed-name.
10372         ($(rtld-installed-name)): Request libc-$(version) be installed too.
10373         replace existing rtld-installed-name using $(symbolic-link-prog).
10374
10375 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10376
10377         * locale/programs/ld-collate.c (collate_read): Remove bogus cast.
10378         (insert_value, handle_ellipsis, collate_read): Replace %zu in format
10379         strings with %Zu, because gcc-2.95.2's -Wformat knows about the latter
10380         but not the former.
10381
10382 2000-03-19  Ulrich Drepper  <drepper@redhat.com>
10383
10384         * sysdeps/generic/glob.c [_LIBC]: Always use __xstat64, not only for
10385         glob64.  Since there is no glob64 in the LFS proposal applications
10386         can assume that glob handles LFS situations.  glob64 is only needed
10387         if alternative filesystem functions are used.
10388
10389 2000-03-19  Geoff Clare  <gwc@unisoft.com>
10390
10391         * sysdeps/generic/glob.c: Correct gl_pathc value returned
10392         when GLOB_DOOFFS is set; correct handling of patterns
10393         containing escaped wildcards (and no unescaped ones);
10394         GLOB_ERR flag was being ignored in some situations.
10395
10396         * posix/globtest.c, posix/globtest.sh: Updated to include
10397         tests for the problems fixed by the above changes to glob.c.
10398
10399         * manual/pattern.texi (Calling Glob): Update description of gl_pathc.
10400
10401 2000-03-19  Roland McGrath  <roland@baalperazim.frob.com>
10402
10403         * Makeconfig (soversion.i): Use only first match for each lib.
10404
10405         * Makeconfig (soversion.i): Pass -undef to $(CC) -E.
10406
10407         * Makerules (Versions.all, sysd-versions): Test $(sysd-sorted-done)
10408         rather than $(sysd-dirs-done) to protect these rules.
10409
10410         * Makerules (version-renames.def): Target removed.
10411         (Versions.all): Depend on soversions.i directly and parse it.
10412
10413         * Makeconfig (soversions.i): New target, input-reading parts of
10414         soversions.mk generation moved here; result is a canonicalized
10415         list "LIB VERSION [SET]" for this configuration.
10416         (soversions.mk): Use that as input.  Don't emit map-firstversions.
10417         * Makerules (version-renames.def): New target, generated from
10418         soversions.i with contents that was in $(map-firstversions).
10419         (Versions.all): Don't depend on soversions.mk, depend on
10420         version-renames.def instead; just cat it into the input.
10421
10422         * Makerules (Versions.all): Use $(foreach ...) instead of sh for loop
10423         for $(map-firstversions), which better handles it being empty.
10424
10425         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
10426         supported version for libc 0.2.90.libio to GLIBC_2.2.
10427
10428         * Makeconfig (soversions.mk): Grok new third column in shlib-versions,
10429         and use it to emit new variable `map-firstversions'.
10430         * scripts/firstversions.awk: New file.
10431         * Makerules (Versions.all): Use scripts/firstversions.awk and
10432         the $(map-firstversions) value to generate a modified versions list
10433         that includes renames in "A = B" syntax for each version set earlier
10434         than the "earliest symbol version" named in shlib-versions.
10435         * scripts/versions.awk: Recognize "A = B" lines in the input to mean
10436         rename version set A to B in the output to the intermediate file.
10437         * scripts/abi-versions.awk: New file.
10438         * Makerules (abi-versions.h): New target, generated by that script.
10439         [$(versioning) = yes] (before-compile): Prepend abi-versions.h.
10440         * include/shlib-compat.h: New file, uses that generated header.
10441
10442 2000-03-18  Roland McGrath  <roland@baalperazim.frob.com>
10443
10444         * Makeconfig (soversions.mk): Convert % -> # in shlib-versions
10445         after stripping # comments, and then run it through cpp.
10446         This allows things like "%ifdef FOO" based on config.h settings.
10447         * shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): libc=0.2.90.libio
10448
10449         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): For MACH_SEND_INTERRUPTED
10450         and other errors that indicate a pseudo-receive happened, grok through
10451         the message buffer for port rights that need references fixed up.
10452
10453 2000-03-16  Andreas Jaeger  <aj@suse.de>
10454
10455         * sysdeps/unix/sysv/linux/syscalls.list: Added madvise and mincore.
10456
10457         * sysdeps/unix/sysv/linux/madvise.c: Remove.
10458
10459         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MADV_*): Add flags
10460         from latest Linux kernel.
10461         * sysdeps/unix/sysv/linux/i386/bits/mman.h (MADV_*): Likewise.
10462
10463         * misc/sys/mman.h: Add prototype for mincore.
10464
10465 2000-03-17  Ulrich Drepper  <drepper@redhat.com>
10466
10467         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add oldsetrlimit
10468         entry for GLIBC_2.0 version of setrlimit.
10469         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10470
10471 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10472
10473         * nis/nss_nis/nis-ethers.c: Return with error if malloc fails.
10474         * nis/nss_compat/compat-initgroups.c: Likewise.
10475         * nis/nss_nis/nis-initgroups.c: Likewise.
10476         * nis/nss_nis/nis-netgrp.c: Likewise.
10477         * nis/nss_nis/nis-proto.c: Likewise.
10478         * nis/nss_nis/nis-rpc.c: Likewise.
10479         * nis/nss_nis/nis-service.c: Likewise.
10480         * nis/ypclnt.c: Likewise.
10481
10482 2000-03-16  Andreas Jaeger  <aj@suse.de>
10483
10484         * manual/Makefile: MAKEINFO is set to `:' from configure if it
10485         doesn't exist, correct checks.  Fixes PR libc/1649.
10486
10487 2000-03-16  Thorsten Kukuk  <kukuk@suse.de>
10488
10489         * nscd/hstcache.c: Restore correct UID.
10490         * nscd/pwdcache.c: Likewise.
10491         Patch from Gabor Gombas <gombasg@inf.elte.hu>.
10492
10493 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
10494
10495         * sysdeps/i386/sys/ucontext.h: Prepend REG_ to enum values and
10496         macros for register names, in line with 2000-03-14 linux change.
10497
10498         * sysdeps/mach/sched_yield.c: New file.
10499
10500 2000-03-13  Roland McGrath  <roland@baalperazim.frob.com>
10501
10502         * sysdeps/generic/lockfile.c: Include <stdio.h>
10503         (_IO_flockfile, _IO_funlockfile, _IO_ftrylockfile): #undef these in
10504         case <libio.h> defined them.
10505         (__flockfile, __funlockfile, __ftrylockfile): Functions renamed
10506         from __internal_*.
10507         (flockfile, _IO_flockfile, funlockfile, _IO_funlockfile,
10508         ftrylockfile, _IO_ftrylockfile): Fix aliases accordingly.
10509
10510         * sysdeps/generic/bits/stdio-lock.h (_IO_lock_initializer): Use ...
10511         for more pleasing parse error.
10512
10513 2000-03-16  Ulrich Drepper  <drepper@redhat.com>
10514
10515         * locale/lc-time.c (_nl_init_era_entries): Correct allocation of
10516         memory for eras.
10517         Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
10518
10519         * elf/Makefile: Add rules to compile and run constload1 test.
10520         * elf/constload1.c: New file.
10521         * elf/constload2.c: New file.
10522         * elf/constload3.c: New file.
10523
10524 2000-03-15  Ulrich Drepper  <drepper@redhat.com>
10525
10526         * sysdeps/posix/open64.c: Make __open64 weak alias.
10527         * sysdeps/posix/pread64.c: Make __pread64 weak alias.
10528         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
10529         * sysdeps/unix/sysv/linux/i386/pread64.c: Likewise.
10530         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
10531         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
10532         * sysdeps/posix/pwrite64.c: Make __pwrite64 weak alias.
10533         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
10534         * sysdeps/unix/sysv/linux/i386/pwrite64.c: Likewise.
10535         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
10536         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
10537
10538 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10539
10540         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
10541         Nautilus.  Patch by Soohoon Lee <soohoon.lee@alpha-processor.com>.
10542
10543 2000-03-16  Mark Kettenis  <kettenis@gnu.org>
10544
10545         * sysdeps/unix/sysv/linux/i386/sys/procfs.h (prfpregset_t):
10546         Typedef for elf_fpregset_t instead of `elf_fpregset_t *'.
10547
10548 2000-03-08  Andreas Jaeger  <aj@suse.de>
10549
10550         * sysdeps/unix/sysv/linux/scsi/sg.h: Sync with Linux 2.3.50.
10551
10552 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10553
10554         * timezone/africa: Update from tzdata2000d.
10555         * timezone/asia: Likewise.
10556         * timezone/australasia: Likewise.
10557         * timezone/europe: Likewise.
10558         * timezone/northamerica: Likewise.
10559         * timezone/southamerica: Likewise.
10560
10561         * po/fr.po: Update from translation team.
10562         * po/de.po: Likewise.
10563
10564         * elf/dl-deps.c (_dl_map_object_deps): Change return type and remove
10565         last parameter.  Move code to add map to global scope from here...
10566         * elf/dl-open.c (dl_open_worker): ...here.
10567         * elf/ldsodefs.h: Adjust declaration of _dl_map_object_deps.
10568         * elf/rtld.c: Adjust call to _dl_map_object_deps.
10569
10570         * locale/programs/ld-collate.c (collate_read): Fix warning.
10571
10572         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Prepend REG_ to enum
10573         values and macros for register names.
10574
10575         * libio/iofopncook.c (_IO_cookie_seek): Return error only if value
10576         returned by seek cookie function is -1.
10577
10578 2000-03-14  Andreas Jaeger  <aj@suse.de>
10579
10580         * locale/localeconv.c (localeconv): Fix typo.
10581         Reported by Andre Charbonneau <andrec@corel.com>.
10582
10583 2000-03-14  Ulrich Drepper  <drepper@redhat.com>
10584
10585         * iconv/skeleton.c: Increment __invocation_counter in inner loop
10586         since modules depend on it counting the number of times the conversion
10587         function got called.
10588
10589         * iconv/gconv_open.c: Optimize loop to setup step data structure.
10590
10591         * iconv/gconv.h: Pretty print.
10592
10593 2000-03-04  Ulrich Drepper  <drepper@redhat.com>
10594
10595         * posix/wordexp-test.c: Correct one of the tests added in the last
10596         change.  Really get the root passwd entry to check again ~root.
10597
10598 2000-03-10  Andreas Jaeger  <aj@suse.de>
10599
10600         * manual/filesys.texi (Working Directory): Fix last patch.
10601         Patch by Martin Buchholz  <martin@xemacs.org>.
10602
10603 2000-03-10  Andreas Jaeger  <aj@suse.de>
10604
10605         * manual/creature.texi (Feature Test Macros): Fix language.
10606
10607 2000-03-10  Roland McGrath  <roland@baalperazim.frob.com>
10608
10609         * mach/devstream.c (devstream_write, devstream_read): New functions.
10610         (input, output): Functions removed.
10611         (mach_open_devstream): Use devstream_{read,write} as cookie functions,
10612         using only the vanilla fopencookie interface.
10613
10614         * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define
10615         as macro for __io_functions.
10616         (funcsio): Use cookie_io_functions_t type name.
10617         (fopenport): Renamed from __fopenport.  Rewrite to call fopencookie.
10618
10619         * libio/iofopncook.c (_IO_cookie_init): New function, broken out of
10620         fopencookie.
10621         (fopencookie): Use it.
10622         * libio/libio.h: Declare _IO_cookie_init.
10623         * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using
10624         _IO_cookie_init.
10625
10626         * libio/libio.h (__io_seek_fn): Fix second argument type
10627         to be a pointer, in line with the manual and the old stdio.
10628         * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller.
10629
10630         * sysdeps/generic/bits/stdio-lock.h: New file.
10631         This is a stub with #error, but that's better than no file at all.
10632
10633 2000-03-09  Martin Buchholz  <martin@xemacs.org>
10634
10635         * sysdeps/unix/sysv/linux/alpha/syscall.S: Doc Fixes.
10636         * manual/message.texi (Using gettextized software): Doc Fixes.
10637         * manual/message.texi (Message Translation): Doc Fixes.
10638         * manual/filesys.texi (File Size): Doc Fixes.
10639         * manual/charset.texi (glibc iconv Implementation): Doc Fixes.
10640         * locale/programs/ld-collate.c (collate_output): Doc Fixes.
10641         * iconv/gconv_db.c (find_derivation): Doc Fixes.
10642         * manual/install.texi: Doc Fixes.
10643         * manual/search.texi (Hash Search Function): Doc Fixes.
10644         * manual/stdio.texi (Output Conversion Syntax): Doc Fixes.
10645         * FAQ.in: Doc Fixes.
10646         * config.h.in: Doc Fixes.
10647         * sysdeps/generic/dl-sysdep.c: Doc Fixes.
10648         Doc Fixes.  `allows to' is not correct English.
10649
10650         * elf/rtld.c: Doc fixes.
10651         * manual/creature.texi (Feature Test Macros): Doc fixes.
10652         * manual/memory.texi (Hooks for Malloc): Doc Fixes.
10653
10654         * manual/filesys.texi (Working Directory): Check for ERANGE to
10655         avoid infloop.
10656
10657 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10658
10659         * string/argz-stringify.c (__argz_stringify): Fix loop termination
10660         conditions so as not to clobber the final '\0' when there is only one
10661         element in the vector.
10662
10663 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10664
10665         * io/sys/stat.h: Fix inverted sense of `defined __S_IFSOCK' test,
10666         broken by 2000-02-27 change.
10667
10668         * sysdeps/generic/bits/poll.h (POLLRDNORM, POLLRDBAND): New macros.
10669
10670 2000-02-23  Roland McGrath  <roland@baalperazim.frob.com>
10671
10672         * sysdeps/mach/hurd/sigstack.c (sigstack): Remove `const' from
10673         argument type, for 2000-02-22 change in signal/signal.h declaration.
10674
10675 2000-03-09  Roland McGrath  <roland@baalperazim.frob.com>
10676
10677         * sysdeps/generic/getdents64.c (__getdirentries64): Renamed
10678         to getdirentries64 (no __), since the Linux implementation
10679         has no __ name, and there is no declaration for the __ name.
10680
10681         * sysdeps/mach/bits/libc-lock.h (__libc_cleanup_end): New macro.
10682
10683         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Tighten up
10684         sed regexp so as not to break directory names including /../ within.
10685
10686         * sysdeps/unix/bsd/bits/waitflags.h: File removed.
10687         The sysdeps/generic file is right for BSD.  This file was in fact the
10688         Hurd file, but the only difference was the WNOREAP flag that was never
10689         actually implemented or used anywhere.
10690
10691         * configure.in (PERL, INSTALL_INFO): Don't AC_SUBST these,
10692         since AC_PATH_PROG already does it for us.
10693         (PERL): Rewrite check added in 2000-02-29 change for syntactic
10694         correctness and sh portability.  I replaced the broken check
10695         with a more sensible implementation of the apparently intended
10696         semantics, which might still be questionable.  Using expr causes
10697         a non-numeric value for `perl -V:apiversion` to be accepted,
10698         refusing to use only a perl that reports a number less than 5;
10699         on my system, perl (5.004_04) -V:apiversion produces UNKNOWN.
10700         * configure: Regenerated.
10701
10702 2000-03-08  Andreas Jaeger  <aj@suse.de>
10703
10704         * manual/crypt.texi: Fix paths.
10705
10706 2000-03-07  Andreas Jaeger  <aj@suse.de>
10707
10708         * resolv/netdb.h: The descriptions of rresvport and rresvport_af
10709         were swapped.
10710         Patch by YOSHIFUJI Hideaki <yoshfuji@ecei.tohoku.ac.jp>, closes PR
10711         libc/1636.
10712
10713 2000-03-06  Andreas Jaeger  <aj@suse.de>
10714
10715         * sysdeps/i386/fpu/bits/mathinline.h: Fix union definition error
10716         in __sgn1l, otherwise g++ fails to parse this.
10717         Reported by Sean Chen <sean.chen@turbolinux.com>.
10718
10719 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10720
10721         * configure.in: Compute sizeof-long-double.
10722         * configure: Regenerated.
10723         * config.make.in: Make sizeof-long-double available to sub-makes.
10724
10725 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10726
10727         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10728         call.
10729
10730 2000-03-03  Geoff Keating  <geoffk@cygnus.com>
10731
10732         * Makeconfig (rpath-dirs): Add crypt.
10733         (all-subdirs): Remove md5crypt.
10734         * crypt/sysdeps/unix/crypt.c: Move to crypt/.
10735         * crypt/sysdeps/unix/crypt-entry.c: Move to crypt/.
10736         * sysdeps/generic/crypt-entry.c: Delete.
10737         * crypt/sysdeps/unix/crypt.h: Move to crypt/.
10738         * sysdeps/generic/crypt.h: Delete.
10739         * crypt/sysdeps/unix/crypt-private.h: Move to crypt/.
10740         * crypt/sysdeps/unix/crypt_util.c: Move to crypt/.
10741         * crypt/sysdeps/unix/des_impl.c: Move to sunrpc/.
10742         * sysdeps/generic/des_impl.c: Delete.
10743         * crypt/sysdeps/unix/ufc-crypt.h: Move to crypt/.
10744         * crypt/sysdeps: Delete.
10745         * crypt/crypt_util.c: Don't use `patchlevel.h'.
10746         * md5-crypt/Versions: Move to crypt/.
10747         * md5-crypt/md5-crypt.c: Move to crypt/.
10748         * md5-crypt/md5.c: Move to crypt/.
10749         * md5-crypt/md5c-test.c: Move to crypt/.
10750         * md5-crypt/md5test.c: Move to crypt/.
10751         * md5-crypt: Delete.
10752         * crypt/Makefile: Adjust for new structure.
10753
10754 2000-03-03  Paul Eggert  <eggert@twinsun.com>
10755
10756         * posix/regex.c (MB_LEN_MAX): Include <limits.h> to define;
10757         define to 1 if not defined.
10758
10759 2000-03-03  Andreas Jaeger  <aj@suse.de>
10760
10761         * sunrpc/xdr.c (xdr_hyper): Correctly handle lower half of llp.
10762
10763 2000-03-03  Andreas Jaeger  <aj@suse.de>
10764
10765         * sunrpc/xdr_intXX_t.c (xdr_uint16_t): Fix ENCODE and DECODE
10766         cases.
10767         (xdr_int64_t): Correctly handle lower half.
10768         Fix by Sten Dahlgren <stda@enea.se>, closes PR libc/1623.
10769
10770 2000-03-03  Ulrich Drepper  <drepper@cygnus.com>
10771
10772         * sysdeps/unix/sysv/linux/init-first.c: Remove trace of personality
10773         call.
10774
10775 2000-03-02  Andreas Jaeger  <aj@suse.de>
10776
10777         * sysdeps/unix/sysv/linux/scsi/sg.h: Integrate changes from Linux
10778         2.3.43.
10779
10780 2000-03-02  Andreas Jaeger  <aj@suse.de>
10781
10782         * resolv/Makefile (headers): Add arpa/nameser_compat.h.
10783
10784 2000-03-01  Andreas Jaeger  <aj@suse.de>
10785
10786         * time/Makefile (tst-getdate-ENV): New flag to pass DATEMSK.
10787         (tests): Added tst-getdate.
10788
10789         * time/tst-getdate.c: New file.
10790
10791         * time/datemsk: New file, needed for tst-getdate.
10792
10793 2000-02-29  Cristian Gafton  <gafton@redhat.com>
10794
10795         * configure.in (CCVERSION): Require at least veersion 5 of perl API.
10796
10797 2000-02-17  H.J. Lu  <hjl@gnu.org>
10798
10799         * sunrpc/rpc/svc.h (SVCXPRT): Add a "xp_pad" field at the end.
10800
10801         * sunrpc/svc_udp.c (svcudp_bufcreate): Turn on IP_PKTINFO if
10802         available.
10803         (svcudp_recv): Set up message with the new "xp_pad" field for
10804         IP_PKTINFO.
10805         (svcudp_reply): Support IP_PKTINFO if available.
10806
10807 2000-03-01  Andreas Jaeger  <aj@suse.de>
10808
10809         * time/getdate.c (check_mday): Fix check for february.
10810         Reported by ane@np.bs1.fc.nec.co.jp and Akira YOSHIYAMA
10811         <yosshy@cts.ne.jp>, closes PR libc/1617 and PR libc/1619.
10812
10813 2000-03-02  Andreas Jaeger  <aj@suse.de>
10814
10815         * posix/unistd.h: __THROW has to precede __attribute__, otherwise
10816         g++ fails to parse this.
10817         Reported by Sean Chen <sean.chen@turbolinux.com>.
10818
10819 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10820
10821         * io/creat.c: Moved to...
10822         * sysdeps/generic/creat.c: ...here.
10823         * io/creat64.c: Moved to...
10824         * sysdeps/generic/creat64.c: ...here.
10825         * io/lockf.c: Moved to...
10826         * sysdeps/generic/lockf.c: ...here.
10827
10828         * crypt/crypt.texi: Moved to...
10829         * manual/crypt.texi: ...here.
10830         * crypt/examples/genpass.c: Moved to...
10831         * manual/examples/genpass.c: ...here.
10832         * crypt/examples/mygenpass.c: Moved to...
10833         * manual/examples/mygenpass.c: ...here.
10834         * crypt/examples/testpass.c: Moved to...
10835         * manual/examples/testpass.c: ...here.
10836
10837         * manual/Makefile (chapters): Add crypt.
10838         * manual/conf.texi: Add usual header for not-last chapter.
10839         * manual/crypt.texi: Add special header for last chapter.
10840
10841 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10842
10843         * Makeconfig (all-subdirs): Add 'crypt' subdirectory.
10844         * sysdeps/unix/sysv/linux/configure.in (inhibit_glue): Don't
10845         complain if there is no crypt add-on.
10846         * crypt/configure: Removed.
10847
10848         * crypt/crypt.texi: Update documentation of US export restrictions
10849         to match the 14 Jan 2000 regulations.
10850
10851 2000-02-28  Geoff Keating  <geoffk@cygnus.com>
10852
10853         * crypt: New subdirectory, merged in from the crypt add-on.
10854
10855 2000-02-28  Ulrich Drepper  <drepper@redhat.com>
10856
10857         * include/unistd.h: Add __rmdir and __mkdir prototypes.
10858
10859
10860 See ChangeLog.10 for earlier changes.